com.google.protobuf.UnittestLite 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_lite.proto
package com.google.protobuf;
public final class UnittestLite {
private UnittestLite() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(com.google.protobuf.UnittestLite.optionalInt32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalInt64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalUint32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalUint64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalSint32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalSint64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalFixed32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalFixed64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalSfixed32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalSfixed64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalFloatExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalDoubleExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalBoolExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalStringExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalBytesExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalGroupExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalNestedMessageExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalForeignMessageExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalImportMessageExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalNestedEnumExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalForeignEnumExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalImportEnumExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalStringPieceExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalCordExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalPublicImportMessageExtensionLite);
registry.add(com.google.protobuf.UnittestLite.optionalLazyMessageExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedInt32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedInt64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedUint32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedUint64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedSint32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedSint64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedFixed32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedFixed64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedSfixed32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedSfixed64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedFloatExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedDoubleExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedBoolExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedStringExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedBytesExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedGroupExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedNestedMessageExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedForeignMessageExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedImportMessageExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedNestedEnumExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedForeignEnumExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedImportEnumExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedStringPieceExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedCordExtensionLite);
registry.add(com.google.protobuf.UnittestLite.repeatedLazyMessageExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultInt32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultInt64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultUint32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultUint64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultSint32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultSint64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultFixed32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultFixed64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultSfixed32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultSfixed64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultFloatExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultDoubleExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultBoolExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultStringExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultBytesExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultNestedEnumExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultForeignEnumExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultImportEnumExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultStringPieceExtensionLite);
registry.add(com.google.protobuf.UnittestLite.defaultCordExtensionLite);
registry.add(com.google.protobuf.UnittestLite.oneofUint32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.oneofNestedMessageExtensionLite);
registry.add(com.google.protobuf.UnittestLite.oneofStringExtensionLite);
registry.add(com.google.protobuf.UnittestLite.oneofBytesExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedInt32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedInt64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedUint32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedUint64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedSint32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedSint64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedFixed32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedFixed64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedSfixed32ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedSfixed64ExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedFloatExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedDoubleExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedBoolExtensionLite);
registry.add(com.google.protobuf.UnittestLite.packedEnumExtensionLite);
registry.add(com.google.protobuf.UnittestLite.TestNestedExtensionLite.nestedExtension);
registry.add(com.google.protobuf.UnittestLite.TestParsingMergeLite.optionalExt);
registry.add(com.google.protobuf.UnittestLite.TestParsingMergeLite.repeatedExt);
}
/**
* Protobuf enum {@code protobuf_unittest.ForeignEnumLite}
*/
public enum ForeignEnumLite
implements com.google.protobuf.Internal.EnumLite {
/**
* FOREIGN_LITE_FOO = 4;
*/
FOREIGN_LITE_FOO(0, 4),
/**
* FOREIGN_LITE_BAR = 5;
*/
FOREIGN_LITE_BAR(1, 5),
/**
* FOREIGN_LITE_BAZ = 6;
*/
FOREIGN_LITE_BAZ(2, 6),
;
/**
* FOREIGN_LITE_FOO = 4;
*/
public static final int FOREIGN_LITE_FOO_VALUE = 4;
/**
* FOREIGN_LITE_BAR = 5;
*/
public static final int FOREIGN_LITE_BAR_VALUE = 5;
/**
* FOREIGN_LITE_BAZ = 6;
*/
public static final int FOREIGN_LITE_BAZ_VALUE = 6;
public final int getNumber() { return value; }
public static ForeignEnumLite valueOf(int value) {
switch (value) {
case 4: return FOREIGN_LITE_FOO;
case 5: return FOREIGN_LITE_BAR;
case 6: return FOREIGN_LITE_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 ForeignEnumLite findValueByNumber(int number) {
return ForeignEnumLite.valueOf(number);
}
};
private final int value;
private ForeignEnumLite(int index, int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protobuf_unittest.ForeignEnumLite)
}
public interface TestAllTypesLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypesLite)
com.google.protobuf.MessageLiteOrBuilder {
/**
* 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 { ... }
*/
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup getOptionalGroup();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
boolean hasOptionalNestedMessage();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalNestedMessage();
/**
* optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
boolean hasOptionalForeignMessage();
/**
* optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
com.google.protobuf.UnittestLite.ForeignMessageLite getOptionalForeignMessage();
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
boolean hasOptionalImportMessage();
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
com.google.protobuf.UnittestImportLite.ImportMessageLite getOptionalImportMessage();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
*/
boolean hasOptionalNestedEnum();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
*/
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getOptionalNestedEnum();
/**
* optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
*/
boolean hasOptionalForeignEnum();
/**
* optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
*/
com.google.protobuf.UnittestLite.ForeignEnumLite getOptionalForeignEnum();
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
*/
boolean hasOptionalImportEnum();
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
*/
com.google.protobuf.UnittestImportLite.ImportEnumLite 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.PublicImportMessageLite optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
boolean hasOptionalPublicImportMessage();
/**
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getOptionalPublicImportMessage();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
boolean hasOptionalLazyMessage();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalLazyMessage();
/**
* 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 { ... }
*/
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup getRepeatedGroup(int index);
/**
* repeated group RepeatedGroup = 46 { ... }
*/
int getRepeatedGroupCount();
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
java.util.List
getRepeatedNestedMessageList();
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedNestedMessage(int index);
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
int getRepeatedNestedMessageCount();
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
java.util.List
getRepeatedForeignMessageList();
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
com.google.protobuf.UnittestLite.ForeignMessageLite getRepeatedForeignMessage(int index);
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
int getRepeatedForeignMessageCount();
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
java.util.List
getRepeatedImportMessageList();
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
com.google.protobuf.UnittestImportLite.ImportMessageLite getRepeatedImportMessage(int index);
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
int getRepeatedImportMessageCount();
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
java.util.List getRepeatedNestedEnumList();
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
int getRepeatedNestedEnumCount();
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getRepeatedNestedEnum(int index);
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
java.util.List getRepeatedForeignEnumList();
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
int getRepeatedForeignEnumCount();
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
com.google.protobuf.UnittestLite.ForeignEnumLite getRepeatedForeignEnum(int index);
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
java.util.List getRepeatedImportEnumList();
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
int getRepeatedImportEnumCount();
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
com.google.protobuf.UnittestImportLite.ImportEnumLite 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.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
java.util.List
getRepeatedLazyMessageList();
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedLazyMessage(int index);
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
int getRepeatedLazyMessageCount();
/**
* 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.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
*/
boolean hasDefaultNestedEnum();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
*/
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getDefaultNestedEnum();
/**
* optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
*/
boolean hasDefaultForeignEnum();
/**
* optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
*/
com.google.protobuf.UnittestLite.ForeignEnumLite getDefaultForeignEnum();
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
*/
boolean hasDefaultImportEnum();
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
*/
com.google.protobuf.UnittestImportLite.ImportEnumLite 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.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
boolean hasOneofNestedMessage();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofNestedMessage();
/**
* 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.TestAllTypesLite}
*
*
* Same as TestAllTypes but with the lite runtime.
*
*/
public static final class TestAllTypesLite extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypesLite)
TestAllTypesLiteOrBuilder {
// Use TestAllTypesLite.newBuilder() to construct.
private TestAllTypesLite(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TestAllTypesLite(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final TestAllTypesLite defaultInstance;
public static TestAllTypesLite getDefaultInstance() {
return defaultInstance;
}
public TestAllTypesLite getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString unknownFields;
private TestAllTypesLite(
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.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
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: {
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder subBuilder = null;
if (((bitField0_ & 0x00008000) == 0x00008000)) {
subBuilder = optionalGroup_.toBuilder();
}
optionalGroup_ = input.readGroup(16, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalGroup_);
optionalGroup_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00008000;
break;
}
case 146: {
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00010000) == 0x00010000)) {
subBuilder = optionalNestedMessage_.toBuilder();
}
optionalNestedMessage_ = input.readMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalNestedMessage_);
optionalNestedMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00010000;
break;
}
case 154: {
com.google.protobuf.UnittestLite.ForeignMessageLite.Builder subBuilder = null;
if (((bitField0_ & 0x00020000) == 0x00020000)) {
subBuilder = optionalForeignMessage_.toBuilder();
}
optionalForeignMessage_ = input.readMessage(com.google.protobuf.UnittestLite.ForeignMessageLite.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalForeignMessage_);
optionalForeignMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00020000;
break;
}
case 162: {
com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder subBuilder = null;
if (((bitField0_ & 0x00040000) == 0x00040000)) {
subBuilder = optionalImportMessage_.toBuilder();
}
optionalImportMessage_ = input.readMessage(com.google.protobuf.UnittestImportLite.ImportMessageLite.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalImportMessage_);
optionalImportMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00040000;
break;
}
case 168: {
int rawValue = input.readEnum();
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(rawValue);
} else {
bitField0_ |= 0x00080000;
optionalNestedEnum_ = value;
}
break;
}
case 176: {
int rawValue = input.readEnum();
com.google.protobuf.UnittestLite.ForeignEnumLite value = com.google.protobuf.UnittestLite.ForeignEnumLite.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(rawValue);
} else {
bitField0_ |= 0x00100000;
optionalForeignEnum_ = value;
}
break;
}
case 184: {
int rawValue = input.readEnum();
com.google.protobuf.UnittestImportLite.ImportEnumLite value = com.google.protobuf.UnittestImportLite.ImportEnumLite.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(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.UnittestImportPublicLite.PublicImportMessageLite.Builder subBuilder = null;
if (((bitField0_ & 0x01000000) == 0x01000000)) {
subBuilder = optionalPublicImportMessage_.toBuilder();
}
optionalPublicImportMessage_ = input.readMessage(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionalPublicImportMessage_);
optionalPublicImportMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x01000000;
break;
}
case 218: {
optionalLazyMessage_.setByteString(input.readBytes(), extensionRegistry);
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, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.PARSER,
extensionRegistry));
break;
}
case 386: {
if (!((mutable_bitField1_ & 0x00000400) == 0x00000400)) {
repeatedNestedMessage_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000400;
}
repeatedNestedMessage_.add(input.readMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.PARSER, extensionRegistry));
break;
}
case 394: {
if (!((mutable_bitField1_ & 0x00000800) == 0x00000800)) {
repeatedForeignMessage_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000800;
}
repeatedForeignMessage_.add(input.readMessage(com.google.protobuf.UnittestLite.ForeignMessageLite.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.UnittestImportLite.ImportMessageLite.PARSER, extensionRegistry));
break;
}
case 408: {
int rawValue = input.readEnum();
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(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();
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(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();
com.google.protobuf.UnittestLite.ForeignEnumLite value = com.google.protobuf.UnittestLite.ForeignEnumLite.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(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();
com.google.protobuf.UnittestLite.ForeignEnumLite value = com.google.protobuf.UnittestLite.ForeignEnumLite.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(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.UnittestImportLite.ImportEnumLite value = com.google.protobuf.UnittestImportLite.ImportEnumLite.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(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.UnittestImportLite.ImportEnumLite value = com.google.protobuf.UnittestImportLite.ImportEnumLite.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(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(new com.google.protobuf.LazyFieldLite(
extensionRegistry, input.readBytes()));
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();
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(rawValue);
} else {
bitField1_ |= 0x00000200;
defaultNestedEnum_ = value;
}
break;
}
case 656: {
int rawValue = input.readEnum();
com.google.protobuf.UnittestLite.ForeignEnumLite value = com.google.protobuf.UnittestLite.ForeignEnumLite.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(rawValue);
} else {
bitField1_ |= 0x00000400;
defaultForeignEnum_ = value;
}
break;
}
case 664: {
int rawValue = input.readEnum();
com.google.protobuf.UnittestImportLite.ImportEnumLite value = com.google.protobuf.UnittestImportLite.ImportEnumLite.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(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: {
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder subBuilder = null;
if (oneofFieldCase_ == 112) {
subBuilder = ((com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_).toBuilder();
}
oneofField_ = input.readMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.UnittestLite.TestAllTypesLite.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_);
}
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TestAllTypesLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestAllTypesLite(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code protobuf_unittest.TestAllTypesLite.NestedEnum}
*/
public enum NestedEnum
implements com.google.protobuf.Internal.EnumLite {
/**
* FOO = 1;
*/
FOO(0, 1),
/**
* BAR = 2;
*/
BAR(1, 2),
/**
* BAZ = 3;
*/
BAZ(2, 3),
;
/**
* 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;
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;
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);
}
};
private final int value;
private NestedEnum(int index, int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protobuf_unittest.TestAllTypesLite.NestedEnum)
}
public interface NestedMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypesLite.NestedMessage)
com.google.protobuf.MessageLiteOrBuilder {
/**
* optional int32 bb = 1;
*/
boolean hasBb();
/**
* optional int32 bb = 1;
*/
int getBb();
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypesLite.NestedMessage}
*/
public static final class NestedMessage extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypesLite.NestedMessage)
NestedMessageOrBuilder {
// Use NestedMessage.newBuilder() to construct.
private NestedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NestedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final NestedMessage defaultInstance;
public static NestedMessage getDefaultInstance() {
return defaultInstance;
}
public NestedMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString 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.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
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 {
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
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;
*/
public boolean hasBb() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 bb = 1;
*/
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_);
}
output.writeRawBytes(unknownFields);
}
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 += unknownFields.size();
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 com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.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(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code protobuf_unittest.TestAllTypesLite.NestedMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, Builder>
implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypesLite.NestedMessage)
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder {
// Construct using com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
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.UnittestLite.TestAllTypesLite.NestedMessage getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
}
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage build() {
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage buildPartial() {
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage result = new com.google.protobuf.UnittestLite.TestAllTypesLite.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_;
return result;
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage other) {
if (other == com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) return this;
if (other.hasBb()) {
setBb(other.getBb());
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
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 {
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int bb_ ;
/**
* optional int32 bb = 1;
*/
public boolean hasBb() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 bb = 1;
*/
public int getBb() {
return bb_;
}
/**
* optional int32 bb = 1;
*/
public Builder setBb(int value) {
bitField0_ |= 0x00000001;
bb_ = value;
return this;
}
/**
* optional int32 bb = 1;
*/
public Builder clearBb() {
bitField0_ = (bitField0_ & ~0x00000001);
bb_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypesLite.NestedMessage)
}
static {
defaultInstance = new NestedMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite.NestedMessage)
}
public interface OptionalGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypesLite.OptionalGroup)
com.google.protobuf.MessageLiteOrBuilder {
/**
* optional int32 a = 17;
*/
boolean hasA();
/**
* optional int32 a = 17;
*/
int getA();
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypesLite.OptionalGroup}
*/
public static final class OptionalGroup extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypesLite.OptionalGroup)
OptionalGroupOrBuilder {
// Use OptionalGroup.newBuilder() to construct.
private OptionalGroup(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private OptionalGroup(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final OptionalGroup defaultInstance;
public static OptionalGroup getDefaultInstance() {
return defaultInstance;
}
public OptionalGroup getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString 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.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
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 {
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
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_);
}
output.writeRawBytes(unknownFields);
}
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 += unknownFields.size();
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 com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.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(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code protobuf_unittest.TestAllTypesLite.OptionalGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup, Builder>
implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypesLite.OptionalGroup)
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder {
// Construct using com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
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.UnittestLite.TestAllTypesLite.OptionalGroup getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance();
}
public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup build() {
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup buildPartial() {
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup result = new com.google.protobuf.UnittestLite.TestAllTypesLite.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_;
return result;
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup other) {
if (other == com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance()) return this;
if (other.hasA()) {
setA(other.getA());
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
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 {
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protobuf.UnittestLite.TestAllTypesLite.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;
return this;
}
/**
* optional int32 a = 17;
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000001);
a_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypesLite.OptionalGroup)
}
static {
defaultInstance = new OptionalGroup(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite.OptionalGroup)
}
public interface RepeatedGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypesLite.RepeatedGroup)
com.google.protobuf.MessageLiteOrBuilder {
/**
* optional int32 a = 47;
*/
boolean hasA();
/**
* optional int32 a = 47;
*/
int getA();
}
/**
* Protobuf type {@code protobuf_unittest.TestAllTypesLite.RepeatedGroup}
*/
public static final class RepeatedGroup extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypesLite.RepeatedGroup)
RepeatedGroupOrBuilder {
// Use RepeatedGroup.newBuilder() to construct.
private RepeatedGroup(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RepeatedGroup(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final RepeatedGroup defaultInstance;
public static RepeatedGroup getDefaultInstance() {
return defaultInstance;
}
public RepeatedGroup getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString 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.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
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 {
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
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_);
}
output.writeRawBytes(unknownFields);
}
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 += unknownFields.size();
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 com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite.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(com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code protobuf_unittest.TestAllTypesLite.RepeatedGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup, Builder>
implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypesLite.RepeatedGroup)
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder {
// Construct using com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
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.UnittestLite.TestAllTypesLite.RepeatedGroup getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.getDefaultInstance();
}
public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup build() {
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup buildPartial() {
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup result = new com.google.protobuf.UnittestLite.TestAllTypesLite.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_;
return result;
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup other) {
if (other == com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.getDefaultInstance()) return this;
if (other.hasA()) {
setA(other.getA());
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
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 {
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protobuf.UnittestLite.TestAllTypesLite.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;
return this;
}
/**
* optional int32 a = 47;
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000001);
a_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypesLite.RepeatedGroup)
}
static {
defaultInstance = new RepeatedGroup(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite.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 com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup optionalGroup_;
/**
* optional group OptionalGroup = 16 { ... }
*/
public boolean hasOptionalGroup() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup getOptionalGroup() {
return optionalGroup_;
}
public static final int OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER = 18;
private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalNestedMessage_;
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public boolean hasOptionalNestedMessage() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalNestedMessage() {
return optionalNestedMessage_;
}
public static final int OPTIONAL_FOREIGN_MESSAGE_FIELD_NUMBER = 19;
private com.google.protobuf.UnittestLite.ForeignMessageLite optionalForeignMessage_;
/**
* optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public boolean hasOptionalForeignMessage() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLite getOptionalForeignMessage() {
return optionalForeignMessage_;
}
public static final int OPTIONAL_IMPORT_MESSAGE_FIELD_NUMBER = 20;
private com.google.protobuf.UnittestImportLite.ImportMessageLite optionalImportMessage_;
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public boolean hasOptionalImportMessage() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLite getOptionalImportMessage() {
return optionalImportMessage_;
}
public static final int OPTIONAL_NESTED_ENUM_FIELD_NUMBER = 21;
private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum optionalNestedEnum_;
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
*/
public boolean hasOptionalNestedEnum() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getOptionalNestedEnum() {
return optionalNestedEnum_;
}
public static final int OPTIONAL_FOREIGN_ENUM_FIELD_NUMBER = 22;
private com.google.protobuf.UnittestLite.ForeignEnumLite optionalForeignEnum_;
/**
* optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
*/
public boolean hasOptionalForeignEnum() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
* optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
*/
public com.google.protobuf.UnittestLite.ForeignEnumLite getOptionalForeignEnum() {
return optionalForeignEnum_;
}
public static final int OPTIONAL_IMPORT_ENUM_FIELD_NUMBER = 23;
private com.google.protobuf.UnittestImportLite.ImportEnumLite optionalImportEnum_;
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
*/
public boolean hasOptionalImportEnum() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
*/
public com.google.protobuf.UnittestImportLite.ImportEnumLite 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.UnittestImportPublicLite.PublicImportMessageLite optionalPublicImportMessage_;
/**
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public boolean hasOptionalPublicImportMessage() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getOptionalPublicImportMessage() {
return optionalPublicImportMessage_;
}
public static final int OPTIONAL_LAZY_MESSAGE_FIELD_NUMBER = 27;
private com.google.protobuf.LazyFieldLite optionalLazyMessage_ =
new com.google.protobuf.LazyFieldLite();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public boolean hasOptionalLazyMessage() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalLazyMessage() {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) optionalLazyMessage_.getValue(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance());
}
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 com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder>
getRepeatedGroupOrBuilderList() {
return repeatedGroup_;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public int getRepeatedGroupCount() {
return repeatedGroup_.size();
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup getRepeatedGroup(int index) {
return repeatedGroup_.get(index);
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.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.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public java.util.List getRepeatedNestedMessageList() {
return repeatedNestedMessage_;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public java.util.List extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList() {
return repeatedNestedMessage_;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public int getRepeatedNestedMessageCount() {
return repeatedNestedMessage_.size();
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedNestedMessage(int index) {
return repeatedNestedMessage_.get(index);
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.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.ForeignMessageLite repeated_foreign_message = 49;
*/
public java.util.List getRepeatedForeignMessageList() {
return repeatedForeignMessage_;
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public java.util.List extends com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder>
getRepeatedForeignMessageOrBuilderList() {
return repeatedForeignMessage_;
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public int getRepeatedForeignMessageCount() {
return repeatedForeignMessage_.size();
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLite getRepeatedForeignMessage(int index) {
return repeatedForeignMessage_.get(index);
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder 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.ImportMessageLite repeated_import_message = 50;
*/
public java.util.List getRepeatedImportMessageList() {
return repeatedImportMessage_;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public java.util.List extends com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder>
getRepeatedImportMessageOrBuilderList() {
return repeatedImportMessage_;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public int getRepeatedImportMessageCount() {
return repeatedImportMessage_.size();
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLite getRepeatedImportMessage(int index) {
return repeatedImportMessage_.get(index);
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder 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.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
public java.util.List getRepeatedNestedEnumList() {
return repeatedNestedEnum_;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.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.ForeignEnumLite repeated_foreign_enum = 52;
*/
public java.util.List getRepeatedForeignEnumList() {
return repeatedForeignEnum_;
}
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
public int getRepeatedForeignEnumCount() {
return repeatedForeignEnum_.size();
}
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
public com.google.protobuf.UnittestLite.ForeignEnumLite 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.ImportEnumLite repeated_import_enum = 53;
*/
public java.util.List getRepeatedImportEnumList() {
return repeatedImportEnum_;
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
public int getRepeatedImportEnumCount() {
return repeatedImportEnum_.size();
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
public com.google.protobuf.UnittestImportLite.ImportEnumLite 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.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List
getRepeatedLazyMessageList() {
java.util.List list =
new java.util.ArrayList(repeatedLazyMessage_.size());
for (com.google.protobuf.LazyFieldLite lf : repeatedLazyMessage_) {
list.add((com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) lf.getValue(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()));
}
return list;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getRepeatedLazyMessageOrBuilderList() {
return getRepeatedLazyMessageList();
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public int getRepeatedLazyMessageCount() {
return repeatedLazyMessage_.size();
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedLazyMessage(int index) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage)
repeatedLazyMessage_.get(index).getValue(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance());
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder(
int index) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder)
repeatedLazyMessage_.get(index).getValue(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance());
}
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 com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum defaultNestedEnum_;
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public boolean hasDefaultNestedEnum() {
return ((bitField1_ & 0x00000200) == 0x00000200);
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getDefaultNestedEnum() {
return defaultNestedEnum_;
}
public static final int DEFAULT_FOREIGN_ENUM_FIELD_NUMBER = 82;
private com.google.protobuf.UnittestLite.ForeignEnumLite defaultForeignEnum_;
/**
* optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
*/
public boolean hasDefaultForeignEnum() {
return ((bitField1_ & 0x00000400) == 0x00000400);
}
/**
* optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
*/
public com.google.protobuf.UnittestLite.ForeignEnumLite getDefaultForeignEnum() {
return defaultForeignEnum_;
}
public static final int DEFAULT_IMPORT_ENUM_FIELD_NUMBER = 83;
private com.google.protobuf.UnittestImportLite.ImportEnumLite defaultImportEnum_;
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
*/
public boolean hasDefaultImportEnum() {
return ((bitField1_ & 0x00000800) == 0x00000800);
}
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
*/
public com.google.protobuf.UnittestImportLite.ImportEnumLite 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.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public boolean hasOneofNestedMessage() {
return oneofFieldCase_ == 112;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofNestedMessage() {
if (oneofFieldCase_ == 112) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.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_ = com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance();
optionalNestedMessage_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
optionalForeignMessage_ = com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance();
optionalImportMessage_ = com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance();
optionalNestedEnum_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.FOO;
optionalForeignEnum_ = com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO;
optionalImportEnum_ = com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_FOO;
optionalStringPiece_ = "";
optionalCord_ = "";
optionalPublicImportMessage_ = com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance();
optionalLazyMessage_.clear();
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_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.BAR;
defaultForeignEnum_ = com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_BAR;
defaultImportEnum_ = com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_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.writeBytes(27, optionalLazyMessage_.toByteString());
}
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.writeBytes(57, repeatedLazyMessage_.get(i).toByteString());
}
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, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_);
}
if (oneofFieldCase_ == 113) {
output.writeBytes(113, getOneofStringBytes());
}
if (oneofFieldCase_ == 114) {
output.writeBytes(
114, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) oneofField_));
}
output.writeRawBytes(unknownFields);
}
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
.computeLazyFieldSize(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
.computeLazyFieldSize(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, (com.google.protobuf.UnittestLite.TestAllTypesLite.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 += unknownFields.size();
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 com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite 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(com.google.protobuf.UnittestLite.TestAllTypesLite prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code protobuf_unittest.TestAllTypesLite}
*
*
* Same as TestAllTypes but with the lite runtime.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.UnittestLite.TestAllTypesLite, Builder>
implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypesLite)
com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder {
// Construct using com.google.protobuf.UnittestLite.TestAllTypesLite.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
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);
optionalGroup_ = com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00008000);
optionalNestedMessage_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00010000);
optionalForeignMessage_ = com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00020000);
optionalImportMessage_ = com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00040000);
optionalNestedEnum_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.FOO;
bitField0_ = (bitField0_ & ~0x00080000);
optionalForeignEnum_ = com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO;
bitField0_ = (bitField0_ & ~0x00100000);
optionalImportEnum_ = com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_FOO;
bitField0_ = (bitField0_ & ~0x00200000);
optionalStringPiece_ = "";
bitField0_ = (bitField0_ & ~0x00400000);
optionalCord_ = "";
bitField0_ = (bitField0_ & ~0x00800000);
optionalPublicImportMessage_ = com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x01000000);
optionalLazyMessage_.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);
repeatedGroup_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000200);
repeatedNestedMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000400);
repeatedForeignMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000800);
repeatedImportMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00001000);
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);
repeatedLazyMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00040000);
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_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.BAR;
bitField2_ = (bitField2_ & ~0x00000004);
defaultForeignEnum_ = com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_BAR;
bitField2_ = (bitField2_ & ~0x00000008);
defaultImportEnum_ = com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_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.UnittestLite.TestAllTypesLite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance();
}
public com.google.protobuf.UnittestLite.TestAllTypesLite build() {
com.google.protobuf.UnittestLite.TestAllTypesLite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protobuf.UnittestLite.TestAllTypesLite buildPartial() {
com.google.protobuf.UnittestLite.TestAllTypesLite result = new com.google.protobuf.UnittestLite.TestAllTypesLite(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;
}
result.optionalGroup_ = optionalGroup_;
if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
to_bitField0_ |= 0x00010000;
}
result.optionalNestedMessage_ = optionalNestedMessage_;
if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
to_bitField0_ |= 0x00020000;
}
result.optionalForeignMessage_ = optionalForeignMessage_;
if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
to_bitField0_ |= 0x00040000;
}
result.optionalImportMessage_ = optionalImportMessage_;
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;
}
result.optionalPublicImportMessage_ = optionalPublicImportMessage_;
if (((from_bitField0_ & 0x02000000) == 0x02000000)) {
to_bitField0_ |= 0x02000000;
}
result.optionalLazyMessage_.setByteString(
optionalLazyMessage_.toByteString(),
optionalLazyMessage_.getExtensionRegistry());
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 (((bitField1_ & 0x00000200) == 0x00000200)) {
repeatedGroup_ = java.util.Collections.unmodifiableList(repeatedGroup_);
bitField1_ = (bitField1_ & ~0x00000200);
}
result.repeatedGroup_ = repeatedGroup_;
if (((bitField1_ & 0x00000400) == 0x00000400)) {
repeatedNestedMessage_ = java.util.Collections.unmodifiableList(repeatedNestedMessage_);
bitField1_ = (bitField1_ & ~0x00000400);
}
result.repeatedNestedMessage_ = repeatedNestedMessage_;
if (((bitField1_ & 0x00000800) == 0x00000800)) {
repeatedForeignMessage_ = java.util.Collections.unmodifiableList(repeatedForeignMessage_);
bitField1_ = (bitField1_ & ~0x00000800);
}
result.repeatedForeignMessage_ = repeatedForeignMessage_;
if (((bitField1_ & 0x00001000) == 0x00001000)) {
repeatedImportMessage_ = java.util.Collections.unmodifiableList(repeatedImportMessage_);
bitField1_ = (bitField1_ & ~0x00001000);
}
result.repeatedImportMessage_ = repeatedImportMessage_;
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 (((bitField1_ & 0x00040000) == 0x00040000)) {
repeatedLazyMessage_ = java.util.Collections.unmodifiableList(repeatedLazyMessage_);
bitField1_ = (bitField1_ & ~0x00040000);
}
result.repeatedLazyMessage_ = repeatedLazyMessage_;
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) {
result.oneofField_ = oneofField_;
}
if (oneofFieldCase_ == 113) {
result.oneofField_ = oneofField_;
}
if (oneofFieldCase_ == 114) {
result.oneofField_ = oneofField_;
}
result.bitField0_ = to_bitField0_;
result.bitField1_ = to_bitField1_;
result.oneofFieldCase_ = oneofFieldCase_;
return result;
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllTypesLite other) {
if (other == com.google.protobuf.UnittestLite.TestAllTypesLite.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_;
}
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_;
}
if (other.hasOptionalCord()) {
bitField0_ |= 0x00800000;
optionalCord_ = other.optionalCord_;
}
if (other.hasOptionalPublicImportMessage()) {
mergeOptionalPublicImportMessage(other.getOptionalPublicImportMessage());
}
if (other.hasOptionalLazyMessage()) {
optionalLazyMessage_.merge(other.optionalLazyMessage_);
bitField0_ |= 0x02000000;;
}
if (!other.repeatedInt32_.isEmpty()) {
if (repeatedInt32_.isEmpty()) {
repeatedInt32_ = other.repeatedInt32_;
bitField0_ = (bitField0_ & ~0x04000000);
} else {
ensureRepeatedInt32IsMutable();
repeatedInt32_.addAll(other.repeatedInt32_);
}
}
if (!other.repeatedInt64_.isEmpty()) {
if (repeatedInt64_.isEmpty()) {
repeatedInt64_ = other.repeatedInt64_;
bitField0_ = (bitField0_ & ~0x08000000);
} else {
ensureRepeatedInt64IsMutable();
repeatedInt64_.addAll(other.repeatedInt64_);
}
}
if (!other.repeatedUint32_.isEmpty()) {
if (repeatedUint32_.isEmpty()) {
repeatedUint32_ = other.repeatedUint32_;
bitField0_ = (bitField0_ & ~0x10000000);
} else {
ensureRepeatedUint32IsMutable();
repeatedUint32_.addAll(other.repeatedUint32_);
}
}
if (!other.repeatedUint64_.isEmpty()) {
if (repeatedUint64_.isEmpty()) {
repeatedUint64_ = other.repeatedUint64_;
bitField0_ = (bitField0_ & ~0x20000000);
} else {
ensureRepeatedUint64IsMutable();
repeatedUint64_.addAll(other.repeatedUint64_);
}
}
if (!other.repeatedSint32_.isEmpty()) {
if (repeatedSint32_.isEmpty()) {
repeatedSint32_ = other.repeatedSint32_;
bitField0_ = (bitField0_ & ~0x40000000);
} else {
ensureRepeatedSint32IsMutable();
repeatedSint32_.addAll(other.repeatedSint32_);
}
}
if (!other.repeatedSint64_.isEmpty()) {
if (repeatedSint64_.isEmpty()) {
repeatedSint64_ = other.repeatedSint64_;
bitField0_ = (bitField0_ & ~0x80000000);
} else {
ensureRepeatedSint64IsMutable();
repeatedSint64_.addAll(other.repeatedSint64_);
}
}
if (!other.repeatedFixed32_.isEmpty()) {
if (repeatedFixed32_.isEmpty()) {
repeatedFixed32_ = other.repeatedFixed32_;
bitField1_ = (bitField1_ & ~0x00000001);
} else {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.addAll(other.repeatedFixed32_);
}
}
if (!other.repeatedFixed64_.isEmpty()) {
if (repeatedFixed64_.isEmpty()) {
repeatedFixed64_ = other.repeatedFixed64_;
bitField1_ = (bitField1_ & ~0x00000002);
} else {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.addAll(other.repeatedFixed64_);
}
}
if (!other.repeatedSfixed32_.isEmpty()) {
if (repeatedSfixed32_.isEmpty()) {
repeatedSfixed32_ = other.repeatedSfixed32_;
bitField1_ = (bitField1_ & ~0x00000004);
} else {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.addAll(other.repeatedSfixed32_);
}
}
if (!other.repeatedSfixed64_.isEmpty()) {
if (repeatedSfixed64_.isEmpty()) {
repeatedSfixed64_ = other.repeatedSfixed64_;
bitField1_ = (bitField1_ & ~0x00000008);
} else {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.addAll(other.repeatedSfixed64_);
}
}
if (!other.repeatedFloat_.isEmpty()) {
if (repeatedFloat_.isEmpty()) {
repeatedFloat_ = other.repeatedFloat_;
bitField1_ = (bitField1_ & ~0x00000010);
} else {
ensureRepeatedFloatIsMutable();
repeatedFloat_.addAll(other.repeatedFloat_);
}
}
if (!other.repeatedDouble_.isEmpty()) {
if (repeatedDouble_.isEmpty()) {
repeatedDouble_ = other.repeatedDouble_;
bitField1_ = (bitField1_ & ~0x00000020);
} else {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.addAll(other.repeatedDouble_);
}
}
if (!other.repeatedBool_.isEmpty()) {
if (repeatedBool_.isEmpty()) {
repeatedBool_ = other.repeatedBool_;
bitField1_ = (bitField1_ & ~0x00000040);
} else {
ensureRepeatedBoolIsMutable();
repeatedBool_.addAll(other.repeatedBool_);
}
}
if (!other.repeatedString_.isEmpty()) {
if (repeatedString_.isEmpty()) {
repeatedString_ = other.repeatedString_;
bitField1_ = (bitField1_ & ~0x00000080);
} else {
ensureRepeatedStringIsMutable();
repeatedString_.addAll(other.repeatedString_);
}
}
if (!other.repeatedBytes_.isEmpty()) {
if (repeatedBytes_.isEmpty()) {
repeatedBytes_ = other.repeatedBytes_;
bitField1_ = (bitField1_ & ~0x00000100);
} else {
ensureRepeatedBytesIsMutable();
repeatedBytes_.addAll(other.repeatedBytes_);
}
}
if (!other.repeatedGroup_.isEmpty()) {
if (repeatedGroup_.isEmpty()) {
repeatedGroup_ = other.repeatedGroup_;
bitField1_ = (bitField1_ & ~0x00000200);
} else {
ensureRepeatedGroupIsMutable();
repeatedGroup_.addAll(other.repeatedGroup_);
}
}
if (!other.repeatedNestedMessage_.isEmpty()) {
if (repeatedNestedMessage_.isEmpty()) {
repeatedNestedMessage_ = other.repeatedNestedMessage_;
bitField1_ = (bitField1_ & ~0x00000400);
} else {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.addAll(other.repeatedNestedMessage_);
}
}
if (!other.repeatedForeignMessage_.isEmpty()) {
if (repeatedForeignMessage_.isEmpty()) {
repeatedForeignMessage_ = other.repeatedForeignMessage_;
bitField1_ = (bitField1_ & ~0x00000800);
} else {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.addAll(other.repeatedForeignMessage_);
}
}
if (!other.repeatedImportMessage_.isEmpty()) {
if (repeatedImportMessage_.isEmpty()) {
repeatedImportMessage_ = other.repeatedImportMessage_;
bitField1_ = (bitField1_ & ~0x00001000);
} else {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.addAll(other.repeatedImportMessage_);
}
}
if (!other.repeatedNestedEnum_.isEmpty()) {
if (repeatedNestedEnum_.isEmpty()) {
repeatedNestedEnum_ = other.repeatedNestedEnum_;
bitField1_ = (bitField1_ & ~0x00002000);
} else {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.addAll(other.repeatedNestedEnum_);
}
}
if (!other.repeatedForeignEnum_.isEmpty()) {
if (repeatedForeignEnum_.isEmpty()) {
repeatedForeignEnum_ = other.repeatedForeignEnum_;
bitField1_ = (bitField1_ & ~0x00004000);
} else {
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.addAll(other.repeatedForeignEnum_);
}
}
if (!other.repeatedImportEnum_.isEmpty()) {
if (repeatedImportEnum_.isEmpty()) {
repeatedImportEnum_ = other.repeatedImportEnum_;
bitField1_ = (bitField1_ & ~0x00008000);
} else {
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.addAll(other.repeatedImportEnum_);
}
}
if (!other.repeatedStringPiece_.isEmpty()) {
if (repeatedStringPiece_.isEmpty()) {
repeatedStringPiece_ = other.repeatedStringPiece_;
bitField1_ = (bitField1_ & ~0x00010000);
} else {
ensureRepeatedStringPieceIsMutable();
repeatedStringPiece_.addAll(other.repeatedStringPiece_);
}
}
if (!other.repeatedCord_.isEmpty()) {
if (repeatedCord_.isEmpty()) {
repeatedCord_ = other.repeatedCord_;
bitField1_ = (bitField1_ & ~0x00020000);
} else {
ensureRepeatedCordIsMutable();
repeatedCord_.addAll(other.repeatedCord_);
}
}
if (!other.repeatedLazyMessage_.isEmpty()) {
if (repeatedLazyMessage_.isEmpty()) {
repeatedLazyMessage_ = other.repeatedLazyMessage_;
bitField1_ = (bitField1_ & ~0x00040000);
} else {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.addAll(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_;
}
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_;
}
if (other.hasDefaultCord()) {
bitField2_ |= 0x00000040;
defaultCord_ = other.defaultCord_;
}
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_;
break;
}
case ONEOF_BYTES: {
setOneofBytes(other.getOneofBytes());
break;
}
case ONEOFFIELD_NOT_SET: {
break;
}
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
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 {
com.google.protobuf.UnittestLite.TestAllTypesLite parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protobuf.UnittestLite.TestAllTypesLite) 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;
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;
return this;
}
/**
* optional int32 optional_int32 = 1;
*
*
* Singular
*
*/
public Builder clearOptionalInt32() {
bitField0_ = (bitField0_ & ~0x00000001);
optionalInt32_ = 0;
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;
return this;
}
/**
* optional int64 optional_int64 = 2;
*/
public Builder clearOptionalInt64() {
bitField0_ = (bitField0_ & ~0x00000002);
optionalInt64_ = 0L;
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;
return this;
}
/**
* optional uint32 optional_uint32 = 3;
*/
public Builder clearOptionalUint32() {
bitField0_ = (bitField0_ & ~0x00000004);
optionalUint32_ = 0;
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;
return this;
}
/**
* optional uint64 optional_uint64 = 4;
*/
public Builder clearOptionalUint64() {
bitField0_ = (bitField0_ & ~0x00000008);
optionalUint64_ = 0L;
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;
return this;
}
/**
* optional sint32 optional_sint32 = 5;
*/
public Builder clearOptionalSint32() {
bitField0_ = (bitField0_ & ~0x00000010);
optionalSint32_ = 0;
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;
return this;
}
/**
* optional sint64 optional_sint64 = 6;
*/
public Builder clearOptionalSint64() {
bitField0_ = (bitField0_ & ~0x00000020);
optionalSint64_ = 0L;
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;
return this;
}
/**
* optional fixed32 optional_fixed32 = 7;
*/
public Builder clearOptionalFixed32() {
bitField0_ = (bitField0_ & ~0x00000040);
optionalFixed32_ = 0;
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;
return this;
}
/**
* optional fixed64 optional_fixed64 = 8;
*/
public Builder clearOptionalFixed64() {
bitField0_ = (bitField0_ & ~0x00000080);
optionalFixed64_ = 0L;
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;
return this;
}
/**
* optional sfixed32 optional_sfixed32 = 9;
*/
public Builder clearOptionalSfixed32() {
bitField0_ = (bitField0_ & ~0x00000100);
optionalSfixed32_ = 0;
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;
return this;
}
/**
* optional sfixed64 optional_sfixed64 = 10;
*/
public Builder clearOptionalSfixed64() {
bitField0_ = (bitField0_ & ~0x00000200);
optionalSfixed64_ = 0L;
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;
return this;
}
/**
* optional float optional_float = 11;
*/
public Builder clearOptionalFloat() {
bitField0_ = (bitField0_ & ~0x00000400);
optionalFloat_ = 0F;
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;
return this;
}
/**
* optional double optional_double = 12;
*/
public Builder clearOptionalDouble() {
bitField0_ = (bitField0_ & ~0x00000800);
optionalDouble_ = 0D;
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;
return this;
}
/**
* optional bool optional_bool = 13;
*/
public Builder clearOptionalBool() {
bitField0_ = (bitField0_ & ~0x00001000);
optionalBool_ = false;
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;
return this;
}
/**
* optional string optional_string = 14;
*/
public Builder clearOptionalString() {
bitField0_ = (bitField0_ & ~0x00002000);
optionalString_ = getDefaultInstance().getOptionalString();
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;
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;
return this;
}
/**
* optional bytes optional_bytes = 15;
*/
public Builder clearOptionalBytes() {
bitField0_ = (bitField0_ & ~0x00004000);
optionalBytes_ = getDefaultInstance().getOptionalBytes();
return this;
}
private com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup optionalGroup_ = com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance();
/**
* optional group OptionalGroup = 16 { ... }
*/
public boolean hasOptionalGroup() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup getOptionalGroup() {
return optionalGroup_;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder setOptionalGroup(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup value) {
if (value == null) {
throw new NullPointerException();
}
optionalGroup_ = value;
bitField0_ |= 0x00008000;
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder setOptionalGroup(
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder builderForValue) {
optionalGroup_ = builderForValue.build();
bitField0_ |= 0x00008000;
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder mergeOptionalGroup(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup value) {
if (((bitField0_ & 0x00008000) == 0x00008000) &&
optionalGroup_ != com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance()) {
optionalGroup_ =
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.newBuilder(optionalGroup_).mergeFrom(value).buildPartial();
} else {
optionalGroup_ = value;
}
bitField0_ |= 0x00008000;
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder clearOptionalGroup() {
optionalGroup_ = com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalNestedMessage_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public boolean hasOptionalNestedMessage() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalNestedMessage() {
return optionalNestedMessage_;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public Builder setOptionalNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (value == null) {
throw new NullPointerException();
}
optionalNestedMessage_ = value;
bitField0_ |= 0x00010000;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public Builder setOptionalNestedMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
optionalNestedMessage_ = builderForValue.build();
bitField0_ |= 0x00010000;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public Builder mergeOptionalNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (((bitField0_ & 0x00010000) == 0x00010000) &&
optionalNestedMessage_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) {
optionalNestedMessage_ =
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.newBuilder(optionalNestedMessage_).mergeFrom(value).buildPartial();
} else {
optionalNestedMessage_ = value;
}
bitField0_ |= 0x00010000;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public Builder clearOptionalNestedMessage() {
optionalNestedMessage_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00010000);
return this;
}
private com.google.protobuf.UnittestLite.ForeignMessageLite optionalForeignMessage_ = com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance();
/**
* optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public boolean hasOptionalForeignMessage() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLite getOptionalForeignMessage() {
return optionalForeignMessage_;
}
/**
* optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public Builder setOptionalForeignMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) {
if (value == null) {
throw new NullPointerException();
}
optionalForeignMessage_ = value;
bitField0_ |= 0x00020000;
return this;
}
/**
* optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public Builder setOptionalForeignMessage(
com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) {
optionalForeignMessage_ = builderForValue.build();
bitField0_ |= 0x00020000;
return this;
}
/**
* optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public Builder mergeOptionalForeignMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) {
if (((bitField0_ & 0x00020000) == 0x00020000) &&
optionalForeignMessage_ != com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()) {
optionalForeignMessage_ =
com.google.protobuf.UnittestLite.ForeignMessageLite.newBuilder(optionalForeignMessage_).mergeFrom(value).buildPartial();
} else {
optionalForeignMessage_ = value;
}
bitField0_ |= 0x00020000;
return this;
}
/**
* optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public Builder clearOptionalForeignMessage() {
optionalForeignMessage_ = com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00020000);
return this;
}
private com.google.protobuf.UnittestImportLite.ImportMessageLite optionalImportMessage_ = com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance();
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public boolean hasOptionalImportMessage() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLite getOptionalImportMessage() {
return optionalImportMessage_;
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public Builder setOptionalImportMessage(com.google.protobuf.UnittestImportLite.ImportMessageLite value) {
if (value == null) {
throw new NullPointerException();
}
optionalImportMessage_ = value;
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public Builder setOptionalImportMessage(
com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) {
optionalImportMessage_ = builderForValue.build();
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public Builder mergeOptionalImportMessage(com.google.protobuf.UnittestImportLite.ImportMessageLite value) {
if (((bitField0_ & 0x00040000) == 0x00040000) &&
optionalImportMessage_ != com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance()) {
optionalImportMessage_ =
com.google.protobuf.UnittestImportLite.ImportMessageLite.newBuilder(optionalImportMessage_).mergeFrom(value).buildPartial();
} else {
optionalImportMessage_ = value;
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public Builder clearOptionalImportMessage() {
optionalImportMessage_ = com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00040000);
return this;
}
private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum optionalNestedEnum_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.FOO;
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
*/
public boolean hasOptionalNestedEnum() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getOptionalNestedEnum() {
return optionalNestedEnum_;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
*/
public Builder setOptionalNestedEnum(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00080000;
optionalNestedEnum_ = value;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
*/
public Builder clearOptionalNestedEnum() {
bitField0_ = (bitField0_ & ~0x00080000);
optionalNestedEnum_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.FOO;
return this;
}
private com.google.protobuf.UnittestLite.ForeignEnumLite optionalForeignEnum_ = com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO;
/**
* optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
*/
public boolean hasOptionalForeignEnum() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
* optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
*/
public com.google.protobuf.UnittestLite.ForeignEnumLite getOptionalForeignEnum() {
return optionalForeignEnum_;
}
/**
* optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
*/
public Builder setOptionalForeignEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00100000;
optionalForeignEnum_ = value;
return this;
}
/**
* optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
*/
public Builder clearOptionalForeignEnum() {
bitField0_ = (bitField0_ & ~0x00100000);
optionalForeignEnum_ = com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO;
return this;
}
private com.google.protobuf.UnittestImportLite.ImportEnumLite optionalImportEnum_ = com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_FOO;
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
*/
public boolean hasOptionalImportEnum() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
*/
public com.google.protobuf.UnittestImportLite.ImportEnumLite getOptionalImportEnum() {
return optionalImportEnum_;
}
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
*/
public Builder setOptionalImportEnum(com.google.protobuf.UnittestImportLite.ImportEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00200000;
optionalImportEnum_ = value;
return this;
}
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
*/
public Builder clearOptionalImportEnum() {
bitField0_ = (bitField0_ & ~0x00200000);
optionalImportEnum_ = com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_FOO;
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;
return this;
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
*/
public Builder clearOptionalStringPiece() {
bitField0_ = (bitField0_ & ~0x00400000);
optionalStringPiece_ = getDefaultInstance().getOptionalStringPiece();
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;
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;
return this;
}
/**
* optional string optional_cord = 25 [ctype = CORD];
*/
public Builder clearOptionalCord() {
bitField0_ = (bitField0_ & ~0x00800000);
optionalCord_ = getDefaultInstance().getOptionalCord();
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;
return this;
}
private com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite optionalPublicImportMessage_ = com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance();
/**
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public boolean hasOptionalPublicImportMessage() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getOptionalPublicImportMessage() {
return optionalPublicImportMessage_;
}
/**
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public Builder setOptionalPublicImportMessage(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite value) {
if (value == null) {
throw new NullPointerException();
}
optionalPublicImportMessage_ = value;
bitField0_ |= 0x01000000;
return this;
}
/**
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public Builder setOptionalPublicImportMessage(
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder builderForValue) {
optionalPublicImportMessage_ = builderForValue.build();
bitField0_ |= 0x01000000;
return this;
}
/**
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public Builder mergeOptionalPublicImportMessage(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite value) {
if (((bitField0_ & 0x01000000) == 0x01000000) &&
optionalPublicImportMessage_ != com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance()) {
optionalPublicImportMessage_ =
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.newBuilder(optionalPublicImportMessage_).mergeFrom(value).buildPartial();
} else {
optionalPublicImportMessage_ = value;
}
bitField0_ |= 0x01000000;
return this;
}
/**
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*
*
* Defined in unittest_import_public.proto
*
*/
public Builder clearOptionalPublicImportMessage() {
optionalPublicImportMessage_ = com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x01000000);
return this;
}
private com.google.protobuf.LazyFieldLite optionalLazyMessage_ =
new com.google.protobuf.LazyFieldLite();
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public boolean hasOptionalLazyMessage() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalLazyMessage() {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) optionalLazyMessage_.getValue(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance());
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder setOptionalLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (value == null) {
throw new NullPointerException();
}
optionalLazyMessage_.setValue(value);
bitField0_ |= 0x02000000;;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder setOptionalLazyMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
optionalLazyMessage_.setValue(builderForValue.build());
bitField0_ |= 0x02000000;;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder mergeOptionalLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (((bitField0_ & 0x02000000) == 0x02000000) &&
!optionalLazyMessage_.containsDefaultInstance()) {
optionalLazyMessage_.setValue(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.newBuilder(
getOptionalLazyMessage()).mergeFrom(value).buildPartial());
} else {
optionalLazyMessage_.setValue(value);
}
bitField0_ |= 0x02000000;;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder clearOptionalLazyMessage() {
optionalLazyMessage_.clear();
bitField0_ = (bitField0_ & ~0x02000000);;
return this;
}
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);
return this;
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public Builder addRepeatedInt32(int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.add(value);
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_);
return this;
}
/**
* repeated int32 repeated_int32 = 31;
*
*
* Repeated
*
*/
public Builder clearRepeatedInt32() {
repeatedInt32_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x04000000);
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);
return this;
}
/**
* repeated int64 repeated_int64 = 32;
*/
public Builder addRepeatedInt64(long value) {
ensureRepeatedInt64IsMutable();
repeatedInt64_.add(value);
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_);
return this;
}
/**
* repeated int64 repeated_int64 = 32;
*/
public Builder clearRepeatedInt64() {
repeatedInt64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x08000000);
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);
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public Builder addRepeatedUint32(int value) {
ensureRepeatedUint32IsMutable();
repeatedUint32_.add(value);
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_);
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
*/
public Builder clearRepeatedUint32() {
repeatedUint32_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x10000000);
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);
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public Builder addRepeatedUint64(long value) {
ensureRepeatedUint64IsMutable();
repeatedUint64_.add(value);
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_);
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
*/
public Builder clearRepeatedUint64() {
repeatedUint64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x20000000);
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);
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public Builder addRepeatedSint32(int value) {
ensureRepeatedSint32IsMutable();
repeatedSint32_.add(value);
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_);
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
*/
public Builder clearRepeatedSint32() {
repeatedSint32_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x40000000);
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);
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public Builder addRepeatedSint64(long value) {
ensureRepeatedSint64IsMutable();
repeatedSint64_.add(value);
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_);
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
*/
public Builder clearRepeatedSint64() {
repeatedSint64_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x80000000);
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);
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public Builder addRepeatedFixed32(int value) {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.add(value);
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_);
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
*/
public Builder clearRepeatedFixed32() {
repeatedFixed32_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000001);
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);
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public Builder addRepeatedFixed64(long value) {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.add(value);
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_);
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
*/
public Builder clearRepeatedFixed64() {
repeatedFixed64_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000002);
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);
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public Builder addRepeatedSfixed32(int value) {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.add(value);
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_);
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
*/
public Builder clearRepeatedSfixed32() {
repeatedSfixed32_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000004);
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);
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public Builder addRepeatedSfixed64(long value) {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.add(value);
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_);
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
*/
public Builder clearRepeatedSfixed64() {
repeatedSfixed64_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000008);
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);
return this;
}
/**
* repeated float repeated_float = 41;
*/
public Builder addRepeatedFloat(float value) {
ensureRepeatedFloatIsMutable();
repeatedFloat_.add(value);
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_);
return this;
}
/**
* repeated float repeated_float = 41;
*/
public Builder clearRepeatedFloat() {
repeatedFloat_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000010);
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);
return this;
}
/**
* repeated double repeated_double = 42;
*/
public Builder addRepeatedDouble(double value) {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.add(value);
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_);
return this;
}
/**
* repeated double repeated_double = 42;
*/
public Builder clearRepeatedDouble() {
repeatedDouble_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000020);
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);
return this;
}
/**
* repeated bool repeated_bool = 43;
*/
public Builder addRepeatedBool(boolean value) {
ensureRepeatedBoolIsMutable();
repeatedBool_.add(value);
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_);
return this;
}
/**
* repeated bool repeated_bool = 43;
*/
public Builder clearRepeatedBool() {
repeatedBool_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000040);
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);
return this;
}
/**
* repeated string repeated_string = 44;
*/
public Builder addRepeatedString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedStringIsMutable();
repeatedString_.add(value);
return this;
}
/**
* repeated string repeated_string = 44;
*/
public Builder addAllRepeatedString(
java.lang.Iterable values) {
ensureRepeatedStringIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedString_);
return this;
}
/**
* repeated string repeated_string = 44;
*/
public Builder clearRepeatedString() {
repeatedString_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00000080);
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);
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);
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);
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_);
return this;
}
/**
* repeated bytes repeated_bytes = 45;
*/
public Builder clearRepeatedBytes() {
repeatedBytes_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000100);
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;
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public java.util.List getRepeatedGroupList() {
return java.util.Collections.unmodifiableList(repeatedGroup_);
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public int getRepeatedGroupCount() {
return repeatedGroup_.size();
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup getRepeatedGroup(int index) {
return repeatedGroup_.get(index);
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder setRepeatedGroup(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedGroupIsMutable();
repeatedGroup_.set(index, value);
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder setRepeatedGroup(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder builderForValue) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.set(index, builderForValue.build());
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(value);
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(index, value);
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder builderForValue) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(builderForValue.build());
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder builderForValue) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(index, builderForValue.build());
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addAllRepeatedGroup(
java.lang.Iterable extends com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup> values) {
ensureRepeatedGroupIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedGroup_);
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder clearRepeatedGroup() {
repeatedGroup_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000200);
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder removeRepeatedGroup(int index) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.remove(index);
return this;
}
private java.util.List repeatedNestedMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedNestedMessageIsMutable() {
if (!((bitField1_ & 0x00000400) == 0x00000400)) {
repeatedNestedMessage_ = new java.util.ArrayList(repeatedNestedMessage_);
bitField1_ |= 0x00000400;
}
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public java.util.List getRepeatedNestedMessageList() {
return java.util.Collections.unmodifiableList(repeatedNestedMessage_);
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public int getRepeatedNestedMessageCount() {
return repeatedNestedMessage_.size();
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedNestedMessage(int index) {
return repeatedNestedMessage_.get(index);
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder setRepeatedNestedMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.set(index, value);
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder setRepeatedNestedMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.set(index, builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(value);
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(index, value);
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(index, builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder addAllRepeatedNestedMessage(
java.lang.Iterable extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage> values) {
ensureRepeatedNestedMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedNestedMessage_);
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder clearRepeatedNestedMessage() {
repeatedNestedMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000400);
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder removeRepeatedNestedMessage(int index) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.remove(index);
return this;
}
private java.util.List repeatedForeignMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedForeignMessageIsMutable() {
if (!((bitField1_ & 0x00000800) == 0x00000800)) {
repeatedForeignMessage_ = new java.util.ArrayList(repeatedForeignMessage_);
bitField1_ |= 0x00000800;
}
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public java.util.List getRepeatedForeignMessageList() {
return java.util.Collections.unmodifiableList(repeatedForeignMessage_);
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public int getRepeatedForeignMessageCount() {
return repeatedForeignMessage_.size();
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLite getRepeatedForeignMessage(int index) {
return repeatedForeignMessage_.get(index);
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder setRepeatedForeignMessage(
int index, com.google.protobuf.UnittestLite.ForeignMessageLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.set(index, value);
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder setRepeatedForeignMessage(
int index, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.set(index, builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(value);
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(
int index, com.google.protobuf.UnittestLite.ForeignMessageLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(index, value);
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(
com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(
int index, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(index, builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder addAllRepeatedForeignMessage(
java.lang.Iterable extends com.google.protobuf.UnittestLite.ForeignMessageLite> values) {
ensureRepeatedForeignMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedForeignMessage_);
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder clearRepeatedForeignMessage() {
repeatedForeignMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000800);
return this;
}
/**
* repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder removeRepeatedForeignMessage(int index) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.remove(index);
return this;
}
private java.util.List repeatedImportMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedImportMessageIsMutable() {
if (!((bitField1_ & 0x00001000) == 0x00001000)) {
repeatedImportMessage_ = new java.util.ArrayList(repeatedImportMessage_);
bitField1_ |= 0x00001000;
}
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public java.util.List getRepeatedImportMessageList() {
return java.util.Collections.unmodifiableList(repeatedImportMessage_);
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public int getRepeatedImportMessageCount() {
return repeatedImportMessage_.size();
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLite getRepeatedImportMessage(int index) {
return repeatedImportMessage_.get(index);
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder setRepeatedImportMessage(
int index, com.google.protobuf.UnittestImportLite.ImportMessageLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.set(index, value);
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder setRepeatedImportMessage(
int index, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.set(index, builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(com.google.protobuf.UnittestImportLite.ImportMessageLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(value);
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(
int index, com.google.protobuf.UnittestImportLite.ImportMessageLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(index, value);
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(
com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(
int index, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(index, builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder addAllRepeatedImportMessage(
java.lang.Iterable extends com.google.protobuf.UnittestImportLite.ImportMessageLite> values) {
ensureRepeatedImportMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedImportMessage_);
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder clearRepeatedImportMessage() {
repeatedImportMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00001000);
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder removeRepeatedImportMessage(int index) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.remove(index);
return this;
}
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.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
public java.util.List getRepeatedNestedEnumList() {
return java.util.Collections.unmodifiableList(repeatedNestedEnum_);
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_.get(index);
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
public Builder setRepeatedNestedEnum(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value);
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
public Builder addRepeatedNestedEnum(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value);
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
public Builder addAllRepeatedNestedEnum(
java.lang.Iterable extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum> values) {
ensureRepeatedNestedEnumIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedNestedEnum_);
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
*/
public Builder clearRepeatedNestedEnum() {
repeatedNestedEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00002000);
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.ForeignEnumLite repeated_foreign_enum = 52;
*/
public java.util.List getRepeatedForeignEnumList() {
return java.util.Collections.unmodifiableList(repeatedForeignEnum_);
}
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
public int getRepeatedForeignEnumCount() {
return repeatedForeignEnum_.size();
}
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
public com.google.protobuf.UnittestLite.ForeignEnumLite getRepeatedForeignEnum(int index) {
return repeatedForeignEnum_.get(index);
}
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
public Builder setRepeatedForeignEnum(
int index, com.google.protobuf.UnittestLite.ForeignEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.set(index, value);
return this;
}
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
public Builder addRepeatedForeignEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.add(value);
return this;
}
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
public Builder addAllRepeatedForeignEnum(
java.lang.Iterable extends com.google.protobuf.UnittestLite.ForeignEnumLite> values) {
ensureRepeatedForeignEnumIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedForeignEnum_);
return this;
}
/**
* repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
*/
public Builder clearRepeatedForeignEnum() {
repeatedForeignEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00004000);
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.ImportEnumLite repeated_import_enum = 53;
*/
public java.util.List getRepeatedImportEnumList() {
return java.util.Collections.unmodifiableList(repeatedImportEnum_);
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
public int getRepeatedImportEnumCount() {
return repeatedImportEnum_.size();
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
public com.google.protobuf.UnittestImportLite.ImportEnumLite getRepeatedImportEnum(int index) {
return repeatedImportEnum_.get(index);
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
public Builder setRepeatedImportEnum(
int index, com.google.protobuf.UnittestImportLite.ImportEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.set(index, value);
return this;
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
public Builder addRepeatedImportEnum(com.google.protobuf.UnittestImportLite.ImportEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.add(value);
return this;
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
public Builder addAllRepeatedImportEnum(
java.lang.Iterable extends com.google.protobuf.UnittestImportLite.ImportEnumLite> values) {
ensureRepeatedImportEnumIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedImportEnum_);
return this;
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
*/
public Builder clearRepeatedImportEnum() {
repeatedImportEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00008000);
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);
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);
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_);
return this;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
*/
public Builder clearRepeatedStringPiece() {
repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00010000);
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);
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);
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);
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_);
return this;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
*/
public Builder clearRepeatedCord() {
repeatedCord_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00020000);
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);
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;
}
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List getRepeatedLazyMessageList() {
java.util.List list =
new java.util.ArrayList(repeatedLazyMessage_.size());
for (com.google.protobuf.LazyFieldLite lf : repeatedLazyMessage_) {
list.add((com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) lf.getValue(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()));
}
return java.util.Collections.unmodifiableList(list);
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public int getRepeatedLazyMessageCount() {
return repeatedLazyMessage_.size();
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedLazyMessage(int index) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) repeatedLazyMessage_.get(index).getValue(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance());
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder setRepeatedLazyMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.set(index, com.google.protobuf.LazyFieldLite.fromValue(value));
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder setRepeatedLazyMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.set(index, com.google.protobuf.LazyFieldLite.fromValue(
builderForValue.build()));
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(com.google.protobuf.LazyFieldLite.fromValue(value));
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(index, com.google.protobuf.LazyFieldLite.fromValue(value));
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(com.google.protobuf.LazyFieldLite.fromValue(
builderForValue.build()));
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(index, com.google.protobuf.LazyFieldLite.fromValue(
builderForValue.build()));
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addAllRepeatedLazyMessage(
java.lang.Iterable extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage> values) {
ensureRepeatedLazyMessageIsMutable();
for (com.google.protobuf.MessageLite v : values) {
repeatedLazyMessage_.add(com.google.protobuf.LazyFieldLite.fromValue(v));
}
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder clearRepeatedLazyMessage() {
repeatedLazyMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00040000);
return this;
}
/**
* repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder removeRepeatedLazyMessage(int index) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.remove(index);
return this;
}
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;
return this;
}
/**
* optional int32 default_int32 = 61 [default = 41];
*
*
* Singular with defaults
*
*/
public Builder clearDefaultInt32() {
bitField1_ = (bitField1_ & ~0x00080000);
defaultInt32_ = 41;
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;
return this;
}
/**
* optional int64 default_int64 = 62 [default = 42];
*/
public Builder clearDefaultInt64() {
bitField1_ = (bitField1_ & ~0x00100000);
defaultInt64_ = 42L;
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;
return this;
}
/**
* optional uint32 default_uint32 = 63 [default = 43];
*/
public Builder clearDefaultUint32() {
bitField1_ = (bitField1_ & ~0x00200000);
defaultUint32_ = 43;
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;
return this;
}
/**
* optional uint64 default_uint64 = 64 [default = 44];
*/
public Builder clearDefaultUint64() {
bitField1_ = (bitField1_ & ~0x00400000);
defaultUint64_ = 44L;
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;
return this;
}
/**
* optional sint32 default_sint32 = 65 [default = -45];
*/
public Builder clearDefaultSint32() {
bitField1_ = (bitField1_ & ~0x00800000);
defaultSint32_ = -45;
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;
return this;
}
/**
* optional sint64 default_sint64 = 66 [default = 46];
*/
public Builder clearDefaultSint64() {
bitField1_ = (bitField1_ & ~0x01000000);
defaultSint64_ = 46L;
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;
return this;
}
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
*/
public Builder clearDefaultFixed32() {
bitField1_ = (bitField1_ & ~0x02000000);
defaultFixed32_ = 47;
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;
return this;
}
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
*/
public Builder clearDefaultFixed64() {
bitField1_ = (bitField1_ & ~0x04000000);
defaultFixed64_ = 48L;
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;
return this;
}
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
*/
public Builder clearDefaultSfixed32() {
bitField1_ = (bitField1_ & ~0x08000000);
defaultSfixed32_ = 49;
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;
return this;
}
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
*/
public Builder clearDefaultSfixed64() {
bitField1_ = (bitField1_ & ~0x10000000);
defaultSfixed64_ = -50L;
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;
return this;
}
/**
* optional float default_float = 71 [default = 51.5];
*/
public Builder clearDefaultFloat() {
bitField1_ = (bitField1_ & ~0x20000000);
defaultFloat_ = 51.5F;
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;
return this;
}
/**
* optional double default_double = 72 [default = 52000];
*/
public Builder clearDefaultDouble() {
bitField1_ = (bitField1_ & ~0x40000000);
defaultDouble_ = 52000D;
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;
return this;
}
/**
* optional bool default_bool = 73 [default = true];
*/
public Builder clearDefaultBool() {
bitField1_ = (bitField1_ & ~0x80000000);
defaultBool_ = true;
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;
return this;
}
/**
* optional string default_string = 74 [default = "hello"];
*/
public Builder clearDefaultString() {
bitField2_ = (bitField2_ & ~0x00000001);
defaultString_ = getDefaultInstance().getDefaultString();
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;
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;
return this;
}
/**
* optional bytes default_bytes = 75 [default = "world"];
*/
public Builder clearDefaultBytes() {
bitField2_ = (bitField2_ & ~0x00000002);
defaultBytes_ = getDefaultInstance().getDefaultBytes();
return this;
}
private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum defaultNestedEnum_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.BAR;
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public boolean hasDefaultNestedEnum() {
return ((bitField2_ & 0x00000004) == 0x00000004);
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getDefaultNestedEnum() {
return defaultNestedEnum_;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public Builder setDefaultNestedEnum(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000004;
defaultNestedEnum_ = value;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
*/
public Builder clearDefaultNestedEnum() {
bitField2_ = (bitField2_ & ~0x00000004);
defaultNestedEnum_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.BAR;
return this;
}
private com.google.protobuf.UnittestLite.ForeignEnumLite defaultForeignEnum_ = com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_BAR;
/**
* optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
*/
public boolean hasDefaultForeignEnum() {
return ((bitField2_ & 0x00000008) == 0x00000008);
}
/**
* optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
*/
public com.google.protobuf.UnittestLite.ForeignEnumLite getDefaultForeignEnum() {
return defaultForeignEnum_;
}
/**
* optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
*/
public Builder setDefaultForeignEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000008;
defaultForeignEnum_ = value;
return this;
}
/**
* optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
*/
public Builder clearDefaultForeignEnum() {
bitField2_ = (bitField2_ & ~0x00000008);
defaultForeignEnum_ = com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_BAR;
return this;
}
private com.google.protobuf.UnittestImportLite.ImportEnumLite defaultImportEnum_ = com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_BAR;
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
*/
public boolean hasDefaultImportEnum() {
return ((bitField2_ & 0x00000010) == 0x00000010);
}
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
*/
public com.google.protobuf.UnittestImportLite.ImportEnumLite getDefaultImportEnum() {
return defaultImportEnum_;
}
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
*/
public Builder setDefaultImportEnum(com.google.protobuf.UnittestImportLite.ImportEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000010;
defaultImportEnum_ = value;
return this;
}
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
*/
public Builder clearDefaultImportEnum() {
bitField2_ = (bitField2_ & ~0x00000010);
defaultImportEnum_ = com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_BAR;
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;
return this;
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
*/
public Builder clearDefaultStringPiece() {
bitField2_ = (bitField2_ & ~0x00000020);
defaultStringPiece_ = getDefaultInstance().getDefaultStringPiece();
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;
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;
return this;
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
*/
public Builder clearDefaultCord() {
bitField2_ = (bitField2_ & ~0x00000040);
defaultCord_ = getDefaultInstance().getDefaultCord();
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;
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;
return this;
}
/**
* optional uint32 oneof_uint32 = 111;
*/
public Builder clearOneofUint32() {
if (oneofFieldCase_ == 111) {
oneofFieldCase_ = 0;
oneofField_ = null;
}
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public boolean hasOneofNestedMessage() {
return oneofFieldCase_ == 112;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofNestedMessage() {
if (oneofFieldCase_ == 112) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public Builder setOneofNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (value == null) {
throw new NullPointerException();
}
oneofField_ = value;
oneofFieldCase_ = 112;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public Builder setOneofNestedMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
oneofField_ = builderForValue.build();
oneofFieldCase_ = 112;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public Builder mergeOneofNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (oneofFieldCase_ == 112 &&
oneofField_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) {
oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.newBuilder((com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_)
.mergeFrom(value).buildPartial();
} else {
oneofField_ = value;
}
oneofFieldCase_ = 112;
return this;
}
/**
* optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public Builder clearOneofNestedMessage() {
if (oneofFieldCase_ == 112) {
oneofFieldCase_ = 0;
oneofField_ = null;
}
return this;
}
/**
* 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;
return this;
}
/**
* optional string oneof_string = 113;
*/
public Builder clearOneofString() {
if (oneofFieldCase_ == 113) {
oneofFieldCase_ = 0;
oneofField_ = null;
}
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;
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;
return this;
}
/**
* optional bytes oneof_bytes = 114;
*/
public Builder clearOneofBytes() {
if (oneofFieldCase_ == 114) {
oneofFieldCase_ = 0;
oneofField_ = null;
}
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypesLite)
}
static {
defaultInstance = new TestAllTypesLite(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite)
}
public interface ForeignMessageLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.ForeignMessageLite)
com.google.protobuf.MessageLiteOrBuilder {
/**
* optional int32 c = 1;
*/
boolean hasC();
/**
* optional int32 c = 1;
*/
int getC();
}
/**
* Protobuf type {@code protobuf_unittest.ForeignMessageLite}
*/
public static final class ForeignMessageLite extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.ForeignMessageLite)
ForeignMessageLiteOrBuilder {
// Use ForeignMessageLite.newBuilder() to construct.
private ForeignMessageLite(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ForeignMessageLite(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final ForeignMessageLite defaultInstance;
public static ForeignMessageLite getDefaultInstance() {
return defaultInstance;
}
public ForeignMessageLite getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString unknownFields;
private ForeignMessageLite(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
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 {
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ForeignMessageLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ForeignMessageLite(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_);
}
output.writeRawBytes(unknownFields);
}
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 += unknownFields.size();
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 com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite 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(com.google.protobuf.UnittestLite.ForeignMessageLite prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code protobuf_unittest.ForeignMessageLite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.UnittestLite.ForeignMessageLite, Builder>
implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.ForeignMessageLite)
com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder {
// Construct using com.google.protobuf.UnittestLite.ForeignMessageLite.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
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.UnittestLite.ForeignMessageLite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance();
}
public com.google.protobuf.UnittestLite.ForeignMessageLite build() {
com.google.protobuf.UnittestLite.ForeignMessageLite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protobuf.UnittestLite.ForeignMessageLite buildPartial() {
com.google.protobuf.UnittestLite.ForeignMessageLite result = new com.google.protobuf.UnittestLite.ForeignMessageLite(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.c_ = c_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.ForeignMessageLite other) {
if (other == com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()) return this;
if (other.hasC()) {
setC(other.getC());
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
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 {
com.google.protobuf.UnittestLite.ForeignMessageLite parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protobuf.UnittestLite.ForeignMessageLite) 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;
return this;
}
/**
* optional int32 c = 1;
*/
public Builder clearC() {
bitField0_ = (bitField0_ & ~0x00000001);
c_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.ForeignMessageLite)
}
static {
defaultInstance = new ForeignMessageLite(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.ForeignMessageLite)
}
public interface TestPackedTypesLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.TestPackedTypesLite)
com.google.protobuf.MessageLiteOrBuilder {
/**
* repeated int32 packed_int32 = 90 [packed = true];
*/
java.util.List getPackedInt32List();
/**
* repeated int32 packed_int32 = 90 [packed = true];
*/
int getPackedInt32Count();
/**
* repeated int32 packed_int32 = 90 [packed = true];
*/
int getPackedInt32(int index);
/**
* repeated int64 packed_int64 = 91 [packed = true];
*/
java.util.List getPackedInt64List();
/**
* repeated int64 packed_int64 = 91 [packed = true];
*/
int getPackedInt64Count();
/**
* repeated int64 packed_int64 = 91 [packed = true];
*/
long getPackedInt64(int index);
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
*/
java.util.List getPackedUint32List();
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
*/
int getPackedUint32Count();
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
*/
int getPackedUint32(int index);
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
*/
java.util.List getPackedUint64List();
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
*/
int getPackedUint64Count();
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
*/
long getPackedUint64(int index);
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
*/
java.util.List getPackedSint32List();
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
*/
int getPackedSint32Count();
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
*/
int getPackedSint32(int index);
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
*/
java.util.List getPackedSint64List();
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
*/
int getPackedSint64Count();
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
*/
long getPackedSint64(int index);
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
*/
java.util.List getPackedFixed32List();
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
*/
int getPackedFixed32Count();
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
*/
int getPackedFixed32(int index);
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
*/
java.util.List getPackedFixed64List();
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
*/
int getPackedFixed64Count();
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
*/
long getPackedFixed64(int index);
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
*/
java.util.List getPackedSfixed32List();
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
*/
int getPackedSfixed32Count();
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
*/
int getPackedSfixed32(int index);
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
*/
java.util.List getPackedSfixed64List();
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
*/
int getPackedSfixed64Count();
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
*/
long getPackedSfixed64(int index);
/**
* repeated float packed_float = 100 [packed = true];
*/
java.util.List getPackedFloatList();
/**
* repeated float packed_float = 100 [packed = true];
*/
int getPackedFloatCount();
/**
* repeated float packed_float = 100 [packed = true];
*/
float getPackedFloat(int index);
/**
* repeated double packed_double = 101 [packed = true];
*/
java.util.List getPackedDoubleList();
/**
* repeated double packed_double = 101 [packed = true];
*/
int getPackedDoubleCount();
/**
* repeated double packed_double = 101 [packed = true];
*/
double getPackedDouble(int index);
/**
* repeated bool packed_bool = 102 [packed = true];
*/
java.util.List getPackedBoolList();
/**
* repeated bool packed_bool = 102 [packed = true];
*/
int getPackedBoolCount();
/**
* repeated bool packed_bool = 102 [packed = true];
*/
boolean getPackedBool(int index);
/**
* repeated .protobuf_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
*/
java.util.List getPackedEnumList();
/**
* repeated .protobuf_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
*/
int getPackedEnumCount();
/**
* repeated .protobuf_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
*/
com.google.protobuf.UnittestLite.ForeignEnumLite getPackedEnum(int index);
}
/**
* Protobuf type {@code protobuf_unittest.TestPackedTypesLite}
*/
public static final class TestPackedTypesLite extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.TestPackedTypesLite)
TestPackedTypesLiteOrBuilder {
// Use TestPackedTypesLite.newBuilder() to construct.
private TestPackedTypesLite(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TestPackedTypesLite(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final TestPackedTypesLite defaultInstance;
public static TestPackedTypesLite getDefaultInstance() {
return defaultInstance;
}
public TestPackedTypesLite getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString unknownFields;
private TestPackedTypesLite(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 720: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
packedInt32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
packedInt32_.add(input.readInt32());
break;
}
case 722: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
packedInt32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
packedInt32_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 728: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
packedInt64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
packedInt64_.add(input.readInt64());
break;
}
case 730: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
packedInt64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
packedInt64_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 736: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
packedUint32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
packedUint32_.add(input.readUInt32());
break;
}
case 738: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
packedUint32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
packedUint32_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 744: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
packedUint64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
packedUint64_.add(input.readUInt64());
break;
}
case 746: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
packedUint64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
packedUint64_.add(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 752: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
packedSint32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
packedSint32_.add(input.readSInt32());
break;
}
case 754: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
packedSint32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
packedSint32_.add(input.readSInt32());
}
input.popLimit(limit);
break;
}
case 760: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
packedSint64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
packedSint64_.add(input.readSInt64());
break;
}
case 762: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
packedSint64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
packedSint64_.add(input.readSInt64());
}
input.popLimit(limit);
break;
}
case 773: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
packedFixed32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
packedFixed32_.add(input.readFixed32());
break;
}
case 770: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
packedFixed32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
packedFixed32_.add(input.readFixed32());
}
input.popLimit(limit);
break;
}
case 777: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
packedFixed64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
packedFixed64_.add(input.readFixed64());
break;
}
case 778: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) {
packedFixed64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
while (input.getBytesUntilLimit() > 0) {
packedFixed64_.add(input.readFixed64());
}
input.popLimit(limit);
break;
}
case 789: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
packedSfixed32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
packedSfixed32_.add(input.readSFixed32());
break;
}
case 786: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) {
packedSfixed32_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
while (input.getBytesUntilLimit() > 0) {
packedSfixed32_.add(input.readSFixed32());
}
input.popLimit(limit);
break;
}
case 793: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
packedSfixed64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
packedSfixed64_.add(input.readSFixed64());
break;
}
case 794: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) {
packedSfixed64_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
while (input.getBytesUntilLimit() > 0) {
packedSfixed64_.add(input.readSFixed64());
}
input.popLimit(limit);
break;
}
case 805: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
packedFloat_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
packedFloat_.add(input.readFloat());
break;
}
case 802: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) {
packedFloat_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
while (input.getBytesUntilLimit() > 0) {
packedFloat_.add(input.readFloat());
}
input.popLimit(limit);
break;
}
case 809: {
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
packedDouble_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
packedDouble_.add(input.readDouble());
break;
}
case 810: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) {
packedDouble_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
while (input.getBytesUntilLimit() > 0) {
packedDouble_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
case 816: {
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
packedBool_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
packedBool_.add(input.readBool());
break;
}
case 818: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000) && input.getBytesUntilLimit() > 0) {
packedBool_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
while (input.getBytesUntilLimit() > 0) {
packedBool_.add(input.readBool());
}
input.popLimit(limit);
break;
}
case 824: {
int rawValue = input.readEnum();
com.google.protobuf.UnittestLite.ForeignEnumLite value = com.google.protobuf.UnittestLite.ForeignEnumLite.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(rawValue);
} else {
if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
packedEnum_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
packedEnum_.add(value);
}
break;
}
case 826: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
com.google.protobuf.UnittestLite.ForeignEnumLite value = com.google.protobuf.UnittestLite.ForeignEnumLite.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(rawValue);
} else {
if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
packedEnum_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
packedEnum_.add(value);
}
}
input.popLimit(oldLimit);
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_ & 0x00000001) == 0x00000001)) {
packedInt32_ = java.util.Collections.unmodifiableList(packedInt32_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
packedInt64_ = java.util.Collections.unmodifiableList(packedInt64_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
packedUint32_ = java.util.Collections.unmodifiableList(packedUint32_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
packedUint64_ = java.util.Collections.unmodifiableList(packedUint64_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
packedSint32_ = java.util.Collections.unmodifiableList(packedSint32_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
packedSint64_ = java.util.Collections.unmodifiableList(packedSint64_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
packedFixed32_ = java.util.Collections.unmodifiableList(packedFixed32_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
packedFixed64_ = java.util.Collections.unmodifiableList(packedFixed64_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
packedSfixed32_ = java.util.Collections.unmodifiableList(packedSfixed32_);
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
packedSfixed64_ = java.util.Collections.unmodifiableList(packedSfixed64_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
packedFloat_ = java.util.Collections.unmodifiableList(packedFloat_);
}
if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
packedDouble_ = java.util.Collections.unmodifiableList(packedDouble_);
}
if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
packedBool_ = java.util.Collections.unmodifiableList(packedBool_);
}
if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
packedEnum_ = java.util.Collections.unmodifiableList(packedEnum_);
}
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TestPackedTypesLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestPackedTypesLite(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int PACKED_INT32_FIELD_NUMBER = 90;
private java.util.List packedInt32_;
/**
* repeated int32 packed_int32 = 90 [packed = true];
*/
public java.util.List
getPackedInt32List() {
return packedInt32_;
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
*/
public int getPackedInt32Count() {
return packedInt32_.size();
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
*/
public int getPackedInt32(int index) {
return packedInt32_.get(index);
}
private int packedInt32MemoizedSerializedSize = -1;
public static final int PACKED_INT64_FIELD_NUMBER = 91;
private java.util.List packedInt64_;
/**
* repeated int64 packed_int64 = 91 [packed = true];
*/
public java.util.List
getPackedInt64List() {
return packedInt64_;
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
*/
public int getPackedInt64Count() {
return packedInt64_.size();
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
*/
public long getPackedInt64(int index) {
return packedInt64_.get(index);
}
private int packedInt64MemoizedSerializedSize = -1;
public static final int PACKED_UINT32_FIELD_NUMBER = 92;
private java.util.List packedUint32_;
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
*/
public java.util.List
getPackedUint32List() {
return packedUint32_;
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
*/
public int getPackedUint32Count() {
return packedUint32_.size();
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
*/
public int getPackedUint32(int index) {
return packedUint32_.get(index);
}
private int packedUint32MemoizedSerializedSize = -1;
public static final int PACKED_UINT64_FIELD_NUMBER = 93;
private java.util.List packedUint64_;
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
*/
public java.util.List
getPackedUint64List() {
return packedUint64_;
}
/**
*