protobuf_unittest.UnittestProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobufel-protobuf-test-protos Show documentation
Show all versions of protobufel-protobuf-test-protos Show documentation
Shared Test Resources - test .proto files
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/unittest.proto
package protobuf_unittest;
public final class UnittestProto {
private UnittestProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registry.add(protobuf_unittest.UnittestProto.optionalInt32Extension);
registry.add(protobuf_unittest.UnittestProto.optionalInt64Extension);
registry.add(protobuf_unittest.UnittestProto.optionalUint32Extension);
registry.add(protobuf_unittest.UnittestProto.optionalUint64Extension);
registry.add(protobuf_unittest.UnittestProto.optionalSint32Extension);
registry.add(protobuf_unittest.UnittestProto.optionalSint64Extension);
registry.add(protobuf_unittest.UnittestProto.optionalFixed32Extension);
registry.add(protobuf_unittest.UnittestProto.optionalFixed64Extension);
registry.add(protobuf_unittest.UnittestProto.optionalSfixed32Extension);
registry.add(protobuf_unittest.UnittestProto.optionalSfixed64Extension);
registry.add(protobuf_unittest.UnittestProto.optionalFloatExtension);
registry.add(protobuf_unittest.UnittestProto.optionalDoubleExtension);
registry.add(protobuf_unittest.UnittestProto.optionalBoolExtension);
registry.add(protobuf_unittest.UnittestProto.optionalStringExtension);
registry.add(protobuf_unittest.UnittestProto.optionalBytesExtension);
registry.add(protobuf_unittest.UnittestProto.optionalGroupExtension);
registry.add(protobuf_unittest.UnittestProto.optionalNestedMessageExtension);
registry.add(protobuf_unittest.UnittestProto.optionalForeignMessageExtension);
registry.add(protobuf_unittest.UnittestProto.optionalImportMessageExtension);
registry.add(protobuf_unittest.UnittestProto.optionalNestedEnumExtension);
registry.add(protobuf_unittest.UnittestProto.optionalForeignEnumExtension);
registry.add(protobuf_unittest.UnittestProto.optionalImportEnumExtension);
registry.add(protobuf_unittest.UnittestProto.optionalStringPieceExtension);
registry.add(protobuf_unittest.UnittestProto.optionalCordExtension);
registry.add(protobuf_unittest.UnittestProto.optionalPublicImportMessageExtension);
registry.add(protobuf_unittest.UnittestProto.optionalLazyMessageExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedInt32Extension);
registry.add(protobuf_unittest.UnittestProto.repeatedInt64Extension);
registry.add(protobuf_unittest.UnittestProto.repeatedUint32Extension);
registry.add(protobuf_unittest.UnittestProto.repeatedUint64Extension);
registry.add(protobuf_unittest.UnittestProto.repeatedSint32Extension);
registry.add(protobuf_unittest.UnittestProto.repeatedSint64Extension);
registry.add(protobuf_unittest.UnittestProto.repeatedFixed32Extension);
registry.add(protobuf_unittest.UnittestProto.repeatedFixed64Extension);
registry.add(protobuf_unittest.UnittestProto.repeatedSfixed32Extension);
registry.add(protobuf_unittest.UnittestProto.repeatedSfixed64Extension);
registry.add(protobuf_unittest.UnittestProto.repeatedFloatExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedDoubleExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedBoolExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedStringExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedBytesExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedGroupExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedNestedMessageExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedForeignMessageExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedImportMessageExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedNestedEnumExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedForeignEnumExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedImportEnumExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedStringPieceExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedCordExtension);
registry.add(protobuf_unittest.UnittestProto.repeatedLazyMessageExtension);
registry.add(protobuf_unittest.UnittestProto.defaultInt32Extension);
registry.add(protobuf_unittest.UnittestProto.defaultInt64Extension);
registry.add(protobuf_unittest.UnittestProto.defaultUint32Extension);
registry.add(protobuf_unittest.UnittestProto.defaultUint64Extension);
registry.add(protobuf_unittest.UnittestProto.defaultSint32Extension);
registry.add(protobuf_unittest.UnittestProto.defaultSint64Extension);
registry.add(protobuf_unittest.UnittestProto.defaultFixed32Extension);
registry.add(protobuf_unittest.UnittestProto.defaultFixed64Extension);
registry.add(protobuf_unittest.UnittestProto.defaultSfixed32Extension);
registry.add(protobuf_unittest.UnittestProto.defaultSfixed64Extension);
registry.add(protobuf_unittest.UnittestProto.defaultFloatExtension);
registry.add(protobuf_unittest.UnittestProto.defaultDoubleExtension);
registry.add(protobuf_unittest.UnittestProto.defaultBoolExtension);
registry.add(protobuf_unittest.UnittestProto.defaultStringExtension);
registry.add(protobuf_unittest.UnittestProto.defaultBytesExtension);
registry.add(protobuf_unittest.UnittestProto.defaultNestedEnumExtension);
registry.add(protobuf_unittest.UnittestProto.defaultForeignEnumExtension);
registry.add(protobuf_unittest.UnittestProto.defaultImportEnumExtension);
registry.add(protobuf_unittest.UnittestProto.defaultStringPieceExtension);
registry.add(protobuf_unittest.UnittestProto.defaultCordExtension);
registry.add(protobuf_unittest.UnittestProto.oneofUint32Extension);
registry.add(protobuf_unittest.UnittestProto.oneofNestedMessageExtension);
registry.add(protobuf_unittest.UnittestProto.oneofStringExtension);
registry.add(protobuf_unittest.UnittestProto.oneofBytesExtension);
registry.add(protobuf_unittest.UnittestProto.myExtensionString);
registry.add(protobuf_unittest.UnittestProto.myExtensionInt);
registry.add(protobuf_unittest.UnittestProto.packedInt32Extension);
registry.add(protobuf_unittest.UnittestProto.packedInt64Extension);
registry.add(protobuf_unittest.UnittestProto.packedUint32Extension);
registry.add(protobuf_unittest.UnittestProto.packedUint64Extension);
registry.add(protobuf_unittest.UnittestProto.packedSint32Extension);
registry.add(protobuf_unittest.UnittestProto.packedSint64Extension);
registry.add(protobuf_unittest.UnittestProto.packedFixed32Extension);
registry.add(protobuf_unittest.UnittestProto.packedFixed64Extension);
registry.add(protobuf_unittest.UnittestProto.packedSfixed32Extension);
registry.add(protobuf_unittest.UnittestProto.packedSfixed64Extension);
registry.add(protobuf_unittest.UnittestProto.packedFloatExtension);
registry.add(protobuf_unittest.UnittestProto.packedDoubleExtension);
registry.add(protobuf_unittest.UnittestProto.packedBoolExtension);
registry.add(protobuf_unittest.UnittestProto.packedEnumExtension);
registry.add(protobuf_unittest.UnittestProto.unpackedInt32Extension);
registry.add(protobuf_unittest.UnittestProto.unpackedInt64Extension);
registry.add(protobuf_unittest.UnittestProto.unpackedUint32Extension);
registry.add(protobuf_unittest.UnittestProto.unpackedUint64Extension);
registry.add(protobuf_unittest.UnittestProto.unpackedSint32Extension);
registry.add(protobuf_unittest.UnittestProto.unpackedSint64Extension);
registry.add(protobuf_unittest.UnittestProto.unpackedFixed32Extension);
registry.add(protobuf_unittest.UnittestProto.unpackedFixed64Extension);
registry.add(protobuf_unittest.UnittestProto.unpackedSfixed32Extension);
registry.add(protobuf_unittest.UnittestProto.unpackedSfixed64Extension);
registry.add(protobuf_unittest.UnittestProto.unpackedFloatExtension);
registry.add(protobuf_unittest.UnittestProto.unpackedDoubleExtension);
registry.add(protobuf_unittest.UnittestProto.unpackedBoolExtension);
registry.add(protobuf_unittest.UnittestProto.unpackedEnumExtension);
registry.add(protobuf_unittest.UnittestProto.TestNestedExtension.test);
registry.add(protobuf_unittest.UnittestProto.TestNestedExtension.nestedStringExtension);
registry.add(protobuf_unittest.UnittestProto.TestRequired.single);
registry.add(protobuf_unittest.UnittestProto.TestRequired.multi);
registry.add(protobuf_unittest.UnittestProto.TestParsingMerge.optionalExt);
registry.add(protobuf_unittest.UnittestProto.TestParsingMerge.repeatedExt);
}
/**
* Protobuf enum {@code protobuf_unittest.ForeignEnum}
*/
public enum ForeignEnum
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FOREIGN_FOO = 4;
*/
FOREIGN_FOO(0, 4),
/**
* FOREIGN_BAR = 5;
*/
FOREIGN_BAR(1, 5),
/**
* FOREIGN_BAZ = 6;
*/
FOREIGN_BAZ(2, 6),
;
/**
* FOREIGN_FOO = 4;
*/
public static final int FOREIGN_FOO_VALUE = 4;
/**
* FOREIGN_BAR = 5;
*/
public static final int FOREIGN_BAR_VALUE = 5;
/**
* FOREIGN_BAZ = 6;
*/
public static final int FOREIGN_BAZ_VALUE = 6;
public final int getNumber() { return value; }
public static ForeignEnum valueOf(int value) {
switch (value) {
case 4: return FOREIGN_FOO;
case 5: return FOREIGN_BAR;
case 6: return FOREIGN_BAZ;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ForeignEnum findValueByNumber(int number) {
return ForeignEnum.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.getDescriptor().getEnumTypes().get(0);
}
private static final ForeignEnum[] VALUES = values();
public static ForeignEnum valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private ForeignEnum(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protobuf_unittest.ForeignEnum)
}
/**
* Protobuf enum {@code protobuf_unittest.TestEnumWithDupValue}
*
*
* Test an enum that has multiple values with the same number.
*
*/
public enum TestEnumWithDupValue
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FOO1 = 1;
*/
FOO1(0, 1),
/**
* BAR1 = 2;
*/
BAR1(1, 2),
/**
* BAZ = 3;
*/
BAZ(2, 3),
;
/**
* FOO2 = 1;
*/
public static final TestEnumWithDupValue FOO2 = FOO1;
/**
* BAR2 = 2;
*/
public static final TestEnumWithDupValue BAR2 = BAR1;
/**
* FOO1 = 1;
*/
public static final int FOO1_VALUE = 1;
/**
* BAR1 = 2;
*/
public static final int BAR1_VALUE = 2;
/**
* BAZ = 3;
*/
public static final int BAZ_VALUE = 3;
/**
* FOO2 = 1;
*/
public static final int FOO2_VALUE = 1;
/**
* BAR2 = 2;
*/
public static final int BAR2_VALUE = 2;
public final int getNumber() { return value; }
public static TestEnumWithDupValue valueOf(int value) {
switch (value) {
case 1: return FOO1;
case 2: return BAR1;
case 3: return BAZ;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TestEnumWithDupValue findValueByNumber(int number) {
return TestEnumWithDupValue.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.getDescriptor().getEnumTypes().get(1);
}
private static final TestEnumWithDupValue[] VALUES = {
FOO1, BAR1, BAZ, FOO2, BAR2,
};
public static TestEnumWithDupValue valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private TestEnumWithDupValue(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protobuf_unittest.TestEnumWithDupValue)
}
/**
* Protobuf enum {@code protobuf_unittest.TestSparseEnum}
*
*
* Test an enum with large, unordered values.
*
*/
public enum TestSparseEnum
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SPARSE_A = 123;
*/
SPARSE_A(0, 123),
/**
* SPARSE_B = 62374;
*/
SPARSE_B(1, 62374),
/**
* SPARSE_C = 12589234;
*/
SPARSE_C(2, 12589234),
/**
* SPARSE_D = -15;
*/
SPARSE_D(3, -15),
/**
* SPARSE_E = -53452;
*/
SPARSE_E(4, -53452),
/**
* SPARSE_F = 0;
*/
SPARSE_F(5, 0),
/**
* SPARSE_G = 2;
*/
SPARSE_G(6, 2),
;
/**
* SPARSE_A = 123;
*/
public static final int SPARSE_A_VALUE = 123;
/**
* SPARSE_B = 62374;
*/
public static final int SPARSE_B_VALUE = 62374;
/**
* SPARSE_C = 12589234;
*/
public static final int SPARSE_C_VALUE = 12589234;
/**
* SPARSE_D = -15;
*/
public static final int SPARSE_D_VALUE = -15;
/**
* SPARSE_E = -53452;
*/
public static final int SPARSE_E_VALUE = -53452;
/**
* SPARSE_F = 0;
*/
public static final int SPARSE_F_VALUE = 0;
/**
* SPARSE_G = 2;
*/
public static final int SPARSE_G_VALUE = 2;
public final int getNumber() { return value; }
public static TestSparseEnum valueOf(int value) {
switch (value) {
case 123: return SPARSE_A;
case 62374: return SPARSE_B;
case 12589234: return SPARSE_C;
case -15: return SPARSE_D;
case -53452: return SPARSE_E;
case 0: return SPARSE_F;
case 2: return SPARSE_G;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TestSparseEnum findValueByNumber(int number) {
return TestSparseEnum.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.getDescriptor().getEnumTypes().get(2);
}
private static final TestSparseEnum[] VALUES = values();
public static TestSparseEnum valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private TestSparseEnum(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protobuf_unittest.TestSparseEnum)
}
public interface TestAllTypesOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypes)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 optional_int32 = 1;
*
*
* Singular
*
*/
boolean hasOptionalInt32();
/**
* optional int32 optional_int32 = 1;
*
*
* Singular
*
*/
int getOptionalInt32();
/**
* optional int64 optional_int64 = 2;
*/
boolean hasOptionalInt64();
/**
* optional int64 optional_int64 = 2;
*/
long getOptionalInt64();
/**
* optional uint32 optional_uint32 = 3;
*/
boolean hasOptionalUint32();
/**
* optional uint32 optional_uint32 = 3;
*/
int getOptionalUint32();
/**
* optional uint64 optional_uint64 = 4;
*/
boolean hasOptionalUint64();
/**
* optional uint64 optional_uint64 = 4;
*/
long getOptionalUint64();
/**
* optional sint32 optional_sint32 = 5;
*/
boolean hasOptionalSint32();
/**
* optional sint32 optional_sint32 = 5;
*/
int getOptionalSint32();
/**
* optional sint64 optional_sint64 = 6;
*/
boolean hasOptionalSint64();
/**
* optional sint64 optional_sint64 = 6;
*/
long getOptionalSint64();
/**
* optional fixed32 optional_fixed32 = 7;
*/
boolean hasOptionalFixed32();
/**
* optional fixed32 optional_fixed32 = 7;
*/
int getOptionalFixed32();
/**
* optional fixed64 optional_fixed64 = 8;
*/
boolean hasOptionalFixed64();
/**
* optional fixed64 optional_fixed64 = 8;
*/
long getOptionalFixed64();
/**
* optional sfixed32 optional_sfixed32 = 9;
*/
boolean hasOptionalSfixed32();
/**
* optional sfixed32 optional_sfixed32 = 9;
*/
int getOptionalSfixed32();
/**
* optional sfixed64 optional_sfixed64 = 10;
*/
boolean hasOptionalSfixed64();
/**
* optional sfixed64 optional_sfixed64 = 10;
*/
long getOptionalSfixed64();
/**
* optional float optional_float = 11;
*/
boolean hasOptionalFloat();
/**
* optional float optional_float = 11;
*/
float getOptionalFloat();
/**
* optional double optional_double = 12;
*/
boolean hasOptionalDouble();
/**
* optional double optional_double = 12;
*/
double getOptionalDouble();
/**
* optional bool optional_bool = 13;
*/
boolean hasOptionalBool();
/**
* optional bool optional_bool = 13;
*/
boolean getOptionalBool();
/**
* optional string optional_string = 14;
*/
boolean hasOptionalString();
/**
* optional string optional_string = 14;
*/
java.lang.String getOptionalString();
/**
* optional string optional_string = 14;
*/
com.google.protobuf.ByteString
getOptionalStringBytes();
/**
* optional bytes optional_bytes = 15;
*/
boolean hasOptionalBytes();
/**
* optional bytes optional_bytes = 15;
*/
com.google.protobuf.ByteString getOptionalBytes();
/**
* optional group OptionalGroup = 16 { ... }
*/
boolean hasOptionalGroup();
/**
* optional group OptionalGroup = 16 { ... }
*/
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup getOptionalGroup();
/**
* optional group OptionalGroup = 16 { ... }
*/
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder getOptionalGroupOrBuilder();
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
boolean hasOptionalNestedMessage();
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalNestedMessage();
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder();
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
boolean hasOptionalForeignMessage();
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
protobuf_unittest.UnittestProto.ForeignMessage getOptionalForeignMessage();
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getOptionalForeignMessageOrBuilder();
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
boolean hasOptionalImportMessage();
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
com.google.protobuf.test.UnittestImport.ImportMessage getOptionalImportMessage();
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getOptionalImportMessageOrBuilder();
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
*/
boolean hasOptionalNestedEnum();
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getOptionalNestedEnum();
/**
* optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
*/
boolean hasOptionalForeignEnum();
/**
* optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
*/
protobuf_unittest.UnittestProto.ForeignEnum getOptionalForeignEnum();
/**
* optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
*/
boolean hasOptionalImportEnum();
/**
* optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
*/
com.google.protobuf.test.UnittestImport.ImportEnum getOptionalImportEnum();
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
boolean hasOptionalStringPiece();
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
java.lang.String getOptionalStringPiece();
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
com.google.protobuf.ByteString
getOptionalStringPieceBytes();
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
boolean hasOptionalCord();
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
java.lang.String getOptionalCord();
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
com.google.protobuf.ByteString
getOptionalCordBytes();
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
boolean hasOptionalPublicImportMessage();
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage getOptionalPublicImportMessage();
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder getOptionalPublicImportMessageOrBuilder();
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
boolean hasOptionalLazyMessage();
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalLazyMessage();
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder();
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
java.util.List getRepeatedInt32List();
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
int getRepeatedInt32Count();
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
int getRepeatedInt32(int index);
/**
* repeated int64 repeated_int64 = 32;
*/
java.util.List getRepeatedInt64List();
/**
* repeated int64 repeated_int64 = 32;
*/
int getRepeatedInt64Count();
/**
* repeated int64 repeated_int64 = 32;
*/
long getRepeatedInt64(int index);
/**
* repeated uint32 repeated_uint32 = 33;
*/
java.util.List getRepeatedUint32List();
/**
* repeated uint32 repeated_uint32 = 33;
*/
int getRepeatedUint32Count();
/**
* repeated uint32 repeated_uint32 = 33;
*/
int getRepeatedUint32(int index);
/**
* repeated uint64 repeated_uint64 = 34;
*/
java.util.List getRepeatedUint64List();
/**
* repeated uint64 repeated_uint64 = 34;
*/
int getRepeatedUint64Count();
/**
* repeated uint64 repeated_uint64 = 34;
*/
long getRepeatedUint64(int index);
/**
* repeated sint32 repeated_sint32 = 35;
*/
java.util.List getRepeatedSint32List();
/**
* repeated sint32 repeated_sint32 = 35;
*/
int getRepeatedSint32Count();
/**
* repeated sint32 repeated_sint32 = 35;
*/
int getRepeatedSint32(int index);
/**
* repeated sint64 repeated_sint64 = 36;
*/
java.util.List getRepeatedSint64List();
/**
* repeated sint64 repeated_sint64 = 36;
*/
int getRepeatedSint64Count();
/**
* repeated sint64 repeated_sint64 = 36;
*/
long getRepeatedSint64(int index);
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
java.util.List getRepeatedFixed32List();
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
int getRepeatedFixed32Count();
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
int getRepeatedFixed32(int index);
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
java.util.List getRepeatedFixed64List();
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
int getRepeatedFixed64Count();
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
long getRepeatedFixed64(int index);
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
java.util.List getRepeatedSfixed32List();
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
int getRepeatedSfixed32Count();
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
int getRepeatedSfixed32(int index);
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
java.util.List getRepeatedSfixed64List();
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
int getRepeatedSfixed64Count();
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
long getRepeatedSfixed64(int index);
/**
* repeated float repeated_float = 41;
*/
java.util.List getRepeatedFloatList();
/**
* repeated float repeated_float = 41;
*/
int getRepeatedFloatCount();
/**
* repeated float repeated_float = 41;
*/
float getRepeatedFloat(int index);
/**
* repeated double repeated_double = 42;
*/
java.util.List getRepeatedDoubleList();
/**
* repeated double repeated_double = 42;
*/
int getRepeatedDoubleCount();
/**
* repeated double repeated_double = 42;
*/
double getRepeatedDouble(int index);
/**
* repeated bool repeated_bool = 43;
*/
java.util.List getRepeatedBoolList();
/**
* repeated bool repeated_bool = 43;
*/
int getRepeatedBoolCount();
/**
* repeated bool repeated_bool = 43;
*/
boolean getRepeatedBool(int index);
/**
* repeated string repeated_string = 44;
*/
com.google.protobuf.ProtocolStringList
getRepeatedStringList();
/**
* repeated string repeated_string = 44;
*/
int getRepeatedStringCount();
/**
* repeated string repeated_string = 44;
*/
java.lang.String getRepeatedString(int index);
/**
* repeated string repeated_string = 44;
*/
com.google.protobuf.ByteString
getRepeatedStringBytes(int index);
/**
* repeated bytes repeated_bytes = 45;
*/
java.util.List getRepeatedBytesList();
/**
* repeated bytes repeated_bytes = 45;
*/
int getRepeatedBytesCount();
/**
* repeated bytes repeated_bytes = 45;
*/
com.google.protobuf.ByteString getRepeatedBytes(int index);
/**
* repeated group RepeatedGroup = 46 { ... }
*/
java.util.List
getRepeatedGroupList();
/**
* repeated group RepeatedGroup = 46 { ... }
*/
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup getRepeatedGroup(int index);
/**
* repeated group RepeatedGroup = 46 { ... }
*/
int getRepeatedGroupCount();
/**
* repeated group RepeatedGroup = 46 { ... }
*/
java.util.List extends protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder>
getRepeatedGroupOrBuilderList();
/**
* repeated group RepeatedGroup = 46 { ... }
*/
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder(
int index);
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
java.util.List
getRepeatedNestedMessageList();
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index);
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
int getRepeatedNestedMessageCount();
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
java.util.List extends protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList();
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder(
int index);
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
java.util.List
getRepeatedForeignMessageList();
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
protobuf_unittest.UnittestProto.ForeignMessage getRepeatedForeignMessage(int index);
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
int getRepeatedForeignMessageCount();
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
java.util.List extends protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>
getRepeatedForeignMessageOrBuilderList();
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getRepeatedForeignMessageOrBuilder(
int index);
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
java.util.List
getRepeatedImportMessageList();
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
com.google.protobuf.test.UnittestImport.ImportMessage getRepeatedImportMessage(int index);
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
int getRepeatedImportMessageCount();
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
java.util.List extends com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder>
getRepeatedImportMessageOrBuilderList();
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getRepeatedImportMessageOrBuilder(
int index);
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
java.util.List getRepeatedNestedEnumList();
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
int getRepeatedNestedEnumCount();
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index);
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
java.util.List getRepeatedForeignEnumList();
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
int getRepeatedForeignEnumCount();
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
protobuf_unittest.UnittestProto.ForeignEnum getRepeatedForeignEnum(int index);
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
java.util.List getRepeatedImportEnumList();
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
int getRepeatedImportEnumCount();
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
com.google.protobuf.test.UnittestImport.ImportEnum getRepeatedImportEnum(int index);
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
com.google.protobuf.ProtocolStringList
getRepeatedStringPieceList();
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
int getRepeatedStringPieceCount();
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
java.lang.String getRepeatedStringPiece(int index);
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
com.google.protobuf.ByteString
getRepeatedStringPieceBytes(int index);
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
com.google.protobuf.ProtocolStringList
getRepeatedCordList();
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
int getRepeatedCordCount();
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
java.lang.String getRepeatedCord(int index);
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
com.google.protobuf.ByteString
getRepeatedCordBytes(int index);
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
java.util.List
getRepeatedLazyMessageList();
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedLazyMessage(int index);
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
int getRepeatedLazyMessageCount();
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
java.util.List extends protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedLazyMessageOrBuilderList();
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder(
int index);
/**
* optional int32 default_int32 = 61 [default = 41];
*
*
* Singular with defaults
*
*/
boolean hasDefaultInt32();
/**
* optional int32 default_int32 = 61 [default = 41];
*
*
* Singular with defaults
*
*/
int getDefaultInt32();
/**
* optional int64 default_int64 = 62 [default = 42];
*/
boolean hasDefaultInt64();
/**
* optional int64 default_int64 = 62 [default = 42];
*/
long getDefaultInt64();
/**
* optional uint32 default_uint32 = 63 [default = 43];
*/
boolean hasDefaultUint32();
/**
* optional uint32 default_uint32 = 63 [default = 43];
*/
int getDefaultUint32();
/**
* optional uint64 default_uint64 = 64 [default = 44];
*/
boolean hasDefaultUint64();
/**
* optional uint64 default_uint64 = 64 [default = 44];
*/
long getDefaultUint64();
/**
* optional sint32 default_sint32 = 65 [default = -45];
*/
boolean hasDefaultSint32();
/**
* optional sint32 default_sint32 = 65 [default = -45];
*/
int getDefaultSint32();
/**
* optional sint64 default_sint64 = 66 [default = 46];
*/
boolean hasDefaultSint64();
/**
* optional sint64 default_sint64 = 66 [default = 46];
*/
long getDefaultSint64();
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
*/
boolean hasDefaultFixed32();
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
*/
int getDefaultFixed32();
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
*/
boolean hasDefaultFixed64();
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
*/
long getDefaultFixed64();
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
*/
boolean hasDefaultSfixed32();
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
*/
int getDefaultSfixed32();
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
*/
boolean hasDefaultSfixed64();
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
*/
long getDefaultSfixed64();
/**
* optional float default_float = 71 [default = 51.5];
*/
boolean hasDefaultFloat();
/**
* optional float default_float = 71 [default = 51.5];
*/
float getDefaultFloat();
/**
* optional double default_double = 72 [default = 52000];
*/
boolean hasDefaultDouble();
/**
* optional double default_double = 72 [default = 52000];
*/
double getDefaultDouble();
/**
* optional bool default_bool = 73 [default = true];
*/
boolean hasDefaultBool();
/**
* optional bool default_bool = 73 [default = true];
*/
boolean getDefaultBool();
/**
* optional string default_string = 74 [default = "hello"];
*/
boolean hasDefaultString();
/**
* optional string default_string = 74 [default = "hello"];
*/
java.lang.String getDefaultString();
/**
* optional string default_string = 74 [default = "hello"];
*/
com.google.protobuf.ByteString
getDefaultStringBytes();
/**
* optional bytes default_bytes = 75 [default = "world"];
*/
boolean hasDefaultBytes();
/**
* optional bytes default_bytes = 75 [default = "world"];
*/
com.google.protobuf.ByteString getDefaultBytes();
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
*/
boolean hasDefaultNestedEnum();
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getDefaultNestedEnum();
/**
* optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
*/
boolean hasDefaultForeignEnum();
/**
* optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
*/
protobuf_unittest.UnittestProto.ForeignEnum getDefaultForeignEnum();
/**
* optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
*/
boolean hasDefaultImportEnum();
/**
* optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
*/
com.google.protobuf.test.UnittestImport.ImportEnum getDefaultImportEnum();
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
boolean hasDefaultStringPiece();
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
java.lang.String getDefaultStringPiece();
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
com.google.protobuf.ByteString
getDefaultStringPieceBytes();
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
boolean hasDefaultCord();
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
java.lang.String getDefaultCord();
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
com.google.protobuf.ByteString
getDefaultCordBytes();
/**
* optional uint32 oneof_uint32 = 111;
*/
boolean hasOneofUint32();
/**
* optional uint32 oneof_uint32 = 111;
*/
int getOneofUint32();
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
boolean hasOneofNestedMessage();
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOneofNestedMessage();
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOneofNestedMessageOrBuilder();
/**
* optional string oneof_string = 113;
*/
boolean hasOneofString();
/**
* optional string oneof_string = 113;
*/
java.lang.String getOneofString();
/**
* optional string oneof_string = 113;
*/
com.google.protobuf.ByteString
getOneofStringBytes();
/**
* optional bytes oneof_bytes = 114;
*/
boolean hasOneofBytes();
/**
* optional bytes oneof_bytes = 114;
*/
com.google.protobuf.ByteString getOneofBytes();
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypes}
*
*
* This proto includes every type of field in both singular and repeated
* forms.
*
*/
public static final class TestAllTypes extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypes)
TestAllTypesOrBuilder {
// Use TestAllTypes.newBuilder() to construct.
private TestAllTypes(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TestAllTypes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final TestAllTypes defaultInstance;
public static TestAllTypes getDefaultInstance() {
return defaultInstance;
}
public TestAllTypes getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TestAllTypes(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
int mutable_bitField1_ = 0;
int mutable_bitField2_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
optionalInt32_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
optionalInt64_ = input.readInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
optionalUint32_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
optionalUint64_ = input.readUInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
optionalSint32_ = input.readSInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
optionalSint64_ = input.readSInt64();
break;
}
case 61: {
bitField0_ |= 0x00000040;
optionalFixed32_ = input.readFixed32();
break;
}
case 65: {
bitField0_ |= 0x00000080;
optionalFixed64_ = input.readFixed64();
break;
}
case 77: {
bitField0_ |= 0x00000100;
optionalSfixed32_ = input.readSFixed32();
break;
}
case 81: {
bitField0_ |= 0x00000200;
optionalSfixed64_ = input.readSFixed64();
break;
}
case 93: {
bitField0_ |= 0x00000400;
optionalFloat_ = input.readFloat();
break;
}
case 97: {
bitField0_ |= 0x00000800;
optionalDouble_ = input.readDouble();
break;
}
case 104: {
bitField0_ |= 0x00001000;
optionalBool_ = input.readBool();
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
optionalString_ = bs;
break;
}
case 122: {
bitField0_ |= 0x00004000;
optionalBytes_ = input.readBytes();
break;
}
case 131: {
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder subBuilder = null;
if (((bitField0_ & 0x00008000) == 0x00008000)) {
subBuilder = optionalGroup_.toBuilder();
}
optionalGroup_ = input.readGroup(16, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalGroup_);
optionalGroup_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00008000;
break;
}
case 146: {
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00010000) == 0x00010000)) {
subBuilder = optionalNestedMessage_.toBuilder();
}
optionalNestedMessage_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalNestedMessage_);
optionalNestedMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00010000;
break;
}
case 154: {
protobuf_unittest.UnittestProto.ForeignMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00020000) == 0x00020000)) {
subBuilder = optionalForeignMessage_.toBuilder();
}
optionalForeignMessage_ = input.readMessage(protobuf_unittest.UnittestProto.ForeignMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalForeignMessage_);
optionalForeignMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00020000;
break;
}
case 162: {
com.google.protobuf.test.UnittestImport.ImportMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00040000) == 0x00040000)) {
subBuilder = optionalImportMessage_.toBuilder();
}
optionalImportMessage_ = input.readMessage(com.google.protobuf.test.UnittestImport.ImportMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalImportMessage_);
optionalImportMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00040000;
break;
}
case 168: {
int rawValue = input.readEnum();
protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(21, rawValue);
} else {
bitField0_ |= 0x00080000;
optionalNestedEnum_ = value;
}
break;
}
case 176: {
int rawValue = input.readEnum();
protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(22, rawValue);
} else {
bitField0_ |= 0x00100000;
optionalForeignEnum_ = value;
}
break;
}
case 184: {
int rawValue = input.readEnum();
com.google.protobuf.test.UnittestImport.ImportEnum value = com.google.protobuf.test.UnittestImport.ImportEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(23, rawValue);
} else {
bitField0_ |= 0x00200000;
optionalImportEnum_ = value;
}
break;
}
case 194: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00400000;
optionalStringPiece_ = bs;
break;
}
case 202: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00800000;
optionalCord_ = bs;
break;
}
case 210: {
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder subBuilder = null;
if (((bitField0_ & 0x01000000) == 0x01000000)) {
subBuilder = optionalPublicImportMessage_.toBuilder();
}
optionalPublicImportMessage_ = input.readMessage(com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalPublicImportMessage_);
optionalPublicImportMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x01000000;
break;
}
case 218: {
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder subBuilder = null;
if (((bitField0_ & 0x02000000) == 0x02000000)) {
subBuilder = optionalLazyMessage_.toBuilder();
}
optionalLazyMessage_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalLazyMessage_);
optionalLazyMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x02000000;
break;
}
case 248: {
if (!((mutable_bitField0_ & 0x04000000) == 0x04000000)) {
repeatedInt32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x04000000;
}
repeatedInt32_.add(input.readInt32());
break;
}
case 250: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x04000000) == 0x04000000) && input.getBytesUntilLimit() > 0) {
repeatedInt32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x04000000;
}
while (input.getBytesUntilLimit() > 0) {
repeatedInt32_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 256: {
if (!((mutable_bitField0_ & 0x08000000) == 0x08000000)) {
repeatedInt64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x08000000;
}
repeatedInt64_.add(input.readInt64());
break;
}
case 258: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x08000000) == 0x08000000) && input.getBytesUntilLimit() > 0) {
repeatedInt64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x08000000;
}
while (input.getBytesUntilLimit() > 0) {
repeatedInt64_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 264: {
if (!((mutable_bitField0_ & 0x10000000) == 0x10000000)) {
repeatedUint32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x10000000;
}
repeatedUint32_.add(input.readUInt32());
break;
}
case 266: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x10000000) == 0x10000000) && input.getBytesUntilLimit() > 0) {
repeatedUint32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x10000000;
}
while (input.getBytesUntilLimit() > 0) {
repeatedUint32_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 272: {
if (!((mutable_bitField0_ & 0x20000000) == 0x20000000)) {
repeatedUint64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x20000000;
}
repeatedUint64_.add(input.readUInt64());
break;
}
case 274: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x20000000) == 0x20000000) && input.getBytesUntilLimit() > 0) {
repeatedUint64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x20000000;
}
while (input.getBytesUntilLimit() > 0) {
repeatedUint64_.add(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 280: {
if (!((mutable_bitField0_ & 0x40000000) == 0x40000000)) {
repeatedSint32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x40000000;
}
repeatedSint32_.add(input.readSInt32());
break;
}
case 282: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x40000000) == 0x40000000) && input.getBytesUntilLimit() > 0) {
repeatedSint32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x40000000;
}
while (input.getBytesUntilLimit() > 0) {
repeatedSint32_.add(input.readSInt32());
}
input.popLimit(limit);
break;
}
case 288: {
if (!((mutable_bitField0_ & 0x80000000) == 0x80000000)) {
repeatedSint64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x80000000;
}
repeatedSint64_.add(input.readSInt64());
break;
}
case 290: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x80000000) == 0x80000000) && input.getBytesUntilLimit() > 0) {
repeatedSint64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x80000000;
}
while (input.getBytesUntilLimit() > 0) {
repeatedSint64_.add(input.readSInt64());
}
input.popLimit(limit);
break;
}
case 301: {
if (!((mutable_bitField1_ & 0x00000001) == 0x00000001)) {
repeatedFixed32_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000001;
}
repeatedFixed32_.add(input.readFixed32());
break;
}
case 298: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
repeatedFixed32_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
repeatedFixed32_.add(input.readFixed32());
}
input.popLimit(limit);
break;
}
case 305: {
if (!((mutable_bitField1_ & 0x00000002) == 0x00000002)) {
repeatedFixed64_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000002;
}
repeatedFixed64_.add(input.readFixed64());
break;
}
case 306: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
repeatedFixed64_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
repeatedFixed64_.add(input.readFixed64());
}
input.popLimit(limit);
break;
}
case 317: {
if (!((mutable_bitField1_ & 0x00000004) == 0x00000004)) {
repeatedSfixed32_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000004;
}
repeatedSfixed32_.add(input.readSFixed32());
break;
}
case 314: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
repeatedSfixed32_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
repeatedSfixed32_.add(input.readSFixed32());
}
input.popLimit(limit);
break;
}
case 321: {
if (!((mutable_bitField1_ & 0x00000008) == 0x00000008)) {
repeatedSfixed64_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000008;
}
repeatedSfixed64_.add(input.readSFixed64());
break;
}
case 322: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
repeatedSfixed64_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
repeatedSfixed64_.add(input.readSFixed64());
}
input.popLimit(limit);
break;
}
case 333: {
if (!((mutable_bitField1_ & 0x00000010) == 0x00000010)) {
repeatedFloat_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000010;
}
repeatedFloat_.add(input.readFloat());
break;
}
case 330: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
repeatedFloat_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
repeatedFloat_.add(input.readFloat());
}
input.popLimit(limit);
break;
}
case 337: {
if (!((mutable_bitField1_ & 0x00000020) == 0x00000020)) {
repeatedDouble_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000020;
}
repeatedDouble_.add(input.readDouble());
break;
}
case 338: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
repeatedDouble_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
repeatedDouble_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
case 344: {
if (!((mutable_bitField1_ & 0x00000040) == 0x00000040)) {
repeatedBool_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000040;
}
repeatedBool_.add(input.readBool());
break;
}
case 346: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
repeatedBool_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
repeatedBool_.add(input.readBool());
}
input.popLimit(limit);
break;
}
case 354: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField1_ & 0x00000080) == 0x00000080)) {
repeatedString_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField1_ |= 0x00000080;
}
repeatedString_.add(bs);
break;
}
case 362: {
if (!((mutable_bitField1_ & 0x00000100) == 0x00000100)) {
repeatedBytes_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000100;
}
repeatedBytes_.add(input.readBytes());
break;
}
case 371: {
if (!((mutable_bitField1_ & 0x00000200) == 0x00000200)) {
repeatedGroup_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000200;
}
repeatedGroup_.add(input.readGroup(46, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.PARSER,
extensionRegistry));
break;
}
case 386: {
if (!((mutable_bitField1_ & 0x00000400) == 0x00000400)) {
repeatedNestedMessage_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000400;
}
repeatedNestedMessage_.add(input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry));
break;
}
case 394: {
if (!((mutable_bitField1_ & 0x00000800) == 0x00000800)) {
repeatedForeignMessage_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000800;
}
repeatedForeignMessage_.add(input.readMessage(protobuf_unittest.UnittestProto.ForeignMessage.PARSER, extensionRegistry));
break;
}
case 402: {
if (!((mutable_bitField1_ & 0x00001000) == 0x00001000)) {
repeatedImportMessage_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00001000;
}
repeatedImportMessage_.add(input.readMessage(com.google.protobuf.test.UnittestImport.ImportMessage.PARSER, extensionRegistry));
break;
}
case 408: {
int rawValue = input.readEnum();
protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(51, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00002000) == 0x00002000)) {
repeatedNestedEnum_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00002000;
}
repeatedNestedEnum_.add(value);
}
break;
}
case 410: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(51, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00002000) == 0x00002000)) {
repeatedNestedEnum_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00002000;
}
repeatedNestedEnum_.add(value);
}
}
input.popLimit(oldLimit);
break;
}
case 416: {
int rawValue = input.readEnum();
protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(52, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00004000) == 0x00004000)) {
repeatedForeignEnum_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00004000;
}
repeatedForeignEnum_.add(value);
}
break;
}
case 418: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(52, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00004000) == 0x00004000)) {
repeatedForeignEnum_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00004000;
}
repeatedForeignEnum_.add(value);
}
}
input.popLimit(oldLimit);
break;
}
case 424: {
int rawValue = input.readEnum();
com.google.protobuf.test.UnittestImport.ImportEnum value = com.google.protobuf.test.UnittestImport.ImportEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(53, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00008000) == 0x00008000)) {
repeatedImportEnum_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00008000;
}
repeatedImportEnum_.add(value);
}
break;
}
case 426: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
com.google.protobuf.test.UnittestImport.ImportEnum value = com.google.protobuf.test.UnittestImport.ImportEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(53, rawValue);
} else {
if (!((mutable_bitField1_ & 0x00008000) == 0x00008000)) {
repeatedImportEnum_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00008000;
}
repeatedImportEnum_.add(value);
}
}
input.popLimit(oldLimit);
break;
}
case 434: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField1_ & 0x00010000) == 0x00010000)) {
repeatedStringPiece_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField1_ |= 0x00010000;
}
repeatedStringPiece_.add(bs);
break;
}
case 442: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField1_ & 0x00020000) == 0x00020000)) {
repeatedCord_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField1_ |= 0x00020000;
}
repeatedCord_.add(bs);
break;
}
case 458: {
if (!((mutable_bitField1_ & 0x00040000) == 0x00040000)) {
repeatedLazyMessage_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00040000;
}
repeatedLazyMessage_.add(input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry));
break;
}
case 488: {
bitField0_ |= 0x04000000;
defaultInt32_ = input.readInt32();
break;
}
case 496: {
bitField0_ |= 0x08000000;
defaultInt64_ = input.readInt64();
break;
}
case 504: {
bitField0_ |= 0x10000000;
defaultUint32_ = input.readUInt32();
break;
}
case 512: {
bitField0_ |= 0x20000000;
defaultUint64_ = input.readUInt64();
break;
}
case 520: {
bitField0_ |= 0x40000000;
defaultSint32_ = input.readSInt32();
break;
}
case 528: {
bitField0_ |= 0x80000000;
defaultSint64_ = input.readSInt64();
break;
}
case 541: {
bitField1_ |= 0x00000001;
defaultFixed32_ = input.readFixed32();
break;
}
case 545: {
bitField1_ |= 0x00000002;
defaultFixed64_ = input.readFixed64();
break;
}
case 557: {
bitField1_ |= 0x00000004;
defaultSfixed32_ = input.readSFixed32();
break;
}
case 561: {
bitField1_ |= 0x00000008;
defaultSfixed64_ = input.readSFixed64();
break;
}
case 573: {
bitField1_ |= 0x00000010;
defaultFloat_ = input.readFloat();
break;
}
case 577: {
bitField1_ |= 0x00000020;
defaultDouble_ = input.readDouble();
break;
}
case 584: {
bitField1_ |= 0x00000040;
defaultBool_ = input.readBool();
break;
}
case 594: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000080;
defaultString_ = bs;
break;
}
case 602: {
bitField1_ |= 0x00000100;
defaultBytes_ = input.readBytes();
break;
}
case 648: {
int rawValue = input.readEnum();
protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(81, rawValue);
} else {
bitField1_ |= 0x00000200;
defaultNestedEnum_ = value;
}
break;
}
case 656: {
int rawValue = input.readEnum();
protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(82, rawValue);
} else {
bitField1_ |= 0x00000400;
defaultForeignEnum_ = value;
}
break;
}
case 664: {
int rawValue = input.readEnum();
com.google.protobuf.test.UnittestImport.ImportEnum value = com.google.protobuf.test.UnittestImport.ImportEnum.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(83, rawValue);
} else {
bitField1_ |= 0x00000800;
defaultImportEnum_ = value;
}
break;
}
case 674: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00001000;
defaultStringPiece_ = bs;
break;
}
case 682: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00002000;
defaultCord_ = bs;
break;
}
case 888: {
oneofFieldCase_ = 111;
oneofField_ = input.readUInt32();
break;
}
case 898: {
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder subBuilder = null;
if (oneofFieldCase_ == 112) {
subBuilder = ((protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_).toBuilder();
}
oneofField_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_);
oneofField_ = subBuilder.buildPartial();
}
oneofFieldCase_ = 112;
break;
}
case 906: {
com.google.protobuf.ByteString bs = input.readBytes();
oneofFieldCase_ = 113;
oneofField_ = bs;
break;
}
case 914: {
oneofFieldCase_ = 114;
oneofField_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x04000000) == 0x04000000)) {
repeatedInt32_ = java.util.Collections.unmodifiableList(repeatedInt32_);
}
if (((mutable_bitField0_ & 0x08000000) == 0x08000000)) {
repeatedInt64_ = java.util.Collections.unmodifiableList(repeatedInt64_);
}
if (((mutable_bitField0_ & 0x10000000) == 0x10000000)) {
repeatedUint32_ = java.util.Collections.unmodifiableList(repeatedUint32_);
}
if (((mutable_bitField0_ & 0x20000000) == 0x20000000)) {
repeatedUint64_ = java.util.Collections.unmodifiableList(repeatedUint64_);
}
if (((mutable_bitField0_ & 0x40000000) == 0x40000000)) {
repeatedSint32_ = java.util.Collections.unmodifiableList(repeatedSint32_);
}
if (((mutable_bitField0_ & 0x80000000) == 0x80000000)) {
repeatedSint64_ = java.util.Collections.unmodifiableList(repeatedSint64_);
}
if (((mutable_bitField1_ & 0x00000001) == 0x00000001)) {
repeatedFixed32_ = java.util.Collections.unmodifiableList(repeatedFixed32_);
}
if (((mutable_bitField1_ & 0x00000002) == 0x00000002)) {
repeatedFixed64_ = java.util.Collections.unmodifiableList(repeatedFixed64_);
}
if (((mutable_bitField1_ & 0x00000004) == 0x00000004)) {
repeatedSfixed32_ = java.util.Collections.unmodifiableList(repeatedSfixed32_);
}
if (((mutable_bitField1_ & 0x00000008) == 0x00000008)) {
repeatedSfixed64_ = java.util.Collections.unmodifiableList(repeatedSfixed64_);
}
if (((mutable_bitField1_ & 0x00000010) == 0x00000010)) {
repeatedFloat_ = java.util.Collections.unmodifiableList(repeatedFloat_);
}
if (((mutable_bitField1_ & 0x00000020) == 0x00000020)) {
repeatedDouble_ = java.util.Collections.unmodifiableList(repeatedDouble_);
}
if (((mutable_bitField1_ & 0x00000040) == 0x00000040)) {
repeatedBool_ = java.util.Collections.unmodifiableList(repeatedBool_);
}
if (((mutable_bitField1_ & 0x00000080) == 0x00000080)) {
repeatedString_ = repeatedString_.getUnmodifiableView();
}
if (((mutable_bitField1_ & 0x00000100) == 0x00000100)) {
repeatedBytes_ = java.util.Collections.unmodifiableList(repeatedBytes_);
}
if (((mutable_bitField1_ & 0x00000200) == 0x00000200)) {
repeatedGroup_ = java.util.Collections.unmodifiableList(repeatedGroup_);
}
if (((mutable_bitField1_ & 0x00000400) == 0x00000400)) {
repeatedNestedMessage_ = java.util.Collections.unmodifiableList(repeatedNestedMessage_);
}
if (((mutable_bitField1_ & 0x00000800) == 0x00000800)) {
repeatedForeignMessage_ = java.util.Collections.unmodifiableList(repeatedForeignMessage_);
}
if (((mutable_bitField1_ & 0x00001000) == 0x00001000)) {
repeatedImportMessage_ = java.util.Collections.unmodifiableList(repeatedImportMessage_);
}
if (((mutable_bitField1_ & 0x00002000) == 0x00002000)) {
repeatedNestedEnum_ = java.util.Collections.unmodifiableList(repeatedNestedEnum_);
}
if (((mutable_bitField1_ & 0x00004000) == 0x00004000)) {
repeatedForeignEnum_ = java.util.Collections.unmodifiableList(repeatedForeignEnum_);
}
if (((mutable_bitField1_ & 0x00008000) == 0x00008000)) {
repeatedImportEnum_ = java.util.Collections.unmodifiableList(repeatedImportEnum_);
}
if (((mutable_bitField1_ & 0x00010000) == 0x00010000)) {
repeatedStringPiece_ = repeatedStringPiece_.getUnmodifiableView();
}
if (((mutable_bitField1_ & 0x00020000) == 0x00020000)) {
repeatedCord_ = repeatedCord_.getUnmodifiableView();
}
if (((mutable_bitField1_ & 0x00040000) == 0x00040000)) {
repeatedLazyMessage_ = java.util.Collections.unmodifiableList(repeatedLazyMessage_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestAllTypes.class, protobuf_unittest.UnittestProto.TestAllTypes.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TestAllTypes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestAllTypes(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code protobuf_unittest.TestAllTypes.NestedEnum}
*/
public enum NestedEnum
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FOO = 1;
*/
FOO(0, 1),
/**
* BAR = 2;
*/
BAR(1, 2),
/**
* BAZ = 3;
*/
BAZ(2, 3),
/**
* NEG = -1;
*
*
* Intentionally negative.
*
*/
NEG(3, -1),
;
/**
* FOO = 1;
*/
public static final int FOO_VALUE = 1;
/**
* BAR = 2;
*/
public static final int BAR_VALUE = 2;
/**
* BAZ = 3;
*/
public static final int BAZ_VALUE = 3;
/**
* NEG = -1;
*
*
* Intentionally negative.
*
*/
public static final int NEG_VALUE = -1;
public final int getNumber() { return value; }
public static NestedEnum valueOf(int value) {
switch (value) {
case 1: return FOO;
case 2: return BAR;
case 3: return BAZ;
case -1: return NEG;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public NestedEnum findValueByNumber(int number) {
return NestedEnum.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.TestAllTypes.getDescriptor().getEnumTypes().get(0);
}
private static final NestedEnum[] VALUES = values();
public static NestedEnum valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private NestedEnum(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protobuf_unittest.TestAllTypes.NestedEnum)
}
public interface NestedMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypes.NestedMessage)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 bb = 1;
*
*
* The field name "b" fails to compile in proto1 because it conflicts with
* a local variable named "b" in one of the generated methods. Doh.
* This file needs to compile in proto1 to test backwards-compatibility.
*
*/
boolean hasBb();
/**
* optional int32 bb = 1;
*
*
* The field name "b" fails to compile in proto1 because it conflicts with
* a local variable named "b" in one of the generated methods. Doh.
* This file needs to compile in proto1 to test backwards-compatibility.
*
*/
int getBb();
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypes.NestedMessage}
*/
public static final class NestedMessage extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypes.NestedMessage)
NestedMessageOrBuilder {
// Use NestedMessage.newBuilder() to construct.
private NestedMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NestedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NestedMessage defaultInstance;
public static NestedMessage getDefaultInstance() {
return defaultInstance;
}
public NestedMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NestedMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
bb_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_NestedMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_NestedMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.class, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public NestedMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NestedMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int BB_FIELD_NUMBER = 1;
private int bb_;
/**
* optional int32 bb = 1;
*
*
* The field name "b" fails to compile in proto1 because it conflicts with
* a local variable named "b" in one of the generated methods. Doh.
* This file needs to compile in proto1 to test backwards-compatibility.
*
*/
public boolean hasBb() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 bb = 1;
*
*
* The field name "b" fails to compile in proto1 because it conflicts with
* a local variable named "b" in one of the generated methods. Doh.
* This file needs to compile in proto1 to test backwards-compatibility.
*
*/
public int getBb() {
return bb_;
}
private void initFields() {
bb_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, bb_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, bb_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypes.NestedMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypes.NestedMessage)
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_NestedMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_NestedMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.class, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
bb_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_NestedMessage_descriptor;
}
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage build() {
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage buildPartial() {
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage result = new protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.bb_ = bb_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) {
return mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage other) {
if (other == protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()) return this;
if (other.hasBb()) {
setBb(other.getBb());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int bb_ ;
/**
* optional int32 bb = 1;
*
*
* The field name "b" fails to compile in proto1 because it conflicts with
* a local variable named "b" in one of the generated methods. Doh.
* This file needs to compile in proto1 to test backwards-compatibility.
*
*/
public boolean hasBb() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 bb = 1;
*
*
* The field name "b" fails to compile in proto1 because it conflicts with
* a local variable named "b" in one of the generated methods. Doh.
* This file needs to compile in proto1 to test backwards-compatibility.
*
*/
public int getBb() {
return bb_;
}
/**
* optional int32 bb = 1;
*
*
* The field name "b" fails to compile in proto1 because it conflicts with
* a local variable named "b" in one of the generated methods. Doh.
* This file needs to compile in proto1 to test backwards-compatibility.
*
*/
public Builder setBb(int value) {
bitField0_ |= 0x00000001;
bb_ = value;
onChanged();
return this;
}
/**
* optional int32 bb = 1;
*
*
* The field name "b" fails to compile in proto1 because it conflicts with
* a local variable named "b" in one of the generated methods. Doh.
* This file needs to compile in proto1 to test backwards-compatibility.
*
*/
public Builder clearBb() {
bitField0_ = (bitField0_ & ~0x00000001);
bb_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypes.NestedMessage)
}
static {
defaultInstance = new NestedMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.NestedMessage)
}
public interface OptionalGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypes.OptionalGroup)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 a = 17;
*/
boolean hasA();
/**
* optional int32 a = 17;
*/
int getA();
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypes.OptionalGroup}
*/
public static final class OptionalGroup extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypes.OptionalGroup)
OptionalGroupOrBuilder {
// Use OptionalGroup.newBuilder() to construct.
private OptionalGroup(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private OptionalGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final OptionalGroup defaultInstance;
public static OptionalGroup getDefaultInstance() {
return defaultInstance;
}
public OptionalGroup getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OptionalGroup(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 136: {
bitField0_ |= 0x00000001;
a_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.class, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public OptionalGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OptionalGroup(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int A_FIELD_NUMBER = 17;
private int a_;
/**
* optional int32 a = 17;
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 a = 17;
*/
public int getA() {
return a_;
}
private void initFields() {
a_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(17, a_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(17, a_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypes.OptionalGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypes.OptionalGroup)
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.class, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
a_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_descriptor;
}
public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup build() {
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup buildPartial() {
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup result = new protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.a_ = a_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup) {
return mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup other) {
if (other == protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance()) return this;
if (other.hasA()) {
setA(other.getA());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int a_ ;
/**
* optional int32 a = 17;
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 a = 17;
*/
public int getA() {
return a_;
}
/**
* optional int32 a = 17;
*/
public Builder setA(int value) {
bitField0_ |= 0x00000001;
a_ = value;
onChanged();
return this;
}
/**
* optional int32 a = 17;
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000001);
a_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypes.OptionalGroup)
}
static {
defaultInstance = new OptionalGroup(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.OptionalGroup)
}
public interface RepeatedGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypes.RepeatedGroup)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 a = 47;
*/
boolean hasA();
/**
* optional int32 a = 47;
*/
int getA();
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypes.RepeatedGroup}
*/
public static final class RepeatedGroup extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypes.RepeatedGroup)
RepeatedGroupOrBuilder {
// Use RepeatedGroup.newBuilder() to construct.
private RepeatedGroup(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RepeatedGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RepeatedGroup defaultInstance;
public static RepeatedGroup getDefaultInstance() {
return defaultInstance;
}
public RepeatedGroup getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RepeatedGroup(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 376: {
bitField0_ |= 0x00000001;
a_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.class, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RepeatedGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RepeatedGroup(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int A_FIELD_NUMBER = 47;
private int a_;
/**
* optional int32 a = 47;
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 a = 47;
*/
public int getA() {
return a_;
}
private void initFields() {
a_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(47, a_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(47, a_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypes.RepeatedGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypes.RepeatedGroup)
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.class, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
a_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_descriptor;
}
public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup build() {
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup buildPartial() {
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup result = new protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.a_ = a_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup) {
return mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup other) {
if (other == protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.getDefaultInstance()) return this;
if (other.hasA()) {
setA(other.getA());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int a_ ;
/**
* optional int32 a = 47;
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 a = 47;
*/
public int getA() {
return a_;
}
/**
* optional int32 a = 47;
*/
public Builder setA(int value) {
bitField0_ |= 0x00000001;
a_ = value;
onChanged();
return this;
}
/**
* optional int32 a = 47;
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000001);
a_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypes.RepeatedGroup)
}
static {
defaultInstance = new RepeatedGroup(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.RepeatedGroup)
}
private int bitField0_;
private int bitField1_;
private int oneofFieldCase_ = 0;
private java.lang.Object oneofField_;
public enum OneofFieldCase
implements com.google.protobuf.Internal.EnumLite {
ONEOF_UINT32(111),
ONEOF_NESTED_MESSAGE(112),
ONEOF_STRING(113),
ONEOF_BYTES(114),
ONEOFFIELD_NOT_SET(0);
private int value = 0;
private OneofFieldCase(int value) {
this.value = value;
}
public static OneofFieldCase valueOf(int value) {
switch (value) {
case 111: return ONEOF_UINT32;
case 112: return ONEOF_NESTED_MESSAGE;
case 113: return ONEOF_STRING;
case 114: return ONEOF_BYTES;
case 0: return ONEOFFIELD_NOT_SET;
default: throw new java.lang.IllegalArgumentException(
"Value is undefined for this oneof enum.");
}
}
public int getNumber() {
return this.value;
}
};
public OneofFieldCase
getOneofFieldCase() {
return OneofFieldCase.valueOf(
oneofFieldCase_);
}
public static final int OPTIONAL_INT32_FIELD_NUMBER = 1;
private int optionalInt32_;
/**
* optional int32 optional_int32 = 1;
*
*
* Singular
*
*/
public boolean hasOptionalInt32() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 optional_int32 = 1;
*
*
* Singular
*
*/
public int getOptionalInt32() {
return optionalInt32_;
}
public static final int OPTIONAL_INT64_FIELD_NUMBER = 2;
private long optionalInt64_;
/**
* optional int64 optional_int64 = 2;
*/
public boolean hasOptionalInt64() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 optional_int64 = 2;
*/
public long getOptionalInt64() {
return optionalInt64_;
}
public static final int OPTIONAL_UINT32_FIELD_NUMBER = 3;
private int optionalUint32_;
/**
* optional uint32 optional_uint32 = 3;
*/
public boolean hasOptionalUint32() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 optional_uint32 = 3;
*/
public int getOptionalUint32() {
return optionalUint32_;
}
public static final int OPTIONAL_UINT64_FIELD_NUMBER = 4;
private long optionalUint64_;
/**
* optional uint64 optional_uint64 = 4;
*/
public boolean hasOptionalUint64() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint64 optional_uint64 = 4;
*/
public long getOptionalUint64() {
return optionalUint64_;
}
public static final int OPTIONAL_SINT32_FIELD_NUMBER = 5;
private int optionalSint32_;
/**
* optional sint32 optional_sint32 = 5;
*/
public boolean hasOptionalSint32() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional sint32 optional_sint32 = 5;
*/
public int getOptionalSint32() {
return optionalSint32_;
}
public static final int OPTIONAL_SINT64_FIELD_NUMBER = 6;
private long optionalSint64_;
/**
* optional sint64 optional_sint64 = 6;
*/
public boolean hasOptionalSint64() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional sint64 optional_sint64 = 6;
*/
public long getOptionalSint64() {
return optionalSint64_;
}
public static final int OPTIONAL_FIXED32_FIELD_NUMBER = 7;
private int optionalFixed32_;
/**
* optional fixed32 optional_fixed32 = 7;
*/
public boolean hasOptionalFixed32() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional fixed32 optional_fixed32 = 7;
*/
public int getOptionalFixed32() {
return optionalFixed32_;
}
public static final int OPTIONAL_FIXED64_FIELD_NUMBER = 8;
private long optionalFixed64_;
/**
* optional fixed64 optional_fixed64 = 8;
*/
public boolean hasOptionalFixed64() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional fixed64 optional_fixed64 = 8;
*/
public long getOptionalFixed64() {
return optionalFixed64_;
}
public static final int OPTIONAL_SFIXED32_FIELD_NUMBER = 9;
private int optionalSfixed32_;
/**
* optional sfixed32 optional_sfixed32 = 9;
*/
public boolean hasOptionalSfixed32() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional sfixed32 optional_sfixed32 = 9;
*/
public int getOptionalSfixed32() {
return optionalSfixed32_;
}
public static final int OPTIONAL_SFIXED64_FIELD_NUMBER = 10;
private long optionalSfixed64_;
/**
* optional sfixed64 optional_sfixed64 = 10;
*/
public boolean hasOptionalSfixed64() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional sfixed64 optional_sfixed64 = 10;
*/
public long getOptionalSfixed64() {
return optionalSfixed64_;
}
public static final int OPTIONAL_FLOAT_FIELD_NUMBER = 11;
private float optionalFloat_;
/**
* optional float optional_float = 11;
*/
public boolean hasOptionalFloat() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional float optional_float = 11;
*/
public float getOptionalFloat() {
return optionalFloat_;
}
public static final int OPTIONAL_DOUBLE_FIELD_NUMBER = 12;
private double optionalDouble_;
/**
* optional double optional_double = 12;
*/
public boolean hasOptionalDouble() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional double optional_double = 12;
*/
public double getOptionalDouble() {
return optionalDouble_;
}
public static final int OPTIONAL_BOOL_FIELD_NUMBER = 13;
private boolean optionalBool_;
/**
* optional bool optional_bool = 13;
*/
public boolean hasOptionalBool() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional bool optional_bool = 13;
*/
public boolean getOptionalBool() {
return optionalBool_;
}
public static final int OPTIONAL_STRING_FIELD_NUMBER = 14;
private java.lang.Object optionalString_;
/**
* optional string optional_string = 14;
*/
public boolean hasOptionalString() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional string optional_string = 14;
*/
public java.lang.String getOptionalString() {
java.lang.Object ref = optionalString_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
optionalString_ = s;
}
return s;
}
}
/**
* optional string optional_string = 14;
*/
public com.google.protobuf.ByteString
getOptionalStringBytes() {
java.lang.Object ref = optionalString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
optionalString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONAL_BYTES_FIELD_NUMBER = 15;
private com.google.protobuf.ByteString optionalBytes_;
/**
* optional bytes optional_bytes = 15;
*/
public boolean hasOptionalBytes() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional bytes optional_bytes = 15;
*/
public com.google.protobuf.ByteString getOptionalBytes() {
return optionalBytes_;
}
public static final int OPTIONALGROUP_FIELD_NUMBER = 16;
private protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup optionalGroup_;
/**
* optional group OptionalGroup = 16 { ... }
*/
public boolean hasOptionalGroup() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup getOptionalGroup() {
return optionalGroup_;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder getOptionalGroupOrBuilder() {
return optionalGroup_;
}
public static final int OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER = 18;
private protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage optionalNestedMessage_;
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public boolean hasOptionalNestedMessage() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalNestedMessage() {
return optionalNestedMessage_;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() {
return optionalNestedMessage_;
}
public static final int OPTIONAL_FOREIGN_MESSAGE_FIELD_NUMBER = 19;
private protobuf_unittest.UnittestProto.ForeignMessage optionalForeignMessage_;
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public boolean hasOptionalForeignMessage() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public protobuf_unittest.UnittestProto.ForeignMessage getOptionalForeignMessage() {
return optionalForeignMessage_;
}
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getOptionalForeignMessageOrBuilder() {
return optionalForeignMessage_;
}
public static final int OPTIONAL_IMPORT_MESSAGE_FIELD_NUMBER = 20;
private com.google.protobuf.test.UnittestImport.ImportMessage optionalImportMessage_;
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public boolean hasOptionalImportMessage() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public com.google.protobuf.test.UnittestImport.ImportMessage getOptionalImportMessage() {
return optionalImportMessage_;
}
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getOptionalImportMessageOrBuilder() {
return optionalImportMessage_;
}
public static final int OPTIONAL_NESTED_ENUM_FIELD_NUMBER = 21;
private protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum optionalNestedEnum_;
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
*/
public boolean hasOptionalNestedEnum() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getOptionalNestedEnum() {
return optionalNestedEnum_;
}
public static final int OPTIONAL_FOREIGN_ENUM_FIELD_NUMBER = 22;
private protobuf_unittest.UnittestProto.ForeignEnum optionalForeignEnum_;
/**
* optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
*/
public boolean hasOptionalForeignEnum() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
* optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
*/
public protobuf_unittest.UnittestProto.ForeignEnum getOptionalForeignEnum() {
return optionalForeignEnum_;
}
public static final int OPTIONAL_IMPORT_ENUM_FIELD_NUMBER = 23;
private com.google.protobuf.test.UnittestImport.ImportEnum optionalImportEnum_;
/**
* optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
*/
public boolean hasOptionalImportEnum() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
*/
public com.google.protobuf.test.UnittestImport.ImportEnum getOptionalImportEnum() {
return optionalImportEnum_;
}
public static final int OPTIONAL_STRING_PIECE_FIELD_NUMBER = 24;
private java.lang.Object optionalStringPiece_;
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
public boolean hasOptionalStringPiece() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
public java.lang.String getOptionalStringPiece() {
java.lang.Object ref = optionalStringPiece_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
optionalStringPiece_ = s;
}
return s;
}
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
public com.google.protobuf.ByteString
getOptionalStringPieceBytes() {
java.lang.Object ref = optionalStringPiece_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
optionalStringPiece_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONAL_CORD_FIELD_NUMBER = 25;
private java.lang.Object optionalCord_;
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
public boolean hasOptionalCord() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
public java.lang.String getOptionalCord() {
java.lang.Object ref = optionalCord_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
optionalCord_ = s;
}
return s;
}
}
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
public com.google.protobuf.ByteString
getOptionalCordBytes() {
java.lang.Object ref = optionalCord_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
optionalCord_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONAL_PUBLIC_IMPORT_MESSAGE_FIELD_NUMBER = 26;
private com.google.protobuf.test.UnittestImportPublic.PublicImportMessage optionalPublicImportMessage_;
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public boolean hasOptionalPublicImportMessage() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public com.google.protobuf.test.UnittestImportPublic.PublicImportMessage getOptionalPublicImportMessage() {
return optionalPublicImportMessage_;
}
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder getOptionalPublicImportMessageOrBuilder() {
return optionalPublicImportMessage_;
}
public static final int OPTIONAL_LAZY_MESSAGE_FIELD_NUMBER = 27;
private protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage optionalLazyMessage_;
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public boolean hasOptionalLazyMessage() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalLazyMessage() {
return optionalLazyMessage_;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() {
return optionalLazyMessage_;
}
public static final int REPEATED_INT32_FIELD_NUMBER = 31;
private java.util.List repeatedInt32_;
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public java.util.List
getRepeatedInt32List() {
return repeatedInt32_;
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.get(index);
}
public static final int REPEATED_INT64_FIELD_NUMBER = 32;
private java.util.List repeatedInt64_;
/**
* repeated int64 repeated_int64 = 32;
*/
public java.util.List
getRepeatedInt64List() {
return repeatedInt64_;
}
/**
* repeated int64 repeated_int64 = 32;
*/
public int getRepeatedInt64Count() {
return repeatedInt64_.size();
}
/**
* repeated int64 repeated_int64 = 32;
*/
public long getRepeatedInt64(int index) {
return repeatedInt64_.get(index);
}
public static final int REPEATED_UINT32_FIELD_NUMBER = 33;
private java.util.List repeatedUint32_;
/**
* repeated uint32 repeated_uint32 = 33;
*/
public java.util.List
getRepeatedUint32List() {
return repeatedUint32_;
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public int getRepeatedUint32Count() {
return repeatedUint32_.size();
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public int getRepeatedUint32(int index) {
return repeatedUint32_.get(index);
}
public static final int REPEATED_UINT64_FIELD_NUMBER = 34;
private java.util.List repeatedUint64_;
/**
* repeated uint64 repeated_uint64 = 34;
*/
public java.util.List
getRepeatedUint64List() {
return repeatedUint64_;
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public int getRepeatedUint64Count() {
return repeatedUint64_.size();
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public long getRepeatedUint64(int index) {
return repeatedUint64_.get(index);
}
public static final int REPEATED_SINT32_FIELD_NUMBER = 35;
private java.util.List repeatedSint32_;
/**
* repeated sint32 repeated_sint32 = 35;
*/
public java.util.List
getRepeatedSint32List() {
return repeatedSint32_;
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public int getRepeatedSint32Count() {
return repeatedSint32_.size();
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public int getRepeatedSint32(int index) {
return repeatedSint32_.get(index);
}
public static final int REPEATED_SINT64_FIELD_NUMBER = 36;
private java.util.List repeatedSint64_;
/**
* repeated sint64 repeated_sint64 = 36;
*/
public java.util.List
getRepeatedSint64List() {
return repeatedSint64_;
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public int getRepeatedSint64Count() {
return repeatedSint64_.size();
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public long getRepeatedSint64(int index) {
return repeatedSint64_.get(index);
}
public static final int REPEATED_FIXED32_FIELD_NUMBER = 37;
private java.util.List repeatedFixed32_;
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public java.util.List
getRepeatedFixed32List() {
return repeatedFixed32_;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public int getRepeatedFixed32Count() {
return repeatedFixed32_.size();
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public int getRepeatedFixed32(int index) {
return repeatedFixed32_.get(index);
}
public static final int REPEATED_FIXED64_FIELD_NUMBER = 38;
private java.util.List repeatedFixed64_;
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public java.util.List
getRepeatedFixed64List() {
return repeatedFixed64_;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public int getRepeatedFixed64Count() {
return repeatedFixed64_.size();
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public long getRepeatedFixed64(int index) {
return repeatedFixed64_.get(index);
}
public static final int REPEATED_SFIXED32_FIELD_NUMBER = 39;
private java.util.List repeatedSfixed32_;
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public java.util.List
getRepeatedSfixed32List() {
return repeatedSfixed32_;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public int getRepeatedSfixed32Count() {
return repeatedSfixed32_.size();
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public int getRepeatedSfixed32(int index) {
return repeatedSfixed32_.get(index);
}
public static final int REPEATED_SFIXED64_FIELD_NUMBER = 40;
private java.util.List repeatedSfixed64_;
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public java.util.List
getRepeatedSfixed64List() {
return repeatedSfixed64_;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public int getRepeatedSfixed64Count() {
return repeatedSfixed64_.size();
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public long getRepeatedSfixed64(int index) {
return repeatedSfixed64_.get(index);
}
public static final int REPEATED_FLOAT_FIELD_NUMBER = 41;
private java.util.List repeatedFloat_;
/**
* repeated float repeated_float = 41;
*/
public java.util.List
getRepeatedFloatList() {
return repeatedFloat_;
}
/**
* repeated float repeated_float = 41;
*/
public int getRepeatedFloatCount() {
return repeatedFloat_.size();
}
/**
* repeated float repeated_float = 41;
*/
public float getRepeatedFloat(int index) {
return repeatedFloat_.get(index);
}
public static final int REPEATED_DOUBLE_FIELD_NUMBER = 42;
private java.util.List repeatedDouble_;
/**
* repeated double repeated_double = 42;
*/
public java.util.List
getRepeatedDoubleList() {
return repeatedDouble_;
}
/**
* repeated double repeated_double = 42;
*/
public int getRepeatedDoubleCount() {
return repeatedDouble_.size();
}
/**
* repeated double repeated_double = 42;
*/
public double getRepeatedDouble(int index) {
return repeatedDouble_.get(index);
}
public static final int REPEATED_BOOL_FIELD_NUMBER = 43;
private java.util.List repeatedBool_;
/**
* repeated bool repeated_bool = 43;
*/
public java.util.List
getRepeatedBoolList() {
return repeatedBool_;
}
/**
* repeated bool repeated_bool = 43;
*/
public int getRepeatedBoolCount() {
return repeatedBool_.size();
}
/**
* repeated bool repeated_bool = 43;
*/
public boolean getRepeatedBool(int index) {
return repeatedBool_.get(index);
}
public static final int REPEATED_STRING_FIELD_NUMBER = 44;
private com.google.protobuf.LazyStringList repeatedString_;
/**
* repeated string repeated_string = 44;
*/
public com.google.protobuf.ProtocolStringList
getRepeatedStringList() {
return repeatedString_;
}
/**
* repeated string repeated_string = 44;
*/
public int getRepeatedStringCount() {
return repeatedString_.size();
}
/**
* repeated string repeated_string = 44;
*/
public java.lang.String getRepeatedString(int index) {
return repeatedString_.get(index);
}
/**
* repeated string repeated_string = 44;
*/
public com.google.protobuf.ByteString
getRepeatedStringBytes(int index) {
return repeatedString_.getByteString(index);
}
public static final int REPEATED_BYTES_FIELD_NUMBER = 45;
private java.util.List repeatedBytes_;
/**
* repeated bytes repeated_bytes = 45;
*/
public java.util.List
getRepeatedBytesList() {
return repeatedBytes_;
}
/**
* repeated bytes repeated_bytes = 45;
*/
public int getRepeatedBytesCount() {
return repeatedBytes_.size();
}
/**
* repeated bytes repeated_bytes = 45;
*/
public com.google.protobuf.ByteString getRepeatedBytes(int index) {
return repeatedBytes_.get(index);
}
public static final int REPEATEDGROUP_FIELD_NUMBER = 46;
private java.util.List repeatedGroup_;
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public java.util.List getRepeatedGroupList() {
return repeatedGroup_;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public java.util.List extends protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder>
getRepeatedGroupOrBuilderList() {
return repeatedGroup_;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public int getRepeatedGroupCount() {
return repeatedGroup_.size();
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup getRepeatedGroup(int index) {
return repeatedGroup_.get(index);
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder(
int index) {
return repeatedGroup_.get(index);
}
public static final int REPEATED_NESTED_MESSAGE_FIELD_NUMBER = 48;
private java.util.List repeatedNestedMessage_;
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public java.util.List getRepeatedNestedMessageList() {
return repeatedNestedMessage_;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public java.util.List extends protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList() {
return repeatedNestedMessage_;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public int getRepeatedNestedMessageCount() {
return repeatedNestedMessage_.size();
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index) {
return repeatedNestedMessage_.get(index);
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder(
int index) {
return repeatedNestedMessage_.get(index);
}
public static final int REPEATED_FOREIGN_MESSAGE_FIELD_NUMBER = 49;
private java.util.List repeatedForeignMessage_;
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public java.util.List getRepeatedForeignMessageList() {
return repeatedForeignMessage_;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public java.util.List extends protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>
getRepeatedForeignMessageOrBuilderList() {
return repeatedForeignMessage_;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public int getRepeatedForeignMessageCount() {
return repeatedForeignMessage_.size();
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public protobuf_unittest.UnittestProto.ForeignMessage getRepeatedForeignMessage(int index) {
return repeatedForeignMessage_.get(index);
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getRepeatedForeignMessageOrBuilder(
int index) {
return repeatedForeignMessage_.get(index);
}
public static final int REPEATED_IMPORT_MESSAGE_FIELD_NUMBER = 50;
private java.util.List repeatedImportMessage_;
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public java.util.List getRepeatedImportMessageList() {
return repeatedImportMessage_;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public java.util.List extends com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder>
getRepeatedImportMessageOrBuilderList() {
return repeatedImportMessage_;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public int getRepeatedImportMessageCount() {
return repeatedImportMessage_.size();
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public com.google.protobuf.test.UnittestImport.ImportMessage getRepeatedImportMessage(int index) {
return repeatedImportMessage_.get(index);
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getRepeatedImportMessageOrBuilder(
int index) {
return repeatedImportMessage_.get(index);
}
public static final int REPEATED_NESTED_ENUM_FIELD_NUMBER = 51;
private java.util.List repeatedNestedEnum_;
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
public java.util.List getRepeatedNestedEnumList() {
return repeatedNestedEnum_;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_.get(index);
}
public static final int REPEATED_FOREIGN_ENUM_FIELD_NUMBER = 52;
private java.util.List repeatedForeignEnum_;
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
public java.util.List getRepeatedForeignEnumList() {
return repeatedForeignEnum_;
}
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
public int getRepeatedForeignEnumCount() {
return repeatedForeignEnum_.size();
}
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
public protobuf_unittest.UnittestProto.ForeignEnum getRepeatedForeignEnum(int index) {
return repeatedForeignEnum_.get(index);
}
public static final int REPEATED_IMPORT_ENUM_FIELD_NUMBER = 53;
private java.util.List repeatedImportEnum_;
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
public java.util.List getRepeatedImportEnumList() {
return repeatedImportEnum_;
}
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
public int getRepeatedImportEnumCount() {
return repeatedImportEnum_.size();
}
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
public com.google.protobuf.test.UnittestImport.ImportEnum getRepeatedImportEnum(int index) {
return repeatedImportEnum_.get(index);
}
public static final int REPEATED_STRING_PIECE_FIELD_NUMBER = 54;
private com.google.protobuf.LazyStringList repeatedStringPiece_;
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public com.google.protobuf.ProtocolStringList
getRepeatedStringPieceList() {
return repeatedStringPiece_;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public int getRepeatedStringPieceCount() {
return repeatedStringPiece_.size();
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public java.lang.String getRepeatedStringPiece(int index) {
return repeatedStringPiece_.get(index);
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public com.google.protobuf.ByteString
getRepeatedStringPieceBytes(int index) {
return repeatedStringPiece_.getByteString(index);
}
public static final int REPEATED_CORD_FIELD_NUMBER = 55;
private com.google.protobuf.LazyStringList repeatedCord_;
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public com.google.protobuf.ProtocolStringList
getRepeatedCordList() {
return repeatedCord_;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public int getRepeatedCordCount() {
return repeatedCord_.size();
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public java.lang.String getRepeatedCord(int index) {
return repeatedCord_.get(index);
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public com.google.protobuf.ByteString
getRepeatedCordBytes(int index) {
return repeatedCord_.getByteString(index);
}
public static final int REPEATED_LAZY_MESSAGE_FIELD_NUMBER = 57;
private java.util.List repeatedLazyMessage_;
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List getRepeatedLazyMessageList() {
return repeatedLazyMessage_;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List extends protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedLazyMessageOrBuilderList() {
return repeatedLazyMessage_;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public int getRepeatedLazyMessageCount() {
return repeatedLazyMessage_.size();
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedLazyMessage(int index) {
return repeatedLazyMessage_.get(index);
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder(
int index) {
return repeatedLazyMessage_.get(index);
}
public static final int DEFAULT_INT32_FIELD_NUMBER = 61;
private int defaultInt32_;
/**
* optional int32 default_int32 = 61 [default = 41];
*
*
* Singular with defaults
*
*/
public boolean hasDefaultInt32() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
* optional int32 default_int32 = 61 [default = 41];
*
*
* Singular with defaults
*
*/
public int getDefaultInt32() {
return defaultInt32_;
}
public static final int DEFAULT_INT64_FIELD_NUMBER = 62;
private long defaultInt64_;
/**
* optional int64 default_int64 = 62 [default = 42];
*/
public boolean hasDefaultInt64() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
* optional int64 default_int64 = 62 [default = 42];
*/
public long getDefaultInt64() {
return defaultInt64_;
}
public static final int DEFAULT_UINT32_FIELD_NUMBER = 63;
private int defaultUint32_;
/**
* optional uint32 default_uint32 = 63 [default = 43];
*/
public boolean hasDefaultUint32() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
* optional uint32 default_uint32 = 63 [default = 43];
*/
public int getDefaultUint32() {
return defaultUint32_;
}
public static final int DEFAULT_UINT64_FIELD_NUMBER = 64;
private long defaultUint64_;
/**
* optional uint64 default_uint64 = 64 [default = 44];
*/
public boolean hasDefaultUint64() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
* optional uint64 default_uint64 = 64 [default = 44];
*/
public long getDefaultUint64() {
return defaultUint64_;
}
public static final int DEFAULT_SINT32_FIELD_NUMBER = 65;
private int defaultSint32_;
/**
* optional sint32 default_sint32 = 65 [default = -45];
*/
public boolean hasDefaultSint32() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
* optional sint32 default_sint32 = 65 [default = -45];
*/
public int getDefaultSint32() {
return defaultSint32_;
}
public static final int DEFAULT_SINT64_FIELD_NUMBER = 66;
private long defaultSint64_;
/**
* optional sint64 default_sint64 = 66 [default = 46];
*/
public boolean hasDefaultSint64() {
return ((bitField0_ & 0x80000000) == 0x80000000);
}
/**
* optional sint64 default_sint64 = 66 [default = 46];
*/
public long getDefaultSint64() {
return defaultSint64_;
}
public static final int DEFAULT_FIXED32_FIELD_NUMBER = 67;
private int defaultFixed32_;
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
*/
public boolean hasDefaultFixed32() {
return ((bitField1_ & 0x00000001) == 0x00000001);
}
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
*/
public int getDefaultFixed32() {
return defaultFixed32_;
}
public static final int DEFAULT_FIXED64_FIELD_NUMBER = 68;
private long defaultFixed64_;
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
*/
public boolean hasDefaultFixed64() {
return ((bitField1_ & 0x00000002) == 0x00000002);
}
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
*/
public long getDefaultFixed64() {
return defaultFixed64_;
}
public static final int DEFAULT_SFIXED32_FIELD_NUMBER = 69;
private int defaultSfixed32_;
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
*/
public boolean hasDefaultSfixed32() {
return ((bitField1_ & 0x00000004) == 0x00000004);
}
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
*/
public int getDefaultSfixed32() {
return defaultSfixed32_;
}
public static final int DEFAULT_SFIXED64_FIELD_NUMBER = 70;
private long defaultSfixed64_;
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
*/
public boolean hasDefaultSfixed64() {
return ((bitField1_ & 0x00000008) == 0x00000008);
}
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
*/
public long getDefaultSfixed64() {
return defaultSfixed64_;
}
public static final int DEFAULT_FLOAT_FIELD_NUMBER = 71;
private float defaultFloat_;
/**
* optional float default_float = 71 [default = 51.5];
*/
public boolean hasDefaultFloat() {
return ((bitField1_ & 0x00000010) == 0x00000010);
}
/**
* optional float default_float = 71 [default = 51.5];
*/
public float getDefaultFloat() {
return defaultFloat_;
}
public static final int DEFAULT_DOUBLE_FIELD_NUMBER = 72;
private double defaultDouble_;
/**
* optional double default_double = 72 [default = 52000];
*/
public boolean hasDefaultDouble() {
return ((bitField1_ & 0x00000020) == 0x00000020);
}
/**
* optional double default_double = 72 [default = 52000];
*/
public double getDefaultDouble() {
return defaultDouble_;
}
public static final int DEFAULT_BOOL_FIELD_NUMBER = 73;
private boolean defaultBool_;
/**
* optional bool default_bool = 73 [default = true];
*/
public boolean hasDefaultBool() {
return ((bitField1_ & 0x00000040) == 0x00000040);
}
/**
* optional bool default_bool = 73 [default = true];
*/
public boolean getDefaultBool() {
return defaultBool_;
}
public static final int DEFAULT_STRING_FIELD_NUMBER = 74;
private java.lang.Object defaultString_;
/**
* optional string default_string = 74 [default = "hello"];
*/
public boolean hasDefaultString() {
return ((bitField1_ & 0x00000080) == 0x00000080);
}
/**
* optional string default_string = 74 [default = "hello"];
*/
public java.lang.String getDefaultString() {
java.lang.Object ref = defaultString_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
defaultString_ = s;
}
return s;
}
}
/**
* optional string default_string = 74 [default = "hello"];
*/
public com.google.protobuf.ByteString
getDefaultStringBytes() {
java.lang.Object ref = defaultString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_BYTES_FIELD_NUMBER = 75;
private com.google.protobuf.ByteString defaultBytes_;
/**
* optional bytes default_bytes = 75 [default = "world"];
*/
public boolean hasDefaultBytes() {
return ((bitField1_ & 0x00000100) == 0x00000100);
}
/**
* optional bytes default_bytes = 75 [default = "world"];
*/
public com.google.protobuf.ByteString getDefaultBytes() {
return defaultBytes_;
}
public static final int DEFAULT_NESTED_ENUM_FIELD_NUMBER = 81;
private protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum defaultNestedEnum_;
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public boolean hasDefaultNestedEnum() {
return ((bitField1_ & 0x00000200) == 0x00000200);
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getDefaultNestedEnum() {
return defaultNestedEnum_;
}
public static final int DEFAULT_FOREIGN_ENUM_FIELD_NUMBER = 82;
private protobuf_unittest.UnittestProto.ForeignEnum defaultForeignEnum_;
/**
* optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
*/
public boolean hasDefaultForeignEnum() {
return ((bitField1_ & 0x00000400) == 0x00000400);
}
/**
* optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
*/
public protobuf_unittest.UnittestProto.ForeignEnum getDefaultForeignEnum() {
return defaultForeignEnum_;
}
public static final int DEFAULT_IMPORT_ENUM_FIELD_NUMBER = 83;
private com.google.protobuf.test.UnittestImport.ImportEnum defaultImportEnum_;
/**
* optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
*/
public boolean hasDefaultImportEnum() {
return ((bitField1_ & 0x00000800) == 0x00000800);
}
/**
* optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
*/
public com.google.protobuf.test.UnittestImport.ImportEnum getDefaultImportEnum() {
return defaultImportEnum_;
}
public static final int DEFAULT_STRING_PIECE_FIELD_NUMBER = 84;
private java.lang.Object defaultStringPiece_;
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
public boolean hasDefaultStringPiece() {
return ((bitField1_ & 0x00001000) == 0x00001000);
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
public java.lang.String getDefaultStringPiece() {
java.lang.Object ref = defaultStringPiece_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
defaultStringPiece_ = s;
}
return s;
}
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
public com.google.protobuf.ByteString
getDefaultStringPieceBytes() {
java.lang.Object ref = defaultStringPiece_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultStringPiece_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_CORD_FIELD_NUMBER = 85;
private java.lang.Object defaultCord_;
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
public boolean hasDefaultCord() {
return ((bitField1_ & 0x00002000) == 0x00002000);
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
public java.lang.String getDefaultCord() {
java.lang.Object ref = defaultCord_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
defaultCord_ = s;
}
return s;
}
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
public com.google.protobuf.ByteString
getDefaultCordBytes() {
java.lang.Object ref = defaultCord_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultCord_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ONEOF_UINT32_FIELD_NUMBER = 111;
/**
* optional uint32 oneof_uint32 = 111;
*/
public boolean hasOneofUint32() {
return oneofFieldCase_ == 111;
}
/**
* optional uint32 oneof_uint32 = 111;
*/
public int getOneofUint32() {
if (oneofFieldCase_ == 111) {
return (java.lang.Integer) oneofField_;
}
return 0;
}
public static final int ONEOF_NESTED_MESSAGE_FIELD_NUMBER = 112;
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public boolean hasOneofNestedMessage() {
return oneofFieldCase_ == 112;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOneofNestedMessage() {
if (oneofFieldCase_ == 112) {
return (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_;
}
return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOneofNestedMessageOrBuilder() {
if (oneofFieldCase_ == 112) {
return (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_;
}
return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
public static final int ONEOF_STRING_FIELD_NUMBER = 113;
/**
* optional string oneof_string = 113;
*/
public boolean hasOneofString() {
return oneofFieldCase_ == 113;
}
/**
* optional string oneof_string = 113;
*/
public java.lang.String getOneofString() {
java.lang.Object ref = "";
if (oneofFieldCase_ == 113) {
ref = oneofField_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8() && (oneofFieldCase_ == 113)) {
oneofField_ = s;
}
return s;
}
}
/**
* optional string oneof_string = 113;
*/
public com.google.protobuf.ByteString
getOneofStringBytes() {
java.lang.Object ref = "";
if (oneofFieldCase_ == 113) {
ref = oneofField_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (oneofFieldCase_ == 113) {
oneofField_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ONEOF_BYTES_FIELD_NUMBER = 114;
/**
* optional bytes oneof_bytes = 114;
*/
public boolean hasOneofBytes() {
return oneofFieldCase_ == 114;
}
/**
* optional bytes oneof_bytes = 114;
*/
public com.google.protobuf.ByteString getOneofBytes() {
if (oneofFieldCase_ == 114) {
return (com.google.protobuf.ByteString) oneofField_;
}
return com.google.protobuf.ByteString.EMPTY;
}
private void initFields() {
optionalInt32_ = 0;
optionalInt64_ = 0L;
optionalUint32_ = 0;
optionalUint64_ = 0L;
optionalSint32_ = 0;
optionalSint64_ = 0L;
optionalFixed32_ = 0;
optionalFixed64_ = 0L;
optionalSfixed32_ = 0;
optionalSfixed64_ = 0L;
optionalFloat_ = 0F;
optionalDouble_ = 0D;
optionalBool_ = false;
optionalString_ = "";
optionalBytes_ = com.google.protobuf.ByteString.EMPTY;
optionalGroup_ = protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance();
optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
optionalForeignMessage_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance();
optionalImportMessage_ = com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance();
optionalNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.FOO;
optionalForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO;
optionalImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_FOO;
optionalStringPiece_ = "";
optionalCord_ = "";
optionalPublicImportMessage_ = com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance();
optionalLazyMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
repeatedInt32_ = java.util.Collections.emptyList();
repeatedInt64_ = java.util.Collections.emptyList();
repeatedUint32_ = java.util.Collections.emptyList();
repeatedUint64_ = java.util.Collections.emptyList();
repeatedSint32_ = java.util.Collections.emptyList();
repeatedSint64_ = java.util.Collections.emptyList();
repeatedFixed32_ = java.util.Collections.emptyList();
repeatedFixed64_ = java.util.Collections.emptyList();
repeatedSfixed32_ = java.util.Collections.emptyList();
repeatedSfixed64_ = java.util.Collections.emptyList();
repeatedFloat_ = java.util.Collections.emptyList();
repeatedDouble_ = java.util.Collections.emptyList();
repeatedBool_ = java.util.Collections.emptyList();
repeatedString_ = com.google.protobuf.LazyStringArrayList.EMPTY;
repeatedBytes_ = java.util.Collections.emptyList();
repeatedGroup_ = java.util.Collections.emptyList();
repeatedNestedMessage_ = java.util.Collections.emptyList();
repeatedForeignMessage_ = java.util.Collections.emptyList();
repeatedImportMessage_ = java.util.Collections.emptyList();
repeatedNestedEnum_ = java.util.Collections.emptyList();
repeatedForeignEnum_ = java.util.Collections.emptyList();
repeatedImportEnum_ = java.util.Collections.emptyList();
repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.EMPTY;
repeatedCord_ = com.google.protobuf.LazyStringArrayList.EMPTY;
repeatedLazyMessage_ = java.util.Collections.emptyList();
defaultInt32_ = 41;
defaultInt64_ = 42L;
defaultUint32_ = 43;
defaultUint64_ = 44L;
defaultSint32_ = -45;
defaultSint64_ = 46L;
defaultFixed32_ = 47;
defaultFixed64_ = 48L;
defaultSfixed32_ = 49;
defaultSfixed64_ = -50L;
defaultFloat_ = 51.5F;
defaultDouble_ = 52000D;
defaultBool_ = true;
defaultString_ = "hello";
defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world");
defaultNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.BAR;
defaultForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_BAR;
defaultImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_BAR;
defaultStringPiece_ = "abc";
defaultCord_ = "123";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, optionalInt32_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, optionalInt64_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, optionalUint32_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt64(4, optionalUint64_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeSInt32(5, optionalSint32_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeSInt64(6, optionalSint64_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeFixed32(7, optionalFixed32_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeFixed64(8, optionalFixed64_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeSFixed32(9, optionalSfixed32_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeSFixed64(10, optionalSfixed64_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeFloat(11, optionalFloat_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeDouble(12, optionalDouble_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeBool(13, optionalBool_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeBytes(14, getOptionalStringBytes());
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeBytes(15, optionalBytes_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
output.writeGroup(16, optionalGroup_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
output.writeMessage(18, optionalNestedMessage_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
output.writeMessage(19, optionalForeignMessage_);
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
output.writeMessage(20, optionalImportMessage_);
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
output.writeEnum(21, optionalNestedEnum_.getNumber());
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
output.writeEnum(22, optionalForeignEnum_.getNumber());
}
if (((bitField0_ & 0x00200000) == 0x00200000)) {
output.writeEnum(23, optionalImportEnum_.getNumber());
}
if (((bitField0_ & 0x00400000) == 0x00400000)) {
output.writeBytes(24, getOptionalStringPieceBytes());
}
if (((bitField0_ & 0x00800000) == 0x00800000)) {
output.writeBytes(25, getOptionalCordBytes());
}
if (((bitField0_ & 0x01000000) == 0x01000000)) {
output.writeMessage(26, optionalPublicImportMessage_);
}
if (((bitField0_ & 0x02000000) == 0x02000000)) {
output.writeMessage(27, optionalLazyMessage_);
}
for (int i = 0; i < repeatedInt32_.size(); i++) {
output.writeInt32(31, repeatedInt32_.get(i));
}
for (int i = 0; i < repeatedInt64_.size(); i++) {
output.writeInt64(32, repeatedInt64_.get(i));
}
for (int i = 0; i < repeatedUint32_.size(); i++) {
output.writeUInt32(33, repeatedUint32_.get(i));
}
for (int i = 0; i < repeatedUint64_.size(); i++) {
output.writeUInt64(34, repeatedUint64_.get(i));
}
for (int i = 0; i < repeatedSint32_.size(); i++) {
output.writeSInt32(35, repeatedSint32_.get(i));
}
for (int i = 0; i < repeatedSint64_.size(); i++) {
output.writeSInt64(36, repeatedSint64_.get(i));
}
for (int i = 0; i < repeatedFixed32_.size(); i++) {
output.writeFixed32(37, repeatedFixed32_.get(i));
}
for (int i = 0; i < repeatedFixed64_.size(); i++) {
output.writeFixed64(38, repeatedFixed64_.get(i));
}
for (int i = 0; i < repeatedSfixed32_.size(); i++) {
output.writeSFixed32(39, repeatedSfixed32_.get(i));
}
for (int i = 0; i < repeatedSfixed64_.size(); i++) {
output.writeSFixed64(40, repeatedSfixed64_.get(i));
}
for (int i = 0; i < repeatedFloat_.size(); i++) {
output.writeFloat(41, repeatedFloat_.get(i));
}
for (int i = 0; i < repeatedDouble_.size(); i++) {
output.writeDouble(42, repeatedDouble_.get(i));
}
for (int i = 0; i < repeatedBool_.size(); i++) {
output.writeBool(43, repeatedBool_.get(i));
}
for (int i = 0; i < repeatedString_.size(); i++) {
output.writeBytes(44, repeatedString_.getByteString(i));
}
for (int i = 0; i < repeatedBytes_.size(); i++) {
output.writeBytes(45, repeatedBytes_.get(i));
}
for (int i = 0; i < repeatedGroup_.size(); i++) {
output.writeGroup(46, repeatedGroup_.get(i));
}
for (int i = 0; i < repeatedNestedMessage_.size(); i++) {
output.writeMessage(48, repeatedNestedMessage_.get(i));
}
for (int i = 0; i < repeatedForeignMessage_.size(); i++) {
output.writeMessage(49, repeatedForeignMessage_.get(i));
}
for (int i = 0; i < repeatedImportMessage_.size(); i++) {
output.writeMessage(50, repeatedImportMessage_.get(i));
}
for (int i = 0; i < repeatedNestedEnum_.size(); i++) {
output.writeEnum(51, repeatedNestedEnum_.get(i).getNumber());
}
for (int i = 0; i < repeatedForeignEnum_.size(); i++) {
output.writeEnum(52, repeatedForeignEnum_.get(i).getNumber());
}
for (int i = 0; i < repeatedImportEnum_.size(); i++) {
output.writeEnum(53, repeatedImportEnum_.get(i).getNumber());
}
for (int i = 0; i < repeatedStringPiece_.size(); i++) {
output.writeBytes(54, repeatedStringPiece_.getByteString(i));
}
for (int i = 0; i < repeatedCord_.size(); i++) {
output.writeBytes(55, repeatedCord_.getByteString(i));
}
for (int i = 0; i < repeatedLazyMessage_.size(); i++) {
output.writeMessage(57, repeatedLazyMessage_.get(i));
}
if (((bitField0_ & 0x04000000) == 0x04000000)) {
output.writeInt32(61, defaultInt32_);
}
if (((bitField0_ & 0x08000000) == 0x08000000)) {
output.writeInt64(62, defaultInt64_);
}
if (((bitField0_ & 0x10000000) == 0x10000000)) {
output.writeUInt32(63, defaultUint32_);
}
if (((bitField0_ & 0x20000000) == 0x20000000)) {
output.writeUInt64(64, defaultUint64_);
}
if (((bitField0_ & 0x40000000) == 0x40000000)) {
output.writeSInt32(65, defaultSint32_);
}
if (((bitField0_ & 0x80000000) == 0x80000000)) {
output.writeSInt64(66, defaultSint64_);
}
if (((bitField1_ & 0x00000001) == 0x00000001)) {
output.writeFixed32(67, defaultFixed32_);
}
if (((bitField1_ & 0x00000002) == 0x00000002)) {
output.writeFixed64(68, defaultFixed64_);
}
if (((bitField1_ & 0x00000004) == 0x00000004)) {
output.writeSFixed32(69, defaultSfixed32_);
}
if (((bitField1_ & 0x00000008) == 0x00000008)) {
output.writeSFixed64(70, defaultSfixed64_);
}
if (((bitField1_ & 0x00000010) == 0x00000010)) {
output.writeFloat(71, defaultFloat_);
}
if (((bitField1_ & 0x00000020) == 0x00000020)) {
output.writeDouble(72, defaultDouble_);
}
if (((bitField1_ & 0x00000040) == 0x00000040)) {
output.writeBool(73, defaultBool_);
}
if (((bitField1_ & 0x00000080) == 0x00000080)) {
output.writeBytes(74, getDefaultStringBytes());
}
if (((bitField1_ & 0x00000100) == 0x00000100)) {
output.writeBytes(75, defaultBytes_);
}
if (((bitField1_ & 0x00000200) == 0x00000200)) {
output.writeEnum(81, defaultNestedEnum_.getNumber());
}
if (((bitField1_ & 0x00000400) == 0x00000400)) {
output.writeEnum(82, defaultForeignEnum_.getNumber());
}
if (((bitField1_ & 0x00000800) == 0x00000800)) {
output.writeEnum(83, defaultImportEnum_.getNumber());
}
if (((bitField1_ & 0x00001000) == 0x00001000)) {
output.writeBytes(84, getDefaultStringPieceBytes());
}
if (((bitField1_ & 0x00002000) == 0x00002000)) {
output.writeBytes(85, getDefaultCordBytes());
}
if (oneofFieldCase_ == 111) {
output.writeUInt32(
111, (int)((java.lang.Integer) oneofField_));
}
if (oneofFieldCase_ == 112) {
output.writeMessage(112, (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_);
}
if (oneofFieldCase_ == 113) {
output.writeBytes(113, getOneofStringBytes());
}
if (oneofFieldCase_ == 114) {
output.writeBytes(
114, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) oneofField_));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, optionalInt32_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, optionalInt64_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, optionalUint32_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, optionalUint64_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(5, optionalSint32_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(6, optionalSint64_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(7, optionalFixed32_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(8, optionalFixed64_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(9, optionalSfixed32_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(10, optionalSfixed64_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(11, optionalFloat_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(12, optionalDouble_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, optionalBool_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(14, getOptionalStringBytes());
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, optionalBytes_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(16, optionalGroup_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, optionalNestedMessage_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, optionalForeignMessage_);
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, optionalImportMessage_);
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(21, optionalNestedEnum_.getNumber());
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(22, optionalForeignEnum_.getNumber());
}
if (((bitField0_ & 0x00200000) == 0x00200000)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(23, optionalImportEnum_.getNumber());
}
if (((bitField0_ & 0x00400000) == 0x00400000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(24, getOptionalStringPieceBytes());
}
if (((bitField0_ & 0x00800000) == 0x00800000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(25, getOptionalCordBytes());
}
if (((bitField0_ & 0x01000000) == 0x01000000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, optionalPublicImportMessage_);
}
if (((bitField0_ & 0x02000000) == 0x02000000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(27, optionalLazyMessage_);
}
{
int dataSize = 0;
for (int i = 0; i < repeatedInt32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(repeatedInt32_.get(i));
}
size += dataSize;
size += 2 * getRepeatedInt32List().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedInt64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(repeatedInt64_.get(i));
}
size += dataSize;
size += 2 * getRepeatedInt64List().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedUint32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(repeatedUint32_.get(i));
}
size += dataSize;
size += 2 * getRepeatedUint32List().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedUint64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(repeatedUint64_.get(i));
}
size += dataSize;
size += 2 * getRepeatedUint64List().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedSint32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt32SizeNoTag(repeatedSint32_.get(i));
}
size += dataSize;
size += 2 * getRepeatedSint32List().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedSint64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt64SizeNoTag(repeatedSint64_.get(i));
}
size += dataSize;
size += 2 * getRepeatedSint64List().size();
}
{
int dataSize = 0;
dataSize = 4 * getRepeatedFixed32List().size();
size += dataSize;
size += 2 * getRepeatedFixed32List().size();
}
{
int dataSize = 0;
dataSize = 8 * getRepeatedFixed64List().size();
size += dataSize;
size += 2 * getRepeatedFixed64List().size();
}
{
int dataSize = 0;
dataSize = 4 * getRepeatedSfixed32List().size();
size += dataSize;
size += 2 * getRepeatedSfixed32List().size();
}
{
int dataSize = 0;
dataSize = 8 * getRepeatedSfixed64List().size();
size += dataSize;
size += 2 * getRepeatedSfixed64List().size();
}
{
int dataSize = 0;
dataSize = 4 * getRepeatedFloatList().size();
size += dataSize;
size += 2 * getRepeatedFloatList().size();
}
{
int dataSize = 0;
dataSize = 8 * getRepeatedDoubleList().size();
size += dataSize;
size += 2 * getRepeatedDoubleList().size();
}
{
int dataSize = 0;
dataSize = 1 * getRepeatedBoolList().size();
size += dataSize;
size += 2 * getRepeatedBoolList().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedString_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(repeatedString_.getByteString(i));
}
size += dataSize;
size += 2 * getRepeatedStringList().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedBytes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(repeatedBytes_.get(i));
}
size += dataSize;
size += 2 * getRepeatedBytesList().size();
}
for (int i = 0; i < repeatedGroup_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(46, repeatedGroup_.get(i));
}
for (int i = 0; i < repeatedNestedMessage_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(48, repeatedNestedMessage_.get(i));
}
for (int i = 0; i < repeatedForeignMessage_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(49, repeatedForeignMessage_.get(i));
}
for (int i = 0; i < repeatedImportMessage_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(50, repeatedImportMessage_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < repeatedNestedEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(repeatedNestedEnum_.get(i).getNumber());
}
size += dataSize;
size += 2 * repeatedNestedEnum_.size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedForeignEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(repeatedForeignEnum_.get(i).getNumber());
}
size += dataSize;
size += 2 * repeatedForeignEnum_.size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedImportEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(repeatedImportEnum_.get(i).getNumber());
}
size += dataSize;
size += 2 * repeatedImportEnum_.size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedStringPiece_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(repeatedStringPiece_.getByteString(i));
}
size += dataSize;
size += 2 * getRepeatedStringPieceList().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedCord_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(repeatedCord_.getByteString(i));
}
size += dataSize;
size += 2 * getRepeatedCordList().size();
}
for (int i = 0; i < repeatedLazyMessage_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(57, repeatedLazyMessage_.get(i));
}
if (((bitField0_ & 0x04000000) == 0x04000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(61, defaultInt32_);
}
if (((bitField0_ & 0x08000000) == 0x08000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(62, defaultInt64_);
}
if (((bitField0_ & 0x10000000) == 0x10000000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(63, defaultUint32_);
}
if (((bitField0_ & 0x20000000) == 0x20000000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(64, defaultUint64_);
}
if (((bitField0_ & 0x40000000) == 0x40000000)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(65, defaultSint32_);
}
if (((bitField0_ & 0x80000000) == 0x80000000)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(66, defaultSint64_);
}
if (((bitField1_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(67, defaultFixed32_);
}
if (((bitField1_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(68, defaultFixed64_);
}
if (((bitField1_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(69, defaultSfixed32_);
}
if (((bitField1_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(70, defaultSfixed64_);
}
if (((bitField1_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(71, defaultFloat_);
}
if (((bitField1_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(72, defaultDouble_);
}
if (((bitField1_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(73, defaultBool_);
}
if (((bitField1_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(74, getDefaultStringBytes());
}
if (((bitField1_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(75, defaultBytes_);
}
if (((bitField1_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(81, defaultNestedEnum_.getNumber());
}
if (((bitField1_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(82, defaultForeignEnum_.getNumber());
}
if (((bitField1_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(83, defaultImportEnum_.getNumber());
}
if (((bitField1_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(84, getDefaultStringPieceBytes());
}
if (((bitField1_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(85, getDefaultCordBytes());
}
if (oneofFieldCase_ == 111) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(
111, (int)((java.lang.Integer) oneofField_));
}
if (oneofFieldCase_ == 112) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(112, (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_);
}
if (oneofFieldCase_ == 113) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(113, getOneofStringBytes());
}
if (oneofFieldCase_ == 114) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
114, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) oneofField_));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.TestAllTypes prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypes}
*
*
* This proto includes every type of field in both singular and repeated
* forms.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypes)
protobuf_unittest.UnittestProto.TestAllTypesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestAllTypes.class, protobuf_unittest.UnittestProto.TestAllTypes.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.TestAllTypes.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getOptionalGroupFieldBuilder();
getOptionalNestedMessageFieldBuilder();
getOptionalForeignMessageFieldBuilder();
getOptionalImportMessageFieldBuilder();
getOptionalPublicImportMessageFieldBuilder();
getOptionalLazyMessageFieldBuilder();
getRepeatedGroupFieldBuilder();
getRepeatedNestedMessageFieldBuilder();
getRepeatedForeignMessageFieldBuilder();
getRepeatedImportMessageFieldBuilder();
getRepeatedLazyMessageFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
optionalInt32_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
optionalInt64_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
optionalUint32_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
optionalUint64_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
optionalSint32_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
optionalSint64_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
optionalFixed32_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
optionalFixed64_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
optionalSfixed32_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
optionalSfixed64_ = 0L;
bitField0_ = (bitField0_ & ~0x00000200);
optionalFloat_ = 0F;
bitField0_ = (bitField0_ & ~0x00000400);
optionalDouble_ = 0D;
bitField0_ = (bitField0_ & ~0x00000800);
optionalBool_ = false;
bitField0_ = (bitField0_ & ~0x00001000);
optionalString_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
optionalBytes_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00004000);
if (optionalGroupBuilder_ == null) {
optionalGroup_ = protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance();
} else {
optionalGroupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00008000);
if (optionalNestedMessageBuilder_ == null) {
optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
} else {
optionalNestedMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00010000);
if (optionalForeignMessageBuilder_ == null) {
optionalForeignMessage_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance();
} else {
optionalForeignMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00020000);
if (optionalImportMessageBuilder_ == null) {
optionalImportMessage_ = com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance();
} else {
optionalImportMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00040000);
optionalNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.FOO;
bitField0_ = (bitField0_ & ~0x00080000);
optionalForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO;
bitField0_ = (bitField0_ & ~0x00100000);
optionalImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_FOO;
bitField0_ = (bitField0_ & ~0x00200000);
optionalStringPiece_ = "";
bitField0_ = (bitField0_ & ~0x00400000);
optionalCord_ = "";
bitField0_ = (bitField0_ & ~0x00800000);
if (optionalPublicImportMessageBuilder_ == null) {
optionalPublicImportMessage_ = com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance();
} else {
optionalPublicImportMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x01000000);
if (optionalLazyMessageBuilder_ == null) {
optionalLazyMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
} else {
optionalLazyMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x02000000);
repeatedInt32_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x04000000);
repeatedInt64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x08000000);
repeatedUint32_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x10000000);
repeatedUint64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x20000000);
repeatedSint32_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x40000000);
repeatedSint64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x80000000);
repeatedFixed32_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000001);
repeatedFixed64_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000002);
repeatedSfixed32_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000004);
repeatedSfixed64_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000008);
repeatedFloat_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000010);
repeatedDouble_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000020);
repeatedBool_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000040);
repeatedString_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00000080);
repeatedBytes_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000100);
if (repeatedGroupBuilder_ == null) {
repeatedGroup_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000200);
} else {
repeatedGroupBuilder_.clear();
}
if (repeatedNestedMessageBuilder_ == null) {
repeatedNestedMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000400);
} else {
repeatedNestedMessageBuilder_.clear();
}
if (repeatedForeignMessageBuilder_ == null) {
repeatedForeignMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000800);
} else {
repeatedForeignMessageBuilder_.clear();
}
if (repeatedImportMessageBuilder_ == null) {
repeatedImportMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00001000);
} else {
repeatedImportMessageBuilder_.clear();
}
repeatedNestedEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00002000);
repeatedForeignEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00004000);
repeatedImportEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00008000);
repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00010000);
repeatedCord_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00020000);
if (repeatedLazyMessageBuilder_ == null) {
repeatedLazyMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00040000);
} else {
repeatedLazyMessageBuilder_.clear();
}
defaultInt32_ = 41;
bitField1_ = (bitField1_ & ~0x00080000);
defaultInt64_ = 42L;
bitField1_ = (bitField1_ & ~0x00100000);
defaultUint32_ = 43;
bitField1_ = (bitField1_ & ~0x00200000);
defaultUint64_ = 44L;
bitField1_ = (bitField1_ & ~0x00400000);
defaultSint32_ = -45;
bitField1_ = (bitField1_ & ~0x00800000);
defaultSint64_ = 46L;
bitField1_ = (bitField1_ & ~0x01000000);
defaultFixed32_ = 47;
bitField1_ = (bitField1_ & ~0x02000000);
defaultFixed64_ = 48L;
bitField1_ = (bitField1_ & ~0x04000000);
defaultSfixed32_ = 49;
bitField1_ = (bitField1_ & ~0x08000000);
defaultSfixed64_ = -50L;
bitField1_ = (bitField1_ & ~0x10000000);
defaultFloat_ = 51.5F;
bitField1_ = (bitField1_ & ~0x20000000);
defaultDouble_ = 52000D;
bitField1_ = (bitField1_ & ~0x40000000);
defaultBool_ = true;
bitField1_ = (bitField1_ & ~0x80000000);
defaultString_ = "hello";
bitField2_ = (bitField2_ & ~0x00000001);
defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world");
bitField2_ = (bitField2_ & ~0x00000002);
defaultNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.BAR;
bitField2_ = (bitField2_ & ~0x00000004);
defaultForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_BAR;
bitField2_ = (bitField2_ & ~0x00000008);
defaultImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_BAR;
bitField2_ = (bitField2_ & ~0x00000010);
defaultStringPiece_ = "abc";
bitField2_ = (bitField2_ & ~0x00000020);
defaultCord_ = "123";
bitField2_ = (bitField2_ & ~0x00000040);
oneofFieldCase_ = 0;
oneofField_ = null;
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_descriptor;
}
public protobuf_unittest.UnittestProto.TestAllTypes getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.TestAllTypes build() {
protobuf_unittest.UnittestProto.TestAllTypes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.TestAllTypes buildPartial() {
protobuf_unittest.UnittestProto.TestAllTypes result = new protobuf_unittest.UnittestProto.TestAllTypes(this);
int from_bitField0_ = bitField0_;
int from_bitField1_ = bitField1_;
int from_bitField2_ = bitField2_;
int to_bitField0_ = 0;
int to_bitField1_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.optionalInt32_ = optionalInt32_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.optionalInt64_ = optionalInt64_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.optionalUint32_ = optionalUint32_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.optionalUint64_ = optionalUint64_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.optionalSint32_ = optionalSint32_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.optionalSint64_ = optionalSint64_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.optionalFixed32_ = optionalFixed32_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.optionalFixed64_ = optionalFixed64_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.optionalSfixed32_ = optionalSfixed32_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.optionalSfixed64_ = optionalSfixed64_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.optionalFloat_ = optionalFloat_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.optionalDouble_ = optionalDouble_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.optionalBool_ = optionalBool_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.optionalString_ = optionalString_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00004000;
}
result.optionalBytes_ = optionalBytes_;
if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
to_bitField0_ |= 0x00008000;
}
if (optionalGroupBuilder_ == null) {
result.optionalGroup_ = optionalGroup_;
} else {
result.optionalGroup_ = optionalGroupBuilder_.build();
}
if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
to_bitField0_ |= 0x00010000;
}
if (optionalNestedMessageBuilder_ == null) {
result.optionalNestedMessage_ = optionalNestedMessage_;
} else {
result.optionalNestedMessage_ = optionalNestedMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
to_bitField0_ |= 0x00020000;
}
if (optionalForeignMessageBuilder_ == null) {
result.optionalForeignMessage_ = optionalForeignMessage_;
} else {
result.optionalForeignMessage_ = optionalForeignMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
to_bitField0_ |= 0x00040000;
}
if (optionalImportMessageBuilder_ == null) {
result.optionalImportMessage_ = optionalImportMessage_;
} else {
result.optionalImportMessage_ = optionalImportMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
to_bitField0_ |= 0x00080000;
}
result.optionalNestedEnum_ = optionalNestedEnum_;
if (((from_bitField0_ & 0x00100000) == 0x00100000)) {
to_bitField0_ |= 0x00100000;
}
result.optionalForeignEnum_ = optionalForeignEnum_;
if (((from_bitField0_ & 0x00200000) == 0x00200000)) {
to_bitField0_ |= 0x00200000;
}
result.optionalImportEnum_ = optionalImportEnum_;
if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
to_bitField0_ |= 0x00400000;
}
result.optionalStringPiece_ = optionalStringPiece_;
if (((from_bitField0_ & 0x00800000) == 0x00800000)) {
to_bitField0_ |= 0x00800000;
}
result.optionalCord_ = optionalCord_;
if (((from_bitField0_ & 0x01000000) == 0x01000000)) {
to_bitField0_ |= 0x01000000;
}
if (optionalPublicImportMessageBuilder_ == null) {
result.optionalPublicImportMessage_ = optionalPublicImportMessage_;
} else {
result.optionalPublicImportMessage_ = optionalPublicImportMessageBuilder_.build();
}
if (((from_bitField0_ & 0x02000000) == 0x02000000)) {
to_bitField0_ |= 0x02000000;
}
if (optionalLazyMessageBuilder_ == null) {
result.optionalLazyMessage_ = optionalLazyMessage_;
} else {
result.optionalLazyMessage_ = optionalLazyMessageBuilder_.build();
}
if (((bitField0_ & 0x04000000) == 0x04000000)) {
repeatedInt32_ = java.util.Collections.unmodifiableList(repeatedInt32_);
bitField0_ = (bitField0_ & ~0x04000000);
}
result.repeatedInt32_ = repeatedInt32_;
if (((bitField0_ & 0x08000000) == 0x08000000)) {
repeatedInt64_ = java.util.Collections.unmodifiableList(repeatedInt64_);
bitField0_ = (bitField0_ & ~0x08000000);
}
result.repeatedInt64_ = repeatedInt64_;
if (((bitField0_ & 0x10000000) == 0x10000000)) {
repeatedUint32_ = java.util.Collections.unmodifiableList(repeatedUint32_);
bitField0_ = (bitField0_ & ~0x10000000);
}
result.repeatedUint32_ = repeatedUint32_;
if (((bitField0_ & 0x20000000) == 0x20000000)) {
repeatedUint64_ = java.util.Collections.unmodifiableList(repeatedUint64_);
bitField0_ = (bitField0_ & ~0x20000000);
}
result.repeatedUint64_ = repeatedUint64_;
if (((bitField0_ & 0x40000000) == 0x40000000)) {
repeatedSint32_ = java.util.Collections.unmodifiableList(repeatedSint32_);
bitField0_ = (bitField0_ & ~0x40000000);
}
result.repeatedSint32_ = repeatedSint32_;
if (((bitField0_ & 0x80000000) == 0x80000000)) {
repeatedSint64_ = java.util.Collections.unmodifiableList(repeatedSint64_);
bitField0_ = (bitField0_ & ~0x80000000);
}
result.repeatedSint64_ = repeatedSint64_;
if (((bitField1_ & 0x00000001) == 0x00000001)) {
repeatedFixed32_ = java.util.Collections.unmodifiableList(repeatedFixed32_);
bitField1_ = (bitField1_ & ~0x00000001);
}
result.repeatedFixed32_ = repeatedFixed32_;
if (((bitField1_ & 0x00000002) == 0x00000002)) {
repeatedFixed64_ = java.util.Collections.unmodifiableList(repeatedFixed64_);
bitField1_ = (bitField1_ & ~0x00000002);
}
result.repeatedFixed64_ = repeatedFixed64_;
if (((bitField1_ & 0x00000004) == 0x00000004)) {
repeatedSfixed32_ = java.util.Collections.unmodifiableList(repeatedSfixed32_);
bitField1_ = (bitField1_ & ~0x00000004);
}
result.repeatedSfixed32_ = repeatedSfixed32_;
if (((bitField1_ & 0x00000008) == 0x00000008)) {
repeatedSfixed64_ = java.util.Collections.unmodifiableList(repeatedSfixed64_);
bitField1_ = (bitField1_ & ~0x00000008);
}
result.repeatedSfixed64_ = repeatedSfixed64_;
if (((bitField1_ & 0x00000010) == 0x00000010)) {
repeatedFloat_ = java.util.Collections.unmodifiableList(repeatedFloat_);
bitField1_ = (bitField1_ & ~0x00000010);
}
result.repeatedFloat_ = repeatedFloat_;
if (((bitField1_ & 0x00000020) == 0x00000020)) {
repeatedDouble_ = java.util.Collections.unmodifiableList(repeatedDouble_);
bitField1_ = (bitField1_ & ~0x00000020);
}
result.repeatedDouble_ = repeatedDouble_;
if (((bitField1_ & 0x00000040) == 0x00000040)) {
repeatedBool_ = java.util.Collections.unmodifiableList(repeatedBool_);
bitField1_ = (bitField1_ & ~0x00000040);
}
result.repeatedBool_ = repeatedBool_;
if (((bitField1_ & 0x00000080) == 0x00000080)) {
repeatedString_ = repeatedString_.getUnmodifiableView();
bitField1_ = (bitField1_ & ~0x00000080);
}
result.repeatedString_ = repeatedString_;
if (((bitField1_ & 0x00000100) == 0x00000100)) {
repeatedBytes_ = java.util.Collections.unmodifiableList(repeatedBytes_);
bitField1_ = (bitField1_ & ~0x00000100);
}
result.repeatedBytes_ = repeatedBytes_;
if (repeatedGroupBuilder_ == null) {
if (((bitField1_ & 0x00000200) == 0x00000200)) {
repeatedGroup_ = java.util.Collections.unmodifiableList(repeatedGroup_);
bitField1_ = (bitField1_ & ~0x00000200);
}
result.repeatedGroup_ = repeatedGroup_;
} else {
result.repeatedGroup_ = repeatedGroupBuilder_.build();
}
if (repeatedNestedMessageBuilder_ == null) {
if (((bitField1_ & 0x00000400) == 0x00000400)) {
repeatedNestedMessage_ = java.util.Collections.unmodifiableList(repeatedNestedMessage_);
bitField1_ = (bitField1_ & ~0x00000400);
}
result.repeatedNestedMessage_ = repeatedNestedMessage_;
} else {
result.repeatedNestedMessage_ = repeatedNestedMessageBuilder_.build();
}
if (repeatedForeignMessageBuilder_ == null) {
if (((bitField1_ & 0x00000800) == 0x00000800)) {
repeatedForeignMessage_ = java.util.Collections.unmodifiableList(repeatedForeignMessage_);
bitField1_ = (bitField1_ & ~0x00000800);
}
result.repeatedForeignMessage_ = repeatedForeignMessage_;
} else {
result.repeatedForeignMessage_ = repeatedForeignMessageBuilder_.build();
}
if (repeatedImportMessageBuilder_ == null) {
if (((bitField1_ & 0x00001000) == 0x00001000)) {
repeatedImportMessage_ = java.util.Collections.unmodifiableList(repeatedImportMessage_);
bitField1_ = (bitField1_ & ~0x00001000);
}
result.repeatedImportMessage_ = repeatedImportMessage_;
} else {
result.repeatedImportMessage_ = repeatedImportMessageBuilder_.build();
}
if (((bitField1_ & 0x00002000) == 0x00002000)) {
repeatedNestedEnum_ = java.util.Collections.unmodifiableList(repeatedNestedEnum_);
bitField1_ = (bitField1_ & ~0x00002000);
}
result.repeatedNestedEnum_ = repeatedNestedEnum_;
if (((bitField1_ & 0x00004000) == 0x00004000)) {
repeatedForeignEnum_ = java.util.Collections.unmodifiableList(repeatedForeignEnum_);
bitField1_ = (bitField1_ & ~0x00004000);
}
result.repeatedForeignEnum_ = repeatedForeignEnum_;
if (((bitField1_ & 0x00008000) == 0x00008000)) {
repeatedImportEnum_ = java.util.Collections.unmodifiableList(repeatedImportEnum_);
bitField1_ = (bitField1_ & ~0x00008000);
}
result.repeatedImportEnum_ = repeatedImportEnum_;
if (((bitField1_ & 0x00010000) == 0x00010000)) {
repeatedStringPiece_ = repeatedStringPiece_.getUnmodifiableView();
bitField1_ = (bitField1_ & ~0x00010000);
}
result.repeatedStringPiece_ = repeatedStringPiece_;
if (((bitField1_ & 0x00020000) == 0x00020000)) {
repeatedCord_ = repeatedCord_.getUnmodifiableView();
bitField1_ = (bitField1_ & ~0x00020000);
}
result.repeatedCord_ = repeatedCord_;
if (repeatedLazyMessageBuilder_ == null) {
if (((bitField1_ & 0x00040000) == 0x00040000)) {
repeatedLazyMessage_ = java.util.Collections.unmodifiableList(repeatedLazyMessage_);
bitField1_ = (bitField1_ & ~0x00040000);
}
result.repeatedLazyMessage_ = repeatedLazyMessage_;
} else {
result.repeatedLazyMessage_ = repeatedLazyMessageBuilder_.build();
}
if (((from_bitField1_ & 0x00080000) == 0x00080000)) {
to_bitField0_ |= 0x04000000;
}
result.defaultInt32_ = defaultInt32_;
if (((from_bitField1_ & 0x00100000) == 0x00100000)) {
to_bitField0_ |= 0x08000000;
}
result.defaultInt64_ = defaultInt64_;
if (((from_bitField1_ & 0x00200000) == 0x00200000)) {
to_bitField0_ |= 0x10000000;
}
result.defaultUint32_ = defaultUint32_;
if (((from_bitField1_ & 0x00400000) == 0x00400000)) {
to_bitField0_ |= 0x20000000;
}
result.defaultUint64_ = defaultUint64_;
if (((from_bitField1_ & 0x00800000) == 0x00800000)) {
to_bitField0_ |= 0x40000000;
}
result.defaultSint32_ = defaultSint32_;
if (((from_bitField1_ & 0x01000000) == 0x01000000)) {
to_bitField0_ |= 0x80000000;
}
result.defaultSint64_ = defaultSint64_;
if (((from_bitField1_ & 0x02000000) == 0x02000000)) {
to_bitField1_ |= 0x00000001;
}
result.defaultFixed32_ = defaultFixed32_;
if (((from_bitField1_ & 0x04000000) == 0x04000000)) {
to_bitField1_ |= 0x00000002;
}
result.defaultFixed64_ = defaultFixed64_;
if (((from_bitField1_ & 0x08000000) == 0x08000000)) {
to_bitField1_ |= 0x00000004;
}
result.defaultSfixed32_ = defaultSfixed32_;
if (((from_bitField1_ & 0x10000000) == 0x10000000)) {
to_bitField1_ |= 0x00000008;
}
result.defaultSfixed64_ = defaultSfixed64_;
if (((from_bitField1_ & 0x20000000) == 0x20000000)) {
to_bitField1_ |= 0x00000010;
}
result.defaultFloat_ = defaultFloat_;
if (((from_bitField1_ & 0x40000000) == 0x40000000)) {
to_bitField1_ |= 0x00000020;
}
result.defaultDouble_ = defaultDouble_;
if (((from_bitField1_ & 0x80000000) == 0x80000000)) {
to_bitField1_ |= 0x00000040;
}
result.defaultBool_ = defaultBool_;
if (((from_bitField2_ & 0x00000001) == 0x00000001)) {
to_bitField1_ |= 0x00000080;
}
result.defaultString_ = defaultString_;
if (((from_bitField2_ & 0x00000002) == 0x00000002)) {
to_bitField1_ |= 0x00000100;
}
result.defaultBytes_ = defaultBytes_;
if (((from_bitField2_ & 0x00000004) == 0x00000004)) {
to_bitField1_ |= 0x00000200;
}
result.defaultNestedEnum_ = defaultNestedEnum_;
if (((from_bitField2_ & 0x00000008) == 0x00000008)) {
to_bitField1_ |= 0x00000400;
}
result.defaultForeignEnum_ = defaultForeignEnum_;
if (((from_bitField2_ & 0x00000010) == 0x00000010)) {
to_bitField1_ |= 0x00000800;
}
result.defaultImportEnum_ = defaultImportEnum_;
if (((from_bitField2_ & 0x00000020) == 0x00000020)) {
to_bitField1_ |= 0x00001000;
}
result.defaultStringPiece_ = defaultStringPiece_;
if (((from_bitField2_ & 0x00000040) == 0x00000040)) {
to_bitField1_ |= 0x00002000;
}
result.defaultCord_ = defaultCord_;
if (oneofFieldCase_ == 111) {
result.oneofField_ = oneofField_;
}
if (oneofFieldCase_ == 112) {
if (oneofNestedMessageBuilder_ == null) {
result.oneofField_ = oneofField_;
} else {
result.oneofField_ = oneofNestedMessageBuilder_.build();
}
}
if (oneofFieldCase_ == 113) {
result.oneofField_ = oneofField_;
}
if (oneofFieldCase_ == 114) {
result.oneofField_ = oneofField_;
}
result.bitField0_ = to_bitField0_;
result.bitField1_ = to_bitField1_;
result.oneofFieldCase_ = oneofFieldCase_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.TestAllTypes) {
return mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.TestAllTypes other) {
if (other == protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) return this;
if (other.hasOptionalInt32()) {
setOptionalInt32(other.getOptionalInt32());
}
if (other.hasOptionalInt64()) {
setOptionalInt64(other.getOptionalInt64());
}
if (other.hasOptionalUint32()) {
setOptionalUint32(other.getOptionalUint32());
}
if (other.hasOptionalUint64()) {
setOptionalUint64(other.getOptionalUint64());
}
if (other.hasOptionalSint32()) {
setOptionalSint32(other.getOptionalSint32());
}
if (other.hasOptionalSint64()) {
setOptionalSint64(other.getOptionalSint64());
}
if (other.hasOptionalFixed32()) {
setOptionalFixed32(other.getOptionalFixed32());
}
if (other.hasOptionalFixed64()) {
setOptionalFixed64(other.getOptionalFixed64());
}
if (other.hasOptionalSfixed32()) {
setOptionalSfixed32(other.getOptionalSfixed32());
}
if (other.hasOptionalSfixed64()) {
setOptionalSfixed64(other.getOptionalSfixed64());
}
if (other.hasOptionalFloat()) {
setOptionalFloat(other.getOptionalFloat());
}
if (other.hasOptionalDouble()) {
setOptionalDouble(other.getOptionalDouble());
}
if (other.hasOptionalBool()) {
setOptionalBool(other.getOptionalBool());
}
if (other.hasOptionalString()) {
bitField0_ |= 0x00002000;
optionalString_ = other.optionalString_;
onChanged();
}
if (other.hasOptionalBytes()) {
setOptionalBytes(other.getOptionalBytes());
}
if (other.hasOptionalGroup()) {
mergeOptionalGroup(other.getOptionalGroup());
}
if (other.hasOptionalNestedMessage()) {
mergeOptionalNestedMessage(other.getOptionalNestedMessage());
}
if (other.hasOptionalForeignMessage()) {
mergeOptionalForeignMessage(other.getOptionalForeignMessage());
}
if (other.hasOptionalImportMessage()) {
mergeOptionalImportMessage(other.getOptionalImportMessage());
}
if (other.hasOptionalNestedEnum()) {
setOptionalNestedEnum(other.getOptionalNestedEnum());
}
if (other.hasOptionalForeignEnum()) {
setOptionalForeignEnum(other.getOptionalForeignEnum());
}
if (other.hasOptionalImportEnum()) {
setOptionalImportEnum(other.getOptionalImportEnum());
}
if (other.hasOptionalStringPiece()) {
bitField0_ |= 0x00400000;
optionalStringPiece_ = other.optionalStringPiece_;
onChanged();
}
if (other.hasOptionalCord()) {
bitField0_ |= 0x00800000;
optionalCord_ = other.optionalCord_;
onChanged();
}
if (other.hasOptionalPublicImportMessage()) {
mergeOptionalPublicImportMessage(other.getOptionalPublicImportMessage());
}
if (other.hasOptionalLazyMessage()) {
mergeOptionalLazyMessage(other.getOptionalLazyMessage());
}
if (!other.repeatedInt32_.isEmpty()) {
if (repeatedInt32_.isEmpty()) {
repeatedInt32_ = other.repeatedInt32_;
bitField0_ = (bitField0_ & ~0x04000000);
} else {
ensureRepeatedInt32IsMutable();
repeatedInt32_.addAll(other.repeatedInt32_);
}
onChanged();
}
if (!other.repeatedInt64_.isEmpty()) {
if (repeatedInt64_.isEmpty()) {
repeatedInt64_ = other.repeatedInt64_;
bitField0_ = (bitField0_ & ~0x08000000);
} else {
ensureRepeatedInt64IsMutable();
repeatedInt64_.addAll(other.repeatedInt64_);
}
onChanged();
}
if (!other.repeatedUint32_.isEmpty()) {
if (repeatedUint32_.isEmpty()) {
repeatedUint32_ = other.repeatedUint32_;
bitField0_ = (bitField0_ & ~0x10000000);
} else {
ensureRepeatedUint32IsMutable();
repeatedUint32_.addAll(other.repeatedUint32_);
}
onChanged();
}
if (!other.repeatedUint64_.isEmpty()) {
if (repeatedUint64_.isEmpty()) {
repeatedUint64_ = other.repeatedUint64_;
bitField0_ = (bitField0_ & ~0x20000000);
} else {
ensureRepeatedUint64IsMutable();
repeatedUint64_.addAll(other.repeatedUint64_);
}
onChanged();
}
if (!other.repeatedSint32_.isEmpty()) {
if (repeatedSint32_.isEmpty()) {
repeatedSint32_ = other.repeatedSint32_;
bitField0_ = (bitField0_ & ~0x40000000);
} else {
ensureRepeatedSint32IsMutable();
repeatedSint32_.addAll(other.repeatedSint32_);
}
onChanged();
}
if (!other.repeatedSint64_.isEmpty()) {
if (repeatedSint64_.isEmpty()) {
repeatedSint64_ = other.repeatedSint64_;
bitField0_ = (bitField0_ & ~0x80000000);
} else {
ensureRepeatedSint64IsMutable();
repeatedSint64_.addAll(other.repeatedSint64_);
}
onChanged();
}
if (!other.repeatedFixed32_.isEmpty()) {
if (repeatedFixed32_.isEmpty()) {
repeatedFixed32_ = other.repeatedFixed32_;
bitField1_ = (bitField1_ & ~0x00000001);
} else {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.addAll(other.repeatedFixed32_);
}
onChanged();
}
if (!other.repeatedFixed64_.isEmpty()) {
if (repeatedFixed64_.isEmpty()) {
repeatedFixed64_ = other.repeatedFixed64_;
bitField1_ = (bitField1_ & ~0x00000002);
} else {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.addAll(other.repeatedFixed64_);
}
onChanged();
}
if (!other.repeatedSfixed32_.isEmpty()) {
if (repeatedSfixed32_.isEmpty()) {
repeatedSfixed32_ = other.repeatedSfixed32_;
bitField1_ = (bitField1_ & ~0x00000004);
} else {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.addAll(other.repeatedSfixed32_);
}
onChanged();
}
if (!other.repeatedSfixed64_.isEmpty()) {
if (repeatedSfixed64_.isEmpty()) {
repeatedSfixed64_ = other.repeatedSfixed64_;
bitField1_ = (bitField1_ & ~0x00000008);
} else {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.addAll(other.repeatedSfixed64_);
}
onChanged();
}
if (!other.repeatedFloat_.isEmpty()) {
if (repeatedFloat_.isEmpty()) {
repeatedFloat_ = other.repeatedFloat_;
bitField1_ = (bitField1_ & ~0x00000010);
} else {
ensureRepeatedFloatIsMutable();
repeatedFloat_.addAll(other.repeatedFloat_);
}
onChanged();
}
if (!other.repeatedDouble_.isEmpty()) {
if (repeatedDouble_.isEmpty()) {
repeatedDouble_ = other.repeatedDouble_;
bitField1_ = (bitField1_ & ~0x00000020);
} else {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.addAll(other.repeatedDouble_);
}
onChanged();
}
if (!other.repeatedBool_.isEmpty()) {
if (repeatedBool_.isEmpty()) {
repeatedBool_ = other.repeatedBool_;
bitField1_ = (bitField1_ & ~0x00000040);
} else {
ensureRepeatedBoolIsMutable();
repeatedBool_.addAll(other.repeatedBool_);
}
onChanged();
}
if (!other.repeatedString_.isEmpty()) {
if (repeatedString_.isEmpty()) {
repeatedString_ = other.repeatedString_;
bitField1_ = (bitField1_ & ~0x00000080);
} else {
ensureRepeatedStringIsMutable();
repeatedString_.addAll(other.repeatedString_);
}
onChanged();
}
if (!other.repeatedBytes_.isEmpty()) {
if (repeatedBytes_.isEmpty()) {
repeatedBytes_ = other.repeatedBytes_;
bitField1_ = (bitField1_ & ~0x00000100);
} else {
ensureRepeatedBytesIsMutable();
repeatedBytes_.addAll(other.repeatedBytes_);
}
onChanged();
}
if (repeatedGroupBuilder_ == null) {
if (!other.repeatedGroup_.isEmpty()) {
if (repeatedGroup_.isEmpty()) {
repeatedGroup_ = other.repeatedGroup_;
bitField1_ = (bitField1_ & ~0x00000200);
} else {
ensureRepeatedGroupIsMutable();
repeatedGroup_.addAll(other.repeatedGroup_);
}
onChanged();
}
} else {
if (!other.repeatedGroup_.isEmpty()) {
if (repeatedGroupBuilder_.isEmpty()) {
repeatedGroupBuilder_.dispose();
repeatedGroupBuilder_ = null;
repeatedGroup_ = other.repeatedGroup_;
bitField1_ = (bitField1_ & ~0x00000200);
repeatedGroupBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRepeatedGroupFieldBuilder() : null;
} else {
repeatedGroupBuilder_.addAllMessages(other.repeatedGroup_);
}
}
}
if (repeatedNestedMessageBuilder_ == null) {
if (!other.repeatedNestedMessage_.isEmpty()) {
if (repeatedNestedMessage_.isEmpty()) {
repeatedNestedMessage_ = other.repeatedNestedMessage_;
bitField1_ = (bitField1_ & ~0x00000400);
} else {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.addAll(other.repeatedNestedMessage_);
}
onChanged();
}
} else {
if (!other.repeatedNestedMessage_.isEmpty()) {
if (repeatedNestedMessageBuilder_.isEmpty()) {
repeatedNestedMessageBuilder_.dispose();
repeatedNestedMessageBuilder_ = null;
repeatedNestedMessage_ = other.repeatedNestedMessage_;
bitField1_ = (bitField1_ & ~0x00000400);
repeatedNestedMessageBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRepeatedNestedMessageFieldBuilder() : null;
} else {
repeatedNestedMessageBuilder_.addAllMessages(other.repeatedNestedMessage_);
}
}
}
if (repeatedForeignMessageBuilder_ == null) {
if (!other.repeatedForeignMessage_.isEmpty()) {
if (repeatedForeignMessage_.isEmpty()) {
repeatedForeignMessage_ = other.repeatedForeignMessage_;
bitField1_ = (bitField1_ & ~0x00000800);
} else {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.addAll(other.repeatedForeignMessage_);
}
onChanged();
}
} else {
if (!other.repeatedForeignMessage_.isEmpty()) {
if (repeatedForeignMessageBuilder_.isEmpty()) {
repeatedForeignMessageBuilder_.dispose();
repeatedForeignMessageBuilder_ = null;
repeatedForeignMessage_ = other.repeatedForeignMessage_;
bitField1_ = (bitField1_ & ~0x00000800);
repeatedForeignMessageBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRepeatedForeignMessageFieldBuilder() : null;
} else {
repeatedForeignMessageBuilder_.addAllMessages(other.repeatedForeignMessage_);
}
}
}
if (repeatedImportMessageBuilder_ == null) {
if (!other.repeatedImportMessage_.isEmpty()) {
if (repeatedImportMessage_.isEmpty()) {
repeatedImportMessage_ = other.repeatedImportMessage_;
bitField1_ = (bitField1_ & ~0x00001000);
} else {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.addAll(other.repeatedImportMessage_);
}
onChanged();
}
} else {
if (!other.repeatedImportMessage_.isEmpty()) {
if (repeatedImportMessageBuilder_.isEmpty()) {
repeatedImportMessageBuilder_.dispose();
repeatedImportMessageBuilder_ = null;
repeatedImportMessage_ = other.repeatedImportMessage_;
bitField1_ = (bitField1_ & ~0x00001000);
repeatedImportMessageBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRepeatedImportMessageFieldBuilder() : null;
} else {
repeatedImportMessageBuilder_.addAllMessages(other.repeatedImportMessage_);
}
}
}
if (!other.repeatedNestedEnum_.isEmpty()) {
if (repeatedNestedEnum_.isEmpty()) {
repeatedNestedEnum_ = other.repeatedNestedEnum_;
bitField1_ = (bitField1_ & ~0x00002000);
} else {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.addAll(other.repeatedNestedEnum_);
}
onChanged();
}
if (!other.repeatedForeignEnum_.isEmpty()) {
if (repeatedForeignEnum_.isEmpty()) {
repeatedForeignEnum_ = other.repeatedForeignEnum_;
bitField1_ = (bitField1_ & ~0x00004000);
} else {
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.addAll(other.repeatedForeignEnum_);
}
onChanged();
}
if (!other.repeatedImportEnum_.isEmpty()) {
if (repeatedImportEnum_.isEmpty()) {
repeatedImportEnum_ = other.repeatedImportEnum_;
bitField1_ = (bitField1_ & ~0x00008000);
} else {
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.addAll(other.repeatedImportEnum_);
}
onChanged();
}
if (!other.repeatedStringPiece_.isEmpty()) {
if (repeatedStringPiece_.isEmpty()) {
repeatedStringPiece_ = other.repeatedStringPiece_;
bitField1_ = (bitField1_ & ~0x00010000);
} else {
ensureRepeatedStringPieceIsMutable();
repeatedStringPiece_.addAll(other.repeatedStringPiece_);
}
onChanged();
}
if (!other.repeatedCord_.isEmpty()) {
if (repeatedCord_.isEmpty()) {
repeatedCord_ = other.repeatedCord_;
bitField1_ = (bitField1_ & ~0x00020000);
} else {
ensureRepeatedCordIsMutable();
repeatedCord_.addAll(other.repeatedCord_);
}
onChanged();
}
if (repeatedLazyMessageBuilder_ == null) {
if (!other.repeatedLazyMessage_.isEmpty()) {
if (repeatedLazyMessage_.isEmpty()) {
repeatedLazyMessage_ = other.repeatedLazyMessage_;
bitField1_ = (bitField1_ & ~0x00040000);
} else {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.addAll(other.repeatedLazyMessage_);
}
onChanged();
}
} else {
if (!other.repeatedLazyMessage_.isEmpty()) {
if (repeatedLazyMessageBuilder_.isEmpty()) {
repeatedLazyMessageBuilder_.dispose();
repeatedLazyMessageBuilder_ = null;
repeatedLazyMessage_ = other.repeatedLazyMessage_;
bitField1_ = (bitField1_ & ~0x00040000);
repeatedLazyMessageBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRepeatedLazyMessageFieldBuilder() : null;
} else {
repeatedLazyMessageBuilder_.addAllMessages(other.repeatedLazyMessage_);
}
}
}
if (other.hasDefaultInt32()) {
setDefaultInt32(other.getDefaultInt32());
}
if (other.hasDefaultInt64()) {
setDefaultInt64(other.getDefaultInt64());
}
if (other.hasDefaultUint32()) {
setDefaultUint32(other.getDefaultUint32());
}
if (other.hasDefaultUint64()) {
setDefaultUint64(other.getDefaultUint64());
}
if (other.hasDefaultSint32()) {
setDefaultSint32(other.getDefaultSint32());
}
if (other.hasDefaultSint64()) {
setDefaultSint64(other.getDefaultSint64());
}
if (other.hasDefaultFixed32()) {
setDefaultFixed32(other.getDefaultFixed32());
}
if (other.hasDefaultFixed64()) {
setDefaultFixed64(other.getDefaultFixed64());
}
if (other.hasDefaultSfixed32()) {
setDefaultSfixed32(other.getDefaultSfixed32());
}
if (other.hasDefaultSfixed64()) {
setDefaultSfixed64(other.getDefaultSfixed64());
}
if (other.hasDefaultFloat()) {
setDefaultFloat(other.getDefaultFloat());
}
if (other.hasDefaultDouble()) {
setDefaultDouble(other.getDefaultDouble());
}
if (other.hasDefaultBool()) {
setDefaultBool(other.getDefaultBool());
}
if (other.hasDefaultString()) {
bitField2_ |= 0x00000001;
defaultString_ = other.defaultString_;
onChanged();
}
if (other.hasDefaultBytes()) {
setDefaultBytes(other.getDefaultBytes());
}
if (other.hasDefaultNestedEnum()) {
setDefaultNestedEnum(other.getDefaultNestedEnum());
}
if (other.hasDefaultForeignEnum()) {
setDefaultForeignEnum(other.getDefaultForeignEnum());
}
if (other.hasDefaultImportEnum()) {
setDefaultImportEnum(other.getDefaultImportEnum());
}
if (other.hasDefaultStringPiece()) {
bitField2_ |= 0x00000020;
defaultStringPiece_ = other.defaultStringPiece_;
onChanged();
}
if (other.hasDefaultCord()) {
bitField2_ |= 0x00000040;
defaultCord_ = other.defaultCord_;
onChanged();
}
switch (other.getOneofFieldCase()) {
case ONEOF_UINT32: {
setOneofUint32(other.getOneofUint32());
break;
}
case ONEOF_NESTED_MESSAGE: {
mergeOneofNestedMessage(other.getOneofNestedMessage());
break;
}
case ONEOF_STRING: {
oneofFieldCase_ = 113;
oneofField_ = other.oneofField_;
onChanged();
break;
}
case ONEOF_BYTES: {
setOneofBytes(other.getOneofBytes());
break;
}
case ONEOFFIELD_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.TestAllTypes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.TestAllTypes) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int oneofFieldCase_ = 0;
private java.lang.Object oneofField_;
public OneofFieldCase
getOneofFieldCase() {
return OneofFieldCase.valueOf(
oneofFieldCase_);
}
public Builder clearOneofField() {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
return this;
}
private int bitField0_;
private int bitField1_;
private int bitField2_;
private int optionalInt32_ ;
/**
* optional int32 optional_int32 = 1;
*
*
* Singular
*
*/
public boolean hasOptionalInt32() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 optional_int32 = 1;
*
*
* Singular
*
*/
public int getOptionalInt32() {
return optionalInt32_;
}
/**
* optional int32 optional_int32 = 1;
*
*
* Singular
*
*/
public Builder setOptionalInt32(int value) {
bitField0_ |= 0x00000001;
optionalInt32_ = value;
onChanged();
return this;
}
/**
* optional int32 optional_int32 = 1;
*
*
* Singular
*
*/
public Builder clearOptionalInt32() {
bitField0_ = (bitField0_ & ~0x00000001);
optionalInt32_ = 0;
onChanged();
return this;
}
private long optionalInt64_ ;
/**
* optional int64 optional_int64 = 2;
*/
public boolean hasOptionalInt64() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 optional_int64 = 2;
*/
public long getOptionalInt64() {
return optionalInt64_;
}
/**
* optional int64 optional_int64 = 2;
*/
public Builder setOptionalInt64(long value) {
bitField0_ |= 0x00000002;
optionalInt64_ = value;
onChanged();
return this;
}
/**
* optional int64 optional_int64 = 2;
*/
public Builder clearOptionalInt64() {
bitField0_ = (bitField0_ & ~0x00000002);
optionalInt64_ = 0L;
onChanged();
return this;
}
private int optionalUint32_ ;
/**
* optional uint32 optional_uint32 = 3;
*/
public boolean hasOptionalUint32() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 optional_uint32 = 3;
*/
public int getOptionalUint32() {
return optionalUint32_;
}
/**
* optional uint32 optional_uint32 = 3;
*/
public Builder setOptionalUint32(int value) {
bitField0_ |= 0x00000004;
optionalUint32_ = value;
onChanged();
return this;
}
/**
* optional uint32 optional_uint32 = 3;
*/
public Builder clearOptionalUint32() {
bitField0_ = (bitField0_ & ~0x00000004);
optionalUint32_ = 0;
onChanged();
return this;
}
private long optionalUint64_ ;
/**
* optional uint64 optional_uint64 = 4;
*/
public boolean hasOptionalUint64() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint64 optional_uint64 = 4;
*/
public long getOptionalUint64() {
return optionalUint64_;
}
/**
* optional uint64 optional_uint64 = 4;
*/
public Builder setOptionalUint64(long value) {
bitField0_ |= 0x00000008;
optionalUint64_ = value;
onChanged();
return this;
}
/**
* optional uint64 optional_uint64 = 4;
*/
public Builder clearOptionalUint64() {
bitField0_ = (bitField0_ & ~0x00000008);
optionalUint64_ = 0L;
onChanged();
return this;
}
private int optionalSint32_ ;
/**
* optional sint32 optional_sint32 = 5;
*/
public boolean hasOptionalSint32() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional sint32 optional_sint32 = 5;
*/
public int getOptionalSint32() {
return optionalSint32_;
}
/**
* optional sint32 optional_sint32 = 5;
*/
public Builder setOptionalSint32(int value) {
bitField0_ |= 0x00000010;
optionalSint32_ = value;
onChanged();
return this;
}
/**
* optional sint32 optional_sint32 = 5;
*/
public Builder clearOptionalSint32() {
bitField0_ = (bitField0_ & ~0x00000010);
optionalSint32_ = 0;
onChanged();
return this;
}
private long optionalSint64_ ;
/**
* optional sint64 optional_sint64 = 6;
*/
public boolean hasOptionalSint64() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional sint64 optional_sint64 = 6;
*/
public long getOptionalSint64() {
return optionalSint64_;
}
/**
* optional sint64 optional_sint64 = 6;
*/
public Builder setOptionalSint64(long value) {
bitField0_ |= 0x00000020;
optionalSint64_ = value;
onChanged();
return this;
}
/**
* optional sint64 optional_sint64 = 6;
*/
public Builder clearOptionalSint64() {
bitField0_ = (bitField0_ & ~0x00000020);
optionalSint64_ = 0L;
onChanged();
return this;
}
private int optionalFixed32_ ;
/**
* optional fixed32 optional_fixed32 = 7;
*/
public boolean hasOptionalFixed32() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional fixed32 optional_fixed32 = 7;
*/
public int getOptionalFixed32() {
return optionalFixed32_;
}
/**
* optional fixed32 optional_fixed32 = 7;
*/
public Builder setOptionalFixed32(int value) {
bitField0_ |= 0x00000040;
optionalFixed32_ = value;
onChanged();
return this;
}
/**
* optional fixed32 optional_fixed32 = 7;
*/
public Builder clearOptionalFixed32() {
bitField0_ = (bitField0_ & ~0x00000040);
optionalFixed32_ = 0;
onChanged();
return this;
}
private long optionalFixed64_ ;
/**
* optional fixed64 optional_fixed64 = 8;
*/
public boolean hasOptionalFixed64() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional fixed64 optional_fixed64 = 8;
*/
public long getOptionalFixed64() {
return optionalFixed64_;
}
/**
* optional fixed64 optional_fixed64 = 8;
*/
public Builder setOptionalFixed64(long value) {
bitField0_ |= 0x00000080;
optionalFixed64_ = value;
onChanged();
return this;
}
/**
* optional fixed64 optional_fixed64 = 8;
*/
public Builder clearOptionalFixed64() {
bitField0_ = (bitField0_ & ~0x00000080);
optionalFixed64_ = 0L;
onChanged();
return this;
}
private int optionalSfixed32_ ;
/**
* optional sfixed32 optional_sfixed32 = 9;
*/
public boolean hasOptionalSfixed32() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional sfixed32 optional_sfixed32 = 9;
*/
public int getOptionalSfixed32() {
return optionalSfixed32_;
}
/**
* optional sfixed32 optional_sfixed32 = 9;
*/
public Builder setOptionalSfixed32(int value) {
bitField0_ |= 0x00000100;
optionalSfixed32_ = value;
onChanged();
return this;
}
/**
* optional sfixed32 optional_sfixed32 = 9;
*/
public Builder clearOptionalSfixed32() {
bitField0_ = (bitField0_ & ~0x00000100);
optionalSfixed32_ = 0;
onChanged();
return this;
}
private long optionalSfixed64_ ;
/**
* optional sfixed64 optional_sfixed64 = 10;
*/
public boolean hasOptionalSfixed64() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional sfixed64 optional_sfixed64 = 10;
*/
public long getOptionalSfixed64() {
return optionalSfixed64_;
}
/**
* optional sfixed64 optional_sfixed64 = 10;
*/
public Builder setOptionalSfixed64(long value) {
bitField0_ |= 0x00000200;
optionalSfixed64_ = value;
onChanged();
return this;
}
/**
* optional sfixed64 optional_sfixed64 = 10;
*/
public Builder clearOptionalSfixed64() {
bitField0_ = (bitField0_ & ~0x00000200);
optionalSfixed64_ = 0L;
onChanged();
return this;
}
private float optionalFloat_ ;
/**
* optional float optional_float = 11;
*/
public boolean hasOptionalFloat() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional float optional_float = 11;
*/
public float getOptionalFloat() {
return optionalFloat_;
}
/**
* optional float optional_float = 11;
*/
public Builder setOptionalFloat(float value) {
bitField0_ |= 0x00000400;
optionalFloat_ = value;
onChanged();
return this;
}
/**
* optional float optional_float = 11;
*/
public Builder clearOptionalFloat() {
bitField0_ = (bitField0_ & ~0x00000400);
optionalFloat_ = 0F;
onChanged();
return this;
}
private double optionalDouble_ ;
/**
* optional double optional_double = 12;
*/
public boolean hasOptionalDouble() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional double optional_double = 12;
*/
public double getOptionalDouble() {
return optionalDouble_;
}
/**
* optional double optional_double = 12;
*/
public Builder setOptionalDouble(double value) {
bitField0_ |= 0x00000800;
optionalDouble_ = value;
onChanged();
return this;
}
/**
* optional double optional_double = 12;
*/
public Builder clearOptionalDouble() {
bitField0_ = (bitField0_ & ~0x00000800);
optionalDouble_ = 0D;
onChanged();
return this;
}
private boolean optionalBool_ ;
/**
* optional bool optional_bool = 13;
*/
public boolean hasOptionalBool() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional bool optional_bool = 13;
*/
public boolean getOptionalBool() {
return optionalBool_;
}
/**
* optional bool optional_bool = 13;
*/
public Builder setOptionalBool(boolean value) {
bitField0_ |= 0x00001000;
optionalBool_ = value;
onChanged();
return this;
}
/**
* optional bool optional_bool = 13;
*/
public Builder clearOptionalBool() {
bitField0_ = (bitField0_ & ~0x00001000);
optionalBool_ = false;
onChanged();
return this;
}
private java.lang.Object optionalString_ = "";
/**
* optional string optional_string = 14;
*/
public boolean hasOptionalString() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional string optional_string = 14;
*/
public java.lang.String getOptionalString() {
java.lang.Object ref = optionalString_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
optionalString_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string optional_string = 14;
*/
public com.google.protobuf.ByteString
getOptionalStringBytes() {
java.lang.Object ref = optionalString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
optionalString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string optional_string = 14;
*/
public Builder setOptionalString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
optionalString_ = value;
onChanged();
return this;
}
/**
* optional string optional_string = 14;
*/
public Builder clearOptionalString() {
bitField0_ = (bitField0_ & ~0x00002000);
optionalString_ = getDefaultInstance().getOptionalString();
onChanged();
return this;
}
/**
* optional string optional_string = 14;
*/
public Builder setOptionalStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
optionalString_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes optional_bytes = 15;
*/
public boolean hasOptionalBytes() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional bytes optional_bytes = 15;
*/
public com.google.protobuf.ByteString getOptionalBytes() {
return optionalBytes_;
}
/**
* optional bytes optional_bytes = 15;
*/
public Builder setOptionalBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
optionalBytes_ = value;
onChanged();
return this;
}
/**
* optional bytes optional_bytes = 15;
*/
public Builder clearOptionalBytes() {
bitField0_ = (bitField0_ & ~0x00004000);
optionalBytes_ = getDefaultInstance().getOptionalBytes();
onChanged();
return this;
}
private protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup optionalGroup_ = protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder> optionalGroupBuilder_;
/**
* optional group OptionalGroup = 16 { ... }
*/
public boolean hasOptionalGroup() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup getOptionalGroup() {
if (optionalGroupBuilder_ == null) {
return optionalGroup_;
} else {
return optionalGroupBuilder_.getMessage();
}
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder setOptionalGroup(protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup value) {
if (optionalGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalGroup_ = value;
onChanged();
} else {
optionalGroupBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder setOptionalGroup(
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder builderForValue) {
if (optionalGroupBuilder_ == null) {
optionalGroup_ = builderForValue.build();
onChanged();
} else {
optionalGroupBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder mergeOptionalGroup(protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup value) {
if (optionalGroupBuilder_ == null) {
if (((bitField0_ & 0x00008000) == 0x00008000) &&
optionalGroup_ != protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance()) {
optionalGroup_ =
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.newBuilder(optionalGroup_).mergeFrom(value).buildPartial();
} else {
optionalGroup_ = value;
}
onChanged();
} else {
optionalGroupBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00008000;
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder clearOptionalGroup() {
if (optionalGroupBuilder_ == null) {
optionalGroup_ = protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance();
onChanged();
} else {
optionalGroupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder getOptionalGroupBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getOptionalGroupFieldBuilder().getBuilder();
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder getOptionalGroupOrBuilder() {
if (optionalGroupBuilder_ != null) {
return optionalGroupBuilder_.getMessageOrBuilder();
} else {
return optionalGroup_;
}
}
/**
* optional group OptionalGroup = 16 { ... }
*/
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder>
getOptionalGroupFieldBuilder() {
if (optionalGroupBuilder_ == null) {
optionalGroupBuilder_ = new com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder>(
getOptionalGroup(),
getParentForChildren(),
isClean());
optionalGroup_ = null;
}
return optionalGroupBuilder_;
}
private protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> optionalNestedMessageBuilder_;
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public boolean hasOptionalNestedMessage() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalNestedMessage() {
if (optionalNestedMessageBuilder_ == null) {
return optionalNestedMessage_;
} else {
return optionalNestedMessageBuilder_.getMessage();
}
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public Builder setOptionalNestedMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (optionalNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalNestedMessage_ = value;
onChanged();
} else {
optionalNestedMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00010000;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public Builder setOptionalNestedMessage(
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (optionalNestedMessageBuilder_ == null) {
optionalNestedMessage_ = builderForValue.build();
onChanged();
} else {
optionalNestedMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00010000;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public Builder mergeOptionalNestedMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (optionalNestedMessageBuilder_ == null) {
if (((bitField0_ & 0x00010000) == 0x00010000) &&
optionalNestedMessage_ != protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()) {
optionalNestedMessage_ =
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.newBuilder(optionalNestedMessage_).mergeFrom(value).buildPartial();
} else {
optionalNestedMessage_ = value;
}
onChanged();
} else {
optionalNestedMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00010000;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public Builder clearOptionalNestedMessage() {
if (optionalNestedMessageBuilder_ == null) {
optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
onChanged();
} else {
optionalNestedMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00010000);
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getOptionalNestedMessageBuilder() {
bitField0_ |= 0x00010000;
onChanged();
return getOptionalNestedMessageFieldBuilder().getBuilder();
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() {
if (optionalNestedMessageBuilder_ != null) {
return optionalNestedMessageBuilder_.getMessageOrBuilder();
} else {
return optionalNestedMessage_;
}
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
*/
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getOptionalNestedMessageFieldBuilder() {
if (optionalNestedMessageBuilder_ == null) {
optionalNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>(
getOptionalNestedMessage(),
getParentForChildren(),
isClean());
optionalNestedMessage_ = null;
}
return optionalNestedMessageBuilder_;
}
private protobuf_unittest.UnittestProto.ForeignMessage optionalForeignMessage_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> optionalForeignMessageBuilder_;
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public boolean hasOptionalForeignMessage() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public protobuf_unittest.UnittestProto.ForeignMessage getOptionalForeignMessage() {
if (optionalForeignMessageBuilder_ == null) {
return optionalForeignMessage_;
} else {
return optionalForeignMessageBuilder_.getMessage();
}
}
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public Builder setOptionalForeignMessage(protobuf_unittest.UnittestProto.ForeignMessage value) {
if (optionalForeignMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalForeignMessage_ = value;
onChanged();
} else {
optionalForeignMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00020000;
return this;
}
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public Builder setOptionalForeignMessage(
protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) {
if (optionalForeignMessageBuilder_ == null) {
optionalForeignMessage_ = builderForValue.build();
onChanged();
} else {
optionalForeignMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00020000;
return this;
}
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public Builder mergeOptionalForeignMessage(protobuf_unittest.UnittestProto.ForeignMessage value) {
if (optionalForeignMessageBuilder_ == null) {
if (((bitField0_ & 0x00020000) == 0x00020000) &&
optionalForeignMessage_ != protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()) {
optionalForeignMessage_ =
protobuf_unittest.UnittestProto.ForeignMessage.newBuilder(optionalForeignMessage_).mergeFrom(value).buildPartial();
} else {
optionalForeignMessage_ = value;
}
onChanged();
} else {
optionalForeignMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00020000;
return this;
}
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public Builder clearOptionalForeignMessage() {
if (optionalForeignMessageBuilder_ == null) {
optionalForeignMessage_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance();
onChanged();
} else {
optionalForeignMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00020000);
return this;
}
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public protobuf_unittest.UnittestProto.ForeignMessage.Builder getOptionalForeignMessageBuilder() {
bitField0_ |= 0x00020000;
onChanged();
return getOptionalForeignMessageFieldBuilder().getBuilder();
}
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getOptionalForeignMessageOrBuilder() {
if (optionalForeignMessageBuilder_ != null) {
return optionalForeignMessageBuilder_.getMessageOrBuilder();
} else {
return optionalForeignMessage_;
}
}
/**
* optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
*/
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>
getOptionalForeignMessageFieldBuilder() {
if (optionalForeignMessageBuilder_ == null) {
optionalForeignMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>(
getOptionalForeignMessage(),
getParentForChildren(),
isClean());
optionalForeignMessage_ = null;
}
return optionalForeignMessageBuilder_;
}
private com.google.protobuf.test.UnittestImport.ImportMessage optionalImportMessage_ = com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder> optionalImportMessageBuilder_;
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public boolean hasOptionalImportMessage() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public com.google.protobuf.test.UnittestImport.ImportMessage getOptionalImportMessage() {
if (optionalImportMessageBuilder_ == null) {
return optionalImportMessage_;
} else {
return optionalImportMessageBuilder_.getMessage();
}
}
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public Builder setOptionalImportMessage(com.google.protobuf.test.UnittestImport.ImportMessage value) {
if (optionalImportMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalImportMessage_ = value;
onChanged();
} else {
optionalImportMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public Builder setOptionalImportMessage(
com.google.protobuf.test.UnittestImport.ImportMessage.Builder builderForValue) {
if (optionalImportMessageBuilder_ == null) {
optionalImportMessage_ = builderForValue.build();
onChanged();
} else {
optionalImportMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public Builder mergeOptionalImportMessage(com.google.protobuf.test.UnittestImport.ImportMessage value) {
if (optionalImportMessageBuilder_ == null) {
if (((bitField0_ & 0x00040000) == 0x00040000) &&
optionalImportMessage_ != com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance()) {
optionalImportMessage_ =
com.google.protobuf.test.UnittestImport.ImportMessage.newBuilder(optionalImportMessage_).mergeFrom(value).buildPartial();
} else {
optionalImportMessage_ = value;
}
onChanged();
} else {
optionalImportMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public Builder clearOptionalImportMessage() {
if (optionalImportMessageBuilder_ == null) {
optionalImportMessage_ = com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance();
onChanged();
} else {
optionalImportMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00040000);
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public com.google.protobuf.test.UnittestImport.ImportMessage.Builder getOptionalImportMessageBuilder() {
bitField0_ |= 0x00040000;
onChanged();
return getOptionalImportMessageFieldBuilder().getBuilder();
}
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
public com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getOptionalImportMessageOrBuilder() {
if (optionalImportMessageBuilder_ != null) {
return optionalImportMessageBuilder_.getMessageOrBuilder();
} else {
return optionalImportMessage_;
}
}
/**
* optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder>
getOptionalImportMessageFieldBuilder() {
if (optionalImportMessageBuilder_ == null) {
optionalImportMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder>(
getOptionalImportMessage(),
getParentForChildren(),
isClean());
optionalImportMessage_ = null;
}
return optionalImportMessageBuilder_;
}
private protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum optionalNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.FOO;
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
*/
public boolean hasOptionalNestedEnum() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getOptionalNestedEnum() {
return optionalNestedEnum_;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
*/
public Builder setOptionalNestedEnum(protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00080000;
optionalNestedEnum_ = value;
onChanged();
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
*/
public Builder clearOptionalNestedEnum() {
bitField0_ = (bitField0_ & ~0x00080000);
optionalNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.FOO;
onChanged();
return this;
}
private protobuf_unittest.UnittestProto.ForeignEnum optionalForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO;
/**
* optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
*/
public boolean hasOptionalForeignEnum() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
* optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
*/
public protobuf_unittest.UnittestProto.ForeignEnum getOptionalForeignEnum() {
return optionalForeignEnum_;
}
/**
* optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
*/
public Builder setOptionalForeignEnum(protobuf_unittest.UnittestProto.ForeignEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00100000;
optionalForeignEnum_ = value;
onChanged();
return this;
}
/**
* optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
*/
public Builder clearOptionalForeignEnum() {
bitField0_ = (bitField0_ & ~0x00100000);
optionalForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO;
onChanged();
return this;
}
private com.google.protobuf.test.UnittestImport.ImportEnum optionalImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_FOO;
/**
* optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
*/
public boolean hasOptionalImportEnum() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
*/
public com.google.protobuf.test.UnittestImport.ImportEnum getOptionalImportEnum() {
return optionalImportEnum_;
}
/**
* optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
*/
public Builder setOptionalImportEnum(com.google.protobuf.test.UnittestImport.ImportEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00200000;
optionalImportEnum_ = value;
onChanged();
return this;
}
/**
* optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
*/
public Builder clearOptionalImportEnum() {
bitField0_ = (bitField0_ & ~0x00200000);
optionalImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_FOO;
onChanged();
return this;
}
private java.lang.Object optionalStringPiece_ = "";
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
public boolean hasOptionalStringPiece() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
public java.lang.String getOptionalStringPiece() {
java.lang.Object ref = optionalStringPiece_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
optionalStringPiece_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
public com.google.protobuf.ByteString
getOptionalStringPieceBytes() {
java.lang.Object ref = optionalStringPiece_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
optionalStringPiece_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
public Builder setOptionalStringPiece(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00400000;
optionalStringPiece_ = value;
onChanged();
return this;
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
public Builder clearOptionalStringPiece() {
bitField0_ = (bitField0_ & ~0x00400000);
optionalStringPiece_ = getDefaultInstance().getOptionalStringPiece();
onChanged();
return this;
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
public Builder setOptionalStringPieceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00400000;
optionalStringPiece_ = value;
onChanged();
return this;
}
private java.lang.Object optionalCord_ = "";
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
public boolean hasOptionalCord() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
public java.lang.String getOptionalCord() {
java.lang.Object ref = optionalCord_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
optionalCord_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
public com.google.protobuf.ByteString
getOptionalCordBytes() {
java.lang.Object ref = optionalCord_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
optionalCord_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
public Builder setOptionalCord(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00800000;
optionalCord_ = value;
onChanged();
return this;
}
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
public Builder clearOptionalCord() {
bitField0_ = (bitField0_ & ~0x00800000);
optionalCord_ = getDefaultInstance().getOptionalCord();
onChanged();
return this;
}
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
public Builder setOptionalCordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00800000;
optionalCord_ = value;
onChanged();
return this;
}
private com.google.protobuf.test.UnittestImportPublic.PublicImportMessage optionalPublicImportMessage_ = com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage, com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder, com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder> optionalPublicImportMessageBuilder_;
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public boolean hasOptionalPublicImportMessage() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public com.google.protobuf.test.UnittestImportPublic.PublicImportMessage getOptionalPublicImportMessage() {
if (optionalPublicImportMessageBuilder_ == null) {
return optionalPublicImportMessage_;
} else {
return optionalPublicImportMessageBuilder_.getMessage();
}
}
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public Builder setOptionalPublicImportMessage(com.google.protobuf.test.UnittestImportPublic.PublicImportMessage value) {
if (optionalPublicImportMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalPublicImportMessage_ = value;
onChanged();
} else {
optionalPublicImportMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x01000000;
return this;
}
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public Builder setOptionalPublicImportMessage(
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder builderForValue) {
if (optionalPublicImportMessageBuilder_ == null) {
optionalPublicImportMessage_ = builderForValue.build();
onChanged();
} else {
optionalPublicImportMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x01000000;
return this;
}
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public Builder mergeOptionalPublicImportMessage(com.google.protobuf.test.UnittestImportPublic.PublicImportMessage value) {
if (optionalPublicImportMessageBuilder_ == null) {
if (((bitField0_ & 0x01000000) == 0x01000000) &&
optionalPublicImportMessage_ != com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance()) {
optionalPublicImportMessage_ =
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.newBuilder(optionalPublicImportMessage_).mergeFrom(value).buildPartial();
} else {
optionalPublicImportMessage_ = value;
}
onChanged();
} else {
optionalPublicImportMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x01000000;
return this;
}
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public Builder clearOptionalPublicImportMessage() {
if (optionalPublicImportMessageBuilder_ == null) {
optionalPublicImportMessage_ = com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance();
onChanged();
} else {
optionalPublicImportMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x01000000);
return this;
}
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder getOptionalPublicImportMessageBuilder() {
bitField0_ |= 0x01000000;
onChanged();
return getOptionalPublicImportMessageFieldBuilder().getBuilder();
}
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder getOptionalPublicImportMessageOrBuilder() {
if (optionalPublicImportMessageBuilder_ != null) {
return optionalPublicImportMessageBuilder_.getMessageOrBuilder();
} else {
return optionalPublicImportMessage_;
}
}
/**
* optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage, com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder, com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder>
getOptionalPublicImportMessageFieldBuilder() {
if (optionalPublicImportMessageBuilder_ == null) {
optionalPublicImportMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage, com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder, com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder>(
getOptionalPublicImportMessage(),
getParentForChildren(),
isClean());
optionalPublicImportMessage_ = null;
}
return optionalPublicImportMessageBuilder_;
}
private protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage optionalLazyMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> optionalLazyMessageBuilder_;
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public boolean hasOptionalLazyMessage() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalLazyMessage() {
if (optionalLazyMessageBuilder_ == null) {
return optionalLazyMessage_;
} else {
return optionalLazyMessageBuilder_.getMessage();
}
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder setOptionalLazyMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (optionalLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalLazyMessage_ = value;
onChanged();
} else {
optionalLazyMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x02000000;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder setOptionalLazyMessage(
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (optionalLazyMessageBuilder_ == null) {
optionalLazyMessage_ = builderForValue.build();
onChanged();
} else {
optionalLazyMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x02000000;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder mergeOptionalLazyMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (optionalLazyMessageBuilder_ == null) {
if (((bitField0_ & 0x02000000) == 0x02000000) &&
optionalLazyMessage_ != protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()) {
optionalLazyMessage_ =
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.newBuilder(optionalLazyMessage_).mergeFrom(value).buildPartial();
} else {
optionalLazyMessage_ = value;
}
onChanged();
} else {
optionalLazyMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x02000000;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder clearOptionalLazyMessage() {
if (optionalLazyMessageBuilder_ == null) {
optionalLazyMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
onChanged();
} else {
optionalLazyMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x02000000);
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getOptionalLazyMessageBuilder() {
bitField0_ |= 0x02000000;
onChanged();
return getOptionalLazyMessageFieldBuilder().getBuilder();
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() {
if (optionalLazyMessageBuilder_ != null) {
return optionalLazyMessageBuilder_.getMessageOrBuilder();
} else {
return optionalLazyMessage_;
}
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getOptionalLazyMessageFieldBuilder() {
if (optionalLazyMessageBuilder_ == null) {
optionalLazyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>(
getOptionalLazyMessage(),
getParentForChildren(),
isClean());
optionalLazyMessage_ = null;
}
return optionalLazyMessageBuilder_;
}
private java.util.List repeatedInt32_ = java.util.Collections.emptyList();
private void ensureRepeatedInt32IsMutable() {
if (!((bitField0_ & 0x04000000) == 0x04000000)) {
repeatedInt32_ = new java.util.ArrayList(repeatedInt32_);
bitField0_ |= 0x04000000;
}
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public java.util.List
getRepeatedInt32List() {
return java.util.Collections.unmodifiableList(repeatedInt32_);
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.get(index);
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public Builder setRepeatedInt32(
int index, int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public Builder addRepeatedInt32(int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.add(value);
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public Builder addAllRepeatedInt32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedInt32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedInt32_);
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public Builder clearRepeatedInt32() {
repeatedInt32_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x04000000);
onChanged();
return this;
}
private java.util.List repeatedInt64_ = java.util.Collections.emptyList();
private void ensureRepeatedInt64IsMutable() {
if (!((bitField0_ & 0x08000000) == 0x08000000)) {
repeatedInt64_ = new java.util.ArrayList(repeatedInt64_);
bitField0_ |= 0x08000000;
}
}
/**
* repeated int64 repeated_int64 = 32;
*/
public java.util.List
getRepeatedInt64List() {
return java.util.Collections.unmodifiableList(repeatedInt64_);
}
/**
* repeated int64 repeated_int64 = 32;
*/
public int getRepeatedInt64Count() {
return repeatedInt64_.size();
}
/**
* repeated int64 repeated_int64 = 32;
*/
public long getRepeatedInt64(int index) {
return repeatedInt64_.get(index);
}
/**
* repeated int64 repeated_int64 = 32;
*/
public Builder setRepeatedInt64(
int index, long value) {
ensureRepeatedInt64IsMutable();
repeatedInt64_.set(index, value);
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 32;
*/
public Builder addRepeatedInt64(long value) {
ensureRepeatedInt64IsMutable();
repeatedInt64_.add(value);
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 32;
*/
public Builder addAllRepeatedInt64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedInt64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedInt64_);
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 32;
*/
public Builder clearRepeatedInt64() {
repeatedInt64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x08000000);
onChanged();
return this;
}
private java.util.List repeatedUint32_ = java.util.Collections.emptyList();
private void ensureRepeatedUint32IsMutable() {
if (!((bitField0_ & 0x10000000) == 0x10000000)) {
repeatedUint32_ = new java.util.ArrayList(repeatedUint32_);
bitField0_ |= 0x10000000;
}
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public java.util.List
getRepeatedUint32List() {
return java.util.Collections.unmodifiableList(repeatedUint32_);
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public int getRepeatedUint32Count() {
return repeatedUint32_.size();
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public int getRepeatedUint32(int index) {
return repeatedUint32_.get(index);
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public Builder setRepeatedUint32(
int index, int value) {
ensureRepeatedUint32IsMutable();
repeatedUint32_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public Builder addRepeatedUint32(int value) {
ensureRepeatedUint32IsMutable();
repeatedUint32_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public Builder addAllRepeatedUint32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedUint32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedUint32_);
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public Builder clearRepeatedUint32() {
repeatedUint32_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x10000000);
onChanged();
return this;
}
private java.util.List repeatedUint64_ = java.util.Collections.emptyList();
private void ensureRepeatedUint64IsMutable() {
if (!((bitField0_ & 0x20000000) == 0x20000000)) {
repeatedUint64_ = new java.util.ArrayList(repeatedUint64_);
bitField0_ |= 0x20000000;
}
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public java.util.List
getRepeatedUint64List() {
return java.util.Collections.unmodifiableList(repeatedUint64_);
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public int getRepeatedUint64Count() {
return repeatedUint64_.size();
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public long getRepeatedUint64(int index) {
return repeatedUint64_.get(index);
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public Builder setRepeatedUint64(
int index, long value) {
ensureRepeatedUint64IsMutable();
repeatedUint64_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public Builder addRepeatedUint64(long value) {
ensureRepeatedUint64IsMutable();
repeatedUint64_.add(value);
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public Builder addAllRepeatedUint64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedUint64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedUint64_);
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public Builder clearRepeatedUint64() {
repeatedUint64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x20000000);
onChanged();
return this;
}
private java.util.List repeatedSint32_ = java.util.Collections.emptyList();
private void ensureRepeatedSint32IsMutable() {
if (!((bitField0_ & 0x40000000) == 0x40000000)) {
repeatedSint32_ = new java.util.ArrayList(repeatedSint32_);
bitField0_ |= 0x40000000;
}
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public java.util.List
getRepeatedSint32List() {
return java.util.Collections.unmodifiableList(repeatedSint32_);
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public int getRepeatedSint32Count() {
return repeatedSint32_.size();
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public int getRepeatedSint32(int index) {
return repeatedSint32_.get(index);
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public Builder setRepeatedSint32(
int index, int value) {
ensureRepeatedSint32IsMutable();
repeatedSint32_.set(index, value);
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public Builder addRepeatedSint32(int value) {
ensureRepeatedSint32IsMutable();
repeatedSint32_.add(value);
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public Builder addAllRepeatedSint32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedSint32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSint32_);
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public Builder clearRepeatedSint32() {
repeatedSint32_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x40000000);
onChanged();
return this;
}
private java.util.List repeatedSint64_ = java.util.Collections.emptyList();
private void ensureRepeatedSint64IsMutable() {
if (!((bitField0_ & 0x80000000) == 0x80000000)) {
repeatedSint64_ = new java.util.ArrayList(repeatedSint64_);
bitField0_ |= 0x80000000;
}
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public java.util.List
getRepeatedSint64List() {
return java.util.Collections.unmodifiableList(repeatedSint64_);
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public int getRepeatedSint64Count() {
return repeatedSint64_.size();
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public long getRepeatedSint64(int index) {
return repeatedSint64_.get(index);
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public Builder setRepeatedSint64(
int index, long value) {
ensureRepeatedSint64IsMutable();
repeatedSint64_.set(index, value);
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public Builder addRepeatedSint64(long value) {
ensureRepeatedSint64IsMutable();
repeatedSint64_.add(value);
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public Builder addAllRepeatedSint64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedSint64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSint64_);
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public Builder clearRepeatedSint64() {
repeatedSint64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x80000000);
onChanged();
return this;
}
private java.util.List repeatedFixed32_ = java.util.Collections.emptyList();
private void ensureRepeatedFixed32IsMutable() {
if (!((bitField1_ & 0x00000001) == 0x00000001)) {
repeatedFixed32_ = new java.util.ArrayList(repeatedFixed32_);
bitField1_ |= 0x00000001;
}
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public java.util.List
getRepeatedFixed32List() {
return java.util.Collections.unmodifiableList(repeatedFixed32_);
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public int getRepeatedFixed32Count() {
return repeatedFixed32_.size();
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public int getRepeatedFixed32(int index) {
return repeatedFixed32_.get(index);
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public Builder setRepeatedFixed32(
int index, int value) {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.set(index, value);
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public Builder addRepeatedFixed32(int value) {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.add(value);
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public Builder addAllRepeatedFixed32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedFixed32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFixed32_);
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public Builder clearRepeatedFixed32() {
repeatedFixed32_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List repeatedFixed64_ = java.util.Collections.emptyList();
private void ensureRepeatedFixed64IsMutable() {
if (!((bitField1_ & 0x00000002) == 0x00000002)) {
repeatedFixed64_ = new java.util.ArrayList(repeatedFixed64_);
bitField1_ |= 0x00000002;
}
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public java.util.List
getRepeatedFixed64List() {
return java.util.Collections.unmodifiableList(repeatedFixed64_);
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public int getRepeatedFixed64Count() {
return repeatedFixed64_.size();
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public long getRepeatedFixed64(int index) {
return repeatedFixed64_.get(index);
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public Builder setRepeatedFixed64(
int index, long value) {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.set(index, value);
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public Builder addRepeatedFixed64(long value) {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.add(value);
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public Builder addAllRepeatedFixed64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedFixed64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFixed64_);
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public Builder clearRepeatedFixed64() {
repeatedFixed64_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List repeatedSfixed32_ = java.util.Collections.emptyList();
private void ensureRepeatedSfixed32IsMutable() {
if (!((bitField1_ & 0x00000004) == 0x00000004)) {
repeatedSfixed32_ = new java.util.ArrayList(repeatedSfixed32_);
bitField1_ |= 0x00000004;
}
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public java.util.List
getRepeatedSfixed32List() {
return java.util.Collections.unmodifiableList(repeatedSfixed32_);
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public int getRepeatedSfixed32Count() {
return repeatedSfixed32_.size();
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public int getRepeatedSfixed32(int index) {
return repeatedSfixed32_.get(index);
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public Builder setRepeatedSfixed32(
int index, int value) {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.set(index, value);
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public Builder addRepeatedSfixed32(int value) {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.add(value);
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public Builder addAllRepeatedSfixed32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedSfixed32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSfixed32_);
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public Builder clearRepeatedSfixed32() {
repeatedSfixed32_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000004);
onChanged();
return this;
}
private java.util.List repeatedSfixed64_ = java.util.Collections.emptyList();
private void ensureRepeatedSfixed64IsMutable() {
if (!((bitField1_ & 0x00000008) == 0x00000008)) {
repeatedSfixed64_ = new java.util.ArrayList(repeatedSfixed64_);
bitField1_ |= 0x00000008;
}
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public java.util.List
getRepeatedSfixed64List() {
return java.util.Collections.unmodifiableList(repeatedSfixed64_);
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public int getRepeatedSfixed64Count() {
return repeatedSfixed64_.size();
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public long getRepeatedSfixed64(int index) {
return repeatedSfixed64_.get(index);
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public Builder setRepeatedSfixed64(
int index, long value) {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.set(index, value);
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public Builder addRepeatedSfixed64(long value) {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.add(value);
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public Builder addAllRepeatedSfixed64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedSfixed64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSfixed64_);
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public Builder clearRepeatedSfixed64() {
repeatedSfixed64_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000008);
onChanged();
return this;
}
private java.util.List repeatedFloat_ = java.util.Collections.emptyList();
private void ensureRepeatedFloatIsMutable() {
if (!((bitField1_ & 0x00000010) == 0x00000010)) {
repeatedFloat_ = new java.util.ArrayList(repeatedFloat_);
bitField1_ |= 0x00000010;
}
}
/**
* repeated float repeated_float = 41;
*/
public java.util.List
getRepeatedFloatList() {
return java.util.Collections.unmodifiableList(repeatedFloat_);
}
/**
* repeated float repeated_float = 41;
*/
public int getRepeatedFloatCount() {
return repeatedFloat_.size();
}
/**
* repeated float repeated_float = 41;
*/
public float getRepeatedFloat(int index) {
return repeatedFloat_.get(index);
}
/**
* repeated float repeated_float = 41;
*/
public Builder setRepeatedFloat(
int index, float value) {
ensureRepeatedFloatIsMutable();
repeatedFloat_.set(index, value);
onChanged();
return this;
}
/**
* repeated float repeated_float = 41;
*/
public Builder addRepeatedFloat(float value) {
ensureRepeatedFloatIsMutable();
repeatedFloat_.add(value);
onChanged();
return this;
}
/**
* repeated float repeated_float = 41;
*/
public Builder addAllRepeatedFloat(
java.lang.Iterable extends java.lang.Float> values) {
ensureRepeatedFloatIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFloat_);
onChanged();
return this;
}
/**
* repeated float repeated_float = 41;
*/
public Builder clearRepeatedFloat() {
repeatedFloat_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000010);
onChanged();
return this;
}
private java.util.List repeatedDouble_ = java.util.Collections.emptyList();
private void ensureRepeatedDoubleIsMutable() {
if (!((bitField1_ & 0x00000020) == 0x00000020)) {
repeatedDouble_ = new java.util.ArrayList(repeatedDouble_);
bitField1_ |= 0x00000020;
}
}
/**
* repeated double repeated_double = 42;
*/
public java.util.List
getRepeatedDoubleList() {
return java.util.Collections.unmodifiableList(repeatedDouble_);
}
/**
* repeated double repeated_double = 42;
*/
public int getRepeatedDoubleCount() {
return repeatedDouble_.size();
}
/**
* repeated double repeated_double = 42;
*/
public double getRepeatedDouble(int index) {
return repeatedDouble_.get(index);
}
/**
* repeated double repeated_double = 42;
*/
public Builder setRepeatedDouble(
int index, double value) {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.set(index, value);
onChanged();
return this;
}
/**
* repeated double repeated_double = 42;
*/
public Builder addRepeatedDouble(double value) {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.add(value);
onChanged();
return this;
}
/**
* repeated double repeated_double = 42;
*/
public Builder addAllRepeatedDouble(
java.lang.Iterable extends java.lang.Double> values) {
ensureRepeatedDoubleIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedDouble_);
onChanged();
return this;
}
/**
* repeated double repeated_double = 42;
*/
public Builder clearRepeatedDouble() {
repeatedDouble_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List repeatedBool_ = java.util.Collections.emptyList();
private void ensureRepeatedBoolIsMutable() {
if (!((bitField1_ & 0x00000040) == 0x00000040)) {
repeatedBool_ = new java.util.ArrayList(repeatedBool_);
bitField1_ |= 0x00000040;
}
}
/**
* repeated bool repeated_bool = 43;
*/
public java.util.List
getRepeatedBoolList() {
return java.util.Collections.unmodifiableList(repeatedBool_);
}
/**
* repeated bool repeated_bool = 43;
*/
public int getRepeatedBoolCount() {
return repeatedBool_.size();
}
/**
* repeated bool repeated_bool = 43;
*/
public boolean getRepeatedBool(int index) {
return repeatedBool_.get(index);
}
/**
* repeated bool repeated_bool = 43;
*/
public Builder setRepeatedBool(
int index, boolean value) {
ensureRepeatedBoolIsMutable();
repeatedBool_.set(index, value);
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 43;
*/
public Builder addRepeatedBool(boolean value) {
ensureRepeatedBoolIsMutable();
repeatedBool_.add(value);
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 43;
*/
public Builder addAllRepeatedBool(
java.lang.Iterable extends java.lang.Boolean> values) {
ensureRepeatedBoolIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedBool_);
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 43;
*/
public Builder clearRepeatedBool() {
repeatedBool_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000040);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList repeatedString_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRepeatedStringIsMutable() {
if (!((bitField1_ & 0x00000080) == 0x00000080)) {
repeatedString_ = new com.google.protobuf.LazyStringArrayList(repeatedString_);
bitField1_ |= 0x00000080;
}
}
/**
* repeated string repeated_string = 44;
*/
public com.google.protobuf.ProtocolStringList
getRepeatedStringList() {
return repeatedString_.getUnmodifiableView();
}
/**
* repeated string repeated_string = 44;
*/
public int getRepeatedStringCount() {
return repeatedString_.size();
}
/**
* repeated string repeated_string = 44;
*/
public java.lang.String getRepeatedString(int index) {
return repeatedString_.get(index);
}
/**
* repeated string repeated_string = 44;
*/
public com.google.protobuf.ByteString
getRepeatedStringBytes(int index) {
return repeatedString_.getByteString(index);
}
/**
* repeated string repeated_string = 44;
*/
public Builder setRepeatedString(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedStringIsMutable();
repeatedString_.set(index, value);
onChanged();
return this;
}
/**
* repeated string repeated_string = 44;
*/
public Builder addRepeatedString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedStringIsMutable();
repeatedString_.add(value);
onChanged();
return this;
}
/**
* repeated string repeated_string = 44;
*/
public Builder addAllRepeatedString(
java.lang.Iterable values) {
ensureRepeatedStringIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedString_);
onChanged();
return this;
}
/**
* repeated string repeated_string = 44;
*/
public Builder clearRepeatedString() {
repeatedString_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00000080);
onChanged();
return this;
}
/**
* repeated string repeated_string = 44;
*/
public Builder addRepeatedStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedStringIsMutable();
repeatedString_.add(value);
onChanged();
return this;
}
private java.util.List repeatedBytes_ = java.util.Collections.emptyList();
private void ensureRepeatedBytesIsMutable() {
if (!((bitField1_ & 0x00000100) == 0x00000100)) {
repeatedBytes_ = new java.util.ArrayList(repeatedBytes_);
bitField1_ |= 0x00000100;
}
}
/**
* repeated bytes repeated_bytes = 45;
*/
public java.util.List
getRepeatedBytesList() {
return java.util.Collections.unmodifiableList(repeatedBytes_);
}
/**
* repeated bytes repeated_bytes = 45;
*/
public int getRepeatedBytesCount() {
return repeatedBytes_.size();
}
/**
* repeated bytes repeated_bytes = 45;
*/
public com.google.protobuf.ByteString getRepeatedBytes(int index) {
return repeatedBytes_.get(index);
}
/**
* repeated bytes repeated_bytes = 45;
*/
public Builder setRepeatedBytes(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedBytesIsMutable();
repeatedBytes_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 45;
*/
public Builder addRepeatedBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedBytesIsMutable();
repeatedBytes_.add(value);
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 45;
*/
public Builder addAllRepeatedBytes(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureRepeatedBytesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedBytes_);
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 45;
*/
public Builder clearRepeatedBytes() {
repeatedBytes_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000100);
onChanged();
return this;
}
private java.util.List repeatedGroup_ =
java.util.Collections.emptyList();
private void ensureRepeatedGroupIsMutable() {
if (!((bitField1_ & 0x00000200) == 0x00000200)) {
repeatedGroup_ = new java.util.ArrayList(repeatedGroup_);
bitField1_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder> repeatedGroupBuilder_;
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public java.util.List getRepeatedGroupList() {
if (repeatedGroupBuilder_ == null) {
return java.util.Collections.unmodifiableList(repeatedGroup_);
} else {
return repeatedGroupBuilder_.getMessageList();
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public int getRepeatedGroupCount() {
if (repeatedGroupBuilder_ == null) {
return repeatedGroup_.size();
} else {
return repeatedGroupBuilder_.getCount();
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup getRepeatedGroup(int index) {
if (repeatedGroupBuilder_ == null) {
return repeatedGroup_.get(index);
} else {
return repeatedGroupBuilder_.getMessage(index);
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder setRepeatedGroup(
int index, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup value) {
if (repeatedGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedGroupIsMutable();
repeatedGroup_.set(index, value);
onChanged();
} else {
repeatedGroupBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder setRepeatedGroup(
int index, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder builderForValue) {
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.set(index, builderForValue.build());
onChanged();
} else {
repeatedGroupBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup value) {
if (repeatedGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(value);
onChanged();
} else {
repeatedGroupBuilder_.addMessage(value);
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(
int index, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup value) {
if (repeatedGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(index, value);
onChanged();
} else {
repeatedGroupBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder builderForValue) {
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(builderForValue.build());
onChanged();
} else {
repeatedGroupBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(
int index, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder builderForValue) {
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(index, builderForValue.build());
onChanged();
} else {
repeatedGroupBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addAllRepeatedGroup(
java.lang.Iterable extends protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup> values) {
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedGroup_);
onChanged();
} else {
repeatedGroupBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder clearRepeatedGroup() {
if (repeatedGroupBuilder_ == null) {
repeatedGroup_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000200);
onChanged();
} else {
repeatedGroupBuilder_.clear();
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder removeRepeatedGroup(int index) {
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.remove(index);
onChanged();
} else {
repeatedGroupBuilder_.remove(index);
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder getRepeatedGroupBuilder(
int index) {
return getRepeatedGroupFieldBuilder().getBuilder(index);
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder(
int index) {
if (repeatedGroupBuilder_ == null) {
return repeatedGroup_.get(index); } else {
return repeatedGroupBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public java.util.List extends protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder>
getRepeatedGroupOrBuilderList() {
if (repeatedGroupBuilder_ != null) {
return repeatedGroupBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedGroup_);
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder addRepeatedGroupBuilder() {
return getRepeatedGroupFieldBuilder().addBuilder(
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.getDefaultInstance());
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder addRepeatedGroupBuilder(
int index) {
return getRepeatedGroupFieldBuilder().addBuilder(
index, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.getDefaultInstance());
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public java.util.List
getRepeatedGroupBuilderList() {
return getRepeatedGroupFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder>
getRepeatedGroupFieldBuilder() {
if (repeatedGroupBuilder_ == null) {
repeatedGroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder>(
repeatedGroup_,
((bitField1_ & 0x00000200) == 0x00000200),
getParentForChildren(),
isClean());
repeatedGroup_ = null;
}
return repeatedGroupBuilder_;
}
private java.util.List repeatedNestedMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedNestedMessageIsMutable() {
if (!((bitField1_ & 0x00000400) == 0x00000400)) {
repeatedNestedMessage_ = new java.util.ArrayList(repeatedNestedMessage_);
bitField1_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> repeatedNestedMessageBuilder_;
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public java.util.List getRepeatedNestedMessageList() {
if (repeatedNestedMessageBuilder_ == null) {
return java.util.Collections.unmodifiableList(repeatedNestedMessage_);
} else {
return repeatedNestedMessageBuilder_.getMessageList();
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public int getRepeatedNestedMessageCount() {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.size();
} else {
return repeatedNestedMessageBuilder_.getCount();
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index) {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.get(index);
} else {
return repeatedNestedMessageBuilder_.getMessage(index);
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public Builder setRepeatedNestedMessage(
int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.set(index, value);
onChanged();
} else {
repeatedNestedMessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public Builder setRepeatedNestedMessage(
int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.set(index, builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(value);
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(
int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(index, value);
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(
int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(index, builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public Builder addAllRepeatedNestedMessage(
java.lang.Iterable extends protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage> values) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedNestedMessage_);
onChanged();
} else {
repeatedNestedMessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public Builder clearRepeatedNestedMessage() {
if (repeatedNestedMessageBuilder_ == null) {
repeatedNestedMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000400);
onChanged();
} else {
repeatedNestedMessageBuilder_.clear();
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public Builder removeRepeatedNestedMessage(int index) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.remove(index);
onChanged();
} else {
repeatedNestedMessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getRepeatedNestedMessageBuilder(
int index) {
return getRepeatedNestedMessageFieldBuilder().getBuilder(index);
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder(
int index) {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.get(index); } else {
return repeatedNestedMessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public java.util.List extends protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList() {
if (repeatedNestedMessageBuilder_ != null) {
return repeatedNestedMessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedNestedMessage_);
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder addRepeatedNestedMessageBuilder() {
return getRepeatedNestedMessageFieldBuilder().addBuilder(
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance());
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder addRepeatedNestedMessageBuilder(
int index) {
return getRepeatedNestedMessageFieldBuilder().addBuilder(
index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance());
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
*/
public java.util.List
getRepeatedNestedMessageBuilderList() {
return getRepeatedNestedMessageFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedNestedMessageFieldBuilder() {
if (repeatedNestedMessageBuilder_ == null) {
repeatedNestedMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>(
repeatedNestedMessage_,
((bitField1_ & 0x00000400) == 0x00000400),
getParentForChildren(),
isClean());
repeatedNestedMessage_ = null;
}
return repeatedNestedMessageBuilder_;
}
private java.util.List repeatedForeignMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedForeignMessageIsMutable() {
if (!((bitField1_ & 0x00000800) == 0x00000800)) {
repeatedForeignMessage_ = new java.util.ArrayList(repeatedForeignMessage_);
bitField1_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> repeatedForeignMessageBuilder_;
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public java.util.List getRepeatedForeignMessageList() {
if (repeatedForeignMessageBuilder_ == null) {
return java.util.Collections.unmodifiableList(repeatedForeignMessage_);
} else {
return repeatedForeignMessageBuilder_.getMessageList();
}
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public int getRepeatedForeignMessageCount() {
if (repeatedForeignMessageBuilder_ == null) {
return repeatedForeignMessage_.size();
} else {
return repeatedForeignMessageBuilder_.getCount();
}
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public protobuf_unittest.UnittestProto.ForeignMessage getRepeatedForeignMessage(int index) {
if (repeatedForeignMessageBuilder_ == null) {
return repeatedForeignMessage_.get(index);
} else {
return repeatedForeignMessageBuilder_.getMessage(index);
}
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public Builder setRepeatedForeignMessage(
int index, protobuf_unittest.UnittestProto.ForeignMessage value) {
if (repeatedForeignMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.set(index, value);
onChanged();
} else {
repeatedForeignMessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public Builder setRepeatedForeignMessage(
int index, protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) {
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.set(index, builderForValue.build());
onChanged();
} else {
repeatedForeignMessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(protobuf_unittest.UnittestProto.ForeignMessage value) {
if (repeatedForeignMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(value);
onChanged();
} else {
repeatedForeignMessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(
int index, protobuf_unittest.UnittestProto.ForeignMessage value) {
if (repeatedForeignMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(index, value);
onChanged();
} else {
repeatedForeignMessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(
protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) {
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(builderForValue.build());
onChanged();
} else {
repeatedForeignMessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(
int index, protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) {
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(index, builderForValue.build());
onChanged();
} else {
repeatedForeignMessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public Builder addAllRepeatedForeignMessage(
java.lang.Iterable extends protobuf_unittest.UnittestProto.ForeignMessage> values) {
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedForeignMessage_);
onChanged();
} else {
repeatedForeignMessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public Builder clearRepeatedForeignMessage() {
if (repeatedForeignMessageBuilder_ == null) {
repeatedForeignMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000800);
onChanged();
} else {
repeatedForeignMessageBuilder_.clear();
}
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public Builder removeRepeatedForeignMessage(int index) {
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.remove(index);
onChanged();
} else {
repeatedForeignMessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public protobuf_unittest.UnittestProto.ForeignMessage.Builder getRepeatedForeignMessageBuilder(
int index) {
return getRepeatedForeignMessageFieldBuilder().getBuilder(index);
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getRepeatedForeignMessageOrBuilder(
int index) {
if (repeatedForeignMessageBuilder_ == null) {
return repeatedForeignMessage_.get(index); } else {
return repeatedForeignMessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public java.util.List extends protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>
getRepeatedForeignMessageOrBuilderList() {
if (repeatedForeignMessageBuilder_ != null) {
return repeatedForeignMessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedForeignMessage_);
}
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public protobuf_unittest.UnittestProto.ForeignMessage.Builder addRepeatedForeignMessageBuilder() {
return getRepeatedForeignMessageFieldBuilder().addBuilder(
protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance());
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public protobuf_unittest.UnittestProto.ForeignMessage.Builder addRepeatedForeignMessageBuilder(
int index) {
return getRepeatedForeignMessageFieldBuilder().addBuilder(
index, protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance());
}
/**
* repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
*/
public java.util.List
getRepeatedForeignMessageBuilderList() {
return getRepeatedForeignMessageFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>
getRepeatedForeignMessageFieldBuilder() {
if (repeatedForeignMessageBuilder_ == null) {
repeatedForeignMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>(
repeatedForeignMessage_,
((bitField1_ & 0x00000800) == 0x00000800),
getParentForChildren(),
isClean());
repeatedForeignMessage_ = null;
}
return repeatedForeignMessageBuilder_;
}
private java.util.List repeatedImportMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedImportMessageIsMutable() {
if (!((bitField1_ & 0x00001000) == 0x00001000)) {
repeatedImportMessage_ = new java.util.ArrayList(repeatedImportMessage_);
bitField1_ |= 0x00001000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder> repeatedImportMessageBuilder_;
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public java.util.List getRepeatedImportMessageList() {
if (repeatedImportMessageBuilder_ == null) {
return java.util.Collections.unmodifiableList(repeatedImportMessage_);
} else {
return repeatedImportMessageBuilder_.getMessageList();
}
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public int getRepeatedImportMessageCount() {
if (repeatedImportMessageBuilder_ == null) {
return repeatedImportMessage_.size();
} else {
return repeatedImportMessageBuilder_.getCount();
}
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public com.google.protobuf.test.UnittestImport.ImportMessage getRepeatedImportMessage(int index) {
if (repeatedImportMessageBuilder_ == null) {
return repeatedImportMessage_.get(index);
} else {
return repeatedImportMessageBuilder_.getMessage(index);
}
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public Builder setRepeatedImportMessage(
int index, com.google.protobuf.test.UnittestImport.ImportMessage value) {
if (repeatedImportMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.set(index, value);
onChanged();
} else {
repeatedImportMessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public Builder setRepeatedImportMessage(
int index, com.google.protobuf.test.UnittestImport.ImportMessage.Builder builderForValue) {
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.set(index, builderForValue.build());
onChanged();
} else {
repeatedImportMessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(com.google.protobuf.test.UnittestImport.ImportMessage value) {
if (repeatedImportMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(value);
onChanged();
} else {
repeatedImportMessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(
int index, com.google.protobuf.test.UnittestImport.ImportMessage value) {
if (repeatedImportMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(index, value);
onChanged();
} else {
repeatedImportMessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(
com.google.protobuf.test.UnittestImport.ImportMessage.Builder builderForValue) {
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(builderForValue.build());
onChanged();
} else {
repeatedImportMessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(
int index, com.google.protobuf.test.UnittestImport.ImportMessage.Builder builderForValue) {
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(index, builderForValue.build());
onChanged();
} else {
repeatedImportMessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public Builder addAllRepeatedImportMessage(
java.lang.Iterable extends com.google.protobuf.test.UnittestImport.ImportMessage> values) {
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedImportMessage_);
onChanged();
} else {
repeatedImportMessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public Builder clearRepeatedImportMessage() {
if (repeatedImportMessageBuilder_ == null) {
repeatedImportMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00001000);
onChanged();
} else {
repeatedImportMessageBuilder_.clear();
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public Builder removeRepeatedImportMessage(int index) {
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.remove(index);
onChanged();
} else {
repeatedImportMessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public com.google.protobuf.test.UnittestImport.ImportMessage.Builder getRepeatedImportMessageBuilder(
int index) {
return getRepeatedImportMessageFieldBuilder().getBuilder(index);
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getRepeatedImportMessageOrBuilder(
int index) {
if (repeatedImportMessageBuilder_ == null) {
return repeatedImportMessage_.get(index); } else {
return repeatedImportMessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public java.util.List extends com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder>
getRepeatedImportMessageOrBuilderList() {
if (repeatedImportMessageBuilder_ != null) {
return repeatedImportMessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedImportMessage_);
}
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public com.google.protobuf.test.UnittestImport.ImportMessage.Builder addRepeatedImportMessageBuilder() {
return getRepeatedImportMessageFieldBuilder().addBuilder(
com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance());
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public com.google.protobuf.test.UnittestImport.ImportMessage.Builder addRepeatedImportMessageBuilder(
int index) {
return getRepeatedImportMessageFieldBuilder().addBuilder(
index, com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance());
}
/**
* repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
*/
public java.util.List
getRepeatedImportMessageBuilderList() {
return getRepeatedImportMessageFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder>
getRepeatedImportMessageFieldBuilder() {
if (repeatedImportMessageBuilder_ == null) {
repeatedImportMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder>(
repeatedImportMessage_,
((bitField1_ & 0x00001000) == 0x00001000),
getParentForChildren(),
isClean());
repeatedImportMessage_ = null;
}
return repeatedImportMessageBuilder_;
}
private java.util.List repeatedNestedEnum_ =
java.util.Collections.emptyList();
private void ensureRepeatedNestedEnumIsMutable() {
if (!((bitField1_ & 0x00002000) == 0x00002000)) {
repeatedNestedEnum_ = new java.util.ArrayList(repeatedNestedEnum_);
bitField1_ |= 0x00002000;
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
public java.util.List getRepeatedNestedEnumList() {
return java.util.Collections.unmodifiableList(repeatedNestedEnum_);
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_.get(index);
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
public Builder setRepeatedNestedEnum(
int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value);
onChanged();
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
public Builder addRepeatedNestedEnum(protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value);
onChanged();
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
public Builder addAllRepeatedNestedEnum(
java.lang.Iterable extends protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum> values) {
ensureRepeatedNestedEnumIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedNestedEnum_);
onChanged();
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
*/
public Builder clearRepeatedNestedEnum() {
repeatedNestedEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00002000);
onChanged();
return this;
}
private java.util.List repeatedForeignEnum_ =
java.util.Collections.emptyList();
private void ensureRepeatedForeignEnumIsMutable() {
if (!((bitField1_ & 0x00004000) == 0x00004000)) {
repeatedForeignEnum_ = new java.util.ArrayList(repeatedForeignEnum_);
bitField1_ |= 0x00004000;
}
}
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
public java.util.List getRepeatedForeignEnumList() {
return java.util.Collections.unmodifiableList(repeatedForeignEnum_);
}
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
public int getRepeatedForeignEnumCount() {
return repeatedForeignEnum_.size();
}
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
public protobuf_unittest.UnittestProto.ForeignEnum getRepeatedForeignEnum(int index) {
return repeatedForeignEnum_.get(index);
}
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
public Builder setRepeatedForeignEnum(
int index, protobuf_unittest.UnittestProto.ForeignEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.set(index, value);
onChanged();
return this;
}
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
public Builder addRepeatedForeignEnum(protobuf_unittest.UnittestProto.ForeignEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.add(value);
onChanged();
return this;
}
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
public Builder addAllRepeatedForeignEnum(
java.lang.Iterable extends protobuf_unittest.UnittestProto.ForeignEnum> values) {
ensureRepeatedForeignEnumIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedForeignEnum_);
onChanged();
return this;
}
/**
* repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
*/
public Builder clearRepeatedForeignEnum() {
repeatedForeignEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00004000);
onChanged();
return this;
}
private java.util.List repeatedImportEnum_ =
java.util.Collections.emptyList();
private void ensureRepeatedImportEnumIsMutable() {
if (!((bitField1_ & 0x00008000) == 0x00008000)) {
repeatedImportEnum_ = new java.util.ArrayList(repeatedImportEnum_);
bitField1_ |= 0x00008000;
}
}
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
public java.util.List getRepeatedImportEnumList() {
return java.util.Collections.unmodifiableList(repeatedImportEnum_);
}
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
public int getRepeatedImportEnumCount() {
return repeatedImportEnum_.size();
}
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
public com.google.protobuf.test.UnittestImport.ImportEnum getRepeatedImportEnum(int index) {
return repeatedImportEnum_.get(index);
}
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
public Builder setRepeatedImportEnum(
int index, com.google.protobuf.test.UnittestImport.ImportEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.set(index, value);
onChanged();
return this;
}
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
public Builder addRepeatedImportEnum(com.google.protobuf.test.UnittestImport.ImportEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.add(value);
onChanged();
return this;
}
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
public Builder addAllRepeatedImportEnum(
java.lang.Iterable extends com.google.protobuf.test.UnittestImport.ImportEnum> values) {
ensureRepeatedImportEnumIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedImportEnum_);
onChanged();
return this;
}
/**
* repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
*/
public Builder clearRepeatedImportEnum() {
repeatedImportEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00008000);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRepeatedStringPieceIsMutable() {
if (!((bitField1_ & 0x00010000) == 0x00010000)) {
repeatedStringPiece_ = new com.google.protobuf.LazyStringArrayList(repeatedStringPiece_);
bitField1_ |= 0x00010000;
}
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public com.google.protobuf.ProtocolStringList
getRepeatedStringPieceList() {
return repeatedStringPiece_.getUnmodifiableView();
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public int getRepeatedStringPieceCount() {
return repeatedStringPiece_.size();
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public java.lang.String getRepeatedStringPiece(int index) {
return repeatedStringPiece_.get(index);
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public com.google.protobuf.ByteString
getRepeatedStringPieceBytes(int index) {
return repeatedStringPiece_.getByteString(index);
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public Builder setRepeatedStringPiece(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedStringPieceIsMutable();
repeatedStringPiece_.set(index, value);
onChanged();
return this;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public Builder addRepeatedStringPiece(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedStringPieceIsMutable();
repeatedStringPiece_.add(value);
onChanged();
return this;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public Builder addAllRepeatedStringPiece(
java.lang.Iterable values) {
ensureRepeatedStringPieceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedStringPiece_);
onChanged();
return this;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public Builder clearRepeatedStringPiece() {
repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00010000);
onChanged();
return this;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public Builder addRepeatedStringPieceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedStringPieceIsMutable();
repeatedStringPiece_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList repeatedCord_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRepeatedCordIsMutable() {
if (!((bitField1_ & 0x00020000) == 0x00020000)) {
repeatedCord_ = new com.google.protobuf.LazyStringArrayList(repeatedCord_);
bitField1_ |= 0x00020000;
}
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public com.google.protobuf.ProtocolStringList
getRepeatedCordList() {
return repeatedCord_.getUnmodifiableView();
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public int getRepeatedCordCount() {
return repeatedCord_.size();
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public java.lang.String getRepeatedCord(int index) {
return repeatedCord_.get(index);
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public com.google.protobuf.ByteString
getRepeatedCordBytes(int index) {
return repeatedCord_.getByteString(index);
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public Builder setRepeatedCord(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedCordIsMutable();
repeatedCord_.set(index, value);
onChanged();
return this;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public Builder addRepeatedCord(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedCordIsMutable();
repeatedCord_.add(value);
onChanged();
return this;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public Builder addAllRepeatedCord(
java.lang.Iterable values) {
ensureRepeatedCordIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedCord_);
onChanged();
return this;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public Builder clearRepeatedCord() {
repeatedCord_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00020000);
onChanged();
return this;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public Builder addRepeatedCordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedCordIsMutable();
repeatedCord_.add(value);
onChanged();
return this;
}
private java.util.List repeatedLazyMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedLazyMessageIsMutable() {
if (!((bitField1_ & 0x00040000) == 0x00040000)) {
repeatedLazyMessage_ = new java.util.ArrayList(repeatedLazyMessage_);
bitField1_ |= 0x00040000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> repeatedLazyMessageBuilder_;
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List getRepeatedLazyMessageList() {
if (repeatedLazyMessageBuilder_ == null) {
return java.util.Collections.unmodifiableList(repeatedLazyMessage_);
} else {
return repeatedLazyMessageBuilder_.getMessageList();
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public int getRepeatedLazyMessageCount() {
if (repeatedLazyMessageBuilder_ == null) {
return repeatedLazyMessage_.size();
} else {
return repeatedLazyMessageBuilder_.getCount();
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedLazyMessage(int index) {
if (repeatedLazyMessageBuilder_ == null) {
return repeatedLazyMessage_.get(index);
} else {
return repeatedLazyMessageBuilder_.getMessage(index);
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder setRepeatedLazyMessage(
int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (repeatedLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.set(index, value);
onChanged();
} else {
repeatedLazyMessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder setRepeatedLazyMessage(
int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.set(index, builderForValue.build());
onChanged();
} else {
repeatedLazyMessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (repeatedLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(value);
onChanged();
} else {
repeatedLazyMessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(
int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (repeatedLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(index, value);
onChanged();
} else {
repeatedLazyMessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(builderForValue.build());
onChanged();
} else {
repeatedLazyMessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(
int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(index, builderForValue.build());
onChanged();
} else {
repeatedLazyMessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addAllRepeatedLazyMessage(
java.lang.Iterable extends protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage> values) {
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedLazyMessage_);
onChanged();
} else {
repeatedLazyMessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder clearRepeatedLazyMessage() {
if (repeatedLazyMessageBuilder_ == null) {
repeatedLazyMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00040000);
onChanged();
} else {
repeatedLazyMessageBuilder_.clear();
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder removeRepeatedLazyMessage(int index) {
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.remove(index);
onChanged();
} else {
repeatedLazyMessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getRepeatedLazyMessageBuilder(
int index) {
return getRepeatedLazyMessageFieldBuilder().getBuilder(index);
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder(
int index) {
if (repeatedLazyMessageBuilder_ == null) {
return repeatedLazyMessage_.get(index); } else {
return repeatedLazyMessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List extends protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedLazyMessageOrBuilderList() {
if (repeatedLazyMessageBuilder_ != null) {
return repeatedLazyMessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedLazyMessage_);
}
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder addRepeatedLazyMessageBuilder() {
return getRepeatedLazyMessageFieldBuilder().addBuilder(
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance());
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder addRepeatedLazyMessageBuilder(
int index) {
return getRepeatedLazyMessageFieldBuilder().addBuilder(
index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance());
}
/**
* repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List
getRepeatedLazyMessageBuilderList() {
return getRepeatedLazyMessageFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedLazyMessageFieldBuilder() {
if (repeatedLazyMessageBuilder_ == null) {
repeatedLazyMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>(
repeatedLazyMessage_,
((bitField1_ & 0x00040000) == 0x00040000),
getParentForChildren(),
isClean());
repeatedLazyMessage_ = null;
}
return repeatedLazyMessageBuilder_;
}
private int defaultInt32_ = 41;
/**
* optional int32 default_int32 = 61 [default = 41];
*
*
* Singular with defaults
*
*/
public boolean hasDefaultInt32() {
return ((bitField1_ & 0x00080000) == 0x00080000);
}
/**
* optional int32 default_int32 = 61 [default = 41];
*
*
* Singular with defaults
*
*/
public int getDefaultInt32() {
return defaultInt32_;
}
/**
* optional int32 default_int32 = 61 [default = 41];
*
*
* Singular with defaults
*
*/
public Builder setDefaultInt32(int value) {
bitField1_ |= 0x00080000;
defaultInt32_ = value;
onChanged();
return this;
}
/**
* optional int32 default_int32 = 61 [default = 41];
*
*
* Singular with defaults
*
*/
public Builder clearDefaultInt32() {
bitField1_ = (bitField1_ & ~0x00080000);
defaultInt32_ = 41;
onChanged();
return this;
}
private long defaultInt64_ = 42L;
/**
* optional int64 default_int64 = 62 [default = 42];
*/
public boolean hasDefaultInt64() {
return ((bitField1_ & 0x00100000) == 0x00100000);
}
/**
* optional int64 default_int64 = 62 [default = 42];
*/
public long getDefaultInt64() {
return defaultInt64_;
}
/**
* optional int64 default_int64 = 62 [default = 42];
*/
public Builder setDefaultInt64(long value) {
bitField1_ |= 0x00100000;
defaultInt64_ = value;
onChanged();
return this;
}
/**
* optional int64 default_int64 = 62 [default = 42];
*/
public Builder clearDefaultInt64() {
bitField1_ = (bitField1_ & ~0x00100000);
defaultInt64_ = 42L;
onChanged();
return this;
}
private int defaultUint32_ = 43;
/**
* optional uint32 default_uint32 = 63 [default = 43];
*/
public boolean hasDefaultUint32() {
return ((bitField1_ & 0x00200000) == 0x00200000);
}
/**
* optional uint32 default_uint32 = 63 [default = 43];
*/
public int getDefaultUint32() {
return defaultUint32_;
}
/**
* optional uint32 default_uint32 = 63 [default = 43];
*/
public Builder setDefaultUint32(int value) {
bitField1_ |= 0x00200000;
defaultUint32_ = value;
onChanged();
return this;
}
/**
* optional uint32 default_uint32 = 63 [default = 43];
*/
public Builder clearDefaultUint32() {
bitField1_ = (bitField1_ & ~0x00200000);
defaultUint32_ = 43;
onChanged();
return this;
}
private long defaultUint64_ = 44L;
/**
* optional uint64 default_uint64 = 64 [default = 44];
*/
public boolean hasDefaultUint64() {
return ((bitField1_ & 0x00400000) == 0x00400000);
}
/**
* optional uint64 default_uint64 = 64 [default = 44];
*/
public long getDefaultUint64() {
return defaultUint64_;
}
/**
* optional uint64 default_uint64 = 64 [default = 44];
*/
public Builder setDefaultUint64(long value) {
bitField1_ |= 0x00400000;
defaultUint64_ = value;
onChanged();
return this;
}
/**
* optional uint64 default_uint64 = 64 [default = 44];
*/
public Builder clearDefaultUint64() {
bitField1_ = (bitField1_ & ~0x00400000);
defaultUint64_ = 44L;
onChanged();
return this;
}
private int defaultSint32_ = -45;
/**
* optional sint32 default_sint32 = 65 [default = -45];
*/
public boolean hasDefaultSint32() {
return ((bitField1_ & 0x00800000) == 0x00800000);
}
/**
* optional sint32 default_sint32 = 65 [default = -45];
*/
public int getDefaultSint32() {
return defaultSint32_;
}
/**
* optional sint32 default_sint32 = 65 [default = -45];
*/
public Builder setDefaultSint32(int value) {
bitField1_ |= 0x00800000;
defaultSint32_ = value;
onChanged();
return this;
}
/**
* optional sint32 default_sint32 = 65 [default = -45];
*/
public Builder clearDefaultSint32() {
bitField1_ = (bitField1_ & ~0x00800000);
defaultSint32_ = -45;
onChanged();
return this;
}
private long defaultSint64_ = 46L;
/**
* optional sint64 default_sint64 = 66 [default = 46];
*/
public boolean hasDefaultSint64() {
return ((bitField1_ & 0x01000000) == 0x01000000);
}
/**
* optional sint64 default_sint64 = 66 [default = 46];
*/
public long getDefaultSint64() {
return defaultSint64_;
}
/**
* optional sint64 default_sint64 = 66 [default = 46];
*/
public Builder setDefaultSint64(long value) {
bitField1_ |= 0x01000000;
defaultSint64_ = value;
onChanged();
return this;
}
/**
* optional sint64 default_sint64 = 66 [default = 46];
*/
public Builder clearDefaultSint64() {
bitField1_ = (bitField1_ & ~0x01000000);
defaultSint64_ = 46L;
onChanged();
return this;
}
private int defaultFixed32_ = 47;
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
*/
public boolean hasDefaultFixed32() {
return ((bitField1_ & 0x02000000) == 0x02000000);
}
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
*/
public int getDefaultFixed32() {
return defaultFixed32_;
}
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
*/
public Builder setDefaultFixed32(int value) {
bitField1_ |= 0x02000000;
defaultFixed32_ = value;
onChanged();
return this;
}
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
*/
public Builder clearDefaultFixed32() {
bitField1_ = (bitField1_ & ~0x02000000);
defaultFixed32_ = 47;
onChanged();
return this;
}
private long defaultFixed64_ = 48L;
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
*/
public boolean hasDefaultFixed64() {
return ((bitField1_ & 0x04000000) == 0x04000000);
}
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
*/
public long getDefaultFixed64() {
return defaultFixed64_;
}
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
*/
public Builder setDefaultFixed64(long value) {
bitField1_ |= 0x04000000;
defaultFixed64_ = value;
onChanged();
return this;
}
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
*/
public Builder clearDefaultFixed64() {
bitField1_ = (bitField1_ & ~0x04000000);
defaultFixed64_ = 48L;
onChanged();
return this;
}
private int defaultSfixed32_ = 49;
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
*/
public boolean hasDefaultSfixed32() {
return ((bitField1_ & 0x08000000) == 0x08000000);
}
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
*/
public int getDefaultSfixed32() {
return defaultSfixed32_;
}
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
*/
public Builder setDefaultSfixed32(int value) {
bitField1_ |= 0x08000000;
defaultSfixed32_ = value;
onChanged();
return this;
}
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
*/
public Builder clearDefaultSfixed32() {
bitField1_ = (bitField1_ & ~0x08000000);
defaultSfixed32_ = 49;
onChanged();
return this;
}
private long defaultSfixed64_ = -50L;
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
*/
public boolean hasDefaultSfixed64() {
return ((bitField1_ & 0x10000000) == 0x10000000);
}
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
*/
public long getDefaultSfixed64() {
return defaultSfixed64_;
}
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
*/
public Builder setDefaultSfixed64(long value) {
bitField1_ |= 0x10000000;
defaultSfixed64_ = value;
onChanged();
return this;
}
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
*/
public Builder clearDefaultSfixed64() {
bitField1_ = (bitField1_ & ~0x10000000);
defaultSfixed64_ = -50L;
onChanged();
return this;
}
private float defaultFloat_ = 51.5F;
/**
* optional float default_float = 71 [default = 51.5];
*/
public boolean hasDefaultFloat() {
return ((bitField1_ & 0x20000000) == 0x20000000);
}
/**
* optional float default_float = 71 [default = 51.5];
*/
public float getDefaultFloat() {
return defaultFloat_;
}
/**
* optional float default_float = 71 [default = 51.5];
*/
public Builder setDefaultFloat(float value) {
bitField1_ |= 0x20000000;
defaultFloat_ = value;
onChanged();
return this;
}
/**
* optional float default_float = 71 [default = 51.5];
*/
public Builder clearDefaultFloat() {
bitField1_ = (bitField1_ & ~0x20000000);
defaultFloat_ = 51.5F;
onChanged();
return this;
}
private double defaultDouble_ = 52000D;
/**
* optional double default_double = 72 [default = 52000];
*/
public boolean hasDefaultDouble() {
return ((bitField1_ & 0x40000000) == 0x40000000);
}
/**
* optional double default_double = 72 [default = 52000];
*/
public double getDefaultDouble() {
return defaultDouble_;
}
/**
* optional double default_double = 72 [default = 52000];
*/
public Builder setDefaultDouble(double value) {
bitField1_ |= 0x40000000;
defaultDouble_ = value;
onChanged();
return this;
}
/**
* optional double default_double = 72 [default = 52000];
*/
public Builder clearDefaultDouble() {
bitField1_ = (bitField1_ & ~0x40000000);
defaultDouble_ = 52000D;
onChanged();
return this;
}
private boolean defaultBool_ = true;
/**
* optional bool default_bool = 73 [default = true];
*/
public boolean hasDefaultBool() {
return ((bitField1_ & 0x80000000) == 0x80000000);
}
/**
* optional bool default_bool = 73 [default = true];
*/
public boolean getDefaultBool() {
return defaultBool_;
}
/**
* optional bool default_bool = 73 [default = true];
*/
public Builder setDefaultBool(boolean value) {
bitField1_ |= 0x80000000;
defaultBool_ = value;
onChanged();
return this;
}
/**
* optional bool default_bool = 73 [default = true];
*/
public Builder clearDefaultBool() {
bitField1_ = (bitField1_ & ~0x80000000);
defaultBool_ = true;
onChanged();
return this;
}
private java.lang.Object defaultString_ = "hello";
/**
* optional string default_string = 74 [default = "hello"];
*/
public boolean hasDefaultString() {
return ((bitField2_ & 0x00000001) == 0x00000001);
}
/**
* optional string default_string = 74 [default = "hello"];
*/
public java.lang.String getDefaultString() {
java.lang.Object ref = defaultString_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
defaultString_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string default_string = 74 [default = "hello"];
*/
public com.google.protobuf.ByteString
getDefaultStringBytes() {
java.lang.Object ref = defaultString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string default_string = 74 [default = "hello"];
*/
public Builder setDefaultString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000001;
defaultString_ = value;
onChanged();
return this;
}
/**
* optional string default_string = 74 [default = "hello"];
*/
public Builder clearDefaultString() {
bitField2_ = (bitField2_ & ~0x00000001);
defaultString_ = getDefaultInstance().getDefaultString();
onChanged();
return this;
}
/**
* optional string default_string = 74 [default = "hello"];
*/
public Builder setDefaultStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000001;
defaultString_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world");
/**
* optional bytes default_bytes = 75 [default = "world"];
*/
public boolean hasDefaultBytes() {
return ((bitField2_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes default_bytes = 75 [default = "world"];
*/
public com.google.protobuf.ByteString getDefaultBytes() {
return defaultBytes_;
}
/**
* optional bytes default_bytes = 75 [default = "world"];
*/
public Builder setDefaultBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000002;
defaultBytes_ = value;
onChanged();
return this;
}
/**
* optional bytes default_bytes = 75 [default = "world"];
*/
public Builder clearDefaultBytes() {
bitField2_ = (bitField2_ & ~0x00000002);
defaultBytes_ = getDefaultInstance().getDefaultBytes();
onChanged();
return this;
}
private protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum defaultNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.BAR;
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public boolean hasDefaultNestedEnum() {
return ((bitField2_ & 0x00000004) == 0x00000004);
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getDefaultNestedEnum() {
return defaultNestedEnum_;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public Builder setDefaultNestedEnum(protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000004;
defaultNestedEnum_ = value;
onChanged();
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public Builder clearDefaultNestedEnum() {
bitField2_ = (bitField2_ & ~0x00000004);
defaultNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.BAR;
onChanged();
return this;
}
private protobuf_unittest.UnittestProto.ForeignEnum defaultForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_BAR;
/**
* optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
*/
public boolean hasDefaultForeignEnum() {
return ((bitField2_ & 0x00000008) == 0x00000008);
}
/**
* optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
*/
public protobuf_unittest.UnittestProto.ForeignEnum getDefaultForeignEnum() {
return defaultForeignEnum_;
}
/**
* optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
*/
public Builder setDefaultForeignEnum(protobuf_unittest.UnittestProto.ForeignEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000008;
defaultForeignEnum_ = value;
onChanged();
return this;
}
/**
* optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
*/
public Builder clearDefaultForeignEnum() {
bitField2_ = (bitField2_ & ~0x00000008);
defaultForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_BAR;
onChanged();
return this;
}
private com.google.protobuf.test.UnittestImport.ImportEnum defaultImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_BAR;
/**
* optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
*/
public boolean hasDefaultImportEnum() {
return ((bitField2_ & 0x00000010) == 0x00000010);
}
/**
* optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
*/
public com.google.protobuf.test.UnittestImport.ImportEnum getDefaultImportEnum() {
return defaultImportEnum_;
}
/**
* optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
*/
public Builder setDefaultImportEnum(com.google.protobuf.test.UnittestImport.ImportEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000010;
defaultImportEnum_ = value;
onChanged();
return this;
}
/**
* optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
*/
public Builder clearDefaultImportEnum() {
bitField2_ = (bitField2_ & ~0x00000010);
defaultImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_BAR;
onChanged();
return this;
}
private java.lang.Object defaultStringPiece_ = "abc";
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
public boolean hasDefaultStringPiece() {
return ((bitField2_ & 0x00000020) == 0x00000020);
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
public java.lang.String getDefaultStringPiece() {
java.lang.Object ref = defaultStringPiece_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
defaultStringPiece_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
public com.google.protobuf.ByteString
getDefaultStringPieceBytes() {
java.lang.Object ref = defaultStringPiece_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultStringPiece_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
public Builder setDefaultStringPiece(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000020;
defaultStringPiece_ = value;
onChanged();
return this;
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
public Builder clearDefaultStringPiece() {
bitField2_ = (bitField2_ & ~0x00000020);
defaultStringPiece_ = getDefaultInstance().getDefaultStringPiece();
onChanged();
return this;
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
public Builder setDefaultStringPieceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000020;
defaultStringPiece_ = value;
onChanged();
return this;
}
private java.lang.Object defaultCord_ = "123";
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
public boolean hasDefaultCord() {
return ((bitField2_ & 0x00000040) == 0x00000040);
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
public java.lang.String getDefaultCord() {
java.lang.Object ref = defaultCord_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
defaultCord_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
public com.google.protobuf.ByteString
getDefaultCordBytes() {
java.lang.Object ref = defaultCord_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultCord_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
public Builder setDefaultCord(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000040;
defaultCord_ = value;
onChanged();
return this;
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
public Builder clearDefaultCord() {
bitField2_ = (bitField2_ & ~0x00000040);
defaultCord_ = getDefaultInstance().getDefaultCord();
onChanged();
return this;
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
public Builder setDefaultCordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000040;
defaultCord_ = value;
onChanged();
return this;
}
/**
* optional uint32 oneof_uint32 = 111;
*/
public boolean hasOneofUint32() {
return oneofFieldCase_ == 111;
}
/**
* optional uint32 oneof_uint32 = 111;
*/
public int getOneofUint32() {
if (oneofFieldCase_ == 111) {
return (java.lang.Integer) oneofField_;
}
return 0;
}
/**
* optional uint32 oneof_uint32 = 111;
*/
public Builder setOneofUint32(int value) {
oneofFieldCase_ = 111;
oneofField_ = value;
onChanged();
return this;
}
/**
* optional uint32 oneof_uint32 = 111;
*/
public Builder clearOneofUint32() {
if (oneofFieldCase_ == 111) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> oneofNestedMessageBuilder_;
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public boolean hasOneofNestedMessage() {
return oneofFieldCase_ == 112;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOneofNestedMessage() {
if (oneofNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 112) {
return (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_;
}
return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
} else {
if (oneofFieldCase_ == 112) {
return oneofNestedMessageBuilder_.getMessage();
}
return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public Builder setOneofNestedMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (oneofNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
oneofField_ = value;
onChanged();
} else {
oneofNestedMessageBuilder_.setMessage(value);
}
oneofFieldCase_ = 112;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public Builder setOneofNestedMessage(
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (oneofNestedMessageBuilder_ == null) {
oneofField_ = builderForValue.build();
onChanged();
} else {
oneofNestedMessageBuilder_.setMessage(builderForValue.build());
}
oneofFieldCase_ = 112;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public Builder mergeOneofNestedMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) {
if (oneofNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 112 &&
oneofField_ != protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()) {
oneofField_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.newBuilder((protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_)
.mergeFrom(value).buildPartial();
} else {
oneofField_ = value;
}
onChanged();
} else {
if (oneofFieldCase_ == 112) {
oneofNestedMessageBuilder_.mergeFrom(value);
}
oneofNestedMessageBuilder_.setMessage(value);
}
oneofFieldCase_ = 112;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public Builder clearOneofNestedMessage() {
if (oneofNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 112) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
} else {
if (oneofFieldCase_ == 112) {
oneofFieldCase_ = 0;
oneofField_ = null;
}
oneofNestedMessageBuilder_.clear();
}
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getOneofNestedMessageBuilder() {
return getOneofNestedMessageFieldBuilder().getBuilder();
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOneofNestedMessageOrBuilder() {
if ((oneofFieldCase_ == 112) && (oneofNestedMessageBuilder_ != null)) {
return oneofNestedMessageBuilder_.getMessageOrBuilder();
} else {
if (oneofFieldCase_ == 112) {
return (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_;
}
return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
}
/**
* optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
*/
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>
getOneofNestedMessageFieldBuilder() {
if (oneofNestedMessageBuilder_ == null) {
if (!(oneofFieldCase_ == 112)) {
oneofField_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
oneofNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>(
(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_,
getParentForChildren(),
isClean());
oneofField_ = null;
}
oneofFieldCase_ = 112;
return oneofNestedMessageBuilder_;
}
/**
* optional string oneof_string = 113;
*/
public boolean hasOneofString() {
return oneofFieldCase_ == 113;
}
/**
* optional string oneof_string = 113;
*/
public java.lang.String getOneofString() {
java.lang.Object ref = "";
if (oneofFieldCase_ == 113) {
ref = oneofField_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (oneofFieldCase_ == 113) {
if (bs.isValidUtf8()) {
oneofField_ = s;
}
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string oneof_string = 113;
*/
public com.google.protobuf.ByteString
getOneofStringBytes() {
java.lang.Object ref = "";
if (oneofFieldCase_ == 113) {
ref = oneofField_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (oneofFieldCase_ == 113) {
oneofField_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string oneof_string = 113;
*/
public Builder setOneofString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
oneofFieldCase_ = 113;
oneofField_ = value;
onChanged();
return this;
}
/**
* optional string oneof_string = 113;
*/
public Builder clearOneofString() {
if (oneofFieldCase_ == 113) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
/**
* optional string oneof_string = 113;
*/
public Builder setOneofStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
oneofFieldCase_ = 113;
oneofField_ = value;
onChanged();
return this;
}
/**
* optional bytes oneof_bytes = 114;
*/
public boolean hasOneofBytes() {
return oneofFieldCase_ == 114;
}
/**
* optional bytes oneof_bytes = 114;
*/
public com.google.protobuf.ByteString getOneofBytes() {
if (oneofFieldCase_ == 114) {
return (com.google.protobuf.ByteString) oneofField_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* optional bytes oneof_bytes = 114;
*/
public Builder setOneofBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
oneofFieldCase_ = 114;
oneofField_ = value;
onChanged();
return this;
}
/**
* optional bytes oneof_bytes = 114;
*/
public Builder clearOneofBytes() {
if (oneofFieldCase_ == 114) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypes)
}
static {
defaultInstance = new TestAllTypes(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes)
}
public interface NestedTestAllTypesOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.NestedTestAllTypes)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
boolean hasChild();
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
protobuf_unittest.UnittestProto.NestedTestAllTypes getChild();
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder getChildOrBuilder();
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
boolean hasPayload();
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
protobuf_unittest.UnittestProto.TestAllTypes getPayload();
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getPayloadOrBuilder();
}
/**
* Protobuf type {@code protobuf_unittest.NestedTestAllTypes}
*
*
* This proto includes a recusively nested message.
*
*/
public static final class NestedTestAllTypes extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.NestedTestAllTypes)
NestedTestAllTypesOrBuilder {
// Use NestedTestAllTypes.newBuilder() to construct.
private NestedTestAllTypes(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NestedTestAllTypes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NestedTestAllTypes defaultInstance;
public static NestedTestAllTypes getDefaultInstance() {
return defaultInstance;
}
public NestedTestAllTypes getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NestedTestAllTypes(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = child_.toBuilder();
}
child_ = input.readMessage(protobuf_unittest.UnittestProto.NestedTestAllTypes.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(child_);
child_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = payload_.toBuilder();
}
payload_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(payload_);
payload_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_NestedTestAllTypes_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_NestedTestAllTypes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.NestedTestAllTypes.class, protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public NestedTestAllTypes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NestedTestAllTypes(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int CHILD_FIELD_NUMBER = 1;
private protobuf_unittest.UnittestProto.NestedTestAllTypes child_;
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public boolean hasChild() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public protobuf_unittest.UnittestProto.NestedTestAllTypes getChild() {
return child_;
}
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder getChildOrBuilder() {
return child_;
}
public static final int PAYLOAD_FIELD_NUMBER = 2;
private protobuf_unittest.UnittestProto.TestAllTypes payload_;
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public boolean hasPayload() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public protobuf_unittest.UnittestProto.TestAllTypes getPayload() {
return payload_;
}
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getPayloadOrBuilder() {
return payload_;
}
private void initFields() {
child_ = protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance();
payload_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, child_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, payload_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, child_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, payload_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.NestedTestAllTypes prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.NestedTestAllTypes}
*
*
* This proto includes a recusively nested message.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.NestedTestAllTypes)
protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_NestedTestAllTypes_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_NestedTestAllTypes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.NestedTestAllTypes.class, protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.NestedTestAllTypes.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getChildFieldBuilder();
getPayloadFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (childBuilder_ == null) {
child_ = protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance();
} else {
childBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (payloadBuilder_ == null) {
payload_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance();
} else {
payloadBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_NestedTestAllTypes_descriptor;
}
public protobuf_unittest.UnittestProto.NestedTestAllTypes getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.NestedTestAllTypes build() {
protobuf_unittest.UnittestProto.NestedTestAllTypes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.NestedTestAllTypes buildPartial() {
protobuf_unittest.UnittestProto.NestedTestAllTypes result = new protobuf_unittest.UnittestProto.NestedTestAllTypes(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (childBuilder_ == null) {
result.child_ = child_;
} else {
result.child_ = childBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (payloadBuilder_ == null) {
result.payload_ = payload_;
} else {
result.payload_ = payloadBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.NestedTestAllTypes) {
return mergeFrom((protobuf_unittest.UnittestProto.NestedTestAllTypes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.NestedTestAllTypes other) {
if (other == protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance()) return this;
if (other.hasChild()) {
mergeChild(other.getChild());
}
if (other.hasPayload()) {
mergePayload(other.getPayload());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.NestedTestAllTypes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.NestedTestAllTypes) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private protobuf_unittest.UnittestProto.NestedTestAllTypes child_ = protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.NestedTestAllTypes, protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder, protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder> childBuilder_;
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public boolean hasChild() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public protobuf_unittest.UnittestProto.NestedTestAllTypes getChild() {
if (childBuilder_ == null) {
return child_;
} else {
return childBuilder_.getMessage();
}
}
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public Builder setChild(protobuf_unittest.UnittestProto.NestedTestAllTypes value) {
if (childBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
child_ = value;
onChanged();
} else {
childBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public Builder setChild(
protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder builderForValue) {
if (childBuilder_ == null) {
child_ = builderForValue.build();
onChanged();
} else {
childBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public Builder mergeChild(protobuf_unittest.UnittestProto.NestedTestAllTypes value) {
if (childBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
child_ != protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance()) {
child_ =
protobuf_unittest.UnittestProto.NestedTestAllTypes.newBuilder(child_).mergeFrom(value).buildPartial();
} else {
child_ = value;
}
onChanged();
} else {
childBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public Builder clearChild() {
if (childBuilder_ == null) {
child_ = protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance();
onChanged();
} else {
childBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder getChildBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getChildFieldBuilder().getBuilder();
}
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
public protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder getChildOrBuilder() {
if (childBuilder_ != null) {
return childBuilder_.getMessageOrBuilder();
} else {
return child_;
}
}
/**
* optional .protobuf_unittest.NestedTestAllTypes child = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.NestedTestAllTypes, protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder, protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder>
getChildFieldBuilder() {
if (childBuilder_ == null) {
childBuilder_ = new com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.NestedTestAllTypes, protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder, protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder>(
getChild(),
getParentForChildren(),
isClean());
child_ = null;
}
return childBuilder_;
}
private protobuf_unittest.UnittestProto.TestAllTypes payload_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> payloadBuilder_;
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public boolean hasPayload() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public protobuf_unittest.UnittestProto.TestAllTypes getPayload() {
if (payloadBuilder_ == null) {
return payload_;
} else {
return payloadBuilder_.getMessage();
}
}
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public Builder setPayload(protobuf_unittest.UnittestProto.TestAllTypes value) {
if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
payloadBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public Builder setPayload(
protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) {
if (payloadBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
payloadBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public Builder mergePayload(protobuf_unittest.UnittestProto.TestAllTypes value) {
if (payloadBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
payload_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) {
payload_ =
protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(payload_).mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
payloadBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public Builder clearPayload() {
if (payloadBuilder_ == null) {
payload_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance();
onChanged();
} else {
payloadBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public protobuf_unittest.UnittestProto.TestAllTypes.Builder getPayloadBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPayloadFieldBuilder().getBuilder();
}
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getPayloadOrBuilder() {
if (payloadBuilder_ != null) {
return payloadBuilder_.getMessageOrBuilder();
} else {
return payload_;
}
}
/**
* optional .protobuf_unittest.TestAllTypes payload = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>(
getPayload(),
getParentForChildren(),
isClean());
payload_ = null;
}
return payloadBuilder_;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.NestedTestAllTypes)
}
static {
defaultInstance = new NestedTestAllTypes(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.NestedTestAllTypes)
}
public interface TestDeprecatedFieldsOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestDeprecatedFields)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 deprecated_int32 = 1 [deprecated = true];
*/
@java.lang.Deprecated boolean hasDeprecatedInt32();
/**
* optional int32 deprecated_int32 = 1 [deprecated = true];
*/
@java.lang.Deprecated int getDeprecatedInt32();
}
/**
* Protobuf type {@code protobuf_unittest.TestDeprecatedFields}
*/
public static final class TestDeprecatedFields extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestDeprecatedFields)
TestDeprecatedFieldsOrBuilder {
// Use TestDeprecatedFields.newBuilder() to construct.
private TestDeprecatedFields(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TestDeprecatedFields(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final TestDeprecatedFields defaultInstance;
public static TestDeprecatedFields getDefaultInstance() {
return defaultInstance;
}
public TestDeprecatedFields getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TestDeprecatedFields(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
deprecatedInt32_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDeprecatedFields_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDeprecatedFields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestDeprecatedFields.class, protobuf_unittest.UnittestProto.TestDeprecatedFields.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TestDeprecatedFields parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestDeprecatedFields(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int DEPRECATED_INT32_FIELD_NUMBER = 1;
private int deprecatedInt32_;
/**
* optional int32 deprecated_int32 = 1 [deprecated = true];
*/
@java.lang.Deprecated public boolean hasDeprecatedInt32() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 deprecated_int32 = 1 [deprecated = true];
*/
@java.lang.Deprecated public int getDeprecatedInt32() {
return deprecatedInt32_;
}
private void initFields() {
deprecatedInt32_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, deprecatedInt32_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, deprecatedInt32_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.TestDeprecatedFields prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.TestDeprecatedFields}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestDeprecatedFields)
protobuf_unittest.UnittestProto.TestDeprecatedFieldsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDeprecatedFields_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDeprecatedFields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestDeprecatedFields.class, protobuf_unittest.UnittestProto.TestDeprecatedFields.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.TestDeprecatedFields.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
deprecatedInt32_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDeprecatedFields_descriptor;
}
public protobuf_unittest.UnittestProto.TestDeprecatedFields getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.TestDeprecatedFields.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.TestDeprecatedFields build() {
protobuf_unittest.UnittestProto.TestDeprecatedFields result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.TestDeprecatedFields buildPartial() {
protobuf_unittest.UnittestProto.TestDeprecatedFields result = new protobuf_unittest.UnittestProto.TestDeprecatedFields(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.deprecatedInt32_ = deprecatedInt32_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.TestDeprecatedFields) {
return mergeFrom((protobuf_unittest.UnittestProto.TestDeprecatedFields)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.TestDeprecatedFields other) {
if (other == protobuf_unittest.UnittestProto.TestDeprecatedFields.getDefaultInstance()) return this;
if (other.hasDeprecatedInt32()) {
setDeprecatedInt32(other.getDeprecatedInt32());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.TestDeprecatedFields parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.TestDeprecatedFields) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int deprecatedInt32_ ;
/**
* optional int32 deprecated_int32 = 1 [deprecated = true];
*/
@java.lang.Deprecated public boolean hasDeprecatedInt32() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 deprecated_int32 = 1 [deprecated = true];
*/
@java.lang.Deprecated public int getDeprecatedInt32() {
return deprecatedInt32_;
}
/**
* optional int32 deprecated_int32 = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder setDeprecatedInt32(int value) {
bitField0_ |= 0x00000001;
deprecatedInt32_ = value;
onChanged();
return this;
}
/**
* optional int32 deprecated_int32 = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearDeprecatedInt32() {
bitField0_ = (bitField0_ & ~0x00000001);
deprecatedInt32_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestDeprecatedFields)
}
static {
defaultInstance = new TestDeprecatedFields(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestDeprecatedFields)
}
public interface ForeignMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.ForeignMessage)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 c = 1;
*/
boolean hasC();
/**
* optional int32 c = 1;
*/
int getC();
}
/**
* Protobuf type {@code protobuf_unittest.ForeignMessage}
*
*
* Define these after TestAllTypes to make sure the compiler can handle
* that.
*
*/
public static final class ForeignMessage extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.ForeignMessage)
ForeignMessageOrBuilder {
// Use ForeignMessage.newBuilder() to construct.
private ForeignMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ForeignMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ForeignMessage defaultInstance;
public static ForeignMessage getDefaultInstance() {
return defaultInstance;
}
public ForeignMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ForeignMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
c_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_ForeignMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_ForeignMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.ForeignMessage.class, protobuf_unittest.UnittestProto.ForeignMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ForeignMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ForeignMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int C_FIELD_NUMBER = 1;
private int c_;
/**
* optional int32 c = 1;
*/
public boolean hasC() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 c = 1;
*/
public int getC() {
return c_;
}
private void initFields() {
c_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, c_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, c_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.ForeignMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.ForeignMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.ForeignMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.ForeignMessage}
*
*
* Define these after TestAllTypes to make sure the compiler can handle
* that.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.ForeignMessage)
protobuf_unittest.UnittestProto.ForeignMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_ForeignMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_ForeignMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.ForeignMessage.class, protobuf_unittest.UnittestProto.ForeignMessage.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.ForeignMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
c_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_ForeignMessage_descriptor;
}
public protobuf_unittest.UnittestProto.ForeignMessage getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.ForeignMessage build() {
protobuf_unittest.UnittestProto.ForeignMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.ForeignMessage buildPartial() {
protobuf_unittest.UnittestProto.ForeignMessage result = new protobuf_unittest.UnittestProto.ForeignMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.c_ = c_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.ForeignMessage) {
return mergeFrom((protobuf_unittest.UnittestProto.ForeignMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.ForeignMessage other) {
if (other == protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()) return this;
if (other.hasC()) {
setC(other.getC());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.ForeignMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.ForeignMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int c_ ;
/**
* optional int32 c = 1;
*/
public boolean hasC() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 c = 1;
*/
public int getC() {
return c_;
}
/**
* optional int32 c = 1;
*/
public Builder setC(int value) {
bitField0_ |= 0x00000001;
c_ = value;
onChanged();
return this;
}
/**
* optional int32 c = 1;
*/
public Builder clearC() {
bitField0_ = (bitField0_ & ~0x00000001);
c_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.ForeignMessage)
}
static {
defaultInstance = new ForeignMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.ForeignMessage)
}
public interface TestAllExtensionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllExtensions)
com.google.protobuf.GeneratedMessage.
ExtendableMessageOrBuilder {
}
/**
* Protobuf type {@code protobuf_unittest.TestAllExtensions}
*/
public static final class TestAllExtensions extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
TestAllExtensions> implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllExtensions)
TestAllExtensionsOrBuilder {
// Use TestAllExtensions.newBuilder() to construct.
private TestAllExtensions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TestAllExtensions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final TestAllExtensions defaultInstance;
public static TestAllExtensions getDefaultInstance() {
return defaultInstance;
}
public TestAllExtensions getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TestAllExtensions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllExtensions_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllExtensions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestAllExtensions.class, protobuf_unittest.UnittestProto.TestAllExtensions.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TestAllExtensions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestAllExtensions(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
com.google.protobuf.GeneratedMessage
.ExtendableMessage.ExtensionWriter extensionWriter =
newExtensionWriter();
extensionWriter.writeUntil(536870912, output);
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += extensionsSerializedSize();
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllExtensions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllExtensions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.TestAllExtensions prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.TestAllExtensions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
protobuf_unittest.UnittestProto.TestAllExtensions, Builder> implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllExtensions)
protobuf_unittest.UnittestProto.TestAllExtensionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllExtensions_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllExtensions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestAllExtensions.class, protobuf_unittest.UnittestProto.TestAllExtensions.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.TestAllExtensions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllExtensions_descriptor;
}
public protobuf_unittest.UnittestProto.TestAllExtensions getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.TestAllExtensions.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.TestAllExtensions build() {
protobuf_unittest.UnittestProto.TestAllExtensions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.TestAllExtensions buildPartial() {
protobuf_unittest.UnittestProto.TestAllExtensions result = new protobuf_unittest.UnittestProto.TestAllExtensions(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.TestAllExtensions) {
return mergeFrom((protobuf_unittest.UnittestProto.TestAllExtensions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.TestAllExtensions other) {
if (other == protobuf_unittest.UnittestProto.TestAllExtensions.getDefaultInstance()) return this;
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.TestAllExtensions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.TestAllExtensions) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllExtensions)
}
static {
defaultInstance = new TestAllExtensions(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllExtensions)
}
public interface OptionalGroup_extensionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.OptionalGroup_extension)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 a = 17;
*/
boolean hasA();
/**
* optional int32 a = 17;
*/
int getA();
}
/**
* Protobuf type {@code protobuf_unittest.OptionalGroup_extension}
*/
public static final class OptionalGroup_extension extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.OptionalGroup_extension)
OptionalGroup_extensionOrBuilder {
// Use OptionalGroup_extension.newBuilder() to construct.
private OptionalGroup_extension(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private OptionalGroup_extension(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final OptionalGroup_extension defaultInstance;
public static OptionalGroup_extension getDefaultInstance() {
return defaultInstance;
}
public OptionalGroup_extension getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OptionalGroup_extension(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 136: {
bitField0_ |= 0x00000001;
a_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OptionalGroup_extension_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OptionalGroup_extension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.OptionalGroup_extension.class, protobuf_unittest.UnittestProto.OptionalGroup_extension.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public OptionalGroup_extension parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OptionalGroup_extension(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int A_FIELD_NUMBER = 17;
private int a_;
/**
* optional int32 a = 17;
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 a = 17;
*/
public int getA() {
return a_;
}
private void initFields() {
a_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(17, a_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(17, a_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.OptionalGroup_extension prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.OptionalGroup_extension}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.OptionalGroup_extension)
protobuf_unittest.UnittestProto.OptionalGroup_extensionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OptionalGroup_extension_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OptionalGroup_extension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.OptionalGroup_extension.class, protobuf_unittest.UnittestProto.OptionalGroup_extension.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.OptionalGroup_extension.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
a_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OptionalGroup_extension_descriptor;
}
public protobuf_unittest.UnittestProto.OptionalGroup_extension getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.OptionalGroup_extension.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.OptionalGroup_extension build() {
protobuf_unittest.UnittestProto.OptionalGroup_extension result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.OptionalGroup_extension buildPartial() {
protobuf_unittest.UnittestProto.OptionalGroup_extension result = new protobuf_unittest.UnittestProto.OptionalGroup_extension(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.a_ = a_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.OptionalGroup_extension) {
return mergeFrom((protobuf_unittest.UnittestProto.OptionalGroup_extension)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.OptionalGroup_extension other) {
if (other == protobuf_unittest.UnittestProto.OptionalGroup_extension.getDefaultInstance()) return this;
if (other.hasA()) {
setA(other.getA());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.OptionalGroup_extension parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.OptionalGroup_extension) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int a_ ;
/**
* optional int32 a = 17;
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 a = 17;
*/
public int getA() {
return a_;
}
/**
* optional int32 a = 17;
*/
public Builder setA(int value) {
bitField0_ |= 0x00000001;
a_ = value;
onChanged();
return this;
}
/**
* optional int32 a = 17;
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000001);
a_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.OptionalGroup_extension)
}
static {
defaultInstance = new OptionalGroup_extension(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.OptionalGroup_extension)
}
public interface RepeatedGroup_extensionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.RepeatedGroup_extension)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 a = 47;
*/
boolean hasA();
/**
* optional int32 a = 47;
*/
int getA();
}
/**
* Protobuf type {@code protobuf_unittest.RepeatedGroup_extension}
*/
public static final class RepeatedGroup_extension extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.RepeatedGroup_extension)
RepeatedGroup_extensionOrBuilder {
// Use RepeatedGroup_extension.newBuilder() to construct.
private RepeatedGroup_extension(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RepeatedGroup_extension(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RepeatedGroup_extension defaultInstance;
public static RepeatedGroup_extension getDefaultInstance() {
return defaultInstance;
}
public RepeatedGroup_extension getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RepeatedGroup_extension(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 376: {
bitField0_ |= 0x00000001;
a_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_RepeatedGroup_extension_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_RepeatedGroup_extension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.RepeatedGroup_extension.class, protobuf_unittest.UnittestProto.RepeatedGroup_extension.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RepeatedGroup_extension parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RepeatedGroup_extension(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int A_FIELD_NUMBER = 47;
private int a_;
/**
* optional int32 a = 47;
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 a = 47;
*/
public int getA() {
return a_;
}
private void initFields() {
a_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(47, a_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(47, a_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.RepeatedGroup_extension prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.RepeatedGroup_extension}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.RepeatedGroup_extension)
protobuf_unittest.UnittestProto.RepeatedGroup_extensionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_RepeatedGroup_extension_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_RepeatedGroup_extension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.RepeatedGroup_extension.class, protobuf_unittest.UnittestProto.RepeatedGroup_extension.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.RepeatedGroup_extension.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
a_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_RepeatedGroup_extension_descriptor;
}
public protobuf_unittest.UnittestProto.RepeatedGroup_extension getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.RepeatedGroup_extension.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.RepeatedGroup_extension build() {
protobuf_unittest.UnittestProto.RepeatedGroup_extension result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.RepeatedGroup_extension buildPartial() {
protobuf_unittest.UnittestProto.RepeatedGroup_extension result = new protobuf_unittest.UnittestProto.RepeatedGroup_extension(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.a_ = a_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.RepeatedGroup_extension) {
return mergeFrom((protobuf_unittest.UnittestProto.RepeatedGroup_extension)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.RepeatedGroup_extension other) {
if (other == protobuf_unittest.UnittestProto.RepeatedGroup_extension.getDefaultInstance()) return this;
if (other.hasA()) {
setA(other.getA());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.RepeatedGroup_extension parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.RepeatedGroup_extension) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int a_ ;
/**
* optional int32 a = 47;
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 a = 47;
*/
public int getA() {
return a_;
}
/**
* optional int32 a = 47;
*/
public Builder setA(int value) {
bitField0_ |= 0x00000001;
a_ = value;
onChanged();
return this;
}
/**
* optional int32 a = 47;
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000001);
a_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.RepeatedGroup_extension)
}
static {
defaultInstance = new RepeatedGroup_extension(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.RepeatedGroup_extension)
}
public interface TestNestedExtensionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestNestedExtension)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code protobuf_unittest.TestNestedExtension}
*/
public static final class TestNestedExtension extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestNestedExtension)
TestNestedExtensionOrBuilder {
// Use TestNestedExtension.newBuilder() to construct.
private TestNestedExtension(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TestNestedExtension(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final TestNestedExtension defaultInstance;
public static TestNestedExtension getDefaultInstance() {
return defaultInstance;
}
public TestNestedExtension getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TestNestedExtension(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedExtension_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedExtension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestNestedExtension.class, protobuf_unittest.UnittestProto.TestNestedExtension.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TestNestedExtension parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestNestedExtension(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestNestedExtension parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.TestNestedExtension parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.TestNestedExtension prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.TestNestedExtension}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestNestedExtension)
protobuf_unittest.UnittestProto.TestNestedExtensionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedExtension_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedExtension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestNestedExtension.class, protobuf_unittest.UnittestProto.TestNestedExtension.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.TestNestedExtension.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedExtension_descriptor;
}
public protobuf_unittest.UnittestProto.TestNestedExtension getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.TestNestedExtension.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.TestNestedExtension build() {
protobuf_unittest.UnittestProto.TestNestedExtension result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.TestNestedExtension buildPartial() {
protobuf_unittest.UnittestProto.TestNestedExtension result = new protobuf_unittest.UnittestProto.TestNestedExtension(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.TestNestedExtension) {
return mergeFrom((protobuf_unittest.UnittestProto.TestNestedExtension)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.TestNestedExtension other) {
if (other == protobuf_unittest.UnittestProto.TestNestedExtension.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.TestNestedExtension parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.TestNestedExtension) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestNestedExtension)
}
static {
defaultInstance = new TestNestedExtension(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedExtension)
public static final int TEST_FIELD_NUMBER = 1002;
/**
* extend .protobuf_unittest.TestAllExtensions { ... }
*
*
* Check for bug where string extensions declared in tested scope did not
* compile.
*
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
protobuf_unittest.UnittestProto.TestAllExtensions,
java.lang.String> test = com.google.protobuf.GeneratedMessage
.newMessageScopedGeneratedExtension(
protobuf_unittest.UnittestProto.TestNestedExtension.getDefaultInstance(),
0,
java.lang.String.class,
null);
public static final int NESTED_STRING_EXTENSION_FIELD_NUMBER = 1003;
/**
* extend .protobuf_unittest.TestAllExtensions { ... }
*
*
* Used to test if generated extension name is correct when there are
* underscores.
*
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
protobuf_unittest.UnittestProto.TestAllExtensions,
java.lang.String> nestedStringExtension = com.google.protobuf.GeneratedMessage
.newMessageScopedGeneratedExtension(
protobuf_unittest.UnittestProto.TestNestedExtension.getDefaultInstance(),
1,
java.lang.String.class,
null);
}
public interface TestRequiredOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestRequired)
com.google.protobuf.MessageOrBuilder {
/**
* required int32 a = 1;
*/
boolean hasA();
/**
* required int32 a = 1;
*/
int getA();
/**
* optional int32 dummy2 = 2;
*/
boolean hasDummy2();
/**
* optional int32 dummy2 = 2;
*/
int getDummy2();
/**
* required int32 b = 3;
*/
boolean hasB();
/**
* required int32 b = 3;
*/
int getB();
/**
* optional int32 dummy4 = 4;
*
*
* Pad the field count to 32 so that we can test that IsInitialized()
* properly checks multiple elements of has_bits_.
*
*/
boolean hasDummy4();
/**
* optional int32 dummy4 = 4;
*
*
* Pad the field count to 32 so that we can test that IsInitialized()
* properly checks multiple elements of has_bits_.
*
*/
int getDummy4();
/**
* optional int32 dummy5 = 5;
*/
boolean hasDummy5();
/**
* optional int32 dummy5 = 5;
*/
int getDummy5();
/**
* optional int32 dummy6 = 6;
*/
boolean hasDummy6();
/**
* optional int32 dummy6 = 6;
*/
int getDummy6();
/**
* optional int32 dummy7 = 7;
*/
boolean hasDummy7();
/**
* optional int32 dummy7 = 7;
*/
int getDummy7();
/**
* optional int32 dummy8 = 8;
*/
boolean hasDummy8();
/**
* optional int32 dummy8 = 8;
*/
int getDummy8();
/**
* optional int32 dummy9 = 9;
*/
boolean hasDummy9();
/**
* optional int32 dummy9 = 9;
*/
int getDummy9();
/**
* optional int32 dummy10 = 10;
*/
boolean hasDummy10();
/**
* optional int32 dummy10 = 10;
*/
int getDummy10();
/**
* optional int32 dummy11 = 11;
*/
boolean hasDummy11();
/**
* optional int32 dummy11 = 11;
*/
int getDummy11();
/**
* optional int32 dummy12 = 12;
*/
boolean hasDummy12();
/**
* optional int32 dummy12 = 12;
*/
int getDummy12();
/**
* optional int32 dummy13 = 13;
*/
boolean hasDummy13();
/**
* optional int32 dummy13 = 13;
*/
int getDummy13();
/**
* optional int32 dummy14 = 14;
*/
boolean hasDummy14();
/**
* optional int32 dummy14 = 14;
*/
int getDummy14();
/**
* optional int32 dummy15 = 15;
*/
boolean hasDummy15();
/**
* optional int32 dummy15 = 15;
*/
int getDummy15();
/**
* optional int32 dummy16 = 16;
*/
boolean hasDummy16();
/**
* optional int32 dummy16 = 16;
*/
int getDummy16();
/**
* optional int32 dummy17 = 17;
*/
boolean hasDummy17();
/**
* optional int32 dummy17 = 17;
*/
int getDummy17();
/**
* optional int32 dummy18 = 18;
*/
boolean hasDummy18();
/**
* optional int32 dummy18 = 18;
*/
int getDummy18();
/**
* optional int32 dummy19 = 19;
*/
boolean hasDummy19();
/**
* optional int32 dummy19 = 19;
*/
int getDummy19();
/**
* optional int32 dummy20 = 20;
*/
boolean hasDummy20();
/**
* optional int32 dummy20 = 20;
*/
int getDummy20();
/**
* optional int32 dummy21 = 21;
*/
boolean hasDummy21();
/**
* optional int32 dummy21 = 21;
*/
int getDummy21();
/**
* optional int32 dummy22 = 22;
*/
boolean hasDummy22();
/**
* optional int32 dummy22 = 22;
*/
int getDummy22();
/**
* optional int32 dummy23 = 23;
*/
boolean hasDummy23();
/**
* optional int32 dummy23 = 23;
*/
int getDummy23();
/**
* optional int32 dummy24 = 24;
*/
boolean hasDummy24();
/**
* optional int32 dummy24 = 24;
*/
int getDummy24();
/**
* optional int32 dummy25 = 25;
*/
boolean hasDummy25();
/**
* optional int32 dummy25 = 25;
*/
int getDummy25();
/**
* optional int32 dummy26 = 26;
*/
boolean hasDummy26();
/**
* optional int32 dummy26 = 26;
*/
int getDummy26();
/**
* optional int32 dummy27 = 27;
*/
boolean hasDummy27();
/**
* optional int32 dummy27 = 27;
*/
int getDummy27();
/**
* optional int32 dummy28 = 28;
*/
boolean hasDummy28();
/**
* optional int32 dummy28 = 28;
*/
int getDummy28();
/**
* optional int32 dummy29 = 29;
*/
boolean hasDummy29();
/**
* optional int32 dummy29 = 29;
*/
int getDummy29();
/**
* optional int32 dummy30 = 30;
*/
boolean hasDummy30();
/**
* optional int32 dummy30 = 30;
*/
int getDummy30();
/**
* optional int32 dummy31 = 31;
*/
boolean hasDummy31();
/**
* optional int32 dummy31 = 31;
*/
int getDummy31();
/**
* optional int32 dummy32 = 32;
*/
boolean hasDummy32();
/**
* optional int32 dummy32 = 32;
*/
int getDummy32();
/**
* required int32 c = 33;
*/
boolean hasC();
/**
* required int32 c = 33;
*/
int getC();
}
/**
* Protobuf type {@code protobuf_unittest.TestRequired}
*
*
* We have separate messages for testing required fields because it's
* annoying to have to fill in required fields in TestProto in order to
* do anything with it. Note that we don't need to test every type of
* required filed because the code output is basically identical to
* optional fields for all types.
*
*/
public static final class TestRequired extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestRequired)
TestRequiredOrBuilder {
// Use TestRequired.newBuilder() to construct.
private TestRequired(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TestRequired(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final TestRequired defaultInstance;
public static TestRequired getDefaultInstance() {
return defaultInstance;
}
public TestRequired getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TestRequired(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
int mutable_bitField1_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
a_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
dummy2_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
b_ = input.readInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
dummy4_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
dummy5_ = input.readInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
dummy6_ = input.readInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
dummy7_ = input.readInt32();
break;
}
case 64: {
bitField0_ |= 0x00000080;
dummy8_ = input.readInt32();
break;
}
case 72: {
bitField0_ |= 0x00000100;
dummy9_ = input.readInt32();
break;
}
case 80: {
bitField0_ |= 0x00000200;
dummy10_ = input.readInt32();
break;
}
case 88: {
bitField0_ |= 0x00000400;
dummy11_ = input.readInt32();
break;
}
case 96: {
bitField0_ |= 0x00000800;
dummy12_ = input.readInt32();
break;
}
case 104: {
bitField0_ |= 0x00001000;
dummy13_ = input.readInt32();
break;
}
case 112: {
bitField0_ |= 0x00002000;
dummy14_ = input.readInt32();
break;
}
case 120: {
bitField0_ |= 0x00004000;
dummy15_ = input.readInt32();
break;
}
case 128: {
bitField0_ |= 0x00008000;
dummy16_ = input.readInt32();
break;
}
case 136: {
bitField0_ |= 0x00010000;
dummy17_ = input.readInt32();
break;
}
case 144: {
bitField0_ |= 0x00020000;
dummy18_ = input.readInt32();
break;
}
case 152: {
bitField0_ |= 0x00040000;
dummy19_ = input.readInt32();
break;
}
case 160: {
bitField0_ |= 0x00080000;
dummy20_ = input.readInt32();
break;
}
case 168: {
bitField0_ |= 0x00100000;
dummy21_ = input.readInt32();
break;
}
case 176: {
bitField0_ |= 0x00200000;
dummy22_ = input.readInt32();
break;
}
case 184: {
bitField0_ |= 0x00400000;
dummy23_ = input.readInt32();
break;
}
case 192: {
bitField0_ |= 0x00800000;
dummy24_ = input.readInt32();
break;
}
case 200: {
bitField0_ |= 0x01000000;
dummy25_ = input.readInt32();
break;
}
case 208: {
bitField0_ |= 0x02000000;
dummy26_ = input.readInt32();
break;
}
case 216: {
bitField0_ |= 0x04000000;
dummy27_ = input.readInt32();
break;
}
case 224: {
bitField0_ |= 0x08000000;
dummy28_ = input.readInt32();
break;
}
case 232: {
bitField0_ |= 0x10000000;
dummy29_ = input.readInt32();
break;
}
case 240: {
bitField0_ |= 0x20000000;
dummy30_ = input.readInt32();
break;
}
case 248: {
bitField0_ |= 0x40000000;
dummy31_ = input.readInt32();
break;
}
case 256: {
bitField0_ |= 0x80000000;
dummy32_ = input.readInt32();
break;
}
case 264: {
bitField1_ |= 0x00000001;
c_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequired_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequired_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestRequired.class, protobuf_unittest.UnittestProto.TestRequired.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TestRequired parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestRequired(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
private int bitField1_;
public static final int A_FIELD_NUMBER = 1;
private int a_;
/**
* required int32 a = 1;
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 a = 1;
*/
public int getA() {
return a_;
}
public static final int DUMMY2_FIELD_NUMBER = 2;
private int dummy2_;
/**
* optional int32 dummy2 = 2;
*/
public boolean hasDummy2() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 dummy2 = 2;
*/
public int getDummy2() {
return dummy2_;
}
public static final int B_FIELD_NUMBER = 3;
private int b_;
/**
* required int32 b = 3;
*/
public boolean hasB() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 b = 3;
*/
public int getB() {
return b_;
}
public static final int DUMMY4_FIELD_NUMBER = 4;
private int dummy4_;
/**
* optional int32 dummy4 = 4;
*
*
* Pad the field count to 32 so that we can test that IsInitialized()
* properly checks multiple elements of has_bits_.
*
*/
public boolean hasDummy4() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 dummy4 = 4;
*
*
* Pad the field count to 32 so that we can test that IsInitialized()
* properly checks multiple elements of has_bits_.
*
*/
public int getDummy4() {
return dummy4_;
}
public static final int DUMMY5_FIELD_NUMBER = 5;
private int dummy5_;
/**
* optional int32 dummy5 = 5;
*/
public boolean hasDummy5() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 dummy5 = 5;
*/
public int getDummy5() {
return dummy5_;
}
public static final int DUMMY6_FIELD_NUMBER = 6;
private int dummy6_;
/**
* optional int32 dummy6 = 6;
*/
public boolean hasDummy6() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int32 dummy6 = 6;
*/
public int getDummy6() {
return dummy6_;
}
public static final int DUMMY7_FIELD_NUMBER = 7;
private int dummy7_;
/**
* optional int32 dummy7 = 7;
*/
public boolean hasDummy7() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int32 dummy7 = 7;
*/
public int getDummy7() {
return dummy7_;
}
public static final int DUMMY8_FIELD_NUMBER = 8;
private int dummy8_;
/**
* optional int32 dummy8 = 8;
*/
public boolean hasDummy8() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int32 dummy8 = 8;
*/
public int getDummy8() {
return dummy8_;
}
public static final int DUMMY9_FIELD_NUMBER = 9;
private int dummy9_;
/**
* optional int32 dummy9 = 9;
*/
public boolean hasDummy9() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int32 dummy9 = 9;
*/
public int getDummy9() {
return dummy9_;
}
public static final int DUMMY10_FIELD_NUMBER = 10;
private int dummy10_;
/**
* optional int32 dummy10 = 10;
*/
public boolean hasDummy10() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int32 dummy10 = 10;
*/
public int getDummy10() {
return dummy10_;
}
public static final int DUMMY11_FIELD_NUMBER = 11;
private int dummy11_;
/**
* optional int32 dummy11 = 11;
*/
public boolean hasDummy11() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional int32 dummy11 = 11;
*/
public int getDummy11() {
return dummy11_;
}
public static final int DUMMY12_FIELD_NUMBER = 12;
private int dummy12_;
/**
* optional int32 dummy12 = 12;
*/
public boolean hasDummy12() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional int32 dummy12 = 12;
*/
public int getDummy12() {
return dummy12_;
}
public static final int DUMMY13_FIELD_NUMBER = 13;
private int dummy13_;
/**
* optional int32 dummy13 = 13;
*/
public boolean hasDummy13() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional int32 dummy13 = 13;
*/
public int getDummy13() {
return dummy13_;
}
public static final int DUMMY14_FIELD_NUMBER = 14;
private int dummy14_;
/**
* optional int32 dummy14 = 14;
*/
public boolean hasDummy14() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional int32 dummy14 = 14;
*/
public int getDummy14() {
return dummy14_;
}
public static final int DUMMY15_FIELD_NUMBER = 15;
private int dummy15_;
/**
* optional int32 dummy15 = 15;
*/
public boolean hasDummy15() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional int32 dummy15 = 15;
*/
public int getDummy15() {
return dummy15_;
}
public static final int DUMMY16_FIELD_NUMBER = 16;
private int dummy16_;
/**
* optional int32 dummy16 = 16;
*/
public boolean hasDummy16() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional int32 dummy16 = 16;
*/
public int getDummy16() {
return dummy16_;
}
public static final int DUMMY17_FIELD_NUMBER = 17;
private int dummy17_;
/**
* optional int32 dummy17 = 17;
*/
public boolean hasDummy17() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* optional int32 dummy17 = 17;
*/
public int getDummy17() {
return dummy17_;
}
public static final int DUMMY18_FIELD_NUMBER = 18;
private int dummy18_;
/**
* optional int32 dummy18 = 18;
*/
public boolean hasDummy18() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional int32 dummy18 = 18;
*/
public int getDummy18() {
return dummy18_;
}
public static final int DUMMY19_FIELD_NUMBER = 19;
private int dummy19_;
/**
* optional int32 dummy19 = 19;
*/
public boolean hasDummy19() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional int32 dummy19 = 19;
*/
public int getDummy19() {
return dummy19_;
}
public static final int DUMMY20_FIELD_NUMBER = 20;
private int dummy20_;
/**
* optional int32 dummy20 = 20;
*/
public boolean hasDummy20() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional int32 dummy20 = 20;
*/
public int getDummy20() {
return dummy20_;
}
public static final int DUMMY21_FIELD_NUMBER = 21;
private int dummy21_;
/**
* optional int32 dummy21 = 21;
*/
public boolean hasDummy21() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
* optional int32 dummy21 = 21;
*/
public int getDummy21() {
return dummy21_;
}
public static final int DUMMY22_FIELD_NUMBER = 22;
private int dummy22_;
/**
* optional int32 dummy22 = 22;
*/
public boolean hasDummy22() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional int32 dummy22 = 22;
*/
public int getDummy22() {
return dummy22_;
}
public static final int DUMMY23_FIELD_NUMBER = 23;
private int dummy23_;
/**
* optional int32 dummy23 = 23;
*/
public boolean hasDummy23() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
* optional int32 dummy23 = 23;
*/
public int getDummy23() {
return dummy23_;
}
public static final int DUMMY24_FIELD_NUMBER = 24;
private int dummy24_;
/**
* optional int32 dummy24 = 24;
*/
public boolean hasDummy24() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
* optional int32 dummy24 = 24;
*/
public int getDummy24() {
return dummy24_;
}
public static final int DUMMY25_FIELD_NUMBER = 25;
private int dummy25_;
/**
* optional int32 dummy25 = 25;
*/
public boolean hasDummy25() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
* optional int32 dummy25 = 25;
*/
public int getDummy25() {
return dummy25_;
}
public static final int DUMMY26_FIELD_NUMBER = 26;
private int dummy26_;
/**
* optional int32 dummy26 = 26;
*/
public boolean hasDummy26() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
* optional int32 dummy26 = 26;
*/
public int getDummy26() {
return dummy26_;
}
public static final int DUMMY27_FIELD_NUMBER = 27;
private int dummy27_;
/**
* optional int32 dummy27 = 27;
*/
public boolean hasDummy27() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
* optional int32 dummy27 = 27;
*/
public int getDummy27() {
return dummy27_;
}
public static final int DUMMY28_FIELD_NUMBER = 28;
private int dummy28_;
/**
* optional int32 dummy28 = 28;
*/
public boolean hasDummy28() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
* optional int32 dummy28 = 28;
*/
public int getDummy28() {
return dummy28_;
}
public static final int DUMMY29_FIELD_NUMBER = 29;
private int dummy29_;
/**
* optional int32 dummy29 = 29;
*/
public boolean hasDummy29() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
* optional int32 dummy29 = 29;
*/
public int getDummy29() {
return dummy29_;
}
public static final int DUMMY30_FIELD_NUMBER = 30;
private int dummy30_;
/**
* optional int32 dummy30 = 30;
*/
public boolean hasDummy30() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
* optional int32 dummy30 = 30;
*/
public int getDummy30() {
return dummy30_;
}
public static final int DUMMY31_FIELD_NUMBER = 31;
private int dummy31_;
/**
* optional int32 dummy31 = 31;
*/
public boolean hasDummy31() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
* optional int32 dummy31 = 31;
*/
public int getDummy31() {
return dummy31_;
}
public static final int DUMMY32_FIELD_NUMBER = 32;
private int dummy32_;
/**
* optional int32 dummy32 = 32;
*/
public boolean hasDummy32() {
return ((bitField0_ & 0x80000000) == 0x80000000);
}
/**
* optional int32 dummy32 = 32;
*/
public int getDummy32() {
return dummy32_;
}
public static final int C_FIELD_NUMBER = 33;
private int c_;
/**
* required int32 c = 33;
*/
public boolean hasC() {
return ((bitField1_ & 0x00000001) == 0x00000001);
}
/**
* required int32 c = 33;
*/
public int getC() {
return c_;
}
private void initFields() {
a_ = 0;
dummy2_ = 0;
b_ = 0;
dummy4_ = 0;
dummy5_ = 0;
dummy6_ = 0;
dummy7_ = 0;
dummy8_ = 0;
dummy9_ = 0;
dummy10_ = 0;
dummy11_ = 0;
dummy12_ = 0;
dummy13_ = 0;
dummy14_ = 0;
dummy15_ = 0;
dummy16_ = 0;
dummy17_ = 0;
dummy18_ = 0;
dummy19_ = 0;
dummy20_ = 0;
dummy21_ = 0;
dummy22_ = 0;
dummy23_ = 0;
dummy24_ = 0;
dummy25_ = 0;
dummy26_ = 0;
dummy27_ = 0;
dummy28_ = 0;
dummy29_ = 0;
dummy30_ = 0;
dummy31_ = 0;
dummy32_ = 0;
c_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasA()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasB()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasC()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, a_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, dummy2_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, b_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, dummy4_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, dummy5_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, dummy6_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt32(7, dummy7_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt32(8, dummy8_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt32(9, dummy9_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt32(10, dummy10_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeInt32(11, dummy11_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeInt32(12, dummy12_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeInt32(13, dummy13_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeInt32(14, dummy14_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeInt32(15, dummy15_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
output.writeInt32(16, dummy16_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
output.writeInt32(17, dummy17_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
output.writeInt32(18, dummy18_);
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
output.writeInt32(19, dummy19_);
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
output.writeInt32(20, dummy20_);
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
output.writeInt32(21, dummy21_);
}
if (((bitField0_ & 0x00200000) == 0x00200000)) {
output.writeInt32(22, dummy22_);
}
if (((bitField0_ & 0x00400000) == 0x00400000)) {
output.writeInt32(23, dummy23_);
}
if (((bitField0_ & 0x00800000) == 0x00800000)) {
output.writeInt32(24, dummy24_);
}
if (((bitField0_ & 0x01000000) == 0x01000000)) {
output.writeInt32(25, dummy25_);
}
if (((bitField0_ & 0x02000000) == 0x02000000)) {
output.writeInt32(26, dummy26_);
}
if (((bitField0_ & 0x04000000) == 0x04000000)) {
output.writeInt32(27, dummy27_);
}
if (((bitField0_ & 0x08000000) == 0x08000000)) {
output.writeInt32(28, dummy28_);
}
if (((bitField0_ & 0x10000000) == 0x10000000)) {
output.writeInt32(29, dummy29_);
}
if (((bitField0_ & 0x20000000) == 0x20000000)) {
output.writeInt32(30, dummy30_);
}
if (((bitField0_ & 0x40000000) == 0x40000000)) {
output.writeInt32(31, dummy31_);
}
if (((bitField0_ & 0x80000000) == 0x80000000)) {
output.writeInt32(32, dummy32_);
}
if (((bitField1_ & 0x00000001) == 0x00000001)) {
output.writeInt32(33, c_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, a_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, dummy2_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, b_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, dummy4_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, dummy5_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, dummy6_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, dummy7_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, dummy8_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, dummy9_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, dummy10_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, dummy11_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(12, dummy12_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(13, dummy13_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, dummy14_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(15, dummy15_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(16, dummy16_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(17, dummy17_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(18, dummy18_);
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(19, dummy19_);
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(20, dummy20_);
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(21, dummy21_);
}
if (((bitField0_ & 0x00200000) == 0x00200000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(22, dummy22_);
}
if (((bitField0_ & 0x00400000) == 0x00400000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(23, dummy23_);
}
if (((bitField0_ & 0x00800000) == 0x00800000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(24, dummy24_);
}
if (((bitField0_ & 0x01000000) == 0x01000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(25, dummy25_);
}
if (((bitField0_ & 0x02000000) == 0x02000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(26, dummy26_);
}
if (((bitField0_ & 0x04000000) == 0x04000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(27, dummy27_);
}
if (((bitField0_ & 0x08000000) == 0x08000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(28, dummy28_);
}
if (((bitField0_ & 0x10000000) == 0x10000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(29, dummy29_);
}
if (((bitField0_ & 0x20000000) == 0x20000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(30, dummy30_);
}
if (((bitField0_ & 0x40000000) == 0x40000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(31, dummy31_);
}
if (((bitField0_ & 0x80000000) == 0x80000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(32, dummy32_);
}
if (((bitField1_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(33, c_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.TestRequired parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestRequired parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestRequired parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestRequired parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestRequired parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestRequired parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestRequired parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.TestRequired parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestRequired parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestRequired parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.TestRequired prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.TestRequired}
*
*
* We have separate messages for testing required fields because it's
* annoying to have to fill in required fields in TestProto in order to
* do anything with it. Note that we don't need to test every type of
* required filed because the code output is basically identical to
* optional fields for all types.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestRequired)
protobuf_unittest.UnittestProto.TestRequiredOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequired_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequired_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestRequired.class, protobuf_unittest.UnittestProto.TestRequired.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.TestRequired.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
a_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
dummy2_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
b_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
dummy4_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
dummy5_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
dummy6_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
dummy7_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
dummy8_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
dummy9_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
dummy10_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
dummy11_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
dummy12_ = 0;
bitField0_ = (bitField0_ & ~0x00000800);
dummy13_ = 0;
bitField0_ = (bitField0_ & ~0x00001000);
dummy14_ = 0;
bitField0_ = (bitField0_ & ~0x00002000);
dummy15_ = 0;
bitField0_ = (bitField0_ & ~0x00004000);
dummy16_ = 0;
bitField0_ = (bitField0_ & ~0x00008000);
dummy17_ = 0;
bitField0_ = (bitField0_ & ~0x00010000);
dummy18_ = 0;
bitField0_ = (bitField0_ & ~0x00020000);
dummy19_ = 0;
bitField0_ = (bitField0_ & ~0x00040000);
dummy20_ = 0;
bitField0_ = (bitField0_ & ~0x00080000);
dummy21_ = 0;
bitField0_ = (bitField0_ & ~0x00100000);
dummy22_ = 0;
bitField0_ = (bitField0_ & ~0x00200000);
dummy23_ = 0;
bitField0_ = (bitField0_ & ~0x00400000);
dummy24_ = 0;
bitField0_ = (bitField0_ & ~0x00800000);
dummy25_ = 0;
bitField0_ = (bitField0_ & ~0x01000000);
dummy26_ = 0;
bitField0_ = (bitField0_ & ~0x02000000);
dummy27_ = 0;
bitField0_ = (bitField0_ & ~0x04000000);
dummy28_ = 0;
bitField0_ = (bitField0_ & ~0x08000000);
dummy29_ = 0;
bitField0_ = (bitField0_ & ~0x10000000);
dummy30_ = 0;
bitField0_ = (bitField0_ & ~0x20000000);
dummy31_ = 0;
bitField0_ = (bitField0_ & ~0x40000000);
dummy32_ = 0;
bitField0_ = (bitField0_ & ~0x80000000);
c_ = 0;
bitField1_ = (bitField1_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequired_descriptor;
}
public protobuf_unittest.UnittestProto.TestRequired getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.TestRequired build() {
protobuf_unittest.UnittestProto.TestRequired result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.TestRequired buildPartial() {
protobuf_unittest.UnittestProto.TestRequired result = new protobuf_unittest.UnittestProto.TestRequired(this);
int from_bitField0_ = bitField0_;
int from_bitField1_ = bitField1_;
int to_bitField0_ = 0;
int to_bitField1_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.a_ = a_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.dummy2_ = dummy2_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.b_ = b_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.dummy4_ = dummy4_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.dummy5_ = dummy5_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.dummy6_ = dummy6_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.dummy7_ = dummy7_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.dummy8_ = dummy8_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.dummy9_ = dummy9_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.dummy10_ = dummy10_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.dummy11_ = dummy11_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.dummy12_ = dummy12_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.dummy13_ = dummy13_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.dummy14_ = dummy14_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00004000;
}
result.dummy15_ = dummy15_;
if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
to_bitField0_ |= 0x00008000;
}
result.dummy16_ = dummy16_;
if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
to_bitField0_ |= 0x00010000;
}
result.dummy17_ = dummy17_;
if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
to_bitField0_ |= 0x00020000;
}
result.dummy18_ = dummy18_;
if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
to_bitField0_ |= 0x00040000;
}
result.dummy19_ = dummy19_;
if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
to_bitField0_ |= 0x00080000;
}
result.dummy20_ = dummy20_;
if (((from_bitField0_ & 0x00100000) == 0x00100000)) {
to_bitField0_ |= 0x00100000;
}
result.dummy21_ = dummy21_;
if (((from_bitField0_ & 0x00200000) == 0x00200000)) {
to_bitField0_ |= 0x00200000;
}
result.dummy22_ = dummy22_;
if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
to_bitField0_ |= 0x00400000;
}
result.dummy23_ = dummy23_;
if (((from_bitField0_ & 0x00800000) == 0x00800000)) {
to_bitField0_ |= 0x00800000;
}
result.dummy24_ = dummy24_;
if (((from_bitField0_ & 0x01000000) == 0x01000000)) {
to_bitField0_ |= 0x01000000;
}
result.dummy25_ = dummy25_;
if (((from_bitField0_ & 0x02000000) == 0x02000000)) {
to_bitField0_ |= 0x02000000;
}
result.dummy26_ = dummy26_;
if (((from_bitField0_ & 0x04000000) == 0x04000000)) {
to_bitField0_ |= 0x04000000;
}
result.dummy27_ = dummy27_;
if (((from_bitField0_ & 0x08000000) == 0x08000000)) {
to_bitField0_ |= 0x08000000;
}
result.dummy28_ = dummy28_;
if (((from_bitField0_ & 0x10000000) == 0x10000000)) {
to_bitField0_ |= 0x10000000;
}
result.dummy29_ = dummy29_;
if (((from_bitField0_ & 0x20000000) == 0x20000000)) {
to_bitField0_ |= 0x20000000;
}
result.dummy30_ = dummy30_;
if (((from_bitField0_ & 0x40000000) == 0x40000000)) {
to_bitField0_ |= 0x40000000;
}
result.dummy31_ = dummy31_;
if (((from_bitField0_ & 0x80000000) == 0x80000000)) {
to_bitField0_ |= 0x80000000;
}
result.dummy32_ = dummy32_;
if (((from_bitField1_ & 0x00000001) == 0x00000001)) {
to_bitField1_ |= 0x00000001;
}
result.c_ = c_;
result.bitField0_ = to_bitField0_;
result.bitField1_ = to_bitField1_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.TestRequired) {
return mergeFrom((protobuf_unittest.UnittestProto.TestRequired)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.TestRequired other) {
if (other == protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance()) return this;
if (other.hasA()) {
setA(other.getA());
}
if (other.hasDummy2()) {
setDummy2(other.getDummy2());
}
if (other.hasB()) {
setB(other.getB());
}
if (other.hasDummy4()) {
setDummy4(other.getDummy4());
}
if (other.hasDummy5()) {
setDummy5(other.getDummy5());
}
if (other.hasDummy6()) {
setDummy6(other.getDummy6());
}
if (other.hasDummy7()) {
setDummy7(other.getDummy7());
}
if (other.hasDummy8()) {
setDummy8(other.getDummy8());
}
if (other.hasDummy9()) {
setDummy9(other.getDummy9());
}
if (other.hasDummy10()) {
setDummy10(other.getDummy10());
}
if (other.hasDummy11()) {
setDummy11(other.getDummy11());
}
if (other.hasDummy12()) {
setDummy12(other.getDummy12());
}
if (other.hasDummy13()) {
setDummy13(other.getDummy13());
}
if (other.hasDummy14()) {
setDummy14(other.getDummy14());
}
if (other.hasDummy15()) {
setDummy15(other.getDummy15());
}
if (other.hasDummy16()) {
setDummy16(other.getDummy16());
}
if (other.hasDummy17()) {
setDummy17(other.getDummy17());
}
if (other.hasDummy18()) {
setDummy18(other.getDummy18());
}
if (other.hasDummy19()) {
setDummy19(other.getDummy19());
}
if (other.hasDummy20()) {
setDummy20(other.getDummy20());
}
if (other.hasDummy21()) {
setDummy21(other.getDummy21());
}
if (other.hasDummy22()) {
setDummy22(other.getDummy22());
}
if (other.hasDummy23()) {
setDummy23(other.getDummy23());
}
if (other.hasDummy24()) {
setDummy24(other.getDummy24());
}
if (other.hasDummy25()) {
setDummy25(other.getDummy25());
}
if (other.hasDummy26()) {
setDummy26(other.getDummy26());
}
if (other.hasDummy27()) {
setDummy27(other.getDummy27());
}
if (other.hasDummy28()) {
setDummy28(other.getDummy28());
}
if (other.hasDummy29()) {
setDummy29(other.getDummy29());
}
if (other.hasDummy30()) {
setDummy30(other.getDummy30());
}
if (other.hasDummy31()) {
setDummy31(other.getDummy31());
}
if (other.hasDummy32()) {
setDummy32(other.getDummy32());
}
if (other.hasC()) {
setC(other.getC());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasA()) {
return false;
}
if (!hasB()) {
return false;
}
if (!hasC()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.TestRequired parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.TestRequired) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int bitField1_;
private int a_ ;
/**
* required int32 a = 1;
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 a = 1;
*/
public int getA() {
return a_;
}
/**
* required int32 a = 1;
*/
public Builder setA(int value) {
bitField0_ |= 0x00000001;
a_ = value;
onChanged();
return this;
}
/**
* required int32 a = 1;
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000001);
a_ = 0;
onChanged();
return this;
}
private int dummy2_ ;
/**
* optional int32 dummy2 = 2;
*/
public boolean hasDummy2() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 dummy2 = 2;
*/
public int getDummy2() {
return dummy2_;
}
/**
* optional int32 dummy2 = 2;
*/
public Builder setDummy2(int value) {
bitField0_ |= 0x00000002;
dummy2_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy2 = 2;
*/
public Builder clearDummy2() {
bitField0_ = (bitField0_ & ~0x00000002);
dummy2_ = 0;
onChanged();
return this;
}
private int b_ ;
/**
* required int32 b = 3;
*/
public boolean hasB() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 b = 3;
*/
public int getB() {
return b_;
}
/**
* required int32 b = 3;
*/
public Builder setB(int value) {
bitField0_ |= 0x00000004;
b_ = value;
onChanged();
return this;
}
/**
* required int32 b = 3;
*/
public Builder clearB() {
bitField0_ = (bitField0_ & ~0x00000004);
b_ = 0;
onChanged();
return this;
}
private int dummy4_ ;
/**
* optional int32 dummy4 = 4;
*
*
* Pad the field count to 32 so that we can test that IsInitialized()
* properly checks multiple elements of has_bits_.
*
*/
public boolean hasDummy4() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 dummy4 = 4;
*
*
* Pad the field count to 32 so that we can test that IsInitialized()
* properly checks multiple elements of has_bits_.
*
*/
public int getDummy4() {
return dummy4_;
}
/**
* optional int32 dummy4 = 4;
*
*
* Pad the field count to 32 so that we can test that IsInitialized()
* properly checks multiple elements of has_bits_.
*
*/
public Builder setDummy4(int value) {
bitField0_ |= 0x00000008;
dummy4_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy4 = 4;
*
*
* Pad the field count to 32 so that we can test that IsInitialized()
* properly checks multiple elements of has_bits_.
*
*/
public Builder clearDummy4() {
bitField0_ = (bitField0_ & ~0x00000008);
dummy4_ = 0;
onChanged();
return this;
}
private int dummy5_ ;
/**
* optional int32 dummy5 = 5;
*/
public boolean hasDummy5() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 dummy5 = 5;
*/
public int getDummy5() {
return dummy5_;
}
/**
* optional int32 dummy5 = 5;
*/
public Builder setDummy5(int value) {
bitField0_ |= 0x00000010;
dummy5_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy5 = 5;
*/
public Builder clearDummy5() {
bitField0_ = (bitField0_ & ~0x00000010);
dummy5_ = 0;
onChanged();
return this;
}
private int dummy6_ ;
/**
* optional int32 dummy6 = 6;
*/
public boolean hasDummy6() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int32 dummy6 = 6;
*/
public int getDummy6() {
return dummy6_;
}
/**
* optional int32 dummy6 = 6;
*/
public Builder setDummy6(int value) {
bitField0_ |= 0x00000020;
dummy6_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy6 = 6;
*/
public Builder clearDummy6() {
bitField0_ = (bitField0_ & ~0x00000020);
dummy6_ = 0;
onChanged();
return this;
}
private int dummy7_ ;
/**
* optional int32 dummy7 = 7;
*/
public boolean hasDummy7() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int32 dummy7 = 7;
*/
public int getDummy7() {
return dummy7_;
}
/**
* optional int32 dummy7 = 7;
*/
public Builder setDummy7(int value) {
bitField0_ |= 0x00000040;
dummy7_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy7 = 7;
*/
public Builder clearDummy7() {
bitField0_ = (bitField0_ & ~0x00000040);
dummy7_ = 0;
onChanged();
return this;
}
private int dummy8_ ;
/**
* optional int32 dummy8 = 8;
*/
public boolean hasDummy8() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int32 dummy8 = 8;
*/
public int getDummy8() {
return dummy8_;
}
/**
* optional int32 dummy8 = 8;
*/
public Builder setDummy8(int value) {
bitField0_ |= 0x00000080;
dummy8_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy8 = 8;
*/
public Builder clearDummy8() {
bitField0_ = (bitField0_ & ~0x00000080);
dummy8_ = 0;
onChanged();
return this;
}
private int dummy9_ ;
/**
* optional int32 dummy9 = 9;
*/
public boolean hasDummy9() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int32 dummy9 = 9;
*/
public int getDummy9() {
return dummy9_;
}
/**
* optional int32 dummy9 = 9;
*/
public Builder setDummy9(int value) {
bitField0_ |= 0x00000100;
dummy9_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy9 = 9;
*/
public Builder clearDummy9() {
bitField0_ = (bitField0_ & ~0x00000100);
dummy9_ = 0;
onChanged();
return this;
}
private int dummy10_ ;
/**
* optional int32 dummy10 = 10;
*/
public boolean hasDummy10() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int32 dummy10 = 10;
*/
public int getDummy10() {
return dummy10_;
}
/**
* optional int32 dummy10 = 10;
*/
public Builder setDummy10(int value) {
bitField0_ |= 0x00000200;
dummy10_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy10 = 10;
*/
public Builder clearDummy10() {
bitField0_ = (bitField0_ & ~0x00000200);
dummy10_ = 0;
onChanged();
return this;
}
private int dummy11_ ;
/**
* optional int32 dummy11 = 11;
*/
public boolean hasDummy11() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional int32 dummy11 = 11;
*/
public int getDummy11() {
return dummy11_;
}
/**
* optional int32 dummy11 = 11;
*/
public Builder setDummy11(int value) {
bitField0_ |= 0x00000400;
dummy11_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy11 = 11;
*/
public Builder clearDummy11() {
bitField0_ = (bitField0_ & ~0x00000400);
dummy11_ = 0;
onChanged();
return this;
}
private int dummy12_ ;
/**
* optional int32 dummy12 = 12;
*/
public boolean hasDummy12() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional int32 dummy12 = 12;
*/
public int getDummy12() {
return dummy12_;
}
/**
* optional int32 dummy12 = 12;
*/
public Builder setDummy12(int value) {
bitField0_ |= 0x00000800;
dummy12_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy12 = 12;
*/
public Builder clearDummy12() {
bitField0_ = (bitField0_ & ~0x00000800);
dummy12_ = 0;
onChanged();
return this;
}
private int dummy13_ ;
/**
* optional int32 dummy13 = 13;
*/
public boolean hasDummy13() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional int32 dummy13 = 13;
*/
public int getDummy13() {
return dummy13_;
}
/**
* optional int32 dummy13 = 13;
*/
public Builder setDummy13(int value) {
bitField0_ |= 0x00001000;
dummy13_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy13 = 13;
*/
public Builder clearDummy13() {
bitField0_ = (bitField0_ & ~0x00001000);
dummy13_ = 0;
onChanged();
return this;
}
private int dummy14_ ;
/**
* optional int32 dummy14 = 14;
*/
public boolean hasDummy14() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional int32 dummy14 = 14;
*/
public int getDummy14() {
return dummy14_;
}
/**
* optional int32 dummy14 = 14;
*/
public Builder setDummy14(int value) {
bitField0_ |= 0x00002000;
dummy14_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy14 = 14;
*/
public Builder clearDummy14() {
bitField0_ = (bitField0_ & ~0x00002000);
dummy14_ = 0;
onChanged();
return this;
}
private int dummy15_ ;
/**
* optional int32 dummy15 = 15;
*/
public boolean hasDummy15() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional int32 dummy15 = 15;
*/
public int getDummy15() {
return dummy15_;
}
/**
* optional int32 dummy15 = 15;
*/
public Builder setDummy15(int value) {
bitField0_ |= 0x00004000;
dummy15_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy15 = 15;
*/
public Builder clearDummy15() {
bitField0_ = (bitField0_ & ~0x00004000);
dummy15_ = 0;
onChanged();
return this;
}
private int dummy16_ ;
/**
* optional int32 dummy16 = 16;
*/
public boolean hasDummy16() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional int32 dummy16 = 16;
*/
public int getDummy16() {
return dummy16_;
}
/**
* optional int32 dummy16 = 16;
*/
public Builder setDummy16(int value) {
bitField0_ |= 0x00008000;
dummy16_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy16 = 16;
*/
public Builder clearDummy16() {
bitField0_ = (bitField0_ & ~0x00008000);
dummy16_ = 0;
onChanged();
return this;
}
private int dummy17_ ;
/**
* optional int32 dummy17 = 17;
*/
public boolean hasDummy17() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* optional int32 dummy17 = 17;
*/
public int getDummy17() {
return dummy17_;
}
/**
* optional int32 dummy17 = 17;
*/
public Builder setDummy17(int value) {
bitField0_ |= 0x00010000;
dummy17_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy17 = 17;
*/
public Builder clearDummy17() {
bitField0_ = (bitField0_ & ~0x00010000);
dummy17_ = 0;
onChanged();
return this;
}
private int dummy18_ ;
/**
* optional int32 dummy18 = 18;
*/
public boolean hasDummy18() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional int32 dummy18 = 18;
*/
public int getDummy18() {
return dummy18_;
}
/**
* optional int32 dummy18 = 18;
*/
public Builder setDummy18(int value) {
bitField0_ |= 0x00020000;
dummy18_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy18 = 18;
*/
public Builder clearDummy18() {
bitField0_ = (bitField0_ & ~0x00020000);
dummy18_ = 0;
onChanged();
return this;
}
private int dummy19_ ;
/**
* optional int32 dummy19 = 19;
*/
public boolean hasDummy19() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional int32 dummy19 = 19;
*/
public int getDummy19() {
return dummy19_;
}
/**
* optional int32 dummy19 = 19;
*/
public Builder setDummy19(int value) {
bitField0_ |= 0x00040000;
dummy19_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy19 = 19;
*/
public Builder clearDummy19() {
bitField0_ = (bitField0_ & ~0x00040000);
dummy19_ = 0;
onChanged();
return this;
}
private int dummy20_ ;
/**
* optional int32 dummy20 = 20;
*/
public boolean hasDummy20() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional int32 dummy20 = 20;
*/
public int getDummy20() {
return dummy20_;
}
/**
* optional int32 dummy20 = 20;
*/
public Builder setDummy20(int value) {
bitField0_ |= 0x00080000;
dummy20_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy20 = 20;
*/
public Builder clearDummy20() {
bitField0_ = (bitField0_ & ~0x00080000);
dummy20_ = 0;
onChanged();
return this;
}
private int dummy21_ ;
/**
* optional int32 dummy21 = 21;
*/
public boolean hasDummy21() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
* optional int32 dummy21 = 21;
*/
public int getDummy21() {
return dummy21_;
}
/**
* optional int32 dummy21 = 21;
*/
public Builder setDummy21(int value) {
bitField0_ |= 0x00100000;
dummy21_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy21 = 21;
*/
public Builder clearDummy21() {
bitField0_ = (bitField0_ & ~0x00100000);
dummy21_ = 0;
onChanged();
return this;
}
private int dummy22_ ;
/**
* optional int32 dummy22 = 22;
*/
public boolean hasDummy22() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional int32 dummy22 = 22;
*/
public int getDummy22() {
return dummy22_;
}
/**
* optional int32 dummy22 = 22;
*/
public Builder setDummy22(int value) {
bitField0_ |= 0x00200000;
dummy22_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy22 = 22;
*/
public Builder clearDummy22() {
bitField0_ = (bitField0_ & ~0x00200000);
dummy22_ = 0;
onChanged();
return this;
}
private int dummy23_ ;
/**
* optional int32 dummy23 = 23;
*/
public boolean hasDummy23() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
* optional int32 dummy23 = 23;
*/
public int getDummy23() {
return dummy23_;
}
/**
* optional int32 dummy23 = 23;
*/
public Builder setDummy23(int value) {
bitField0_ |= 0x00400000;
dummy23_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy23 = 23;
*/
public Builder clearDummy23() {
bitField0_ = (bitField0_ & ~0x00400000);
dummy23_ = 0;
onChanged();
return this;
}
private int dummy24_ ;
/**
* optional int32 dummy24 = 24;
*/
public boolean hasDummy24() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
* optional int32 dummy24 = 24;
*/
public int getDummy24() {
return dummy24_;
}
/**
* optional int32 dummy24 = 24;
*/
public Builder setDummy24(int value) {
bitField0_ |= 0x00800000;
dummy24_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy24 = 24;
*/
public Builder clearDummy24() {
bitField0_ = (bitField0_ & ~0x00800000);
dummy24_ = 0;
onChanged();
return this;
}
private int dummy25_ ;
/**
* optional int32 dummy25 = 25;
*/
public boolean hasDummy25() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
* optional int32 dummy25 = 25;
*/
public int getDummy25() {
return dummy25_;
}
/**
* optional int32 dummy25 = 25;
*/
public Builder setDummy25(int value) {
bitField0_ |= 0x01000000;
dummy25_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy25 = 25;
*/
public Builder clearDummy25() {
bitField0_ = (bitField0_ & ~0x01000000);
dummy25_ = 0;
onChanged();
return this;
}
private int dummy26_ ;
/**
* optional int32 dummy26 = 26;
*/
public boolean hasDummy26() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
* optional int32 dummy26 = 26;
*/
public int getDummy26() {
return dummy26_;
}
/**
* optional int32 dummy26 = 26;
*/
public Builder setDummy26(int value) {
bitField0_ |= 0x02000000;
dummy26_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy26 = 26;
*/
public Builder clearDummy26() {
bitField0_ = (bitField0_ & ~0x02000000);
dummy26_ = 0;
onChanged();
return this;
}
private int dummy27_ ;
/**
* optional int32 dummy27 = 27;
*/
public boolean hasDummy27() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
* optional int32 dummy27 = 27;
*/
public int getDummy27() {
return dummy27_;
}
/**
* optional int32 dummy27 = 27;
*/
public Builder setDummy27(int value) {
bitField0_ |= 0x04000000;
dummy27_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy27 = 27;
*/
public Builder clearDummy27() {
bitField0_ = (bitField0_ & ~0x04000000);
dummy27_ = 0;
onChanged();
return this;
}
private int dummy28_ ;
/**
* optional int32 dummy28 = 28;
*/
public boolean hasDummy28() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
* optional int32 dummy28 = 28;
*/
public int getDummy28() {
return dummy28_;
}
/**
* optional int32 dummy28 = 28;
*/
public Builder setDummy28(int value) {
bitField0_ |= 0x08000000;
dummy28_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy28 = 28;
*/
public Builder clearDummy28() {
bitField0_ = (bitField0_ & ~0x08000000);
dummy28_ = 0;
onChanged();
return this;
}
private int dummy29_ ;
/**
* optional int32 dummy29 = 29;
*/
public boolean hasDummy29() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
* optional int32 dummy29 = 29;
*/
public int getDummy29() {
return dummy29_;
}
/**
* optional int32 dummy29 = 29;
*/
public Builder setDummy29(int value) {
bitField0_ |= 0x10000000;
dummy29_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy29 = 29;
*/
public Builder clearDummy29() {
bitField0_ = (bitField0_ & ~0x10000000);
dummy29_ = 0;
onChanged();
return this;
}
private int dummy30_ ;
/**
* optional int32 dummy30 = 30;
*/
public boolean hasDummy30() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
* optional int32 dummy30 = 30;
*/
public int getDummy30() {
return dummy30_;
}
/**
* optional int32 dummy30 = 30;
*/
public Builder setDummy30(int value) {
bitField0_ |= 0x20000000;
dummy30_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy30 = 30;
*/
public Builder clearDummy30() {
bitField0_ = (bitField0_ & ~0x20000000);
dummy30_ = 0;
onChanged();
return this;
}
private int dummy31_ ;
/**
* optional int32 dummy31 = 31;
*/
public boolean hasDummy31() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
* optional int32 dummy31 = 31;
*/
public int getDummy31() {
return dummy31_;
}
/**
* optional int32 dummy31 = 31;
*/
public Builder setDummy31(int value) {
bitField0_ |= 0x40000000;
dummy31_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy31 = 31;
*/
public Builder clearDummy31() {
bitField0_ = (bitField0_ & ~0x40000000);
dummy31_ = 0;
onChanged();
return this;
}
private int dummy32_ ;
/**
* optional int32 dummy32 = 32;
*/
public boolean hasDummy32() {
return ((bitField0_ & 0x80000000) == 0x80000000);
}
/**
* optional int32 dummy32 = 32;
*/
public int getDummy32() {
return dummy32_;
}
/**
* optional int32 dummy32 = 32;
*/
public Builder setDummy32(int value) {
bitField0_ |= 0x80000000;
dummy32_ = value;
onChanged();
return this;
}
/**
* optional int32 dummy32 = 32;
*/
public Builder clearDummy32() {
bitField0_ = (bitField0_ & ~0x80000000);
dummy32_ = 0;
onChanged();
return this;
}
private int c_ ;
/**
* required int32 c = 33;
*/
public boolean hasC() {
return ((bitField1_ & 0x00000001) == 0x00000001);
}
/**
* required int32 c = 33;
*/
public int getC() {
return c_;
}
/**
* required int32 c = 33;
*/
public Builder setC(int value) {
bitField1_ |= 0x00000001;
c_ = value;
onChanged();
return this;
}
/**
* required int32 c = 33;
*/
public Builder clearC() {
bitField1_ = (bitField1_ & ~0x00000001);
c_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestRequired)
}
static {
defaultInstance = new TestRequired(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequired)
public static final int SINGLE_FIELD_NUMBER = 1000;
/**
* extend .protobuf_unittest.TestAllExtensions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
protobuf_unittest.UnittestProto.TestAllExtensions,
protobuf_unittest.UnittestProto.TestRequired> single = com.google.protobuf.GeneratedMessage
.newMessageScopedGeneratedExtension(
protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance(),
0,
protobuf_unittest.UnittestProto.TestRequired.class,
protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance());
public static final int MULTI_FIELD_NUMBER = 1001;
/**
* extend .protobuf_unittest.TestAllExtensions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
protobuf_unittest.UnittestProto.TestAllExtensions,
java.util.List> multi = com.google.protobuf.GeneratedMessage
.newMessageScopedGeneratedExtension(
protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance(),
1,
protobuf_unittest.UnittestProto.TestRequired.class,
protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance());
}
public interface TestRequiredForeignOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestRequiredForeign)
com.google.protobuf.MessageOrBuilder {
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
boolean hasOptionalMessage();
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
protobuf_unittest.UnittestProto.TestRequired getOptionalMessage();
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
protobuf_unittest.UnittestProto.TestRequiredOrBuilder getOptionalMessageOrBuilder();
/**
* repeated .protobuf_unittest.TestRequired repeated_message = 2;
*/
java.util.List
getRepeatedMessageList();
/**
* repeated .protobuf_unittest.TestRequired repeated_message = 2;
*/
protobuf_unittest.UnittestProto.TestRequired getRepeatedMessage(int index);
/**
* repeated .protobuf_unittest.TestRequired repeated_message = 2;
*/
int getRepeatedMessageCount();
/**
* repeated .protobuf_unittest.TestRequired repeated_message = 2;
*/
java.util.List extends protobuf_unittest.UnittestProto.TestRequiredOrBuilder>
getRepeatedMessageOrBuilderList();
/**
* repeated .protobuf_unittest.TestRequired repeated_message = 2;
*/
protobuf_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedMessageOrBuilder(
int index);
/**
* optional int32 dummy = 3;
*/
boolean hasDummy();
/**
* optional int32 dummy = 3;
*/
int getDummy();
}
/**
* Protobuf type {@code protobuf_unittest.TestRequiredForeign}
*/
public static final class TestRequiredForeign extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestRequiredForeign)
TestRequiredForeignOrBuilder {
// Use TestRequiredForeign.newBuilder() to construct.
private TestRequiredForeign(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TestRequiredForeign(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final TestRequiredForeign defaultInstance;
public static TestRequiredForeign getDefaultInstance() {
return defaultInstance;
}
public TestRequiredForeign getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TestRequiredForeign(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
protobuf_unittest.UnittestProto.TestRequired.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = optionalMessage_.toBuilder();
}
optionalMessage_ = input.readMessage(protobuf_unittest.UnittestProto.TestRequired.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalMessage_);
optionalMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
repeatedMessage_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
repeatedMessage_.add(input.readMessage(protobuf_unittest.UnittestProto.TestRequired.PARSER, extensionRegistry));
break;
}
case 24: {
bitField0_ |= 0x00000002;
dummy_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
repeatedMessage_ = java.util.Collections.unmodifiableList(repeatedMessage_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredForeign_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredForeign_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestRequiredForeign.class, protobuf_unittest.UnittestProto.TestRequiredForeign.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TestRequiredForeign parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestRequiredForeign(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int OPTIONAL_MESSAGE_FIELD_NUMBER = 1;
private protobuf_unittest.UnittestProto.TestRequired optionalMessage_;
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public boolean hasOptionalMessage() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public protobuf_unittest.UnittestProto.TestRequired getOptionalMessage() {
return optionalMessage_;
}
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public protobuf_unittest.UnittestProto.TestRequiredOrBuilder getOptionalMessageOrBuilder() {
return optionalMessage_;
}
public static final int REPEATED_MESSAGE_FIELD_NUMBER = 2;
private java.util.List repeatedMessage_;
/**
* repeated .protobuf_unittest.TestRequired repeated_message = 2;
*/
public java.util.List getRepeatedMessageList() {
return repeatedMessage_;
}
/**
* repeated .protobuf_unittest.TestRequired repeated_message = 2;
*/
public java.util.List extends protobuf_unittest.UnittestProto.TestRequiredOrBuilder>
getRepeatedMessageOrBuilderList() {
return repeatedMessage_;
}
/**
* repeated .protobuf_unittest.TestRequired repeated_message = 2;
*/
public int getRepeatedMessageCount() {
return repeatedMessage_.size();
}
/**
* repeated .protobuf_unittest.TestRequired repeated_message = 2;
*/
public protobuf_unittest.UnittestProto.TestRequired getRepeatedMessage(int index) {
return repeatedMessage_.get(index);
}
/**
* repeated .protobuf_unittest.TestRequired repeated_message = 2;
*/
public protobuf_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedMessageOrBuilder(
int index) {
return repeatedMessage_.get(index);
}
public static final int DUMMY_FIELD_NUMBER = 3;
private int dummy_;
/**
* optional int32 dummy = 3;
*/
public boolean hasDummy() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 dummy = 3;
*/
public int getDummy() {
return dummy_;
}
private void initFields() {
optionalMessage_ = protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance();
repeatedMessage_ = java.util.Collections.emptyList();
dummy_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasOptionalMessage()) {
if (!getOptionalMessage().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getRepeatedMessageCount(); i++) {
if (!getRepeatedMessage(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, optionalMessage_);
}
for (int i = 0; i < repeatedMessage_.size(); i++) {
output.writeMessage(2, repeatedMessage_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(3, dummy_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, optionalMessage_);
}
for (int i = 0; i < repeatedMessage_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, repeatedMessage_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, dummy_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestRequiredForeign parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.UnittestProto.TestRequiredForeign parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.UnittestProto.TestRequiredForeign prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest.TestRequiredForeign}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestRequiredForeign)
protobuf_unittest.UnittestProto.TestRequiredForeignOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredForeign_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredForeign_fieldAccessorTable
.ensureFieldAccessorsInitialized(
protobuf_unittest.UnittestProto.TestRequiredForeign.class, protobuf_unittest.UnittestProto.TestRequiredForeign.Builder.class);
}
// Construct using protobuf_unittest.UnittestProto.TestRequiredForeign.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getOptionalMessageFieldBuilder();
getRepeatedMessageFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (optionalMessageBuilder_ == null) {
optionalMessage_ = protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance();
} else {
optionalMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (repeatedMessageBuilder_ == null) {
repeatedMessage_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
repeatedMessageBuilder_.clear();
}
dummy_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredForeign_descriptor;
}
public protobuf_unittest.UnittestProto.TestRequiredForeign getDefaultInstanceForType() {
return protobuf_unittest.UnittestProto.TestRequiredForeign.getDefaultInstance();
}
public protobuf_unittest.UnittestProto.TestRequiredForeign build() {
protobuf_unittest.UnittestProto.TestRequiredForeign result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.UnittestProto.TestRequiredForeign buildPartial() {
protobuf_unittest.UnittestProto.TestRequiredForeign result = new protobuf_unittest.UnittestProto.TestRequiredForeign(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (optionalMessageBuilder_ == null) {
result.optionalMessage_ = optionalMessage_;
} else {
result.optionalMessage_ = optionalMessageBuilder_.build();
}
if (repeatedMessageBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
repeatedMessage_ = java.util.Collections.unmodifiableList(repeatedMessage_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.repeatedMessage_ = repeatedMessage_;
} else {
result.repeatedMessage_ = repeatedMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.dummy_ = dummy_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof protobuf_unittest.UnittestProto.TestRequiredForeign) {
return mergeFrom((protobuf_unittest.UnittestProto.TestRequiredForeign)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(protobuf_unittest.UnittestProto.TestRequiredForeign other) {
if (other == protobuf_unittest.UnittestProto.TestRequiredForeign.getDefaultInstance()) return this;
if (other.hasOptionalMessage()) {
mergeOptionalMessage(other.getOptionalMessage());
}
if (repeatedMessageBuilder_ == null) {
if (!other.repeatedMessage_.isEmpty()) {
if (repeatedMessage_.isEmpty()) {
repeatedMessage_ = other.repeatedMessage_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRepeatedMessageIsMutable();
repeatedMessage_.addAll(other.repeatedMessage_);
}
onChanged();
}
} else {
if (!other.repeatedMessage_.isEmpty()) {
if (repeatedMessageBuilder_.isEmpty()) {
repeatedMessageBuilder_.dispose();
repeatedMessageBuilder_ = null;
repeatedMessage_ = other.repeatedMessage_;
bitField0_ = (bitField0_ & ~0x00000002);
repeatedMessageBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRepeatedMessageFieldBuilder() : null;
} else {
repeatedMessageBuilder_.addAllMessages(other.repeatedMessage_);
}
}
}
if (other.hasDummy()) {
setDummy(other.getDummy());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasOptionalMessage()) {
if (!getOptionalMessage().isInitialized()) {
return false;
}
}
for (int i = 0; i < getRepeatedMessageCount(); i++) {
if (!getRepeatedMessage(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.UnittestProto.TestRequiredForeign parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.UnittestProto.TestRequiredForeign) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private protobuf_unittest.UnittestProto.TestRequired optionalMessage_ = protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestRequired, protobuf_unittest.UnittestProto.TestRequired.Builder, protobuf_unittest.UnittestProto.TestRequiredOrBuilder> optionalMessageBuilder_;
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public boolean hasOptionalMessage() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public protobuf_unittest.UnittestProto.TestRequired getOptionalMessage() {
if (optionalMessageBuilder_ == null) {
return optionalMessage_;
} else {
return optionalMessageBuilder_.getMessage();
}
}
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public Builder setOptionalMessage(protobuf_unittest.UnittestProto.TestRequired value) {
if (optionalMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalMessage_ = value;
onChanged();
} else {
optionalMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public Builder setOptionalMessage(
protobuf_unittest.UnittestProto.TestRequired.Builder builderForValue) {
if (optionalMessageBuilder_ == null) {
optionalMessage_ = builderForValue.build();
onChanged();
} else {
optionalMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public Builder mergeOptionalMessage(protobuf_unittest.UnittestProto.TestRequired value) {
if (optionalMessageBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
optionalMessage_ != protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance()) {
optionalMessage_ =
protobuf_unittest.UnittestProto.TestRequired.newBuilder(optionalMessage_).mergeFrom(value).buildPartial();
} else {
optionalMessage_ = value;
}
onChanged();
} else {
optionalMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public Builder clearOptionalMessage() {
if (optionalMessageBuilder_ == null) {
optionalMessage_ = protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance();
onChanged();
} else {
optionalMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public protobuf_unittest.UnittestProto.TestRequired.Builder getOptionalMessageBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getOptionalMessageFieldBuilder().getBuilder();
}
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
public protobuf_unittest.UnittestProto.TestRequiredOrBuilder getOptionalMessageOrBuilder() {
if (optionalMessageBuilder_ != null) {
return optionalMessageBuilder_.getMessageOrBuilder();
} else {
return optionalMessage_;
}
}
/**
* optional .protobuf_unittest.TestRequired optional_message = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestRequired, protobuf_unittest.UnittestProto.TestRequired.Builder, protobuf_unittest.UnittestProto.TestRequiredOrBuilder>
getOptionalMessageFieldBuilder() {
if (optionalMessageBuilder_ == null) {
optionalMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
protobuf_unittest.UnittestProto.TestRequired, protobuf_unittest.UnittestProto.TestRequired.Builder, protobuf_unittest.UnittestProto.TestRequiredOrBuilder>(
getOptionalMessage(),
getParentForChildren(),
isClean());
optionalMessage_ = null;
}
return optionalMessageBuilder_;
}
private java.util.List repeatedMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedMessageIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
repeatedMessage_ = new java.util.ArrayList(repeatedMessage_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
protobuf_unittest.UnittestProto.TestRequired, protobuf_unittest.UnittestProto.TestRequired.Builder, protobuf_unittest.UnittestProto.TestRequiredOrBuilder> repeatedMessageBuilder_;
/**
*