getRepeatedLazyMessageList() {
return repeatedLazyMessage_;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getRepeatedLazyMessageOrBuilderList() {
return repeatedLazyMessage_;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
@java.lang.Override
public int getRepeatedLazyMessageCount() {
return repeatedLazyMessage_.size();
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedLazyMessage(int index) {
return repeatedLazyMessage_.get(index);
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder(
int index) {
return repeatedLazyMessage_.get(index);
}
public static final int DEFAULT_INT32_FIELD_NUMBER = 61;
private int defaultInt32_ = 41;
/**
*
* Singular with defaults
*
*
* optional int32 default_int32 = 61 [default = 41];
* @return Whether the defaultInt32 field is set.
*/
@java.lang.Override
public boolean hasDefaultInt32() {
return ((bitField0_ & 0x08000000) != 0);
}
/**
*
* Singular with defaults
*
*
* optional int32 default_int32 = 61 [default = 41];
* @return The defaultInt32.
*/
@java.lang.Override
public int getDefaultInt32() {
return defaultInt32_;
}
public static final int DEFAULT_INT64_FIELD_NUMBER = 62;
private long defaultInt64_ = 42L;
/**
* optional int64 default_int64 = 62 [default = 42];
* @return Whether the defaultInt64 field is set.
*/
@java.lang.Override
public boolean hasDefaultInt64() {
return ((bitField0_ & 0x10000000) != 0);
}
/**
* optional int64 default_int64 = 62 [default = 42];
* @return The defaultInt64.
*/
@java.lang.Override
public long getDefaultInt64() {
return defaultInt64_;
}
public static final int DEFAULT_UINT32_FIELD_NUMBER = 63;
private int defaultUint32_ = 43;
/**
* optional uint32 default_uint32 = 63 [default = 43];
* @return Whether the defaultUint32 field is set.
*/
@java.lang.Override
public boolean hasDefaultUint32() {
return ((bitField0_ & 0x20000000) != 0);
}
/**
* optional uint32 default_uint32 = 63 [default = 43];
* @return The defaultUint32.
*/
@java.lang.Override
public int getDefaultUint32() {
return defaultUint32_;
}
public static final int DEFAULT_UINT64_FIELD_NUMBER = 64;
private long defaultUint64_ = 44L;
/**
* optional uint64 default_uint64 = 64 [default = 44];
* @return Whether the defaultUint64 field is set.
*/
@java.lang.Override
public boolean hasDefaultUint64() {
return ((bitField0_ & 0x40000000) != 0);
}
/**
* optional uint64 default_uint64 = 64 [default = 44];
* @return The defaultUint64.
*/
@java.lang.Override
public long getDefaultUint64() {
return defaultUint64_;
}
public static final int DEFAULT_SINT32_FIELD_NUMBER = 65;
private int defaultSint32_ = -45;
/**
* optional sint32 default_sint32 = 65 [default = -45];
* @return Whether the defaultSint32 field is set.
*/
@java.lang.Override
public boolean hasDefaultSint32() {
return ((bitField0_ & 0x80000000) != 0);
}
/**
* optional sint32 default_sint32 = 65 [default = -45];
* @return The defaultSint32.
*/
@java.lang.Override
public int getDefaultSint32() {
return defaultSint32_;
}
public static final int DEFAULT_SINT64_FIELD_NUMBER = 66;
private long defaultSint64_ = 46L;
/**
* optional sint64 default_sint64 = 66 [default = 46];
* @return Whether the defaultSint64 field is set.
*/
@java.lang.Override
public boolean hasDefaultSint64() {
return ((bitField1_ & 0x00000001) != 0);
}
/**
* optional sint64 default_sint64 = 66 [default = 46];
* @return The defaultSint64.
*/
@java.lang.Override
public long getDefaultSint64() {
return defaultSint64_;
}
public static final int DEFAULT_FIXED32_FIELD_NUMBER = 67;
private int defaultFixed32_ = 47;
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
* @return Whether the defaultFixed32 field is set.
*/
@java.lang.Override
public boolean hasDefaultFixed32() {
return ((bitField1_ & 0x00000002) != 0);
}
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
* @return The defaultFixed32.
*/
@java.lang.Override
public int getDefaultFixed32() {
return defaultFixed32_;
}
public static final int DEFAULT_FIXED64_FIELD_NUMBER = 68;
private long defaultFixed64_ = 48L;
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
* @return Whether the defaultFixed64 field is set.
*/
@java.lang.Override
public boolean hasDefaultFixed64() {
return ((bitField1_ & 0x00000004) != 0);
}
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
* @return The defaultFixed64.
*/
@java.lang.Override
public long getDefaultFixed64() {
return defaultFixed64_;
}
public static final int DEFAULT_SFIXED32_FIELD_NUMBER = 69;
private int defaultSfixed32_ = 49;
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
* @return Whether the defaultSfixed32 field is set.
*/
@java.lang.Override
public boolean hasDefaultSfixed32() {
return ((bitField1_ & 0x00000008) != 0);
}
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
* @return The defaultSfixed32.
*/
@java.lang.Override
public int getDefaultSfixed32() {
return defaultSfixed32_;
}
public static final int DEFAULT_SFIXED64_FIELD_NUMBER = 70;
private long defaultSfixed64_ = -50L;
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
* @return Whether the defaultSfixed64 field is set.
*/
@java.lang.Override
public boolean hasDefaultSfixed64() {
return ((bitField1_ & 0x00000010) != 0);
}
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
* @return The defaultSfixed64.
*/
@java.lang.Override
public long getDefaultSfixed64() {
return defaultSfixed64_;
}
public static final int DEFAULT_FLOAT_FIELD_NUMBER = 71;
private float defaultFloat_ = 51.5F;
/**
* optional float default_float = 71 [default = 51.5];
* @return Whether the defaultFloat field is set.
*/
@java.lang.Override
public boolean hasDefaultFloat() {
return ((bitField1_ & 0x00000020) != 0);
}
/**
* optional float default_float = 71 [default = 51.5];
* @return The defaultFloat.
*/
@java.lang.Override
public float getDefaultFloat() {
return defaultFloat_;
}
public static final int DEFAULT_DOUBLE_FIELD_NUMBER = 72;
private double defaultDouble_ = 52000D;
/**
* optional double default_double = 72 [default = 52000];
* @return Whether the defaultDouble field is set.
*/
@java.lang.Override
public boolean hasDefaultDouble() {
return ((bitField1_ & 0x00000040) != 0);
}
/**
* optional double default_double = 72 [default = 52000];
* @return The defaultDouble.
*/
@java.lang.Override
public double getDefaultDouble() {
return defaultDouble_;
}
public static final int DEFAULT_BOOL_FIELD_NUMBER = 73;
private boolean defaultBool_ = true;
/**
* optional bool default_bool = 73 [default = true];
* @return Whether the defaultBool field is set.
*/
@java.lang.Override
public boolean hasDefaultBool() {
return ((bitField1_ & 0x00000080) != 0);
}
/**
* optional bool default_bool = 73 [default = true];
* @return The defaultBool.
*/
@java.lang.Override
public boolean getDefaultBool() {
return defaultBool_;
}
public static final int DEFAULT_STRING_FIELD_NUMBER = 74;
@SuppressWarnings("serial")
private volatile java.lang.Object defaultString_ = "hello";
/**
* optional string default_string = 74 [default = "hello"];
* @return Whether the defaultString field is set.
*/
@java.lang.Override
public boolean hasDefaultString() {
return ((bitField1_ & 0x00000100) != 0);
}
/**
* optional string default_string = 74 [default = "hello"];
* @return The defaultString.
*/
@java.lang.Override
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"];
* @return The bytes for defaultString.
*/
@java.lang.Override
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_ = com.google.protobuf.Internal.bytesDefaultValue("world");
/**
* optional bytes default_bytes = 75 [default = "world"];
* @return Whether the defaultBytes field is set.
*/
@java.lang.Override
public boolean hasDefaultBytes() {
return ((bitField1_ & 0x00000200) != 0);
}
/**
* optional bytes default_bytes = 75 [default = "world"];
* @return The defaultBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDefaultBytes() {
return defaultBytes_;
}
public static final int DEFAULT_NESTED_ENUM_FIELD_NUMBER = 81;
private int defaultNestedEnum_ = 2;
/**
* optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
* @return Whether the defaultNestedEnum field is set.
*/
@java.lang.Override public boolean hasDefaultNestedEnum() {
return ((bitField1_ & 0x00000400) != 0);
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
* @return The defaultNestedEnum.
*/
@java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getDefaultNestedEnum() {
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum result = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(defaultNestedEnum_);
return result == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.BAR : result;
}
public static final int DEFAULT_FOREIGN_ENUM_FIELD_NUMBER = 82;
private int defaultForeignEnum_ = 5;
/**
* optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
* @return Whether the defaultForeignEnum field is set.
*/
@java.lang.Override public boolean hasDefaultForeignEnum() {
return ((bitField1_ & 0x00000800) != 0);
}
/**
* optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
* @return The defaultForeignEnum.
*/
@java.lang.Override public com.google.protobuf.UnittestLite.ForeignEnumLite getDefaultForeignEnum() {
com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(defaultForeignEnum_);
return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_BAR : result;
}
public static final int DEFAULT_IMPORT_ENUM_FIELD_NUMBER = 83;
private int defaultImportEnum_ = 8;
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
* @return Whether the defaultImportEnum field is set.
*/
@java.lang.Override public boolean hasDefaultImportEnum() {
return ((bitField1_ & 0x00001000) != 0);
}
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
* @return The defaultImportEnum.
*/
@java.lang.Override public com.google.protobuf.UnittestImportLite.ImportEnumLite getDefaultImportEnum() {
com.google.protobuf.UnittestImportLite.ImportEnumLite result = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(defaultImportEnum_);
return result == null ? com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_BAR : result;
}
public static final int DEFAULT_STRING_PIECE_FIELD_NUMBER = 84;
@SuppressWarnings("serial")
private volatile java.lang.Object defaultStringPiece_ = "abc";
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
* @return Whether the defaultStringPiece field is set.
*/
@java.lang.Override
public boolean hasDefaultStringPiece() {
return ((bitField1_ & 0x00002000) != 0);
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
* @return The defaultStringPiece.
*/
@java.lang.Override
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];
* @return The bytes for defaultStringPiece.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
private volatile java.lang.Object defaultCord_ = "123";
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
* @return Whether the defaultCord field is set.
*/
@java.lang.Override
public boolean hasDefaultCord() {
return ((bitField1_ & 0x00004000) != 0);
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
* @return The defaultCord.
*/
@java.lang.Override
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];
* @return The bytes for defaultCord.
*/
@java.lang.Override
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;
/**
* uint32 oneof_uint32 = 111;
* @return Whether the oneofUint32 field is set.
*/
@java.lang.Override
public boolean hasOneofUint32() {
return oneofFieldCase_ == 111;
}
/**
* uint32 oneof_uint32 = 111;
* @return The oneofUint32.
*/
@java.lang.Override
public int getOneofUint32() {
if (oneofFieldCase_ == 111) {
return (java.lang.Integer) oneofField_;
}
return 0;
}
public static final int ONEOF_NESTED_MESSAGE_FIELD_NUMBER = 112;
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
* @return Whether the oneofNestedMessage field is set.
*/
@java.lang.Override
public boolean hasOneofNestedMessage() {
return oneofFieldCase_ == 112;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
* @return The oneofNestedMessage.
*/
@java.lang.Override
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();
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOneofNestedMessageOrBuilder() {
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;
/**
* string oneof_string = 113;
* @return Whether the oneofString field is set.
*/
public boolean hasOneofString() {
return oneofFieldCase_ == 113;
}
/**
* string oneof_string = 113;
* @return The oneofString.
*/
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;
}
}
/**
* string oneof_string = 113;
* @return The bytes for oneofString.
*/
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;
/**
* bytes oneof_bytes = 114;
* @return Whether the oneofBytes field is set.
*/
@java.lang.Override
public boolean hasOneofBytes() {
return oneofFieldCase_ == 114;
}
/**
* bytes oneof_bytes = 114;
* @return The oneofBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOneofBytes() {
if (oneofFieldCase_ == 114) {
return (com.google.protobuf.ByteString) oneofField_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int ONEOF_LAZY_NESTED_MESSAGE_FIELD_NUMBER = 115;
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
* @return Whether the oneofLazyNestedMessage field is set.
*/
@java.lang.Override
public boolean hasOneofLazyNestedMessage() {
return oneofFieldCase_ == 115;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
* @return The oneofLazyNestedMessage.
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofLazyNestedMessage() {
if (oneofFieldCase_ == 115) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOneofLazyNestedMessageOrBuilder() {
if (oneofFieldCase_ == 115) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
}
public static final int ONEOF_NESTED_MESSAGE2_FIELD_NUMBER = 117;
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
* @return Whether the oneofNestedMessage2 field is set.
*/
@java.lang.Override
public boolean hasOneofNestedMessage2() {
return oneofFieldCase_ == 117;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
* @return The oneofNestedMessage2.
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 getOneofNestedMessage2() {
if (oneofFieldCase_ == 117) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance();
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder getOneofNestedMessage2OrBuilder() {
if (oneofFieldCase_ == 117) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance();
}
public static final int DECEPTIVELY_NAMED_LIST_FIELD_NUMBER = 116;
private int deceptivelyNamedList_ = 0;
/**
*
* Tests toString for non-repeated fields with a list suffix
*
*
* optional int32 deceptively_named_list = 116;
* @return Whether the deceptivelyNamedList field is set.
*/
@java.lang.Override
public boolean hasDeceptivelyNamedList() {
return ((bitField1_ & 0x00008000) != 0);
}
/**
*
* Tests toString for non-repeated fields with a list suffix
*
*
* optional int32 deceptively_named_list = 116;
* @return The deceptivelyNamedList.
*/
@java.lang.Override
public int getDeceptivelyNamedList() {
return deceptivelyNamedList_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, optionalInt32_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, optionalInt64_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, optionalUint32_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt64(4, optionalUint64_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeSInt32(5, optionalSint32_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeSInt64(6, optionalSint64_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeFixed32(7, optionalFixed32_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeFixed64(8, optionalFixed64_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeSFixed32(9, optionalSfixed32_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeSFixed64(10, optionalSfixed64_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeFloat(11, optionalFloat_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeDouble(12, optionalDouble_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeBool(13, optionalBool_);
}
if (((bitField0_ & 0x00002000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, optionalString_);
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeBytes(15, optionalBytes_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeGroup(16, getOptionalGroup());
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeMessage(18, getOptionalNestedMessage());
}
if (((bitField0_ & 0x00020000) != 0)) {
output.writeMessage(19, getOptionalForeignMessage());
}
if (((bitField0_ & 0x00040000) != 0)) {
output.writeMessage(20, getOptionalImportMessage());
}
if (((bitField0_ & 0x00080000) != 0)) {
output.writeEnum(21, optionalNestedEnum_);
}
if (((bitField0_ & 0x00100000) != 0)) {
output.writeEnum(22, optionalForeignEnum_);
}
if (((bitField0_ & 0x00200000) != 0)) {
output.writeEnum(23, optionalImportEnum_);
}
if (((bitField0_ & 0x00400000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 24, optionalStringPiece_);
}
if (((bitField0_ & 0x00800000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 25, optionalCord_);
}
if (((bitField0_ & 0x01000000) != 0)) {
output.writeMessage(26, getOptionalPublicImportMessage());
}
if (((bitField0_ & 0x02000000) != 0)) {
output.writeMessage(27, getOptionalLazyMessage());
}
if (((bitField0_ & 0x04000000) != 0)) {
output.writeMessage(28, getOptionalUnverifiedLazyMessage());
}
for (int i = 0; i < repeatedInt32_.size(); i++) {
output.writeInt32(31, repeatedInt32_.getInt(i));
}
for (int i = 0; i < repeatedInt64_.size(); i++) {
output.writeInt64(32, repeatedInt64_.getLong(i));
}
for (int i = 0; i < repeatedUint32_.size(); i++) {
output.writeUInt32(33, repeatedUint32_.getInt(i));
}
for (int i = 0; i < repeatedUint64_.size(); i++) {
output.writeUInt64(34, repeatedUint64_.getLong(i));
}
for (int i = 0; i < repeatedSint32_.size(); i++) {
output.writeSInt32(35, repeatedSint32_.getInt(i));
}
for (int i = 0; i < repeatedSint64_.size(); i++) {
output.writeSInt64(36, repeatedSint64_.getLong(i));
}
for (int i = 0; i < repeatedFixed32_.size(); i++) {
output.writeFixed32(37, repeatedFixed32_.getInt(i));
}
for (int i = 0; i < repeatedFixed64_.size(); i++) {
output.writeFixed64(38, repeatedFixed64_.getLong(i));
}
for (int i = 0; i < repeatedSfixed32_.size(); i++) {
output.writeSFixed32(39, repeatedSfixed32_.getInt(i));
}
for (int i = 0; i < repeatedSfixed64_.size(); i++) {
output.writeSFixed64(40, repeatedSfixed64_.getLong(i));
}
for (int i = 0; i < repeatedFloat_.size(); i++) {
output.writeFloat(41, repeatedFloat_.getFloat(i));
}
for (int i = 0; i < repeatedDouble_.size(); i++) {
output.writeDouble(42, repeatedDouble_.getDouble(i));
}
for (int i = 0; i < repeatedBool_.size(); i++) {
output.writeBool(43, repeatedBool_.getBoolean(i));
}
for (int i = 0; i < repeatedString_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 44, repeatedString_.getRaw(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));
}
for (int i = 0; i < repeatedForeignEnum_.size(); i++) {
output.writeEnum(52, repeatedForeignEnum_.get(i));
}
for (int i = 0; i < repeatedImportEnum_.size(); i++) {
output.writeEnum(53, repeatedImportEnum_.get(i));
}
for (int i = 0; i < repeatedStringPiece_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 54, repeatedStringPiece_.getRaw(i));
}
for (int i = 0; i < repeatedCord_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 55, repeatedCord_.getRaw(i));
}
for (int i = 0; i < repeatedLazyMessage_.size(); i++) {
output.writeMessage(57, repeatedLazyMessage_.get(i));
}
if (((bitField0_ & 0x08000000) != 0)) {
output.writeInt32(61, defaultInt32_);
}
if (((bitField0_ & 0x10000000) != 0)) {
output.writeInt64(62, defaultInt64_);
}
if (((bitField0_ & 0x20000000) != 0)) {
output.writeUInt32(63, defaultUint32_);
}
if (((bitField0_ & 0x40000000) != 0)) {
output.writeUInt64(64, defaultUint64_);
}
if (((bitField0_ & 0x80000000) != 0)) {
output.writeSInt32(65, defaultSint32_);
}
if (((bitField1_ & 0x00000001) != 0)) {
output.writeSInt64(66, defaultSint64_);
}
if (((bitField1_ & 0x00000002) != 0)) {
output.writeFixed32(67, defaultFixed32_);
}
if (((bitField1_ & 0x00000004) != 0)) {
output.writeFixed64(68, defaultFixed64_);
}
if (((bitField1_ & 0x00000008) != 0)) {
output.writeSFixed32(69, defaultSfixed32_);
}
if (((bitField1_ & 0x00000010) != 0)) {
output.writeSFixed64(70, defaultSfixed64_);
}
if (((bitField1_ & 0x00000020) != 0)) {
output.writeFloat(71, defaultFloat_);
}
if (((bitField1_ & 0x00000040) != 0)) {
output.writeDouble(72, defaultDouble_);
}
if (((bitField1_ & 0x00000080) != 0)) {
output.writeBool(73, defaultBool_);
}
if (((bitField1_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 74, defaultString_);
}
if (((bitField1_ & 0x00000200) != 0)) {
output.writeBytes(75, defaultBytes_);
}
if (((bitField1_ & 0x00000400) != 0)) {
output.writeEnum(81, defaultNestedEnum_);
}
if (((bitField1_ & 0x00000800) != 0)) {
output.writeEnum(82, defaultForeignEnum_);
}
if (((bitField1_ & 0x00001000) != 0)) {
output.writeEnum(83, defaultImportEnum_);
}
if (((bitField1_ & 0x00002000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 84, defaultStringPiece_);
}
if (((bitField1_ & 0x00004000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 85, defaultCord_);
}
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) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 113, oneofField_);
}
if (oneofFieldCase_ == 114) {
output.writeBytes(
114, (com.google.protobuf.ByteString) oneofField_);
}
if (oneofFieldCase_ == 115) {
output.writeMessage(115, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_);
}
if (((bitField1_ & 0x00008000) != 0)) {
output.writeInt32(116, deceptivelyNamedList_);
}
if (oneofFieldCase_ == 117) {
output.writeMessage(117, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, optionalInt32_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, optionalInt64_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, optionalUint32_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, optionalUint64_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(5, optionalSint32_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(6, optionalSint64_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(7, optionalFixed32_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(8, optionalFixed64_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(9, optionalSfixed32_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(10, optionalSfixed64_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(11, optionalFloat_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(12, optionalDouble_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, optionalBool_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, optionalString_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, optionalBytes_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(16, getOptionalGroup());
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getOptionalNestedMessage());
}
if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getOptionalForeignMessage());
}
if (((bitField0_ & 0x00040000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getOptionalImportMessage());
}
if (((bitField0_ & 0x00080000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(21, optionalNestedEnum_);
}
if (((bitField0_ & 0x00100000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(22, optionalForeignEnum_);
}
if (((bitField0_ & 0x00200000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(23, optionalImportEnum_);
}
if (((bitField0_ & 0x00400000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, optionalStringPiece_);
}
if (((bitField0_ & 0x00800000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, optionalCord_);
}
if (((bitField0_ & 0x01000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, getOptionalPublicImportMessage());
}
if (((bitField0_ & 0x02000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(27, getOptionalLazyMessage());
}
if (((bitField0_ & 0x04000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(28, getOptionalUnverifiedLazyMessage());
}
{
int dataSize = 0;
for (int i = 0; i < repeatedInt32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(repeatedInt32_.getInt(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_.getLong(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_.getInt(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_.getLong(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_.getInt(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_.getLong(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 += computeStringSizeNoTag(repeatedString_.getRaw(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));
}
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));
}
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));
}
size += dataSize;
size += 2 * repeatedImportEnum_.size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedStringPiece_.size(); i++) {
dataSize += computeStringSizeNoTag(repeatedStringPiece_.getRaw(i));
}
size += dataSize;
size += 2 * getRepeatedStringPieceList().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedCord_.size(); i++) {
dataSize += computeStringSizeNoTag(repeatedCord_.getRaw(i));
}
size += dataSize;
size += 2 * getRepeatedCordList().size();
}
for (int i = 0; i < repeatedLazyMessage_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(57, repeatedLazyMessage_.get(i));
}
if (((bitField0_ & 0x08000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(61, defaultInt32_);
}
if (((bitField0_ & 0x10000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(62, defaultInt64_);
}
if (((bitField0_ & 0x20000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(63, defaultUint32_);
}
if (((bitField0_ & 0x40000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(64, defaultUint64_);
}
if (((bitField0_ & 0x80000000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(65, defaultSint32_);
}
if (((bitField1_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(66, defaultSint64_);
}
if (((bitField1_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(67, defaultFixed32_);
}
if (((bitField1_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(68, defaultFixed64_);
}
if (((bitField1_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(69, defaultSfixed32_);
}
if (((bitField1_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(70, defaultSfixed64_);
}
if (((bitField1_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(71, defaultFloat_);
}
if (((bitField1_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(72, defaultDouble_);
}
if (((bitField1_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(73, defaultBool_);
}
if (((bitField1_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(74, defaultString_);
}
if (((bitField1_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(75, defaultBytes_);
}
if (((bitField1_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(81, defaultNestedEnum_);
}
if (((bitField1_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(82, defaultForeignEnum_);
}
if (((bitField1_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(83, defaultImportEnum_);
}
if (((bitField1_ & 0x00002000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(84, defaultStringPiece_);
}
if (((bitField1_ & 0x00004000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(85, defaultCord_);
}
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.GeneratedMessageV3.computeStringSize(113, oneofField_);
}
if (oneofFieldCase_ == 114) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
114, (com.google.protobuf.ByteString) oneofField_);
}
if (oneofFieldCase_ == 115) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(115, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_);
}
if (((bitField1_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(116, deceptivelyNamedList_);
}
if (oneofFieldCase_ == 117) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(117, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.UnittestLite.TestAllTypesLite)) {
return super.equals(obj);
}
com.google.protobuf.UnittestLite.TestAllTypesLite other = (com.google.protobuf.UnittestLite.TestAllTypesLite) obj;
if (hasOptionalInt32() != other.hasOptionalInt32()) return false;
if (hasOptionalInt32()) {
if (getOptionalInt32()
!= other.getOptionalInt32()) return false;
}
if (hasOptionalInt64() != other.hasOptionalInt64()) return false;
if (hasOptionalInt64()) {
if (getOptionalInt64()
!= other.getOptionalInt64()) return false;
}
if (hasOptionalUint32() != other.hasOptionalUint32()) return false;
if (hasOptionalUint32()) {
if (getOptionalUint32()
!= other.getOptionalUint32()) return false;
}
if (hasOptionalUint64() != other.hasOptionalUint64()) return false;
if (hasOptionalUint64()) {
if (getOptionalUint64()
!= other.getOptionalUint64()) return false;
}
if (hasOptionalSint32() != other.hasOptionalSint32()) return false;
if (hasOptionalSint32()) {
if (getOptionalSint32()
!= other.getOptionalSint32()) return false;
}
if (hasOptionalSint64() != other.hasOptionalSint64()) return false;
if (hasOptionalSint64()) {
if (getOptionalSint64()
!= other.getOptionalSint64()) return false;
}
if (hasOptionalFixed32() != other.hasOptionalFixed32()) return false;
if (hasOptionalFixed32()) {
if (getOptionalFixed32()
!= other.getOptionalFixed32()) return false;
}
if (hasOptionalFixed64() != other.hasOptionalFixed64()) return false;
if (hasOptionalFixed64()) {
if (getOptionalFixed64()
!= other.getOptionalFixed64()) return false;
}
if (hasOptionalSfixed32() != other.hasOptionalSfixed32()) return false;
if (hasOptionalSfixed32()) {
if (getOptionalSfixed32()
!= other.getOptionalSfixed32()) return false;
}
if (hasOptionalSfixed64() != other.hasOptionalSfixed64()) return false;
if (hasOptionalSfixed64()) {
if (getOptionalSfixed64()
!= other.getOptionalSfixed64()) return false;
}
if (hasOptionalFloat() != other.hasOptionalFloat()) return false;
if (hasOptionalFloat()) {
if (java.lang.Float.floatToIntBits(getOptionalFloat())
!= java.lang.Float.floatToIntBits(
other.getOptionalFloat())) return false;
}
if (hasOptionalDouble() != other.hasOptionalDouble()) return false;
if (hasOptionalDouble()) {
if (java.lang.Double.doubleToLongBits(getOptionalDouble())
!= java.lang.Double.doubleToLongBits(
other.getOptionalDouble())) return false;
}
if (hasOptionalBool() != other.hasOptionalBool()) return false;
if (hasOptionalBool()) {
if (getOptionalBool()
!= other.getOptionalBool()) return false;
}
if (hasOptionalString() != other.hasOptionalString()) return false;
if (hasOptionalString()) {
if (!getOptionalString()
.equals(other.getOptionalString())) return false;
}
if (hasOptionalBytes() != other.hasOptionalBytes()) return false;
if (hasOptionalBytes()) {
if (!getOptionalBytes()
.equals(other.getOptionalBytes())) return false;
}
if (hasOptionalGroup() != other.hasOptionalGroup()) return false;
if (hasOptionalGroup()) {
if (!getOptionalGroup()
.equals(other.getOptionalGroup())) return false;
}
if (hasOptionalNestedMessage() != other.hasOptionalNestedMessage()) return false;
if (hasOptionalNestedMessage()) {
if (!getOptionalNestedMessage()
.equals(other.getOptionalNestedMessage())) return false;
}
if (hasOptionalForeignMessage() != other.hasOptionalForeignMessage()) return false;
if (hasOptionalForeignMessage()) {
if (!getOptionalForeignMessage()
.equals(other.getOptionalForeignMessage())) return false;
}
if (hasOptionalImportMessage() != other.hasOptionalImportMessage()) return false;
if (hasOptionalImportMessage()) {
if (!getOptionalImportMessage()
.equals(other.getOptionalImportMessage())) return false;
}
if (hasOptionalNestedEnum() != other.hasOptionalNestedEnum()) return false;
if (hasOptionalNestedEnum()) {
if (optionalNestedEnum_ != other.optionalNestedEnum_) return false;
}
if (hasOptionalForeignEnum() != other.hasOptionalForeignEnum()) return false;
if (hasOptionalForeignEnum()) {
if (optionalForeignEnum_ != other.optionalForeignEnum_) return false;
}
if (hasOptionalImportEnum() != other.hasOptionalImportEnum()) return false;
if (hasOptionalImportEnum()) {
if (optionalImportEnum_ != other.optionalImportEnum_) return false;
}
if (hasOptionalStringPiece() != other.hasOptionalStringPiece()) return false;
if (hasOptionalStringPiece()) {
if (!getOptionalStringPiece()
.equals(other.getOptionalStringPiece())) return false;
}
if (hasOptionalCord() != other.hasOptionalCord()) return false;
if (hasOptionalCord()) {
if (!getOptionalCord()
.equals(other.getOptionalCord())) return false;
}
if (hasOptionalPublicImportMessage() != other.hasOptionalPublicImportMessage()) return false;
if (hasOptionalPublicImportMessage()) {
if (!getOptionalPublicImportMessage()
.equals(other.getOptionalPublicImportMessage())) return false;
}
if (hasOptionalLazyMessage() != other.hasOptionalLazyMessage()) return false;
if (hasOptionalLazyMessage()) {
if (!getOptionalLazyMessage()
.equals(other.getOptionalLazyMessage())) return false;
}
if (hasOptionalUnverifiedLazyMessage() != other.hasOptionalUnverifiedLazyMessage()) return false;
if (hasOptionalUnverifiedLazyMessage()) {
if (!getOptionalUnverifiedLazyMessage()
.equals(other.getOptionalUnverifiedLazyMessage())) return false;
}
if (!getRepeatedInt32List()
.equals(other.getRepeatedInt32List())) return false;
if (!getRepeatedInt64List()
.equals(other.getRepeatedInt64List())) return false;
if (!getRepeatedUint32List()
.equals(other.getRepeatedUint32List())) return false;
if (!getRepeatedUint64List()
.equals(other.getRepeatedUint64List())) return false;
if (!getRepeatedSint32List()
.equals(other.getRepeatedSint32List())) return false;
if (!getRepeatedSint64List()
.equals(other.getRepeatedSint64List())) return false;
if (!getRepeatedFixed32List()
.equals(other.getRepeatedFixed32List())) return false;
if (!getRepeatedFixed64List()
.equals(other.getRepeatedFixed64List())) return false;
if (!getRepeatedSfixed32List()
.equals(other.getRepeatedSfixed32List())) return false;
if (!getRepeatedSfixed64List()
.equals(other.getRepeatedSfixed64List())) return false;
if (!getRepeatedFloatList()
.equals(other.getRepeatedFloatList())) return false;
if (!getRepeatedDoubleList()
.equals(other.getRepeatedDoubleList())) return false;
if (!getRepeatedBoolList()
.equals(other.getRepeatedBoolList())) return false;
if (!getRepeatedStringList()
.equals(other.getRepeatedStringList())) return false;
if (!getRepeatedBytesList()
.equals(other.getRepeatedBytesList())) return false;
if (!getRepeatedGroupList()
.equals(other.getRepeatedGroupList())) return false;
if (!getRepeatedNestedMessageList()
.equals(other.getRepeatedNestedMessageList())) return false;
if (!getRepeatedForeignMessageList()
.equals(other.getRepeatedForeignMessageList())) return false;
if (!getRepeatedImportMessageList()
.equals(other.getRepeatedImportMessageList())) return false;
if (!repeatedNestedEnum_.equals(other.repeatedNestedEnum_)) return false;
if (!repeatedForeignEnum_.equals(other.repeatedForeignEnum_)) return false;
if (!repeatedImportEnum_.equals(other.repeatedImportEnum_)) return false;
if (!getRepeatedStringPieceList()
.equals(other.getRepeatedStringPieceList())) return false;
if (!getRepeatedCordList()
.equals(other.getRepeatedCordList())) return false;
if (!getRepeatedLazyMessageList()
.equals(other.getRepeatedLazyMessageList())) return false;
if (hasDefaultInt32() != other.hasDefaultInt32()) return false;
if (hasDefaultInt32()) {
if (getDefaultInt32()
!= other.getDefaultInt32()) return false;
}
if (hasDefaultInt64() != other.hasDefaultInt64()) return false;
if (hasDefaultInt64()) {
if (getDefaultInt64()
!= other.getDefaultInt64()) return false;
}
if (hasDefaultUint32() != other.hasDefaultUint32()) return false;
if (hasDefaultUint32()) {
if (getDefaultUint32()
!= other.getDefaultUint32()) return false;
}
if (hasDefaultUint64() != other.hasDefaultUint64()) return false;
if (hasDefaultUint64()) {
if (getDefaultUint64()
!= other.getDefaultUint64()) return false;
}
if (hasDefaultSint32() != other.hasDefaultSint32()) return false;
if (hasDefaultSint32()) {
if (getDefaultSint32()
!= other.getDefaultSint32()) return false;
}
if (hasDefaultSint64() != other.hasDefaultSint64()) return false;
if (hasDefaultSint64()) {
if (getDefaultSint64()
!= other.getDefaultSint64()) return false;
}
if (hasDefaultFixed32() != other.hasDefaultFixed32()) return false;
if (hasDefaultFixed32()) {
if (getDefaultFixed32()
!= other.getDefaultFixed32()) return false;
}
if (hasDefaultFixed64() != other.hasDefaultFixed64()) return false;
if (hasDefaultFixed64()) {
if (getDefaultFixed64()
!= other.getDefaultFixed64()) return false;
}
if (hasDefaultSfixed32() != other.hasDefaultSfixed32()) return false;
if (hasDefaultSfixed32()) {
if (getDefaultSfixed32()
!= other.getDefaultSfixed32()) return false;
}
if (hasDefaultSfixed64() != other.hasDefaultSfixed64()) return false;
if (hasDefaultSfixed64()) {
if (getDefaultSfixed64()
!= other.getDefaultSfixed64()) return false;
}
if (hasDefaultFloat() != other.hasDefaultFloat()) return false;
if (hasDefaultFloat()) {
if (java.lang.Float.floatToIntBits(getDefaultFloat())
!= java.lang.Float.floatToIntBits(
other.getDefaultFloat())) return false;
}
if (hasDefaultDouble() != other.hasDefaultDouble()) return false;
if (hasDefaultDouble()) {
if (java.lang.Double.doubleToLongBits(getDefaultDouble())
!= java.lang.Double.doubleToLongBits(
other.getDefaultDouble())) return false;
}
if (hasDefaultBool() != other.hasDefaultBool()) return false;
if (hasDefaultBool()) {
if (getDefaultBool()
!= other.getDefaultBool()) return false;
}
if (hasDefaultString() != other.hasDefaultString()) return false;
if (hasDefaultString()) {
if (!getDefaultString()
.equals(other.getDefaultString())) return false;
}
if (hasDefaultBytes() != other.hasDefaultBytes()) return false;
if (hasDefaultBytes()) {
if (!getDefaultBytes()
.equals(other.getDefaultBytes())) return false;
}
if (hasDefaultNestedEnum() != other.hasDefaultNestedEnum()) return false;
if (hasDefaultNestedEnum()) {
if (defaultNestedEnum_ != other.defaultNestedEnum_) return false;
}
if (hasDefaultForeignEnum() != other.hasDefaultForeignEnum()) return false;
if (hasDefaultForeignEnum()) {
if (defaultForeignEnum_ != other.defaultForeignEnum_) return false;
}
if (hasDefaultImportEnum() != other.hasDefaultImportEnum()) return false;
if (hasDefaultImportEnum()) {
if (defaultImportEnum_ != other.defaultImportEnum_) return false;
}
if (hasDefaultStringPiece() != other.hasDefaultStringPiece()) return false;
if (hasDefaultStringPiece()) {
if (!getDefaultStringPiece()
.equals(other.getDefaultStringPiece())) return false;
}
if (hasDefaultCord() != other.hasDefaultCord()) return false;
if (hasDefaultCord()) {
if (!getDefaultCord()
.equals(other.getDefaultCord())) return false;
}
if (hasDeceptivelyNamedList() != other.hasDeceptivelyNamedList()) return false;
if (hasDeceptivelyNamedList()) {
if (getDeceptivelyNamedList()
!= other.getDeceptivelyNamedList()) return false;
}
if (!getOneofFieldCase().equals(other.getOneofFieldCase())) return false;
switch (oneofFieldCase_) {
case 111:
if (getOneofUint32()
!= other.getOneofUint32()) return false;
break;
case 112:
if (!getOneofNestedMessage()
.equals(other.getOneofNestedMessage())) return false;
break;
case 113:
if (!getOneofString()
.equals(other.getOneofString())) return false;
break;
case 114:
if (!getOneofBytes()
.equals(other.getOneofBytes())) return false;
break;
case 115:
if (!getOneofLazyNestedMessage()
.equals(other.getOneofLazyNestedMessage())) return false;
break;
case 117:
if (!getOneofNestedMessage2()
.equals(other.getOneofNestedMessage2())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOptionalInt32()) {
hash = (37 * hash) + OPTIONAL_INT32_FIELD_NUMBER;
hash = (53 * hash) + getOptionalInt32();
}
if (hasOptionalInt64()) {
hash = (37 * hash) + OPTIONAL_INT64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOptionalInt64());
}
if (hasOptionalUint32()) {
hash = (37 * hash) + OPTIONAL_UINT32_FIELD_NUMBER;
hash = (53 * hash) + getOptionalUint32();
}
if (hasOptionalUint64()) {
hash = (37 * hash) + OPTIONAL_UINT64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOptionalUint64());
}
if (hasOptionalSint32()) {
hash = (37 * hash) + OPTIONAL_SINT32_FIELD_NUMBER;
hash = (53 * hash) + getOptionalSint32();
}
if (hasOptionalSint64()) {
hash = (37 * hash) + OPTIONAL_SINT64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOptionalSint64());
}
if (hasOptionalFixed32()) {
hash = (37 * hash) + OPTIONAL_FIXED32_FIELD_NUMBER;
hash = (53 * hash) + getOptionalFixed32();
}
if (hasOptionalFixed64()) {
hash = (37 * hash) + OPTIONAL_FIXED64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOptionalFixed64());
}
if (hasOptionalSfixed32()) {
hash = (37 * hash) + OPTIONAL_SFIXED32_FIELD_NUMBER;
hash = (53 * hash) + getOptionalSfixed32();
}
if (hasOptionalSfixed64()) {
hash = (37 * hash) + OPTIONAL_SFIXED64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOptionalSfixed64());
}
if (hasOptionalFloat()) {
hash = (37 * hash) + OPTIONAL_FLOAT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getOptionalFloat());
}
if (hasOptionalDouble()) {
hash = (37 * hash) + OPTIONAL_DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOptionalDouble()));
}
if (hasOptionalBool()) {
hash = (37 * hash) + OPTIONAL_BOOL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOptionalBool());
}
if (hasOptionalString()) {
hash = (37 * hash) + OPTIONAL_STRING_FIELD_NUMBER;
hash = (53 * hash) + getOptionalString().hashCode();
}
if (hasOptionalBytes()) {
hash = (37 * hash) + OPTIONAL_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getOptionalBytes().hashCode();
}
if (hasOptionalGroup()) {
hash = (37 * hash) + OPTIONALGROUP_FIELD_NUMBER;
hash = (53 * hash) + getOptionalGroup().hashCode();
}
if (hasOptionalNestedMessage()) {
hash = (37 * hash) + OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalNestedMessage().hashCode();
}
if (hasOptionalForeignMessage()) {
hash = (37 * hash) + OPTIONAL_FOREIGN_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalForeignMessage().hashCode();
}
if (hasOptionalImportMessage()) {
hash = (37 * hash) + OPTIONAL_IMPORT_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalImportMessage().hashCode();
}
if (hasOptionalNestedEnum()) {
hash = (37 * hash) + OPTIONAL_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + optionalNestedEnum_;
}
if (hasOptionalForeignEnum()) {
hash = (37 * hash) + OPTIONAL_FOREIGN_ENUM_FIELD_NUMBER;
hash = (53 * hash) + optionalForeignEnum_;
}
if (hasOptionalImportEnum()) {
hash = (37 * hash) + OPTIONAL_IMPORT_ENUM_FIELD_NUMBER;
hash = (53 * hash) + optionalImportEnum_;
}
if (hasOptionalStringPiece()) {
hash = (37 * hash) + OPTIONAL_STRING_PIECE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalStringPiece().hashCode();
}
if (hasOptionalCord()) {
hash = (37 * hash) + OPTIONAL_CORD_FIELD_NUMBER;
hash = (53 * hash) + getOptionalCord().hashCode();
}
if (hasOptionalPublicImportMessage()) {
hash = (37 * hash) + OPTIONAL_PUBLIC_IMPORT_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalPublicImportMessage().hashCode();
}
if (hasOptionalLazyMessage()) {
hash = (37 * hash) + OPTIONAL_LAZY_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalLazyMessage().hashCode();
}
if (hasOptionalUnverifiedLazyMessage()) {
hash = (37 * hash) + OPTIONAL_UNVERIFIED_LAZY_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalUnverifiedLazyMessage().hashCode();
}
if (getRepeatedInt32Count() > 0) {
hash = (37 * hash) + REPEATED_INT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedInt32List().hashCode();
}
if (getRepeatedInt64Count() > 0) {
hash = (37 * hash) + REPEATED_INT64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedInt64List().hashCode();
}
if (getRepeatedUint32Count() > 0) {
hash = (37 * hash) + REPEATED_UINT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedUint32List().hashCode();
}
if (getRepeatedUint64Count() > 0) {
hash = (37 * hash) + REPEATED_UINT64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedUint64List().hashCode();
}
if (getRepeatedSint32Count() > 0) {
hash = (37 * hash) + REPEATED_SINT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSint32List().hashCode();
}
if (getRepeatedSint64Count() > 0) {
hash = (37 * hash) + REPEATED_SINT64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSint64List().hashCode();
}
if (getRepeatedFixed32Count() > 0) {
hash = (37 * hash) + REPEATED_FIXED32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedFixed32List().hashCode();
}
if (getRepeatedFixed64Count() > 0) {
hash = (37 * hash) + REPEATED_FIXED64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedFixed64List().hashCode();
}
if (getRepeatedSfixed32Count() > 0) {
hash = (37 * hash) + REPEATED_SFIXED32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSfixed32List().hashCode();
}
if (getRepeatedSfixed64Count() > 0) {
hash = (37 * hash) + REPEATED_SFIXED64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSfixed64List().hashCode();
}
if (getRepeatedFloatCount() > 0) {
hash = (37 * hash) + REPEATED_FLOAT_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedFloatList().hashCode();
}
if (getRepeatedDoubleCount() > 0) {
hash = (37 * hash) + REPEATED_DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedDoubleList().hashCode();
}
if (getRepeatedBoolCount() > 0) {
hash = (37 * hash) + REPEATED_BOOL_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedBoolList().hashCode();
}
if (getRepeatedStringCount() > 0) {
hash = (37 * hash) + REPEATED_STRING_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedStringList().hashCode();
}
if (getRepeatedBytesCount() > 0) {
hash = (37 * hash) + REPEATED_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedBytesList().hashCode();
}
if (getRepeatedGroupCount() > 0) {
hash = (37 * hash) + REPEATEDGROUP_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedGroupList().hashCode();
}
if (getRepeatedNestedMessageCount() > 0) {
hash = (37 * hash) + REPEATED_NESTED_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedNestedMessageList().hashCode();
}
if (getRepeatedForeignMessageCount() > 0) {
hash = (37 * hash) + REPEATED_FOREIGN_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedForeignMessageList().hashCode();
}
if (getRepeatedImportMessageCount() > 0) {
hash = (37 * hash) + REPEATED_IMPORT_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedImportMessageList().hashCode();
}
if (getRepeatedNestedEnumCount() > 0) {
hash = (37 * hash) + REPEATED_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + repeatedNestedEnum_.hashCode();
}
if (getRepeatedForeignEnumCount() > 0) {
hash = (37 * hash) + REPEATED_FOREIGN_ENUM_FIELD_NUMBER;
hash = (53 * hash) + repeatedForeignEnum_.hashCode();
}
if (getRepeatedImportEnumCount() > 0) {
hash = (37 * hash) + REPEATED_IMPORT_ENUM_FIELD_NUMBER;
hash = (53 * hash) + repeatedImportEnum_.hashCode();
}
if (getRepeatedStringPieceCount() > 0) {
hash = (37 * hash) + REPEATED_STRING_PIECE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedStringPieceList().hashCode();
}
if (getRepeatedCordCount() > 0) {
hash = (37 * hash) + REPEATED_CORD_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedCordList().hashCode();
}
if (getRepeatedLazyMessageCount() > 0) {
hash = (37 * hash) + REPEATED_LAZY_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedLazyMessageList().hashCode();
}
if (hasDefaultInt32()) {
hash = (37 * hash) + DEFAULT_INT32_FIELD_NUMBER;
hash = (53 * hash) + getDefaultInt32();
}
if (hasDefaultInt64()) {
hash = (37 * hash) + DEFAULT_INT64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDefaultInt64());
}
if (hasDefaultUint32()) {
hash = (37 * hash) + DEFAULT_UINT32_FIELD_NUMBER;
hash = (53 * hash) + getDefaultUint32();
}
if (hasDefaultUint64()) {
hash = (37 * hash) + DEFAULT_UINT64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDefaultUint64());
}
if (hasDefaultSint32()) {
hash = (37 * hash) + DEFAULT_SINT32_FIELD_NUMBER;
hash = (53 * hash) + getDefaultSint32();
}
if (hasDefaultSint64()) {
hash = (37 * hash) + DEFAULT_SINT64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDefaultSint64());
}
if (hasDefaultFixed32()) {
hash = (37 * hash) + DEFAULT_FIXED32_FIELD_NUMBER;
hash = (53 * hash) + getDefaultFixed32();
}
if (hasDefaultFixed64()) {
hash = (37 * hash) + DEFAULT_FIXED64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDefaultFixed64());
}
if (hasDefaultSfixed32()) {
hash = (37 * hash) + DEFAULT_SFIXED32_FIELD_NUMBER;
hash = (53 * hash) + getDefaultSfixed32();
}
if (hasDefaultSfixed64()) {
hash = (37 * hash) + DEFAULT_SFIXED64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDefaultSfixed64());
}
if (hasDefaultFloat()) {
hash = (37 * hash) + DEFAULT_FLOAT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getDefaultFloat());
}
if (hasDefaultDouble()) {
hash = (37 * hash) + DEFAULT_DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDefaultDouble()));
}
if (hasDefaultBool()) {
hash = (37 * hash) + DEFAULT_BOOL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDefaultBool());
}
if (hasDefaultString()) {
hash = (37 * hash) + DEFAULT_STRING_FIELD_NUMBER;
hash = (53 * hash) + getDefaultString().hashCode();
}
if (hasDefaultBytes()) {
hash = (37 * hash) + DEFAULT_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getDefaultBytes().hashCode();
}
if (hasDefaultNestedEnum()) {
hash = (37 * hash) + DEFAULT_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + defaultNestedEnum_;
}
if (hasDefaultForeignEnum()) {
hash = (37 * hash) + DEFAULT_FOREIGN_ENUM_FIELD_NUMBER;
hash = (53 * hash) + defaultForeignEnum_;
}
if (hasDefaultImportEnum()) {
hash = (37 * hash) + DEFAULT_IMPORT_ENUM_FIELD_NUMBER;
hash = (53 * hash) + defaultImportEnum_;
}
if (hasDefaultStringPiece()) {
hash = (37 * hash) + DEFAULT_STRING_PIECE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultStringPiece().hashCode();
}
if (hasDefaultCord()) {
hash = (37 * hash) + DEFAULT_CORD_FIELD_NUMBER;
hash = (53 * hash) + getDefaultCord().hashCode();
}
if (hasDeceptivelyNamedList()) {
hash = (37 * hash) + DECEPTIVELY_NAMED_LIST_FIELD_NUMBER;
hash = (53 * hash) + getDeceptivelyNamedList();
}
switch (oneofFieldCase_) {
case 111:
hash = (37 * hash) + ONEOF_UINT32_FIELD_NUMBER;
hash = (53 * hash) + getOneofUint32();
break;
case 112:
hash = (37 * hash) + ONEOF_NESTED_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOneofNestedMessage().hashCode();
break;
case 113:
hash = (37 * hash) + ONEOF_STRING_FIELD_NUMBER;
hash = (53 * hash) + getOneofString().hashCode();
break;
case 114:
hash = (37 * hash) + ONEOF_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getOneofBytes().hashCode();
break;
case 115:
hash = (37 * hash) + ONEOF_LAZY_NESTED_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOneofLazyNestedMessage().hashCode();
break;
case 117:
hash = (37 * hash) + ONEOF_NESTED_MESSAGE2_FIELD_NUMBER;
hash = (53 * hash) + getOneofNestedMessage2().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.UnittestLite.TestAllTypesLite prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Same as TestAllTypes but with the lite runtime.
*
*
* Protobuf type {@code proto2_unittest.TestAllTypesLite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto2_unittest.TestAllTypesLite)
com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestAllTypesLite.class, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder.class);
}
// Construct using com.google.protobuf.UnittestLite.TestAllTypesLite.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOptionalGroupFieldBuilder();
getOptionalNestedMessageFieldBuilder();
getOptionalForeignMessageFieldBuilder();
getOptionalImportMessageFieldBuilder();
getOptionalPublicImportMessageFieldBuilder();
getOptionalLazyMessageFieldBuilder();
getOptionalUnverifiedLazyMessageFieldBuilder();
getRepeatedGroupFieldBuilder();
getRepeatedNestedMessageFieldBuilder();
getRepeatedForeignMessageFieldBuilder();
getRepeatedImportMessageFieldBuilder();
getRepeatedLazyMessageFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
bitField1_ = 0;
bitField2_ = 0;
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_ = null;
if (optionalGroupBuilder_ != null) {
optionalGroupBuilder_.dispose();
optionalGroupBuilder_ = null;
}
optionalNestedMessage_ = null;
if (optionalNestedMessageBuilder_ != null) {
optionalNestedMessageBuilder_.dispose();
optionalNestedMessageBuilder_ = null;
}
optionalForeignMessage_ = null;
if (optionalForeignMessageBuilder_ != null) {
optionalForeignMessageBuilder_.dispose();
optionalForeignMessageBuilder_ = null;
}
optionalImportMessage_ = null;
if (optionalImportMessageBuilder_ != null) {
optionalImportMessageBuilder_.dispose();
optionalImportMessageBuilder_ = null;
}
optionalNestedEnum_ = 1;
optionalForeignEnum_ = 4;
optionalImportEnum_ = 7;
optionalStringPiece_ = "";
optionalCord_ = "";
optionalPublicImportMessage_ = null;
if (optionalPublicImportMessageBuilder_ != null) {
optionalPublicImportMessageBuilder_.dispose();
optionalPublicImportMessageBuilder_ = null;
}
optionalLazyMessage_ = null;
if (optionalLazyMessageBuilder_ != null) {
optionalLazyMessageBuilder_.dispose();
optionalLazyMessageBuilder_ = null;
}
optionalUnverifiedLazyMessage_ = null;
if (optionalUnverifiedLazyMessageBuilder_ != null) {
optionalUnverifiedLazyMessageBuilder_.dispose();
optionalUnverifiedLazyMessageBuilder_ = null;
}
repeatedInt32_ = emptyIntList();
repeatedInt64_ = emptyLongList();
repeatedUint32_ = emptyIntList();
repeatedUint64_ = emptyLongList();
repeatedSint32_ = emptyIntList();
repeatedSint64_ = emptyLongList();
repeatedFixed32_ = emptyIntList();
repeatedFixed64_ = emptyLongList();
repeatedSfixed32_ = emptyIntList();
repeatedSfixed64_ = emptyLongList();
repeatedFloat_ = emptyFloatList();
repeatedDouble_ = emptyDoubleList();
repeatedBool_ = emptyBooleanList();
repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class);
if (repeatedGroupBuilder_ == null) {
repeatedGroup_ = java.util.Collections.emptyList();
} else {
repeatedGroup_ = null;
repeatedGroupBuilder_.clear();
}
bitField1_ = (bitField1_ & ~0x00000400);
if (repeatedNestedMessageBuilder_ == null) {
repeatedNestedMessage_ = java.util.Collections.emptyList();
} else {
repeatedNestedMessage_ = null;
repeatedNestedMessageBuilder_.clear();
}
bitField1_ = (bitField1_ & ~0x00000800);
if (repeatedForeignMessageBuilder_ == null) {
repeatedForeignMessage_ = java.util.Collections.emptyList();
} else {
repeatedForeignMessage_ = null;
repeatedForeignMessageBuilder_.clear();
}
bitField1_ = (bitField1_ & ~0x00001000);
if (repeatedImportMessageBuilder_ == null) {
repeatedImportMessage_ = java.util.Collections.emptyList();
} else {
repeatedImportMessage_ = null;
repeatedImportMessageBuilder_.clear();
}
bitField1_ = (bitField1_ & ~0x00002000);
repeatedNestedEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00004000);
repeatedForeignEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00008000);
repeatedImportEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00010000);
repeatedStringPiece_ =
com.google.protobuf.LazyStringArrayList.emptyList();
repeatedCord_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (repeatedLazyMessageBuilder_ == null) {
repeatedLazyMessage_ = java.util.Collections.emptyList();
} else {
repeatedLazyMessage_ = null;
repeatedLazyMessageBuilder_.clear();
}
bitField1_ = (bitField1_ & ~0x00080000);
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_ = 2;
defaultForeignEnum_ = 5;
defaultImportEnum_ = 8;
defaultStringPiece_ = "abc";
defaultCord_ = "123";
if (oneofNestedMessageBuilder_ != null) {
oneofNestedMessageBuilder_.clear();
}
if (oneofLazyNestedMessageBuilder_ != null) {
oneofLazyNestedMessageBuilder_.clear();
}
if (oneofNestedMessage2Builder_ != null) {
oneofNestedMessage2Builder_.clear();
}
deceptivelyNamedList_ = 0;
oneofFieldCase_ = 0;
oneofField_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_descriptor;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance();
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite build() {
com.google.protobuf.UnittestLite.TestAllTypesLite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite buildPartial() {
com.google.protobuf.UnittestLite.TestAllTypesLite result = new com.google.protobuf.UnittestLite.TestAllTypesLite(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
if (bitField1_ != 0) { buildPartial1(result); }
if (bitField2_ != 0) { buildPartial2(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.protobuf.UnittestLite.TestAllTypesLite result) {
if (repeatedGroupBuilder_ == null) {
if (((bitField1_ & 0x00000400) != 0)) {
repeatedGroup_ = java.util.Collections.unmodifiableList(repeatedGroup_);
bitField1_ = (bitField1_ & ~0x00000400);
}
result.repeatedGroup_ = repeatedGroup_;
} else {
result.repeatedGroup_ = repeatedGroupBuilder_.build();
}
if (repeatedNestedMessageBuilder_ == null) {
if (((bitField1_ & 0x00000800) != 0)) {
repeatedNestedMessage_ = java.util.Collections.unmodifiableList(repeatedNestedMessage_);
bitField1_ = (bitField1_ & ~0x00000800);
}
result.repeatedNestedMessage_ = repeatedNestedMessage_;
} else {
result.repeatedNestedMessage_ = repeatedNestedMessageBuilder_.build();
}
if (repeatedForeignMessageBuilder_ == null) {
if (((bitField1_ & 0x00001000) != 0)) {
repeatedForeignMessage_ = java.util.Collections.unmodifiableList(repeatedForeignMessage_);
bitField1_ = (bitField1_ & ~0x00001000);
}
result.repeatedForeignMessage_ = repeatedForeignMessage_;
} else {
result.repeatedForeignMessage_ = repeatedForeignMessageBuilder_.build();
}
if (repeatedImportMessageBuilder_ == null) {
if (((bitField1_ & 0x00002000) != 0)) {
repeatedImportMessage_ = java.util.Collections.unmodifiableList(repeatedImportMessage_);
bitField1_ = (bitField1_ & ~0x00002000);
}
result.repeatedImportMessage_ = repeatedImportMessage_;
} else {
result.repeatedImportMessage_ = repeatedImportMessageBuilder_.build();
}
if (((bitField1_ & 0x00004000) != 0)) {
repeatedNestedEnum_ = java.util.Collections.unmodifiableList(repeatedNestedEnum_);
bitField1_ = (bitField1_ & ~0x00004000);
}
result.repeatedNestedEnum_ = repeatedNestedEnum_;
if (((bitField1_ & 0x00008000) != 0)) {
repeatedForeignEnum_ = java.util.Collections.unmodifiableList(repeatedForeignEnum_);
bitField1_ = (bitField1_ & ~0x00008000);
}
result.repeatedForeignEnum_ = repeatedForeignEnum_;
if (((bitField1_ & 0x00010000) != 0)) {
repeatedImportEnum_ = java.util.Collections.unmodifiableList(repeatedImportEnum_);
bitField1_ = (bitField1_ & ~0x00010000);
}
result.repeatedImportEnum_ = repeatedImportEnum_;
if (repeatedLazyMessageBuilder_ == null) {
if (((bitField1_ & 0x00080000) != 0)) {
repeatedLazyMessage_ = java.util.Collections.unmodifiableList(repeatedLazyMessage_);
bitField1_ = (bitField1_ & ~0x00080000);
}
result.repeatedLazyMessage_ = repeatedLazyMessage_;
} else {
result.repeatedLazyMessage_ = repeatedLazyMessageBuilder_.build();
}
}
private void buildPartial0(com.google.protobuf.UnittestLite.TestAllTypesLite result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.optionalInt32_ = optionalInt32_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.optionalInt64_ = optionalInt64_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.optionalUint32_ = optionalUint32_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.optionalUint64_ = optionalUint64_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.optionalSint32_ = optionalSint32_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.optionalSint64_ = optionalSint64_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.optionalFixed32_ = optionalFixed32_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.optionalFixed64_ = optionalFixed64_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.optionalSfixed32_ = optionalSfixed32_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.optionalSfixed64_ = optionalSfixed64_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.optionalFloat_ = optionalFloat_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.optionalDouble_ = optionalDouble_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.optionalBool_ = optionalBool_;
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.optionalString_ = optionalString_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.optionalBytes_ = optionalBytes_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.optionalGroup_ = optionalGroupBuilder_ == null
? optionalGroup_
: optionalGroupBuilder_.build();
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.optionalNestedMessage_ = optionalNestedMessageBuilder_ == null
? optionalNestedMessage_
: optionalNestedMessageBuilder_.build();
to_bitField0_ |= 0x00010000;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.optionalForeignMessage_ = optionalForeignMessageBuilder_ == null
? optionalForeignMessage_
: optionalForeignMessageBuilder_.build();
to_bitField0_ |= 0x00020000;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.optionalImportMessage_ = optionalImportMessageBuilder_ == null
? optionalImportMessage_
: optionalImportMessageBuilder_.build();
to_bitField0_ |= 0x00040000;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.optionalNestedEnum_ = optionalNestedEnum_;
to_bitField0_ |= 0x00080000;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.optionalForeignEnum_ = optionalForeignEnum_;
to_bitField0_ |= 0x00100000;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.optionalImportEnum_ = optionalImportEnum_;
to_bitField0_ |= 0x00200000;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.optionalStringPiece_ = optionalStringPiece_;
to_bitField0_ |= 0x00400000;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.optionalCord_ = optionalCord_;
to_bitField0_ |= 0x00800000;
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.optionalPublicImportMessage_ = optionalPublicImportMessageBuilder_ == null
? optionalPublicImportMessage_
: optionalPublicImportMessageBuilder_.build();
to_bitField0_ |= 0x01000000;
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.optionalLazyMessage_ = optionalLazyMessageBuilder_ == null
? optionalLazyMessage_
: optionalLazyMessageBuilder_.build();
to_bitField0_ |= 0x02000000;
}
if (((from_bitField0_ & 0x04000000) != 0)) {
result.optionalUnverifiedLazyMessage_ = optionalUnverifiedLazyMessageBuilder_ == null
? optionalUnverifiedLazyMessage_
: optionalUnverifiedLazyMessageBuilder_.build();
to_bitField0_ |= 0x04000000;
}
if (((from_bitField0_ & 0x08000000) != 0)) {
repeatedInt32_.makeImmutable();
result.repeatedInt32_ = repeatedInt32_;
}
if (((from_bitField0_ & 0x10000000) != 0)) {
repeatedInt64_.makeImmutable();
result.repeatedInt64_ = repeatedInt64_;
}
if (((from_bitField0_ & 0x20000000) != 0)) {
repeatedUint32_.makeImmutable();
result.repeatedUint32_ = repeatedUint32_;
}
if (((from_bitField0_ & 0x40000000) != 0)) {
repeatedUint64_.makeImmutable();
result.repeatedUint64_ = repeatedUint64_;
}
if (((from_bitField0_ & 0x80000000) != 0)) {
repeatedSint32_.makeImmutable();
result.repeatedSint32_ = repeatedSint32_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartial1(com.google.protobuf.UnittestLite.TestAllTypesLite result) {
int from_bitField1_ = bitField1_;
if (((from_bitField1_ & 0x00000001) != 0)) {
repeatedSint64_.makeImmutable();
result.repeatedSint64_ = repeatedSint64_;
}
if (((from_bitField1_ & 0x00000002) != 0)) {
repeatedFixed32_.makeImmutable();
result.repeatedFixed32_ = repeatedFixed32_;
}
if (((from_bitField1_ & 0x00000004) != 0)) {
repeatedFixed64_.makeImmutable();
result.repeatedFixed64_ = repeatedFixed64_;
}
if (((from_bitField1_ & 0x00000008) != 0)) {
repeatedSfixed32_.makeImmutable();
result.repeatedSfixed32_ = repeatedSfixed32_;
}
if (((from_bitField1_ & 0x00000010) != 0)) {
repeatedSfixed64_.makeImmutable();
result.repeatedSfixed64_ = repeatedSfixed64_;
}
if (((from_bitField1_ & 0x00000020) != 0)) {
repeatedFloat_.makeImmutable();
result.repeatedFloat_ = repeatedFloat_;
}
if (((from_bitField1_ & 0x00000040) != 0)) {
repeatedDouble_.makeImmutable();
result.repeatedDouble_ = repeatedDouble_;
}
if (((from_bitField1_ & 0x00000080) != 0)) {
repeatedBool_.makeImmutable();
result.repeatedBool_ = repeatedBool_;
}
if (((from_bitField1_ & 0x00000100) != 0)) {
repeatedString_.makeImmutable();
result.repeatedString_ = repeatedString_;
}
if (((from_bitField1_ & 0x00000200) != 0)) {
repeatedBytes_.makeImmutable();
result.repeatedBytes_ = repeatedBytes_;
}
if (((from_bitField1_ & 0x00020000) != 0)) {
repeatedStringPiece_.makeImmutable();
result.repeatedStringPiece_ = repeatedStringPiece_;
}
if (((from_bitField1_ & 0x00040000) != 0)) {
repeatedCord_.makeImmutable();
result.repeatedCord_ = repeatedCord_;
}
int to_bitField0_ = 0;
if (((from_bitField1_ & 0x00100000) != 0)) {
result.defaultInt32_ = defaultInt32_;
to_bitField0_ |= 0x08000000;
}
if (((from_bitField1_ & 0x00200000) != 0)) {
result.defaultInt64_ = defaultInt64_;
to_bitField0_ |= 0x10000000;
}
if (((from_bitField1_ & 0x00400000) != 0)) {
result.defaultUint32_ = defaultUint32_;
to_bitField0_ |= 0x20000000;
}
if (((from_bitField1_ & 0x00800000) != 0)) {
result.defaultUint64_ = defaultUint64_;
to_bitField0_ |= 0x40000000;
}
if (((from_bitField1_ & 0x01000000) != 0)) {
result.defaultSint32_ = defaultSint32_;
to_bitField0_ |= 0x80000000;
}
int to_bitField1_ = 0;
if (((from_bitField1_ & 0x02000000) != 0)) {
result.defaultSint64_ = defaultSint64_;
to_bitField1_ |= 0x00000001;
}
if (((from_bitField1_ & 0x04000000) != 0)) {
result.defaultFixed32_ = defaultFixed32_;
to_bitField1_ |= 0x00000002;
}
if (((from_bitField1_ & 0x08000000) != 0)) {
result.defaultFixed64_ = defaultFixed64_;
to_bitField1_ |= 0x00000004;
}
if (((from_bitField1_ & 0x10000000) != 0)) {
result.defaultSfixed32_ = defaultSfixed32_;
to_bitField1_ |= 0x00000008;
}
if (((from_bitField1_ & 0x20000000) != 0)) {
result.defaultSfixed64_ = defaultSfixed64_;
to_bitField1_ |= 0x00000010;
}
if (((from_bitField1_ & 0x40000000) != 0)) {
result.defaultFloat_ = defaultFloat_;
to_bitField1_ |= 0x00000020;
}
if (((from_bitField1_ & 0x80000000) != 0)) {
result.defaultDouble_ = defaultDouble_;
to_bitField1_ |= 0x00000040;
}
result.bitField0_ |= to_bitField0_;
result.bitField1_ |= to_bitField1_;
}
private void buildPartial2(com.google.protobuf.UnittestLite.TestAllTypesLite result) {
int from_bitField2_ = bitField2_;
int to_bitField1_ = 0;
if (((from_bitField2_ & 0x00000001) != 0)) {
result.defaultBool_ = defaultBool_;
to_bitField1_ |= 0x00000080;
}
if (((from_bitField2_ & 0x00000002) != 0)) {
result.defaultString_ = defaultString_;
to_bitField1_ |= 0x00000100;
}
if (((from_bitField2_ & 0x00000004) != 0)) {
result.defaultBytes_ = defaultBytes_;
to_bitField1_ |= 0x00000200;
}
if (((from_bitField2_ & 0x00000008) != 0)) {
result.defaultNestedEnum_ = defaultNestedEnum_;
to_bitField1_ |= 0x00000400;
}
if (((from_bitField2_ & 0x00000010) != 0)) {
result.defaultForeignEnum_ = defaultForeignEnum_;
to_bitField1_ |= 0x00000800;
}
if (((from_bitField2_ & 0x00000020) != 0)) {
result.defaultImportEnum_ = defaultImportEnum_;
to_bitField1_ |= 0x00001000;
}
if (((from_bitField2_ & 0x00000040) != 0)) {
result.defaultStringPiece_ = defaultStringPiece_;
to_bitField1_ |= 0x00002000;
}
if (((from_bitField2_ & 0x00000080) != 0)) {
result.defaultCord_ = defaultCord_;
to_bitField1_ |= 0x00004000;
}
if (((from_bitField2_ & 0x00004000) != 0)) {
result.deceptivelyNamedList_ = deceptivelyNamedList_;
to_bitField1_ |= 0x00008000;
}
result.bitField1_ |= to_bitField1_;
}
private void buildPartialOneofs(com.google.protobuf.UnittestLite.TestAllTypesLite result) {
result.oneofFieldCase_ = oneofFieldCase_;
result.oneofField_ = this.oneofField_;
if (oneofFieldCase_ == 112 &&
oneofNestedMessageBuilder_ != null) {
result.oneofField_ = oneofNestedMessageBuilder_.build();
}
if (oneofFieldCase_ == 115 &&
oneofLazyNestedMessageBuilder_ != null) {
result.oneofField_ = oneofLazyNestedMessageBuilder_.build();
}
if (oneofFieldCase_ == 117 &&
oneofNestedMessage2Builder_ != null) {
result.oneofField_ = oneofNestedMessage2Builder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.UnittestLite.TestAllTypesLite) {
return mergeFrom((com.google.protobuf.UnittestLite.TestAllTypesLite)other);
} else {
super.mergeFrom(other);
return this;
}
}
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()) {
optionalString_ = other.optionalString_;
bitField0_ |= 0x00002000;
onChanged();
}
if (other.hasOptionalBytes()) {
setOptionalBytes(other.getOptionalBytes());
}
if (other.hasOptionalGroup()) {
mergeOptionalGroup(other.getOptionalGroup());
}
if (other.hasOptionalNestedMessage()) {
mergeOptionalNestedMessage(other.getOptionalNestedMessage());
}
if (other.hasOptionalForeignMessage()) {
mergeOptionalForeignMessage(other.getOptionalForeignMessage());
}
if (other.hasOptionalImportMessage()) {
mergeOptionalImportMessage(other.getOptionalImportMessage());
}
if (other.hasOptionalNestedEnum()) {
setOptionalNestedEnum(other.getOptionalNestedEnum());
}
if (other.hasOptionalForeignEnum()) {
setOptionalForeignEnum(other.getOptionalForeignEnum());
}
if (other.hasOptionalImportEnum()) {
setOptionalImportEnum(other.getOptionalImportEnum());
}
if (other.hasOptionalStringPiece()) {
optionalStringPiece_ = other.optionalStringPiece_;
bitField0_ |= 0x00400000;
onChanged();
}
if (other.hasOptionalCord()) {
optionalCord_ = other.optionalCord_;
bitField0_ |= 0x00800000;
onChanged();
}
if (other.hasOptionalPublicImportMessage()) {
mergeOptionalPublicImportMessage(other.getOptionalPublicImportMessage());
}
if (other.hasOptionalLazyMessage()) {
mergeOptionalLazyMessage(other.getOptionalLazyMessage());
}
if (other.hasOptionalUnverifiedLazyMessage()) {
mergeOptionalUnverifiedLazyMessage(other.getOptionalUnverifiedLazyMessage());
}
if (!other.repeatedInt32_.isEmpty()) {
if (repeatedInt32_.isEmpty()) {
repeatedInt32_ = other.repeatedInt32_;
repeatedInt32_.makeImmutable();
bitField0_ |= 0x08000000;
} else {
ensureRepeatedInt32IsMutable();
repeatedInt32_.addAll(other.repeatedInt32_);
}
onChanged();
}
if (!other.repeatedInt64_.isEmpty()) {
if (repeatedInt64_.isEmpty()) {
repeatedInt64_ = other.repeatedInt64_;
repeatedInt64_.makeImmutable();
bitField0_ |= 0x10000000;
} else {
ensureRepeatedInt64IsMutable();
repeatedInt64_.addAll(other.repeatedInt64_);
}
onChanged();
}
if (!other.repeatedUint32_.isEmpty()) {
if (repeatedUint32_.isEmpty()) {
repeatedUint32_ = other.repeatedUint32_;
repeatedUint32_.makeImmutable();
bitField0_ |= 0x20000000;
} else {
ensureRepeatedUint32IsMutable();
repeatedUint32_.addAll(other.repeatedUint32_);
}
onChanged();
}
if (!other.repeatedUint64_.isEmpty()) {
if (repeatedUint64_.isEmpty()) {
repeatedUint64_ = other.repeatedUint64_;
repeatedUint64_.makeImmutable();
bitField0_ |= 0x40000000;
} else {
ensureRepeatedUint64IsMutable();
repeatedUint64_.addAll(other.repeatedUint64_);
}
onChanged();
}
if (!other.repeatedSint32_.isEmpty()) {
if (repeatedSint32_.isEmpty()) {
repeatedSint32_ = other.repeatedSint32_;
repeatedSint32_.makeImmutable();
bitField0_ |= 0x80000000;
} else {
ensureRepeatedSint32IsMutable();
repeatedSint32_.addAll(other.repeatedSint32_);
}
onChanged();
}
if (!other.repeatedSint64_.isEmpty()) {
if (repeatedSint64_.isEmpty()) {
repeatedSint64_ = other.repeatedSint64_;
repeatedSint64_.makeImmutable();
bitField1_ |= 0x00000001;
} else {
ensureRepeatedSint64IsMutable();
repeatedSint64_.addAll(other.repeatedSint64_);
}
onChanged();
}
if (!other.repeatedFixed32_.isEmpty()) {
if (repeatedFixed32_.isEmpty()) {
repeatedFixed32_ = other.repeatedFixed32_;
repeatedFixed32_.makeImmutable();
bitField1_ |= 0x00000002;
} else {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.addAll(other.repeatedFixed32_);
}
onChanged();
}
if (!other.repeatedFixed64_.isEmpty()) {
if (repeatedFixed64_.isEmpty()) {
repeatedFixed64_ = other.repeatedFixed64_;
repeatedFixed64_.makeImmutable();
bitField1_ |= 0x00000004;
} else {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.addAll(other.repeatedFixed64_);
}
onChanged();
}
if (!other.repeatedSfixed32_.isEmpty()) {
if (repeatedSfixed32_.isEmpty()) {
repeatedSfixed32_ = other.repeatedSfixed32_;
repeatedSfixed32_.makeImmutable();
bitField1_ |= 0x00000008;
} else {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.addAll(other.repeatedSfixed32_);
}
onChanged();
}
if (!other.repeatedSfixed64_.isEmpty()) {
if (repeatedSfixed64_.isEmpty()) {
repeatedSfixed64_ = other.repeatedSfixed64_;
repeatedSfixed64_.makeImmutable();
bitField1_ |= 0x00000010;
} else {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.addAll(other.repeatedSfixed64_);
}
onChanged();
}
if (!other.repeatedFloat_.isEmpty()) {
if (repeatedFloat_.isEmpty()) {
repeatedFloat_ = other.repeatedFloat_;
repeatedFloat_.makeImmutable();
bitField1_ |= 0x00000020;
} else {
ensureRepeatedFloatIsMutable();
repeatedFloat_.addAll(other.repeatedFloat_);
}
onChanged();
}
if (!other.repeatedDouble_.isEmpty()) {
if (repeatedDouble_.isEmpty()) {
repeatedDouble_ = other.repeatedDouble_;
repeatedDouble_.makeImmutable();
bitField1_ |= 0x00000040;
} else {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.addAll(other.repeatedDouble_);
}
onChanged();
}
if (!other.repeatedBool_.isEmpty()) {
if (repeatedBool_.isEmpty()) {
repeatedBool_ = other.repeatedBool_;
repeatedBool_.makeImmutable();
bitField1_ |= 0x00000080;
} else {
ensureRepeatedBoolIsMutable();
repeatedBool_.addAll(other.repeatedBool_);
}
onChanged();
}
if (!other.repeatedString_.isEmpty()) {
if (repeatedString_.isEmpty()) {
repeatedString_ = other.repeatedString_;
bitField1_ |= 0x00000100;
} else {
ensureRepeatedStringIsMutable();
repeatedString_.addAll(other.repeatedString_);
}
onChanged();
}
if (!other.repeatedBytes_.isEmpty()) {
if (repeatedBytes_.isEmpty()) {
repeatedBytes_ = other.repeatedBytes_;
repeatedBytes_.makeImmutable();
bitField1_ |= 0x00000200;
} else {
ensureRepeatedBytesIsMutable();
repeatedBytes_.addAll(other.repeatedBytes_);
}
onChanged();
}
if (repeatedGroupBuilder_ == null) {
if (!other.repeatedGroup_.isEmpty()) {
if (repeatedGroup_.isEmpty()) {
repeatedGroup_ = other.repeatedGroup_;
bitField1_ = (bitField1_ & ~0x00000400);
} else {
ensureRepeatedGroupIsMutable();
repeatedGroup_.addAll(other.repeatedGroup_);
}
onChanged();
}
} else {
if (!other.repeatedGroup_.isEmpty()) {
if (repeatedGroupBuilder_.isEmpty()) {
repeatedGroupBuilder_.dispose();
repeatedGroupBuilder_ = null;
repeatedGroup_ = other.repeatedGroup_;
bitField1_ = (bitField1_ & ~0x00000400);
repeatedGroupBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRepeatedGroupFieldBuilder() : null;
} else {
repeatedGroupBuilder_.addAllMessages(other.repeatedGroup_);
}
}
}
if (repeatedNestedMessageBuilder_ == null) {
if (!other.repeatedNestedMessage_.isEmpty()) {
if (repeatedNestedMessage_.isEmpty()) {
repeatedNestedMessage_ = other.repeatedNestedMessage_;
bitField1_ = (bitField1_ & ~0x00000800);
} else {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.addAll(other.repeatedNestedMessage_);
}
onChanged();
}
} else {
if (!other.repeatedNestedMessage_.isEmpty()) {
if (repeatedNestedMessageBuilder_.isEmpty()) {
repeatedNestedMessageBuilder_.dispose();
repeatedNestedMessageBuilder_ = null;
repeatedNestedMessage_ = other.repeatedNestedMessage_;
bitField1_ = (bitField1_ & ~0x00000800);
repeatedNestedMessageBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRepeatedNestedMessageFieldBuilder() : null;
} else {
repeatedNestedMessageBuilder_.addAllMessages(other.repeatedNestedMessage_);
}
}
}
if (repeatedForeignMessageBuilder_ == null) {
if (!other.repeatedForeignMessage_.isEmpty()) {
if (repeatedForeignMessage_.isEmpty()) {
repeatedForeignMessage_ = other.repeatedForeignMessage_;
bitField1_ = (bitField1_ & ~0x00001000);
} else {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.addAll(other.repeatedForeignMessage_);
}
onChanged();
}
} else {
if (!other.repeatedForeignMessage_.isEmpty()) {
if (repeatedForeignMessageBuilder_.isEmpty()) {
repeatedForeignMessageBuilder_.dispose();
repeatedForeignMessageBuilder_ = null;
repeatedForeignMessage_ = other.repeatedForeignMessage_;
bitField1_ = (bitField1_ & ~0x00001000);
repeatedForeignMessageBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRepeatedForeignMessageFieldBuilder() : null;
} else {
repeatedForeignMessageBuilder_.addAllMessages(other.repeatedForeignMessage_);
}
}
}
if (repeatedImportMessageBuilder_ == null) {
if (!other.repeatedImportMessage_.isEmpty()) {
if (repeatedImportMessage_.isEmpty()) {
repeatedImportMessage_ = other.repeatedImportMessage_;
bitField1_ = (bitField1_ & ~0x00002000);
} else {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.addAll(other.repeatedImportMessage_);
}
onChanged();
}
} else {
if (!other.repeatedImportMessage_.isEmpty()) {
if (repeatedImportMessageBuilder_.isEmpty()) {
repeatedImportMessageBuilder_.dispose();
repeatedImportMessageBuilder_ = null;
repeatedImportMessage_ = other.repeatedImportMessage_;
bitField1_ = (bitField1_ & ~0x00002000);
repeatedImportMessageBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRepeatedImportMessageFieldBuilder() : null;
} else {
repeatedImportMessageBuilder_.addAllMessages(other.repeatedImportMessage_);
}
}
}
if (!other.repeatedNestedEnum_.isEmpty()) {
if (repeatedNestedEnum_.isEmpty()) {
repeatedNestedEnum_ = other.repeatedNestedEnum_;
bitField1_ = (bitField1_ & ~0x00004000);
} else {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.addAll(other.repeatedNestedEnum_);
}
onChanged();
}
if (!other.repeatedForeignEnum_.isEmpty()) {
if (repeatedForeignEnum_.isEmpty()) {
repeatedForeignEnum_ = other.repeatedForeignEnum_;
bitField1_ = (bitField1_ & ~0x00008000);
} else {
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.addAll(other.repeatedForeignEnum_);
}
onChanged();
}
if (!other.repeatedImportEnum_.isEmpty()) {
if (repeatedImportEnum_.isEmpty()) {
repeatedImportEnum_ = other.repeatedImportEnum_;
bitField1_ = (bitField1_ & ~0x00010000);
} else {
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.addAll(other.repeatedImportEnum_);
}
onChanged();
}
if (!other.repeatedStringPiece_.isEmpty()) {
if (repeatedStringPiece_.isEmpty()) {
repeatedStringPiece_ = other.repeatedStringPiece_;
bitField1_ |= 0x00020000;
} else {
ensureRepeatedStringPieceIsMutable();
repeatedStringPiece_.addAll(other.repeatedStringPiece_);
}
onChanged();
}
if (!other.repeatedCord_.isEmpty()) {
if (repeatedCord_.isEmpty()) {
repeatedCord_ = other.repeatedCord_;
bitField1_ |= 0x00040000;
} else {
ensureRepeatedCordIsMutable();
repeatedCord_.addAll(other.repeatedCord_);
}
onChanged();
}
if (repeatedLazyMessageBuilder_ == null) {
if (!other.repeatedLazyMessage_.isEmpty()) {
if (repeatedLazyMessage_.isEmpty()) {
repeatedLazyMessage_ = other.repeatedLazyMessage_;
bitField1_ = (bitField1_ & ~0x00080000);
} else {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.addAll(other.repeatedLazyMessage_);
}
onChanged();
}
} else {
if (!other.repeatedLazyMessage_.isEmpty()) {
if (repeatedLazyMessageBuilder_.isEmpty()) {
repeatedLazyMessageBuilder_.dispose();
repeatedLazyMessageBuilder_ = null;
repeatedLazyMessage_ = other.repeatedLazyMessage_;
bitField1_ = (bitField1_ & ~0x00080000);
repeatedLazyMessageBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRepeatedLazyMessageFieldBuilder() : null;
} else {
repeatedLazyMessageBuilder_.addAllMessages(other.repeatedLazyMessage_);
}
}
}
if (other.hasDefaultInt32()) {
setDefaultInt32(other.getDefaultInt32());
}
if (other.hasDefaultInt64()) {
setDefaultInt64(other.getDefaultInt64());
}
if (other.hasDefaultUint32()) {
setDefaultUint32(other.getDefaultUint32());
}
if (other.hasDefaultUint64()) {
setDefaultUint64(other.getDefaultUint64());
}
if (other.hasDefaultSint32()) {
setDefaultSint32(other.getDefaultSint32());
}
if (other.hasDefaultSint64()) {
setDefaultSint64(other.getDefaultSint64());
}
if (other.hasDefaultFixed32()) {
setDefaultFixed32(other.getDefaultFixed32());
}
if (other.hasDefaultFixed64()) {
setDefaultFixed64(other.getDefaultFixed64());
}
if (other.hasDefaultSfixed32()) {
setDefaultSfixed32(other.getDefaultSfixed32());
}
if (other.hasDefaultSfixed64()) {
setDefaultSfixed64(other.getDefaultSfixed64());
}
if (other.hasDefaultFloat()) {
setDefaultFloat(other.getDefaultFloat());
}
if (other.hasDefaultDouble()) {
setDefaultDouble(other.getDefaultDouble());
}
if (other.hasDefaultBool()) {
setDefaultBool(other.getDefaultBool());
}
if (other.hasDefaultString()) {
defaultString_ = other.defaultString_;
bitField2_ |= 0x00000002;
onChanged();
}
if (other.hasDefaultBytes()) {
setDefaultBytes(other.getDefaultBytes());
}
if (other.hasDefaultNestedEnum()) {
setDefaultNestedEnum(other.getDefaultNestedEnum());
}
if (other.hasDefaultForeignEnum()) {
setDefaultForeignEnum(other.getDefaultForeignEnum());
}
if (other.hasDefaultImportEnum()) {
setDefaultImportEnum(other.getDefaultImportEnum());
}
if (other.hasDefaultStringPiece()) {
defaultStringPiece_ = other.defaultStringPiece_;
bitField2_ |= 0x00000040;
onChanged();
}
if (other.hasDefaultCord()) {
defaultCord_ = other.defaultCord_;
bitField2_ |= 0x00000080;
onChanged();
}
if (other.hasDeceptivelyNamedList()) {
setDeceptivelyNamedList(other.getDeceptivelyNamedList());
}
switch (other.getOneofFieldCase()) {
case ONEOF_UINT32: {
setOneofUint32(other.getOneofUint32());
break;
}
case ONEOF_NESTED_MESSAGE: {
mergeOneofNestedMessage(other.getOneofNestedMessage());
break;
}
case ONEOF_STRING: {
oneofFieldCase_ = 113;
oneofField_ = other.oneofField_;
onChanged();
break;
}
case ONEOF_BYTES: {
setOneofBytes(other.getOneofBytes());
break;
}
case ONEOF_LAZY_NESTED_MESSAGE: {
mergeOneofLazyNestedMessage(other.getOneofLazyNestedMessage());
break;
}
case ONEOF_NESTED_MESSAGE2: {
mergeOneofNestedMessage2(other.getOneofNestedMessage2());
break;
}
case ONEOFFIELD_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
optionalInt32_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
optionalInt64_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
optionalUint32_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
optionalUint64_ = input.readUInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
optionalSint32_ = input.readSInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
optionalSint64_ = input.readSInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 61: {
optionalFixed32_ = input.readFixed32();
bitField0_ |= 0x00000040;
break;
} // case 61
case 65: {
optionalFixed64_ = input.readFixed64();
bitField0_ |= 0x00000080;
break;
} // case 65
case 77: {
optionalSfixed32_ = input.readSFixed32();
bitField0_ |= 0x00000100;
break;
} // case 77
case 81: {
optionalSfixed64_ = input.readSFixed64();
bitField0_ |= 0x00000200;
break;
} // case 81
case 93: {
optionalFloat_ = input.readFloat();
bitField0_ |= 0x00000400;
break;
} // case 93
case 97: {
optionalDouble_ = input.readDouble();
bitField0_ |= 0x00000800;
break;
} // case 97
case 104: {
optionalBool_ = input.readBool();
bitField0_ |= 0x00001000;
break;
} // case 104
case 114: {
optionalString_ = input.readBytes();
bitField0_ |= 0x00002000;
break;
} // case 114
case 122: {
optionalBytes_ = input.readBytes();
bitField0_ |= 0x00004000;
break;
} // case 122
case 131: {
input.readGroup(16,
getOptionalGroupFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00008000;
break;
} // case 131
case 146: {
input.readMessage(
getOptionalNestedMessageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00010000;
break;
} // case 146
case 154: {
input.readMessage(
getOptionalForeignMessageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00020000;
break;
} // case 154
case 162: {
input.readMessage(
getOptionalImportMessageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00040000;
break;
} // case 162
case 168: {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum tmpValue =
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(21, tmpRaw);
} else {
optionalNestedEnum_ = tmpRaw;
bitField0_ |= 0x00080000;
}
break;
} // case 168
case 176: {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue =
com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(22, tmpRaw);
} else {
optionalForeignEnum_ = tmpRaw;
bitField0_ |= 0x00100000;
}
break;
} // case 176
case 184: {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestImportLite.ImportEnumLite tmpValue =
com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(23, tmpRaw);
} else {
optionalImportEnum_ = tmpRaw;
bitField0_ |= 0x00200000;
}
break;
} // case 184
case 194: {
optionalStringPiece_ = input.readBytes();
bitField0_ |= 0x00400000;
break;
} // case 194
case 202: {
optionalCord_ = input.readBytes();
bitField0_ |= 0x00800000;
break;
} // case 202
case 210: {
input.readMessage(
getOptionalPublicImportMessageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x01000000;
break;
} // case 210
case 218: {
input.readMessage(
getOptionalLazyMessageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x02000000;
break;
} // case 218
case 226: {
input.readMessage(
getOptionalUnverifiedLazyMessageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x04000000;
break;
} // case 226
case 248: {
int v = input.readInt32();
ensureRepeatedInt32IsMutable();
repeatedInt32_.addInt(v);
break;
} // case 248
case 250: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureRepeatedInt32IsMutable();
while (input.getBytesUntilLimit() > 0) {
repeatedInt32_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
} // case 250
case 256: {
long v = input.readInt64();
ensureRepeatedInt64IsMutable();
repeatedInt64_.addLong(v);
break;
} // case 256
case 258: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureRepeatedInt64IsMutable();
while (input.getBytesUntilLimit() > 0) {
repeatedInt64_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 258
case 264: {
int v = input.readUInt32();
ensureRepeatedUint32IsMutable();
repeatedUint32_.addInt(v);
break;
} // case 264
case 266: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureRepeatedUint32IsMutable();
while (input.getBytesUntilLimit() > 0) {
repeatedUint32_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
} // case 266
case 272: {
long v = input.readUInt64();
ensureRepeatedUint64IsMutable();
repeatedUint64_.addLong(v);
break;
} // case 272
case 274: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureRepeatedUint64IsMutable();
while (input.getBytesUntilLimit() > 0) {
repeatedUint64_.addLong(input.readUInt64());
}
input.popLimit(limit);
break;
} // case 274
case 280: {
int v = input.readSInt32();
ensureRepeatedSint32IsMutable();
repeatedSint32_.addInt(v);
break;
} // case 280
case 282: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureRepeatedSint32IsMutable();
while (input.getBytesUntilLimit() > 0) {
repeatedSint32_.addInt(input.readSInt32());
}
input.popLimit(limit);
break;
} // case 282
case 288: {
long v = input.readSInt64();
ensureRepeatedSint64IsMutable();
repeatedSint64_.addLong(v);
break;
} // case 288
case 290: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureRepeatedSint64IsMutable();
while (input.getBytesUntilLimit() > 0) {
repeatedSint64_.addLong(input.readSInt64());
}
input.popLimit(limit);
break;
} // case 290
case 301: {
int v = input.readFixed32();
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.addInt(v);
break;
} // case 301
case 298: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureRepeatedFixed32IsMutable(alloc / 4);
while (input.getBytesUntilLimit() > 0) {
repeatedFixed32_.addInt(input.readFixed32());
}
input.popLimit(limit);
break;
} // case 298
case 305: {
long v = input.readFixed64();
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.addLong(v);
break;
} // case 305
case 306: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureRepeatedFixed64IsMutable(alloc / 8);
while (input.getBytesUntilLimit() > 0) {
repeatedFixed64_.addLong(input.readFixed64());
}
input.popLimit(limit);
break;
} // case 306
case 317: {
int v = input.readSFixed32();
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.addInt(v);
break;
} // case 317
case 314: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureRepeatedSfixed32IsMutable(alloc / 4);
while (input.getBytesUntilLimit() > 0) {
repeatedSfixed32_.addInt(input.readSFixed32());
}
input.popLimit(limit);
break;
} // case 314
case 321: {
long v = input.readSFixed64();
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.addLong(v);
break;
} // case 321
case 322: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureRepeatedSfixed64IsMutable(alloc / 8);
while (input.getBytesUntilLimit() > 0) {
repeatedSfixed64_.addLong(input.readSFixed64());
}
input.popLimit(limit);
break;
} // case 322
case 333: {
float v = input.readFloat();
ensureRepeatedFloatIsMutable();
repeatedFloat_.addFloat(v);
break;
} // case 333
case 330: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureRepeatedFloatIsMutable(alloc / 4);
while (input.getBytesUntilLimit() > 0) {
repeatedFloat_.addFloat(input.readFloat());
}
input.popLimit(limit);
break;
} // case 330
case 337: {
double v = input.readDouble();
ensureRepeatedDoubleIsMutable();
repeatedDouble_.addDouble(v);
break;
} // case 337
case 338: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureRepeatedDoubleIsMutable(alloc / 8);
while (input.getBytesUntilLimit() > 0) {
repeatedDouble_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
} // case 338
case 344: {
boolean v = input.readBool();
ensureRepeatedBoolIsMutable();
repeatedBool_.addBoolean(v);
break;
} // case 344
case 346: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureRepeatedBoolIsMutable(alloc / 1);
while (input.getBytesUntilLimit() > 0) {
repeatedBool_.addBoolean(input.readBool());
}
input.popLimit(limit);
break;
} // case 346
case 354: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureRepeatedStringIsMutable();
repeatedString_.add(bs);
break;
} // case 354
case 362: {
com.google.protobuf.ByteString v = input.readBytes();
ensureRepeatedBytesIsMutable();
repeatedBytes_.add(v);
break;
} // case 362
case 371: {
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup m =
input.readGroup(46,
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.PARSER,
extensionRegistry);
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(m);
} else {
repeatedGroupBuilder_.addMessage(m);
}
break;
} // case 371
case 386: {
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage m =
input.readMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.PARSER,
extensionRegistry);
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(m);
} else {
repeatedNestedMessageBuilder_.addMessage(m);
}
break;
} // case 386
case 394: {
com.google.protobuf.UnittestLite.ForeignMessageLite m =
input.readMessage(
com.google.protobuf.UnittestLite.ForeignMessageLite.PARSER,
extensionRegistry);
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(m);
} else {
repeatedForeignMessageBuilder_.addMessage(m);
}
break;
} // case 394
case 402: {
com.google.protobuf.UnittestImportLite.ImportMessageLite m =
input.readMessage(
com.google.protobuf.UnittestImportLite.ImportMessageLite.PARSER,
extensionRegistry);
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(m);
} else {
repeatedImportMessageBuilder_.addMessage(m);
}
break;
} // case 402
case 408: {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum tmpValue =
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(51, tmpRaw);
} else {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(tmpRaw);
}
break;
} // case 408
case 410: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum tmpValue =
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(51, tmpRaw);
} else {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(tmpRaw);
}
}
input.popLimit(oldLimit);
break;
} // case 410
case 416: {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue =
com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(52, tmpRaw);
} else {
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.add(tmpRaw);
}
break;
} // case 416
case 418: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue =
com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(52, tmpRaw);
} else {
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.add(tmpRaw);
}
}
input.popLimit(oldLimit);
break;
} // case 418
case 424: {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestImportLite.ImportEnumLite tmpValue =
com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(53, tmpRaw);
} else {
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.add(tmpRaw);
}
break;
} // case 424
case 426: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestImportLite.ImportEnumLite tmpValue =
com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(53, tmpRaw);
} else {
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.add(tmpRaw);
}
}
input.popLimit(oldLimit);
break;
} // case 426
case 434: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureRepeatedStringPieceIsMutable();
repeatedStringPiece_.add(bs);
break;
} // case 434
case 442: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureRepeatedCordIsMutable();
repeatedCord_.add(bs);
break;
} // case 442
case 458: {
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage m =
input.readMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.PARSER,
extensionRegistry);
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(m);
} else {
repeatedLazyMessageBuilder_.addMessage(m);
}
break;
} // case 458
case 488: {
defaultInt32_ = input.readInt32();
bitField1_ |= 0x00100000;
break;
} // case 488
case 496: {
defaultInt64_ = input.readInt64();
bitField1_ |= 0x00200000;
break;
} // case 496
case 504: {
defaultUint32_ = input.readUInt32();
bitField1_ |= 0x00400000;
break;
} // case 504
case 512: {
defaultUint64_ = input.readUInt64();
bitField1_ |= 0x00800000;
break;
} // case 512
case 520: {
defaultSint32_ = input.readSInt32();
bitField1_ |= 0x01000000;
break;
} // case 520
case 528: {
defaultSint64_ = input.readSInt64();
bitField1_ |= 0x02000000;
break;
} // case 528
case 541: {
defaultFixed32_ = input.readFixed32();
bitField1_ |= 0x04000000;
break;
} // case 541
case 545: {
defaultFixed64_ = input.readFixed64();
bitField1_ |= 0x08000000;
break;
} // case 545
case 557: {
defaultSfixed32_ = input.readSFixed32();
bitField1_ |= 0x10000000;
break;
} // case 557
case 561: {
defaultSfixed64_ = input.readSFixed64();
bitField1_ |= 0x20000000;
break;
} // case 561
case 573: {
defaultFloat_ = input.readFloat();
bitField1_ |= 0x40000000;
break;
} // case 573
case 577: {
defaultDouble_ = input.readDouble();
bitField1_ |= 0x80000000;
break;
} // case 577
case 584: {
defaultBool_ = input.readBool();
bitField2_ |= 0x00000001;
break;
} // case 584
case 594: {
defaultString_ = input.readBytes();
bitField2_ |= 0x00000002;
break;
} // case 594
case 602: {
defaultBytes_ = input.readBytes();
bitField2_ |= 0x00000004;
break;
} // case 602
case 648: {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum tmpValue =
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(81, tmpRaw);
} else {
defaultNestedEnum_ = tmpRaw;
bitField2_ |= 0x00000008;
}
break;
} // case 648
case 656: {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue =
com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(82, tmpRaw);
} else {
defaultForeignEnum_ = tmpRaw;
bitField2_ |= 0x00000010;
}
break;
} // case 656
case 664: {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestImportLite.ImportEnumLite tmpValue =
com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(83, tmpRaw);
} else {
defaultImportEnum_ = tmpRaw;
bitField2_ |= 0x00000020;
}
break;
} // case 664
case 674: {
defaultStringPiece_ = input.readBytes();
bitField2_ |= 0x00000040;
break;
} // case 674
case 682: {
defaultCord_ = input.readBytes();
bitField2_ |= 0x00000080;
break;
} // case 682
case 888: {
oneofField_ = input.readUInt32();
oneofFieldCase_ = 111;
break;
} // case 888
case 898: {
input.readMessage(
getOneofNestedMessageFieldBuilder().getBuilder(),
extensionRegistry);
oneofFieldCase_ = 112;
break;
} // case 898
case 906: {
com.google.protobuf.ByteString bs = input.readBytes();
oneofFieldCase_ = 113;
oneofField_ = bs;
break;
} // case 906
case 914: {
oneofField_ = input.readBytes();
oneofFieldCase_ = 114;
break;
} // case 914
case 922: {
input.readMessage(
getOneofLazyNestedMessageFieldBuilder().getBuilder(),
extensionRegistry);
oneofFieldCase_ = 115;
break;
} // case 922
case 928: {
deceptivelyNamedList_ = input.readInt32();
bitField2_ |= 0x00004000;
break;
} // case 928
case 938: {
input.readMessage(
getOneofNestedMessage2FieldBuilder().getBuilder(),
extensionRegistry);
oneofFieldCase_ = 117;
break;
} // case 938
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int oneofFieldCase_ = 0;
private java.lang.Object oneofField_;
public OneofFieldCase
getOneofFieldCase() {
return OneofFieldCase.forNumber(
oneofFieldCase_);
}
public Builder clearOneofField() {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
return this;
}
private int bitField0_;
private int bitField1_;
private int bitField2_;
private int optionalInt32_ ;
/**
*
* Singular
*
*
* optional int32 optional_int32 = 1;
* @return Whether the optionalInt32 field is set.
*/
@java.lang.Override
public boolean hasOptionalInt32() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Singular
*
*
* optional int32 optional_int32 = 1;
* @return The optionalInt32.
*/
@java.lang.Override
public int getOptionalInt32() {
return optionalInt32_;
}
/**
*
* Singular
*
*
* optional int32 optional_int32 = 1;
* @param value The optionalInt32 to set.
* @return This builder for chaining.
*/
public Builder setOptionalInt32(int value) {
optionalInt32_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Singular
*
*
* optional int32 optional_int32 = 1;
* @return This builder for chaining.
*/
public Builder clearOptionalInt32() {
bitField0_ = (bitField0_ & ~0x00000001);
optionalInt32_ = 0;
onChanged();
return this;
}
private long optionalInt64_ ;
/**
* optional int64 optional_int64 = 2;
* @return Whether the optionalInt64 field is set.
*/
@java.lang.Override
public boolean hasOptionalInt64() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 optional_int64 = 2;
* @return The optionalInt64.
*/
@java.lang.Override
public long getOptionalInt64() {
return optionalInt64_;
}
/**
* optional int64 optional_int64 = 2;
* @param value The optionalInt64 to set.
* @return This builder for chaining.
*/
public Builder setOptionalInt64(long value) {
optionalInt64_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional int64 optional_int64 = 2;
* @return This builder for chaining.
*/
public Builder clearOptionalInt64() {
bitField0_ = (bitField0_ & ~0x00000002);
optionalInt64_ = 0L;
onChanged();
return this;
}
private int optionalUint32_ ;
/**
* optional uint32 optional_uint32 = 3;
* @return Whether the optionalUint32 field is set.
*/
@java.lang.Override
public boolean hasOptionalUint32() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 optional_uint32 = 3;
* @return The optionalUint32.
*/
@java.lang.Override
public int getOptionalUint32() {
return optionalUint32_;
}
/**
* optional uint32 optional_uint32 = 3;
* @param value The optionalUint32 to set.
* @return This builder for chaining.
*/
public Builder setOptionalUint32(int value) {
optionalUint32_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional uint32 optional_uint32 = 3;
* @return This builder for chaining.
*/
public Builder clearOptionalUint32() {
bitField0_ = (bitField0_ & ~0x00000004);
optionalUint32_ = 0;
onChanged();
return this;
}
private long optionalUint64_ ;
/**
* optional uint64 optional_uint64 = 4;
* @return Whether the optionalUint64 field is set.
*/
@java.lang.Override
public boolean hasOptionalUint64() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint64 optional_uint64 = 4;
* @return The optionalUint64.
*/
@java.lang.Override
public long getOptionalUint64() {
return optionalUint64_;
}
/**
* optional uint64 optional_uint64 = 4;
* @param value The optionalUint64 to set.
* @return This builder for chaining.
*/
public Builder setOptionalUint64(long value) {
optionalUint64_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional uint64 optional_uint64 = 4;
* @return This builder for chaining.
*/
public Builder clearOptionalUint64() {
bitField0_ = (bitField0_ & ~0x00000008);
optionalUint64_ = 0L;
onChanged();
return this;
}
private int optionalSint32_ ;
/**
* optional sint32 optional_sint32 = 5;
* @return Whether the optionalSint32 field is set.
*/
@java.lang.Override
public boolean hasOptionalSint32() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional sint32 optional_sint32 = 5;
* @return The optionalSint32.
*/
@java.lang.Override
public int getOptionalSint32() {
return optionalSint32_;
}
/**
* optional sint32 optional_sint32 = 5;
* @param value The optionalSint32 to set.
* @return This builder for chaining.
*/
public Builder setOptionalSint32(int value) {
optionalSint32_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional sint32 optional_sint32 = 5;
* @return This builder for chaining.
*/
public Builder clearOptionalSint32() {
bitField0_ = (bitField0_ & ~0x00000010);
optionalSint32_ = 0;
onChanged();
return this;
}
private long optionalSint64_ ;
/**
* optional sint64 optional_sint64 = 6;
* @return Whether the optionalSint64 field is set.
*/
@java.lang.Override
public boolean hasOptionalSint64() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional sint64 optional_sint64 = 6;
* @return The optionalSint64.
*/
@java.lang.Override
public long getOptionalSint64() {
return optionalSint64_;
}
/**
* optional sint64 optional_sint64 = 6;
* @param value The optionalSint64 to set.
* @return This builder for chaining.
*/
public Builder setOptionalSint64(long value) {
optionalSint64_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional sint64 optional_sint64 = 6;
* @return This builder for chaining.
*/
public Builder clearOptionalSint64() {
bitField0_ = (bitField0_ & ~0x00000020);
optionalSint64_ = 0L;
onChanged();
return this;
}
private int optionalFixed32_ ;
/**
* optional fixed32 optional_fixed32 = 7;
* @return Whether the optionalFixed32 field is set.
*/
@java.lang.Override
public boolean hasOptionalFixed32() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional fixed32 optional_fixed32 = 7;
* @return The optionalFixed32.
*/
@java.lang.Override
public int getOptionalFixed32() {
return optionalFixed32_;
}
/**
* optional fixed32 optional_fixed32 = 7;
* @param value The optionalFixed32 to set.
* @return This builder for chaining.
*/
public Builder setOptionalFixed32(int value) {
optionalFixed32_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional fixed32 optional_fixed32 = 7;
* @return This builder for chaining.
*/
public Builder clearOptionalFixed32() {
bitField0_ = (bitField0_ & ~0x00000040);
optionalFixed32_ = 0;
onChanged();
return this;
}
private long optionalFixed64_ ;
/**
* optional fixed64 optional_fixed64 = 8;
* @return Whether the optionalFixed64 field is set.
*/
@java.lang.Override
public boolean hasOptionalFixed64() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional fixed64 optional_fixed64 = 8;
* @return The optionalFixed64.
*/
@java.lang.Override
public long getOptionalFixed64() {
return optionalFixed64_;
}
/**
* optional fixed64 optional_fixed64 = 8;
* @param value The optionalFixed64 to set.
* @return This builder for chaining.
*/
public Builder setOptionalFixed64(long value) {
optionalFixed64_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional fixed64 optional_fixed64 = 8;
* @return This builder for chaining.
*/
public Builder clearOptionalFixed64() {
bitField0_ = (bitField0_ & ~0x00000080);
optionalFixed64_ = 0L;
onChanged();
return this;
}
private int optionalSfixed32_ ;
/**
* optional sfixed32 optional_sfixed32 = 9;
* @return Whether the optionalSfixed32 field is set.
*/
@java.lang.Override
public boolean hasOptionalSfixed32() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional sfixed32 optional_sfixed32 = 9;
* @return The optionalSfixed32.
*/
@java.lang.Override
public int getOptionalSfixed32() {
return optionalSfixed32_;
}
/**
* optional sfixed32 optional_sfixed32 = 9;
* @param value The optionalSfixed32 to set.
* @return This builder for chaining.
*/
public Builder setOptionalSfixed32(int value) {
optionalSfixed32_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* optional sfixed32 optional_sfixed32 = 9;
* @return This builder for chaining.
*/
public Builder clearOptionalSfixed32() {
bitField0_ = (bitField0_ & ~0x00000100);
optionalSfixed32_ = 0;
onChanged();
return this;
}
private long optionalSfixed64_ ;
/**
* optional sfixed64 optional_sfixed64 = 10;
* @return Whether the optionalSfixed64 field is set.
*/
@java.lang.Override
public boolean hasOptionalSfixed64() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional sfixed64 optional_sfixed64 = 10;
* @return The optionalSfixed64.
*/
@java.lang.Override
public long getOptionalSfixed64() {
return optionalSfixed64_;
}
/**
* optional sfixed64 optional_sfixed64 = 10;
* @param value The optionalSfixed64 to set.
* @return This builder for chaining.
*/
public Builder setOptionalSfixed64(long value) {
optionalSfixed64_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* optional sfixed64 optional_sfixed64 = 10;
* @return This builder for chaining.
*/
public Builder clearOptionalSfixed64() {
bitField0_ = (bitField0_ & ~0x00000200);
optionalSfixed64_ = 0L;
onChanged();
return this;
}
private float optionalFloat_ ;
/**
* optional float optional_float = 11;
* @return Whether the optionalFloat field is set.
*/
@java.lang.Override
public boolean hasOptionalFloat() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional float optional_float = 11;
* @return The optionalFloat.
*/
@java.lang.Override
public float getOptionalFloat() {
return optionalFloat_;
}
/**
* optional float optional_float = 11;
* @param value The optionalFloat to set.
* @return This builder for chaining.
*/
public Builder setOptionalFloat(float value) {
optionalFloat_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* optional float optional_float = 11;
* @return This builder for chaining.
*/
public Builder clearOptionalFloat() {
bitField0_ = (bitField0_ & ~0x00000400);
optionalFloat_ = 0F;
onChanged();
return this;
}
private double optionalDouble_ ;
/**
* optional double optional_double = 12;
* @return Whether the optionalDouble field is set.
*/
@java.lang.Override
public boolean hasOptionalDouble() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional double optional_double = 12;
* @return The optionalDouble.
*/
@java.lang.Override
public double getOptionalDouble() {
return optionalDouble_;
}
/**
* optional double optional_double = 12;
* @param value The optionalDouble to set.
* @return This builder for chaining.
*/
public Builder setOptionalDouble(double value) {
optionalDouble_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* optional double optional_double = 12;
* @return This builder for chaining.
*/
public Builder clearOptionalDouble() {
bitField0_ = (bitField0_ & ~0x00000800);
optionalDouble_ = 0D;
onChanged();
return this;
}
private boolean optionalBool_ ;
/**
* optional bool optional_bool = 13;
* @return Whether the optionalBool field is set.
*/
@java.lang.Override
public boolean hasOptionalBool() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional bool optional_bool = 13;
* @return The optionalBool.
*/
@java.lang.Override
public boolean getOptionalBool() {
return optionalBool_;
}
/**
* optional bool optional_bool = 13;
* @param value The optionalBool to set.
* @return This builder for chaining.
*/
public Builder setOptionalBool(boolean value) {
optionalBool_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* optional bool optional_bool = 13;
* @return This builder for chaining.
*/
public Builder clearOptionalBool() {
bitField0_ = (bitField0_ & ~0x00001000);
optionalBool_ = false;
onChanged();
return this;
}
private java.lang.Object optionalString_ = "";
/**
* optional string optional_string = 14;
* @return Whether the optionalString field is set.
*/
public boolean hasOptionalString() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional string optional_string = 14;
* @return The optionalString.
*/
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;
* @return The bytes for optionalString.
*/
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;
* @param value The optionalString to set.
* @return This builder for chaining.
*/
public Builder setOptionalString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
optionalString_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* optional string optional_string = 14;
* @return This builder for chaining.
*/
public Builder clearOptionalString() {
optionalString_ = getDefaultInstance().getOptionalString();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
* optional string optional_string = 14;
* @param value The bytes for optionalString to set.
* @return This builder for chaining.
*/
public Builder setOptionalStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
optionalString_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes optional_bytes = 15;
* @return Whether the optionalBytes field is set.
*/
@java.lang.Override
public boolean hasOptionalBytes() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional bytes optional_bytes = 15;
* @return The optionalBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOptionalBytes() {
return optionalBytes_;
}
/**
* optional bytes optional_bytes = 15;
* @param value The optionalBytes to set.
* @return This builder for chaining.
*/
public Builder setOptionalBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
optionalBytes_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* optional bytes optional_bytes = 15;
* @return This builder for chaining.
*/
public Builder clearOptionalBytes() {
bitField0_ = (bitField0_ & ~0x00004000);
optionalBytes_ = getDefaultInstance().getOptionalBytes();
onChanged();
return this;
}
private com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup optionalGroup_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder> optionalGroupBuilder_;
/**
* optional group OptionalGroup = 16 { ... }
* @return Whether the optionalgroup field is set.
*/
public boolean hasOptionalGroup() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional group OptionalGroup = 16 { ... }
* @return The optionalgroup.
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup getOptionalGroup() {
if (optionalGroupBuilder_ == null) {
return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance() : optionalGroup_;
} else {
return optionalGroupBuilder_.getMessage();
}
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder setOptionalGroup(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup value) {
if (optionalGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalGroup_ = value;
} else {
optionalGroupBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder setOptionalGroup(
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder builderForValue) {
if (optionalGroupBuilder_ == null) {
optionalGroup_ = builderForValue.build();
} else {
optionalGroupBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder mergeOptionalGroup(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup value) {
if (optionalGroupBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0) &&
optionalGroup_ != null &&
optionalGroup_ != com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance()) {
getOptionalGroupBuilder().mergeFrom(value);
} else {
optionalGroup_ = value;
}
} else {
optionalGroupBuilder_.mergeFrom(value);
}
if (optionalGroup_ != null) {
bitField0_ |= 0x00008000;
onChanged();
}
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public Builder clearOptionalGroup() {
bitField0_ = (bitField0_ & ~0x00008000);
optionalGroup_ = null;
if (optionalGroupBuilder_ != null) {
optionalGroupBuilder_.dispose();
optionalGroupBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder getOptionalGroupBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getOptionalGroupFieldBuilder().getBuilder();
}
/**
* optional group OptionalGroup = 16 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder getOptionalGroupOrBuilder() {
if (optionalGroupBuilder_ != null) {
return optionalGroupBuilder_.getMessageOrBuilder();
} else {
return optionalGroup_ == null ?
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance() : optionalGroup_;
}
}
/**
* optional group OptionalGroup = 16 { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder>
getOptionalGroupFieldBuilder() {
if (optionalGroupBuilder_ == null) {
optionalGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder>(
getOptionalGroup(),
getParentForChildren(),
isClean());
optionalGroup_ = null;
}
return optionalGroupBuilder_;
}
private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalNestedMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> optionalNestedMessageBuilder_;
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
* @return Whether the optionalNestedMessage field is set.
*/
public boolean hasOptionalNestedMessage() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
* @return The optionalNestedMessage.
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalNestedMessage() {
if (optionalNestedMessageBuilder_ == null) {
return optionalNestedMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalNestedMessage_;
} else {
return optionalNestedMessageBuilder_.getMessage();
}
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public Builder setOptionalNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (optionalNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalNestedMessage_ = value;
} else {
optionalNestedMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public Builder setOptionalNestedMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (optionalNestedMessageBuilder_ == null) {
optionalNestedMessage_ = builderForValue.build();
} else {
optionalNestedMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public Builder mergeOptionalNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (optionalNestedMessageBuilder_ == null) {
if (((bitField0_ & 0x00010000) != 0) &&
optionalNestedMessage_ != null &&
optionalNestedMessage_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) {
getOptionalNestedMessageBuilder().mergeFrom(value);
} else {
optionalNestedMessage_ = value;
}
} else {
optionalNestedMessageBuilder_.mergeFrom(value);
}
if (optionalNestedMessage_ != null) {
bitField0_ |= 0x00010000;
onChanged();
}
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public Builder clearOptionalNestedMessage() {
bitField0_ = (bitField0_ & ~0x00010000);
optionalNestedMessage_ = null;
if (optionalNestedMessageBuilder_ != null) {
optionalNestedMessageBuilder_.dispose();
optionalNestedMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getOptionalNestedMessageBuilder() {
bitField0_ |= 0x00010000;
onChanged();
return getOptionalNestedMessageFieldBuilder().getBuilder();
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() {
if (optionalNestedMessageBuilder_ != null) {
return optionalNestedMessageBuilder_.getMessageOrBuilder();
} else {
return optionalNestedMessage_ == null ?
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalNestedMessage_;
}
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getOptionalNestedMessageFieldBuilder() {
if (optionalNestedMessageBuilder_ == null) {
optionalNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>(
getOptionalNestedMessage(),
getParentForChildren(),
isClean());
optionalNestedMessage_ = null;
}
return optionalNestedMessageBuilder_;
}
private com.google.protobuf.UnittestLite.ForeignMessageLite optionalForeignMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder> optionalForeignMessageBuilder_;
/**
* optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19;
* @return Whether the optionalForeignMessage field is set.
*/
public boolean hasOptionalForeignMessage() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19;
* @return The optionalForeignMessage.
*/
public com.google.protobuf.UnittestLite.ForeignMessageLite getOptionalForeignMessage() {
if (optionalForeignMessageBuilder_ == null) {
return optionalForeignMessage_ == null ? com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance() : optionalForeignMessage_;
} else {
return optionalForeignMessageBuilder_.getMessage();
}
}
/**
* optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public Builder setOptionalForeignMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) {
if (optionalForeignMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalForeignMessage_ = value;
} else {
optionalForeignMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
* optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public Builder setOptionalForeignMessage(
com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) {
if (optionalForeignMessageBuilder_ == null) {
optionalForeignMessage_ = builderForValue.build();
} else {
optionalForeignMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
* optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public Builder mergeOptionalForeignMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) {
if (optionalForeignMessageBuilder_ == null) {
if (((bitField0_ & 0x00020000) != 0) &&
optionalForeignMessage_ != null &&
optionalForeignMessage_ != com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()) {
getOptionalForeignMessageBuilder().mergeFrom(value);
} else {
optionalForeignMessage_ = value;
}
} else {
optionalForeignMessageBuilder_.mergeFrom(value);
}
if (optionalForeignMessage_ != null) {
bitField0_ |= 0x00020000;
onChanged();
}
return this;
}
/**
* optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public Builder clearOptionalForeignMessage() {
bitField0_ = (bitField0_ & ~0x00020000);
optionalForeignMessage_ = null;
if (optionalForeignMessageBuilder_ != null) {
optionalForeignMessageBuilder_.dispose();
optionalForeignMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLite.Builder getOptionalForeignMessageBuilder() {
bitField0_ |= 0x00020000;
onChanged();
return getOptionalForeignMessageFieldBuilder().getBuilder();
}
/**
* optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getOptionalForeignMessageOrBuilder() {
if (optionalForeignMessageBuilder_ != null) {
return optionalForeignMessageBuilder_.getMessageOrBuilder();
} else {
return optionalForeignMessage_ == null ?
com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance() : optionalForeignMessage_;
}
}
/**
* optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder>
getOptionalForeignMessageFieldBuilder() {
if (optionalForeignMessageBuilder_ == null) {
optionalForeignMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder>(
getOptionalForeignMessage(),
getParentForChildren(),
isClean());
optionalForeignMessage_ = null;
}
return optionalForeignMessageBuilder_;
}
private com.google.protobuf.UnittestImportLite.ImportMessageLite optionalImportMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder> optionalImportMessageBuilder_;
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
* @return Whether the optionalImportMessage field is set.
*/
public boolean hasOptionalImportMessage() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
* @return The optionalImportMessage.
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLite getOptionalImportMessage() {
if (optionalImportMessageBuilder_ == null) {
return optionalImportMessage_ == null ? com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance() : optionalImportMessage_;
} else {
return optionalImportMessageBuilder_.getMessage();
}
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public Builder setOptionalImportMessage(com.google.protobuf.UnittestImportLite.ImportMessageLite value) {
if (optionalImportMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalImportMessage_ = value;
} else {
optionalImportMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public Builder setOptionalImportMessage(
com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) {
if (optionalImportMessageBuilder_ == null) {
optionalImportMessage_ = builderForValue.build();
} else {
optionalImportMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public Builder mergeOptionalImportMessage(com.google.protobuf.UnittestImportLite.ImportMessageLite value) {
if (optionalImportMessageBuilder_ == null) {
if (((bitField0_ & 0x00040000) != 0) &&
optionalImportMessage_ != null &&
optionalImportMessage_ != com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance()) {
getOptionalImportMessageBuilder().mergeFrom(value);
} else {
optionalImportMessage_ = value;
}
} else {
optionalImportMessageBuilder_.mergeFrom(value);
}
if (optionalImportMessage_ != null) {
bitField0_ |= 0x00040000;
onChanged();
}
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public Builder clearOptionalImportMessage() {
bitField0_ = (bitField0_ & ~0x00040000);
optionalImportMessage_ = null;
if (optionalImportMessageBuilder_ != null) {
optionalImportMessageBuilder_.dispose();
optionalImportMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder getOptionalImportMessageBuilder() {
bitField0_ |= 0x00040000;
onChanged();
return getOptionalImportMessageFieldBuilder().getBuilder();
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder getOptionalImportMessageOrBuilder() {
if (optionalImportMessageBuilder_ != null) {
return optionalImportMessageBuilder_.getMessageOrBuilder();
} else {
return optionalImportMessage_ == null ?
com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance() : optionalImportMessage_;
}
}
/**
* optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder>
getOptionalImportMessageFieldBuilder() {
if (optionalImportMessageBuilder_ == null) {
optionalImportMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder>(
getOptionalImportMessage(),
getParentForChildren(),
isClean());
optionalImportMessage_ = null;
}
return optionalImportMessageBuilder_;
}
private int optionalNestedEnum_ = 1;
/**
* optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
* @return Whether the optionalNestedEnum field is set.
*/
@java.lang.Override public boolean hasOptionalNestedEnum() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
* @return The optionalNestedEnum.
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getOptionalNestedEnum() {
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum result = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(optionalNestedEnum_);
return result == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.FOO : result;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
* @param value The optionalNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setOptionalNestedEnum(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00080000;
optionalNestedEnum_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
* @return This builder for chaining.
*/
public Builder clearOptionalNestedEnum() {
bitField0_ = (bitField0_ & ~0x00080000);
optionalNestedEnum_ = 1;
onChanged();
return this;
}
private int optionalForeignEnum_ = 4;
/**
* optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22;
* @return Whether the optionalForeignEnum field is set.
*/
@java.lang.Override public boolean hasOptionalForeignEnum() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
* optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22;
* @return The optionalForeignEnum.
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.ForeignEnumLite getOptionalForeignEnum() {
com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(optionalForeignEnum_);
return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO : result;
}
/**
* optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22;
* @param value The optionalForeignEnum to set.
* @return This builder for chaining.
*/
public Builder setOptionalForeignEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00100000;
optionalForeignEnum_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22;
* @return This builder for chaining.
*/
public Builder clearOptionalForeignEnum() {
bitField0_ = (bitField0_ & ~0x00100000);
optionalForeignEnum_ = 4;
onChanged();
return this;
}
private int optionalImportEnum_ = 7;
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
* @return Whether the optionalImportEnum field is set.
*/
@java.lang.Override public boolean hasOptionalImportEnum() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
* @return The optionalImportEnum.
*/
@java.lang.Override
public com.google.protobuf.UnittestImportLite.ImportEnumLite getOptionalImportEnum() {
com.google.protobuf.UnittestImportLite.ImportEnumLite result = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(optionalImportEnum_);
return result == null ? com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_FOO : result;
}
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
* @param value The optionalImportEnum to set.
* @return This builder for chaining.
*/
public Builder setOptionalImportEnum(com.google.protobuf.UnittestImportLite.ImportEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00200000;
optionalImportEnum_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
* @return This builder for chaining.
*/
public Builder clearOptionalImportEnum() {
bitField0_ = (bitField0_ & ~0x00200000);
optionalImportEnum_ = 7;
onChanged();
return this;
}
private java.lang.Object optionalStringPiece_ = "";
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
* @return Whether the optionalStringPiece field is set.
*/
public boolean hasOptionalStringPiece() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
* @return The optionalStringPiece.
*/
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];
* @return The bytes for optionalStringPiece.
*/
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];
* @param value The optionalStringPiece to set.
* @return This builder for chaining.
*/
public Builder setOptionalStringPiece(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
optionalStringPiece_ = value;
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
* @return This builder for chaining.
*/
public Builder clearOptionalStringPiece() {
optionalStringPiece_ = getDefaultInstance().getOptionalStringPiece();
bitField0_ = (bitField0_ & ~0x00400000);
onChanged();
return this;
}
/**
* optional string optional_string_piece = 24 [ctype = STRING_PIECE];
* @param value The bytes for optionalStringPiece to set.
* @return This builder for chaining.
*/
public Builder setOptionalStringPieceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
optionalStringPiece_ = value;
bitField0_ |= 0x00400000;
onChanged();
return this;
}
private java.lang.Object optionalCord_ = "";
/**
* optional string optional_cord = 25 [ctype = CORD];
* @return Whether the optionalCord field is set.
*/
public boolean hasOptionalCord() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
* optional string optional_cord = 25 [ctype = CORD];
* @return The optionalCord.
*/
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];
* @return The bytes for optionalCord.
*/
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];
* @param value The optionalCord to set.
* @return This builder for chaining.
*/
public Builder setOptionalCord(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
optionalCord_ = value;
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
* optional string optional_cord = 25 [ctype = CORD];
* @return This builder for chaining.
*/
public Builder clearOptionalCord() {
optionalCord_ = getDefaultInstance().getOptionalCord();
bitField0_ = (bitField0_ & ~0x00800000);
onChanged();
return this;
}
/**
* optional string optional_cord = 25 [ctype = CORD];
* @param value The bytes for optionalCord to set.
* @return This builder for chaining.
*/
public Builder setOptionalCordBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
optionalCord_ = value;
bitField0_ |= 0x00800000;
onChanged();
return this;
}
private com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite optionalPublicImportMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder> optionalPublicImportMessageBuilder_;
/**
*
* Defined in unittest_import_public.proto
*
*
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
* @return Whether the optionalPublicImportMessage field is set.
*/
public boolean hasOptionalPublicImportMessage() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
*
* Defined in unittest_import_public.proto
*
*
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
* @return The optionalPublicImportMessage.
*/
public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getOptionalPublicImportMessage() {
if (optionalPublicImportMessageBuilder_ == null) {
return optionalPublicImportMessage_ == null ? com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance() : optionalPublicImportMessage_;
} else {
return optionalPublicImportMessageBuilder_.getMessage();
}
}
/**
*
* Defined in unittest_import_public.proto
*
*
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*/
public Builder setOptionalPublicImportMessage(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite value) {
if (optionalPublicImportMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalPublicImportMessage_ = value;
} else {
optionalPublicImportMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
* Defined in unittest_import_public.proto
*
*
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*/
public Builder setOptionalPublicImportMessage(
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder builderForValue) {
if (optionalPublicImportMessageBuilder_ == null) {
optionalPublicImportMessage_ = builderForValue.build();
} else {
optionalPublicImportMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
* Defined in unittest_import_public.proto
*
*
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*/
public Builder mergeOptionalPublicImportMessage(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite value) {
if (optionalPublicImportMessageBuilder_ == null) {
if (((bitField0_ & 0x01000000) != 0) &&
optionalPublicImportMessage_ != null &&
optionalPublicImportMessage_ != com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance()) {
getOptionalPublicImportMessageBuilder().mergeFrom(value);
} else {
optionalPublicImportMessage_ = value;
}
} else {
optionalPublicImportMessageBuilder_.mergeFrom(value);
}
if (optionalPublicImportMessage_ != null) {
bitField0_ |= 0x01000000;
onChanged();
}
return this;
}
/**
*
* Defined in unittest_import_public.proto
*
*
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*/
public Builder clearOptionalPublicImportMessage() {
bitField0_ = (bitField0_ & ~0x01000000);
optionalPublicImportMessage_ = null;
if (optionalPublicImportMessageBuilder_ != null) {
optionalPublicImportMessageBuilder_.dispose();
optionalPublicImportMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Defined in unittest_import_public.proto
*
*
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*/
public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder getOptionalPublicImportMessageBuilder() {
bitField0_ |= 0x01000000;
onChanged();
return getOptionalPublicImportMessageFieldBuilder().getBuilder();
}
/**
*
* Defined in unittest_import_public.proto
*
*
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*/
public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder getOptionalPublicImportMessageOrBuilder() {
if (optionalPublicImportMessageBuilder_ != null) {
return optionalPublicImportMessageBuilder_.getMessageOrBuilder();
} else {
return optionalPublicImportMessage_ == null ?
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance() : optionalPublicImportMessage_;
}
}
/**
*
* Defined in unittest_import_public.proto
*
*
* optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder>
getOptionalPublicImportMessageFieldBuilder() {
if (optionalPublicImportMessageBuilder_ == null) {
optionalPublicImportMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder>(
getOptionalPublicImportMessage(),
getParentForChildren(),
isClean());
optionalPublicImportMessage_ = null;
}
return optionalPublicImportMessageBuilder_;
}
private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalLazyMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> optionalLazyMessageBuilder_;
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
* @return Whether the optionalLazyMessage field is set.
*/
public boolean hasOptionalLazyMessage() {
return ((bitField0_ & 0x02000000) != 0);
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
* @return The optionalLazyMessage.
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalLazyMessage() {
if (optionalLazyMessageBuilder_ == null) {
return optionalLazyMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalLazyMessage_;
} else {
return optionalLazyMessageBuilder_.getMessage();
}
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder setOptionalLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (optionalLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalLazyMessage_ = value;
} else {
optionalLazyMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder setOptionalLazyMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (optionalLazyMessageBuilder_ == null) {
optionalLazyMessage_ = builderForValue.build();
} else {
optionalLazyMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder mergeOptionalLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (optionalLazyMessageBuilder_ == null) {
if (((bitField0_ & 0x02000000) != 0) &&
optionalLazyMessage_ != null &&
optionalLazyMessage_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) {
getOptionalLazyMessageBuilder().mergeFrom(value);
} else {
optionalLazyMessage_ = value;
}
} else {
optionalLazyMessageBuilder_.mergeFrom(value);
}
if (optionalLazyMessage_ != null) {
bitField0_ |= 0x02000000;
onChanged();
}
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public Builder clearOptionalLazyMessage() {
bitField0_ = (bitField0_ & ~0x02000000);
optionalLazyMessage_ = null;
if (optionalLazyMessageBuilder_ != null) {
optionalLazyMessageBuilder_.dispose();
optionalLazyMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getOptionalLazyMessageBuilder() {
bitField0_ |= 0x02000000;
onChanged();
return getOptionalLazyMessageFieldBuilder().getBuilder();
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() {
if (optionalLazyMessageBuilder_ != null) {
return optionalLazyMessageBuilder_.getMessageOrBuilder();
} else {
return optionalLazyMessage_ == null ?
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalLazyMessage_;
}
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getOptionalLazyMessageFieldBuilder() {
if (optionalLazyMessageBuilder_ == null) {
optionalLazyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>(
getOptionalLazyMessage(),
getParentForChildren(),
isClean());
optionalLazyMessage_ = null;
}
return optionalLazyMessageBuilder_;
}
private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalUnverifiedLazyMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> optionalUnverifiedLazyMessageBuilder_;
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true];
* @return Whether the optionalUnverifiedLazyMessage field is set.
*/
public boolean hasOptionalUnverifiedLazyMessage() {
return ((bitField0_ & 0x04000000) != 0);
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true];
* @return The optionalUnverifiedLazyMessage.
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalUnverifiedLazyMessage() {
if (optionalUnverifiedLazyMessageBuilder_ == null) {
return optionalUnverifiedLazyMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalUnverifiedLazyMessage_;
} else {
return optionalUnverifiedLazyMessageBuilder_.getMessage();
}
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true];
*/
public Builder setOptionalUnverifiedLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (optionalUnverifiedLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalUnverifiedLazyMessage_ = value;
} else {
optionalUnverifiedLazyMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true];
*/
public Builder setOptionalUnverifiedLazyMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (optionalUnverifiedLazyMessageBuilder_ == null) {
optionalUnverifiedLazyMessage_ = builderForValue.build();
} else {
optionalUnverifiedLazyMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true];
*/
public Builder mergeOptionalUnverifiedLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (optionalUnverifiedLazyMessageBuilder_ == null) {
if (((bitField0_ & 0x04000000) != 0) &&
optionalUnverifiedLazyMessage_ != null &&
optionalUnverifiedLazyMessage_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) {
getOptionalUnverifiedLazyMessageBuilder().mergeFrom(value);
} else {
optionalUnverifiedLazyMessage_ = value;
}
} else {
optionalUnverifiedLazyMessageBuilder_.mergeFrom(value);
}
if (optionalUnverifiedLazyMessage_ != null) {
bitField0_ |= 0x04000000;
onChanged();
}
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true];
*/
public Builder clearOptionalUnverifiedLazyMessage() {
bitField0_ = (bitField0_ & ~0x04000000);
optionalUnverifiedLazyMessage_ = null;
if (optionalUnverifiedLazyMessageBuilder_ != null) {
optionalUnverifiedLazyMessageBuilder_.dispose();
optionalUnverifiedLazyMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getOptionalUnverifiedLazyMessageBuilder() {
bitField0_ |= 0x04000000;
onChanged();
return getOptionalUnverifiedLazyMessageFieldBuilder().getBuilder();
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalUnverifiedLazyMessageOrBuilder() {
if (optionalUnverifiedLazyMessageBuilder_ != null) {
return optionalUnverifiedLazyMessageBuilder_.getMessageOrBuilder();
} else {
return optionalUnverifiedLazyMessage_ == null ?
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalUnverifiedLazyMessage_;
}
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getOptionalUnverifiedLazyMessageFieldBuilder() {
if (optionalUnverifiedLazyMessageBuilder_ == null) {
optionalUnverifiedLazyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>(
getOptionalUnverifiedLazyMessage(),
getParentForChildren(),
isClean());
optionalUnverifiedLazyMessage_ = null;
}
return optionalUnverifiedLazyMessageBuilder_;
}
private com.google.protobuf.Internal.IntList repeatedInt32_ = emptyIntList();
private void ensureRepeatedInt32IsMutable() {
if (!repeatedInt32_.isModifiable()) {
repeatedInt32_ = makeMutableCopy(repeatedInt32_);
}
bitField0_ |= 0x08000000;
}
/**
*
* Repeated
*
*
* repeated int32 repeated_int32 = 31;
* @return A list containing the repeatedInt32.
*/
public java.util.List
getRepeatedInt32List() {
repeatedInt32_.makeImmutable();
return repeatedInt32_;
}
/**
*
* Repeated
*
*
* repeated int32 repeated_int32 = 31;
* @return The count of repeatedInt32.
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
*
* Repeated
*
*
* repeated int32 repeated_int32 = 31;
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.getInt(index);
}
/**
*
* Repeated
*
*
* repeated int32 repeated_int32 = 31;
* @param index The index to set the value at.
* @param value The repeatedInt32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedInt32(
int index, int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.setInt(index, value);
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
*
* Repeated
*
*
* repeated int32 repeated_int32 = 31;
* @param value The repeatedInt32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedInt32(int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.addInt(value);
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
*
* Repeated
*
*
* repeated int32 repeated_int32 = 31;
* @param values The repeatedInt32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedInt32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedInt32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedInt32_);
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
*
* Repeated
*
*
* repeated int32 repeated_int32 = 31;
* @return This builder for chaining.
*/
public Builder clearRepeatedInt32() {
repeatedInt32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x08000000);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedInt64_ = emptyLongList();
private void ensureRepeatedInt64IsMutable() {
if (!repeatedInt64_.isModifiable()) {
repeatedInt64_ = makeMutableCopy(repeatedInt64_);
}
bitField0_ |= 0x10000000;
}
/**
* repeated int64 repeated_int64 = 32;
* @return A list containing the repeatedInt64.
*/
public java.util.List
getRepeatedInt64List() {
repeatedInt64_.makeImmutable();
return repeatedInt64_;
}
/**
* repeated int64 repeated_int64 = 32;
* @return The count of repeatedInt64.
*/
public int getRepeatedInt64Count() {
return repeatedInt64_.size();
}
/**
* repeated int64 repeated_int64 = 32;
* @param index The index of the element to return.
* @return The repeatedInt64 at the given index.
*/
public long getRepeatedInt64(int index) {
return repeatedInt64_.getLong(index);
}
/**
* repeated int64 repeated_int64 = 32;
* @param index The index to set the value at.
* @param value The repeatedInt64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedInt64(
int index, long value) {
ensureRepeatedInt64IsMutable();
repeatedInt64_.setLong(index, value);
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 32;
* @param value The repeatedInt64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedInt64(long value) {
ensureRepeatedInt64IsMutable();
repeatedInt64_.addLong(value);
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 32;
* @param values The repeatedInt64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedInt64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedInt64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedInt64_);
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 32;
* @return This builder for chaining.
*/
public Builder clearRepeatedInt64() {
repeatedInt64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x10000000);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedUint32_ = emptyIntList();
private void ensureRepeatedUint32IsMutable() {
if (!repeatedUint32_.isModifiable()) {
repeatedUint32_ = makeMutableCopy(repeatedUint32_);
}
bitField0_ |= 0x20000000;
}
/**
* repeated uint32 repeated_uint32 = 33;
* @return A list containing the repeatedUint32.
*/
public java.util.List
getRepeatedUint32List() {
repeatedUint32_.makeImmutable();
return repeatedUint32_;
}
/**
* repeated uint32 repeated_uint32 = 33;
* @return The count of repeatedUint32.
*/
public int getRepeatedUint32Count() {
return repeatedUint32_.size();
}
/**
* repeated uint32 repeated_uint32 = 33;
* @param index The index of the element to return.
* @return The repeatedUint32 at the given index.
*/
public int getRepeatedUint32(int index) {
return repeatedUint32_.getInt(index);
}
/**
* repeated uint32 repeated_uint32 = 33;
* @param index The index to set the value at.
* @param value The repeatedUint32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedUint32(
int index, int value) {
ensureRepeatedUint32IsMutable();
repeatedUint32_.setInt(index, value);
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
* @param value The repeatedUint32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedUint32(int value) {
ensureRepeatedUint32IsMutable();
repeatedUint32_.addInt(value);
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
* @param values The repeatedUint32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedUint32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedUint32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedUint32_);
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
* @return This builder for chaining.
*/
public Builder clearRepeatedUint32() {
repeatedUint32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x20000000);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedUint64_ = emptyLongList();
private void ensureRepeatedUint64IsMutable() {
if (!repeatedUint64_.isModifiable()) {
repeatedUint64_ = makeMutableCopy(repeatedUint64_);
}
bitField0_ |= 0x40000000;
}
/**
* repeated uint64 repeated_uint64 = 34;
* @return A list containing the repeatedUint64.
*/
public java.util.List
getRepeatedUint64List() {
repeatedUint64_.makeImmutable();
return repeatedUint64_;
}
/**
* repeated uint64 repeated_uint64 = 34;
* @return The count of repeatedUint64.
*/
public int getRepeatedUint64Count() {
return repeatedUint64_.size();
}
/**
* repeated uint64 repeated_uint64 = 34;
* @param index The index of the element to return.
* @return The repeatedUint64 at the given index.
*/
public long getRepeatedUint64(int index) {
return repeatedUint64_.getLong(index);
}
/**
* repeated uint64 repeated_uint64 = 34;
* @param index The index to set the value at.
* @param value The repeatedUint64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedUint64(
int index, long value) {
ensureRepeatedUint64IsMutable();
repeatedUint64_.setLong(index, value);
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
* @param value The repeatedUint64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedUint64(long value) {
ensureRepeatedUint64IsMutable();
repeatedUint64_.addLong(value);
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
* @param values The repeatedUint64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedUint64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedUint64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedUint64_);
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
* @return This builder for chaining.
*/
public Builder clearRepeatedUint64() {
repeatedUint64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x40000000);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedSint32_ = emptyIntList();
private void ensureRepeatedSint32IsMutable() {
if (!repeatedSint32_.isModifiable()) {
repeatedSint32_ = makeMutableCopy(repeatedSint32_);
}
bitField0_ |= 0x80000000;
}
/**
* repeated sint32 repeated_sint32 = 35;
* @return A list containing the repeatedSint32.
*/
public java.util.List
getRepeatedSint32List() {
repeatedSint32_.makeImmutable();
return repeatedSint32_;
}
/**
* repeated sint32 repeated_sint32 = 35;
* @return The count of repeatedSint32.
*/
public int getRepeatedSint32Count() {
return repeatedSint32_.size();
}
/**
* repeated sint32 repeated_sint32 = 35;
* @param index The index of the element to return.
* @return The repeatedSint32 at the given index.
*/
public int getRepeatedSint32(int index) {
return repeatedSint32_.getInt(index);
}
/**
* repeated sint32 repeated_sint32 = 35;
* @param index The index to set the value at.
* @param value The repeatedSint32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSint32(
int index, int value) {
ensureRepeatedSint32IsMutable();
repeatedSint32_.setInt(index, value);
bitField0_ |= 0x80000000;
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
* @param value The repeatedSint32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSint32(int value) {
ensureRepeatedSint32IsMutable();
repeatedSint32_.addInt(value);
bitField0_ |= 0x80000000;
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
* @param values The repeatedSint32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSint32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedSint32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSint32_);
bitField0_ |= 0x80000000;
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
* @return This builder for chaining.
*/
public Builder clearRepeatedSint32() {
repeatedSint32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x80000000);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedSint64_ = emptyLongList();
private void ensureRepeatedSint64IsMutable() {
if (!repeatedSint64_.isModifiable()) {
repeatedSint64_ = makeMutableCopy(repeatedSint64_);
}
bitField1_ |= 0x00000001;
}
/**
* repeated sint64 repeated_sint64 = 36;
* @return A list containing the repeatedSint64.
*/
public java.util.List
getRepeatedSint64List() {
repeatedSint64_.makeImmutable();
return repeatedSint64_;
}
/**
* repeated sint64 repeated_sint64 = 36;
* @return The count of repeatedSint64.
*/
public int getRepeatedSint64Count() {
return repeatedSint64_.size();
}
/**
* repeated sint64 repeated_sint64 = 36;
* @param index The index of the element to return.
* @return The repeatedSint64 at the given index.
*/
public long getRepeatedSint64(int index) {
return repeatedSint64_.getLong(index);
}
/**
* repeated sint64 repeated_sint64 = 36;
* @param index The index to set the value at.
* @param value The repeatedSint64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSint64(
int index, long value) {
ensureRepeatedSint64IsMutable();
repeatedSint64_.setLong(index, value);
bitField1_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
* @param value The repeatedSint64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSint64(long value) {
ensureRepeatedSint64IsMutable();
repeatedSint64_.addLong(value);
bitField1_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
* @param values The repeatedSint64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSint64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedSint64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSint64_);
bitField1_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
* @return This builder for chaining.
*/
public Builder clearRepeatedSint64() {
repeatedSint64_ = emptyLongList();
bitField1_ = (bitField1_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedFixed32_ = emptyIntList();
private void ensureRepeatedFixed32IsMutable() {
if (!repeatedFixed32_.isModifiable()) {
repeatedFixed32_ = makeMutableCopy(repeatedFixed32_);
}
bitField1_ |= 0x00000002;
}
private void ensureRepeatedFixed32IsMutable(int capacity) {
if (!repeatedFixed32_.isModifiable()) {
repeatedFixed32_ = makeMutableCopy(repeatedFixed32_, capacity);
}
bitField1_ |= 0x00000002;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @return A list containing the repeatedFixed32.
*/
public java.util.List
getRepeatedFixed32List() {
repeatedFixed32_.makeImmutable();
return repeatedFixed32_;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @return The count of repeatedFixed32.
*/
public int getRepeatedFixed32Count() {
return repeatedFixed32_.size();
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @param index The index of the element to return.
* @return The repeatedFixed32 at the given index.
*/
public int getRepeatedFixed32(int index) {
return repeatedFixed32_.getInt(index);
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @param index The index to set the value at.
* @param value The repeatedFixed32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedFixed32(
int index, int value) {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.setInt(index, value);
bitField1_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @param value The repeatedFixed32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedFixed32(int value) {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.addInt(value);
bitField1_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @param values The repeatedFixed32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedFixed32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedFixed32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFixed32_);
bitField1_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @return This builder for chaining.
*/
public Builder clearRepeatedFixed32() {
repeatedFixed32_ = emptyIntList();
bitField1_ = (bitField1_ & ~0x00000002);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedFixed64_ = emptyLongList();
private void ensureRepeatedFixed64IsMutable() {
if (!repeatedFixed64_.isModifiable()) {
repeatedFixed64_ = makeMutableCopy(repeatedFixed64_);
}
bitField1_ |= 0x00000004;
}
private void ensureRepeatedFixed64IsMutable(int capacity) {
if (!repeatedFixed64_.isModifiable()) {
repeatedFixed64_ = makeMutableCopy(repeatedFixed64_, capacity);
}
bitField1_ |= 0x00000004;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @return A list containing the repeatedFixed64.
*/
public java.util.List
getRepeatedFixed64List() {
repeatedFixed64_.makeImmutable();
return repeatedFixed64_;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @return The count of repeatedFixed64.
*/
public int getRepeatedFixed64Count() {
return repeatedFixed64_.size();
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @param index The index of the element to return.
* @return The repeatedFixed64 at the given index.
*/
public long getRepeatedFixed64(int index) {
return repeatedFixed64_.getLong(index);
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @param index The index to set the value at.
* @param value The repeatedFixed64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedFixed64(
int index, long value) {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.setLong(index, value);
bitField1_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @param value The repeatedFixed64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedFixed64(long value) {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.addLong(value);
bitField1_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @param values The repeatedFixed64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedFixed64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedFixed64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFixed64_);
bitField1_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @return This builder for chaining.
*/
public Builder clearRepeatedFixed64() {
repeatedFixed64_ = emptyLongList();
bitField1_ = (bitField1_ & ~0x00000004);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedSfixed32_ = emptyIntList();
private void ensureRepeatedSfixed32IsMutable() {
if (!repeatedSfixed32_.isModifiable()) {
repeatedSfixed32_ = makeMutableCopy(repeatedSfixed32_);
}
bitField1_ |= 0x00000008;
}
private void ensureRepeatedSfixed32IsMutable(int capacity) {
if (!repeatedSfixed32_.isModifiable()) {
repeatedSfixed32_ = makeMutableCopy(repeatedSfixed32_, capacity);
}
bitField1_ |= 0x00000008;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @return A list containing the repeatedSfixed32.
*/
public java.util.List
getRepeatedSfixed32List() {
repeatedSfixed32_.makeImmutable();
return repeatedSfixed32_;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @return The count of repeatedSfixed32.
*/
public int getRepeatedSfixed32Count() {
return repeatedSfixed32_.size();
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @param index The index of the element to return.
* @return The repeatedSfixed32 at the given index.
*/
public int getRepeatedSfixed32(int index) {
return repeatedSfixed32_.getInt(index);
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @param index The index to set the value at.
* @param value The repeatedSfixed32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSfixed32(
int index, int value) {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.setInt(index, value);
bitField1_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @param value The repeatedSfixed32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSfixed32(int value) {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.addInt(value);
bitField1_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @param values The repeatedSfixed32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSfixed32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedSfixed32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSfixed32_);
bitField1_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @return This builder for chaining.
*/
public Builder clearRepeatedSfixed32() {
repeatedSfixed32_ = emptyIntList();
bitField1_ = (bitField1_ & ~0x00000008);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedSfixed64_ = emptyLongList();
private void ensureRepeatedSfixed64IsMutable() {
if (!repeatedSfixed64_.isModifiable()) {
repeatedSfixed64_ = makeMutableCopy(repeatedSfixed64_);
}
bitField1_ |= 0x00000010;
}
private void ensureRepeatedSfixed64IsMutable(int capacity) {
if (!repeatedSfixed64_.isModifiable()) {
repeatedSfixed64_ = makeMutableCopy(repeatedSfixed64_, capacity);
}
bitField1_ |= 0x00000010;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @return A list containing the repeatedSfixed64.
*/
public java.util.List
getRepeatedSfixed64List() {
repeatedSfixed64_.makeImmutable();
return repeatedSfixed64_;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @return The count of repeatedSfixed64.
*/
public int getRepeatedSfixed64Count() {
return repeatedSfixed64_.size();
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @param index The index of the element to return.
* @return The repeatedSfixed64 at the given index.
*/
public long getRepeatedSfixed64(int index) {
return repeatedSfixed64_.getLong(index);
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @param index The index to set the value at.
* @param value The repeatedSfixed64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSfixed64(
int index, long value) {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.setLong(index, value);
bitField1_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @param value The repeatedSfixed64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSfixed64(long value) {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.addLong(value);
bitField1_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @param values The repeatedSfixed64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSfixed64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedSfixed64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSfixed64_);
bitField1_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @return This builder for chaining.
*/
public Builder clearRepeatedSfixed64() {
repeatedSfixed64_ = emptyLongList();
bitField1_ = (bitField1_ & ~0x00000010);
onChanged();
return this;
}
private com.google.protobuf.Internal.FloatList repeatedFloat_ = emptyFloatList();
private void ensureRepeatedFloatIsMutable() {
if (!repeatedFloat_.isModifiable()) {
repeatedFloat_ = makeMutableCopy(repeatedFloat_);
}
bitField1_ |= 0x00000020;
}
private void ensureRepeatedFloatIsMutable(int capacity) {
if (!repeatedFloat_.isModifiable()) {
repeatedFloat_ = makeMutableCopy(repeatedFloat_, capacity);
}
bitField1_ |= 0x00000020;
}
/**
* repeated float repeated_float = 41;
* @return A list containing the repeatedFloat.
*/
public java.util.List
getRepeatedFloatList() {
repeatedFloat_.makeImmutable();
return repeatedFloat_;
}
/**
* repeated float repeated_float = 41;
* @return The count of repeatedFloat.
*/
public int getRepeatedFloatCount() {
return repeatedFloat_.size();
}
/**
* repeated float repeated_float = 41;
* @param index The index of the element to return.
* @return The repeatedFloat at the given index.
*/
public float getRepeatedFloat(int index) {
return repeatedFloat_.getFloat(index);
}
/**
* repeated float repeated_float = 41;
* @param index The index to set the value at.
* @param value The repeatedFloat to set.
* @return This builder for chaining.
*/
public Builder setRepeatedFloat(
int index, float value) {
ensureRepeatedFloatIsMutable();
repeatedFloat_.setFloat(index, value);
bitField1_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated float repeated_float = 41;
* @param value The repeatedFloat to add.
* @return This builder for chaining.
*/
public Builder addRepeatedFloat(float value) {
ensureRepeatedFloatIsMutable();
repeatedFloat_.addFloat(value);
bitField1_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated float repeated_float = 41;
* @param values The repeatedFloat to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedFloat(
java.lang.Iterable extends java.lang.Float> values) {
ensureRepeatedFloatIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFloat_);
bitField1_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated float repeated_float = 41;
* @return This builder for chaining.
*/
public Builder clearRepeatedFloat() {
repeatedFloat_ = emptyFloatList();
bitField1_ = (bitField1_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList repeatedDouble_ = emptyDoubleList();
private void ensureRepeatedDoubleIsMutable() {
if (!repeatedDouble_.isModifiable()) {
repeatedDouble_ = makeMutableCopy(repeatedDouble_);
}
bitField1_ |= 0x00000040;
}
private void ensureRepeatedDoubleIsMutable(int capacity) {
if (!repeatedDouble_.isModifiable()) {
repeatedDouble_ = makeMutableCopy(repeatedDouble_, capacity);
}
bitField1_ |= 0x00000040;
}
/**
* repeated double repeated_double = 42;
* @return A list containing the repeatedDouble.
*/
public java.util.List
getRepeatedDoubleList() {
repeatedDouble_.makeImmutable();
return repeatedDouble_;
}
/**
* repeated double repeated_double = 42;
* @return The count of repeatedDouble.
*/
public int getRepeatedDoubleCount() {
return repeatedDouble_.size();
}
/**
* repeated double repeated_double = 42;
* @param index The index of the element to return.
* @return The repeatedDouble at the given index.
*/
public double getRepeatedDouble(int index) {
return repeatedDouble_.getDouble(index);
}
/**
* repeated double repeated_double = 42;
* @param index The index to set the value at.
* @param value The repeatedDouble to set.
* @return This builder for chaining.
*/
public Builder setRepeatedDouble(
int index, double value) {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.setDouble(index, value);
bitField1_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated double repeated_double = 42;
* @param value The repeatedDouble to add.
* @return This builder for chaining.
*/
public Builder addRepeatedDouble(double value) {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.addDouble(value);
bitField1_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated double repeated_double = 42;
* @param values The repeatedDouble to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedDouble(
java.lang.Iterable extends java.lang.Double> values) {
ensureRepeatedDoubleIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedDouble_);
bitField1_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated double repeated_double = 42;
* @return This builder for chaining.
*/
public Builder clearRepeatedDouble() {
repeatedDouble_ = emptyDoubleList();
bitField1_ = (bitField1_ & ~0x00000040);
onChanged();
return this;
}
private com.google.protobuf.Internal.BooleanList repeatedBool_ = emptyBooleanList();
private void ensureRepeatedBoolIsMutable() {
if (!repeatedBool_.isModifiable()) {
repeatedBool_ = makeMutableCopy(repeatedBool_);
}
bitField1_ |= 0x00000080;
}
private void ensureRepeatedBoolIsMutable(int capacity) {
if (!repeatedBool_.isModifiable()) {
repeatedBool_ = makeMutableCopy(repeatedBool_, capacity);
}
bitField1_ |= 0x00000080;
}
/**
* repeated bool repeated_bool = 43;
* @return A list containing the repeatedBool.
*/
public java.util.List
getRepeatedBoolList() {
repeatedBool_.makeImmutable();
return repeatedBool_;
}
/**
* repeated bool repeated_bool = 43;
* @return The count of repeatedBool.
*/
public int getRepeatedBoolCount() {
return repeatedBool_.size();
}
/**
* repeated bool repeated_bool = 43;
* @param index The index of the element to return.
* @return The repeatedBool at the given index.
*/
public boolean getRepeatedBool(int index) {
return repeatedBool_.getBoolean(index);
}
/**
* repeated bool repeated_bool = 43;
* @param index The index to set the value at.
* @param value The repeatedBool to set.
* @return This builder for chaining.
*/
public Builder setRepeatedBool(
int index, boolean value) {
ensureRepeatedBoolIsMutable();
repeatedBool_.setBoolean(index, value);
bitField1_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 43;
* @param value The repeatedBool to add.
* @return This builder for chaining.
*/
public Builder addRepeatedBool(boolean value) {
ensureRepeatedBoolIsMutable();
repeatedBool_.addBoolean(value);
bitField1_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 43;
* @param values The repeatedBool to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedBool(
java.lang.Iterable extends java.lang.Boolean> values) {
ensureRepeatedBoolIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedBool_);
bitField1_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 43;
* @return This builder for chaining.
*/
public Builder clearRepeatedBool() {
repeatedBool_ = emptyBooleanList();
bitField1_ = (bitField1_ & ~0x00000080);
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRepeatedStringIsMutable() {
if (!repeatedString_.isModifiable()) {
repeatedString_ = new com.google.protobuf.LazyStringArrayList(repeatedString_);
}
bitField1_ |= 0x00000100;
}
/**
* repeated string repeated_string = 44;
* @return A list containing the repeatedString.
*/
public com.google.protobuf.ProtocolStringList
getRepeatedStringList() {
repeatedString_.makeImmutable();
return repeatedString_;
}
/**
* repeated string repeated_string = 44;
* @return The count of repeatedString.
*/
public int getRepeatedStringCount() {
return repeatedString_.size();
}
/**
* repeated string repeated_string = 44;
* @param index The index of the element to return.
* @return The repeatedString at the given index.
*/
public java.lang.String getRepeatedString(int index) {
return repeatedString_.get(index);
}
/**
* repeated string repeated_string = 44;
* @param index The index of the value to return.
* @return The bytes of the repeatedString at the given index.
*/
public com.google.protobuf.ByteString
getRepeatedStringBytes(int index) {
return repeatedString_.getByteString(index);
}
/**
* repeated string repeated_string = 44;
* @param index The index to set the value at.
* @param value The repeatedString to set.
* @return This builder for chaining.
*/
public Builder setRepeatedString(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedStringIsMutable();
repeatedString_.set(index, value);
bitField1_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated string repeated_string = 44;
* @param value The repeatedString to add.
* @return This builder for chaining.
*/
public Builder addRepeatedString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedStringIsMutable();
repeatedString_.add(value);
bitField1_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated string repeated_string = 44;
* @param values The repeatedString to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedString(
java.lang.Iterable values) {
ensureRepeatedStringIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedString_);
bitField1_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated string repeated_string = 44;
* @return This builder for chaining.
*/
public Builder clearRepeatedString() {
repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField1_ = (bitField1_ & ~0x00000100);;
onChanged();
return this;
}
/**
* repeated string repeated_string = 44;
* @param value The bytes of the repeatedString to add.
* @return This builder for chaining.
*/
public Builder addRepeatedStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedStringIsMutable();
repeatedString_.add(value);
bitField1_ |= 0x00000100;
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureRepeatedBytesIsMutable() {
if (!repeatedBytes_.isModifiable()) {
repeatedBytes_ = makeMutableCopy(repeatedBytes_);
}
bitField1_ |= 0x00000200;
}
/**
* repeated bytes repeated_bytes = 45;
* @return A list containing the repeatedBytes.
*/
public java.util.List
getRepeatedBytesList() {
repeatedBytes_.makeImmutable();
return repeatedBytes_;
}
/**
* repeated bytes repeated_bytes = 45;
* @return The count of repeatedBytes.
*/
public int getRepeatedBytesCount() {
return repeatedBytes_.size();
}
/**
* repeated bytes repeated_bytes = 45;
* @param index The index of the element to return.
* @return The repeatedBytes at the given index.
*/
public com.google.protobuf.ByteString getRepeatedBytes(int index) {
return repeatedBytes_.get(index);
}
/**
* repeated bytes repeated_bytes = 45;
* @param index The index to set the value at.
* @param value The repeatedBytes to set.
* @return This builder for chaining.
*/
public Builder setRepeatedBytes(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedBytesIsMutable();
repeatedBytes_.set(index, value);
bitField1_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 45;
* @param value The repeatedBytes to add.
* @return This builder for chaining.
*/
public Builder addRepeatedBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedBytesIsMutable();
repeatedBytes_.add(value);
bitField1_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 45;
* @param values The repeatedBytes to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedBytes(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureRepeatedBytesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedBytes_);
bitField1_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 45;
* @return This builder for chaining.
*/
public Builder clearRepeatedBytes() {
repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class);
bitField1_ = (bitField1_ & ~0x00000200);
onChanged();
return this;
}
private java.util.List repeatedGroup_ =
java.util.Collections.emptyList();
private void ensureRepeatedGroupIsMutable() {
if (!((bitField1_ & 0x00000400) != 0)) {
repeatedGroup_ = new java.util.ArrayList(repeatedGroup_);
bitField1_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder> repeatedGroupBuilder_;
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public java.util.List getRepeatedGroupList() {
if (repeatedGroupBuilder_ == null) {
return java.util.Collections.unmodifiableList(repeatedGroup_);
} else {
return repeatedGroupBuilder_.getMessageList();
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public int getRepeatedGroupCount() {
if (repeatedGroupBuilder_ == null) {
return repeatedGroup_.size();
} else {
return repeatedGroupBuilder_.getCount();
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup getRepeatedGroup(int index) {
if (repeatedGroupBuilder_ == null) {
return repeatedGroup_.get(index);
} else {
return repeatedGroupBuilder_.getMessage(index);
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder setRepeatedGroup(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup value) {
if (repeatedGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedGroupIsMutable();
repeatedGroup_.set(index, value);
onChanged();
} else {
repeatedGroupBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder setRepeatedGroup(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder builderForValue) {
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.set(index, builderForValue.build());
onChanged();
} else {
repeatedGroupBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup value) {
if (repeatedGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(value);
onChanged();
} else {
repeatedGroupBuilder_.addMessage(value);
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup value) {
if (repeatedGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(index, value);
onChanged();
} else {
repeatedGroupBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder builderForValue) {
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(builderForValue.build());
onChanged();
} else {
repeatedGroupBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addRepeatedGroup(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder builderForValue) {
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.add(index, builderForValue.build());
onChanged();
} else {
repeatedGroupBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder addAllRepeatedGroup(
java.lang.Iterable extends com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup> values) {
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedGroup_);
onChanged();
} else {
repeatedGroupBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder clearRepeatedGroup() {
if (repeatedGroupBuilder_ == null) {
repeatedGroup_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000400);
onChanged();
} else {
repeatedGroupBuilder_.clear();
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public Builder removeRepeatedGroup(int index) {
if (repeatedGroupBuilder_ == null) {
ensureRepeatedGroupIsMutable();
repeatedGroup_.remove(index);
onChanged();
} else {
repeatedGroupBuilder_.remove(index);
}
return this;
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder getRepeatedGroupBuilder(
int index) {
return getRepeatedGroupFieldBuilder().getBuilder(index);
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder(
int index) {
if (repeatedGroupBuilder_ == null) {
return repeatedGroup_.get(index); } else {
return repeatedGroupBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public java.util.List extends com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder>
getRepeatedGroupOrBuilderList() {
if (repeatedGroupBuilder_ != null) {
return repeatedGroupBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedGroup_);
}
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder addRepeatedGroupBuilder() {
return getRepeatedGroupFieldBuilder().addBuilder(
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.getDefaultInstance());
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder addRepeatedGroupBuilder(
int index) {
return getRepeatedGroupFieldBuilder().addBuilder(
index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.getDefaultInstance());
}
/**
* repeated group RepeatedGroup = 46 { ... }
*/
public java.util.List
getRepeatedGroupBuilderList() {
return getRepeatedGroupFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder>
getRepeatedGroupFieldBuilder() {
if (repeatedGroupBuilder_ == null) {
repeatedGroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder>(
repeatedGroup_,
((bitField1_ & 0x00000400) != 0),
getParentForChildren(),
isClean());
repeatedGroup_ = null;
}
return repeatedGroupBuilder_;
}
private java.util.List repeatedNestedMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedNestedMessageIsMutable() {
if (!((bitField1_ & 0x00000800) != 0)) {
repeatedNestedMessage_ = new java.util.ArrayList(repeatedNestedMessage_);
bitField1_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> repeatedNestedMessageBuilder_;
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public java.util.List getRepeatedNestedMessageList() {
if (repeatedNestedMessageBuilder_ == null) {
return java.util.Collections.unmodifiableList(repeatedNestedMessage_);
} else {
return repeatedNestedMessageBuilder_.getMessageList();
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public int getRepeatedNestedMessageCount() {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.size();
} else {
return repeatedNestedMessageBuilder_.getCount();
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedNestedMessage(int index) {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.get(index);
} else {
return repeatedNestedMessageBuilder_.getMessage(index);
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder setRepeatedNestedMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.set(index, value);
onChanged();
} else {
repeatedNestedMessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder setRepeatedNestedMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.set(index, builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(value);
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(index, value);
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder addRepeatedNestedMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(index, builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder addAllRepeatedNestedMessage(
java.lang.Iterable extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage> values) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedNestedMessage_);
onChanged();
} else {
repeatedNestedMessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder clearRepeatedNestedMessage() {
if (repeatedNestedMessageBuilder_ == null) {
repeatedNestedMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00000800);
onChanged();
} else {
repeatedNestedMessageBuilder_.clear();
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public Builder removeRepeatedNestedMessage(int index) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.remove(index);
onChanged();
} else {
repeatedNestedMessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getRepeatedNestedMessageBuilder(
int index) {
return getRepeatedNestedMessageFieldBuilder().getBuilder(index);
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder(
int index) {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.get(index); } else {
return repeatedNestedMessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public java.util.List extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList() {
if (repeatedNestedMessageBuilder_ != null) {
return repeatedNestedMessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedNestedMessage_);
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder addRepeatedNestedMessageBuilder() {
return getRepeatedNestedMessageFieldBuilder().addBuilder(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance());
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder addRepeatedNestedMessageBuilder(
int index) {
return getRepeatedNestedMessageFieldBuilder().addBuilder(
index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance());
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
*/
public java.util.List
getRepeatedNestedMessageBuilderList() {
return getRepeatedNestedMessageFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getRepeatedNestedMessageFieldBuilder() {
if (repeatedNestedMessageBuilder_ == null) {
repeatedNestedMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>(
repeatedNestedMessage_,
((bitField1_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
repeatedNestedMessage_ = null;
}
return repeatedNestedMessageBuilder_;
}
private java.util.List repeatedForeignMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedForeignMessageIsMutable() {
if (!((bitField1_ & 0x00001000) != 0)) {
repeatedForeignMessage_ = new java.util.ArrayList(repeatedForeignMessage_);
bitField1_ |= 0x00001000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder> repeatedForeignMessageBuilder_;
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public java.util.List getRepeatedForeignMessageList() {
if (repeatedForeignMessageBuilder_ == null) {
return java.util.Collections.unmodifiableList(repeatedForeignMessage_);
} else {
return repeatedForeignMessageBuilder_.getMessageList();
}
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public int getRepeatedForeignMessageCount() {
if (repeatedForeignMessageBuilder_ == null) {
return repeatedForeignMessage_.size();
} else {
return repeatedForeignMessageBuilder_.getCount();
}
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLite getRepeatedForeignMessage(int index) {
if (repeatedForeignMessageBuilder_ == null) {
return repeatedForeignMessage_.get(index);
} else {
return repeatedForeignMessageBuilder_.getMessage(index);
}
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder setRepeatedForeignMessage(
int index, com.google.protobuf.UnittestLite.ForeignMessageLite value) {
if (repeatedForeignMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.set(index, value);
onChanged();
} else {
repeatedForeignMessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder setRepeatedForeignMessage(
int index, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) {
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.set(index, builderForValue.build());
onChanged();
} else {
repeatedForeignMessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) {
if (repeatedForeignMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(value);
onChanged();
} else {
repeatedForeignMessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(
int index, com.google.protobuf.UnittestLite.ForeignMessageLite value) {
if (repeatedForeignMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(index, value);
onChanged();
} else {
repeatedForeignMessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(
com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) {
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(builderForValue.build());
onChanged();
} else {
repeatedForeignMessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder addRepeatedForeignMessage(
int index, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) {
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.add(index, builderForValue.build());
onChanged();
} else {
repeatedForeignMessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder addAllRepeatedForeignMessage(
java.lang.Iterable extends com.google.protobuf.UnittestLite.ForeignMessageLite> values) {
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedForeignMessage_);
onChanged();
} else {
repeatedForeignMessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder clearRepeatedForeignMessage() {
if (repeatedForeignMessageBuilder_ == null) {
repeatedForeignMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00001000);
onChanged();
} else {
repeatedForeignMessageBuilder_.clear();
}
return this;
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public Builder removeRepeatedForeignMessage(int index) {
if (repeatedForeignMessageBuilder_ == null) {
ensureRepeatedForeignMessageIsMutable();
repeatedForeignMessage_.remove(index);
onChanged();
} else {
repeatedForeignMessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLite.Builder getRepeatedForeignMessageBuilder(
int index) {
return getRepeatedForeignMessageFieldBuilder().getBuilder(index);
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getRepeatedForeignMessageOrBuilder(
int index) {
if (repeatedForeignMessageBuilder_ == null) {
return repeatedForeignMessage_.get(index); } else {
return repeatedForeignMessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public java.util.List extends com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder>
getRepeatedForeignMessageOrBuilderList() {
if (repeatedForeignMessageBuilder_ != null) {
return repeatedForeignMessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedForeignMessage_);
}
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLite.Builder addRepeatedForeignMessageBuilder() {
return getRepeatedForeignMessageFieldBuilder().addBuilder(
com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance());
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public com.google.protobuf.UnittestLite.ForeignMessageLite.Builder addRepeatedForeignMessageBuilder(
int index) {
return getRepeatedForeignMessageFieldBuilder().addBuilder(
index, com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance());
}
/**
* repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49;
*/
public java.util.List
getRepeatedForeignMessageBuilderList() {
return getRepeatedForeignMessageFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder>
getRepeatedForeignMessageFieldBuilder() {
if (repeatedForeignMessageBuilder_ == null) {
repeatedForeignMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder>(
repeatedForeignMessage_,
((bitField1_ & 0x00001000) != 0),
getParentForChildren(),
isClean());
repeatedForeignMessage_ = null;
}
return repeatedForeignMessageBuilder_;
}
private java.util.List repeatedImportMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedImportMessageIsMutable() {
if (!((bitField1_ & 0x00002000) != 0)) {
repeatedImportMessage_ = new java.util.ArrayList(repeatedImportMessage_);
bitField1_ |= 0x00002000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder> repeatedImportMessageBuilder_;
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public java.util.List getRepeatedImportMessageList() {
if (repeatedImportMessageBuilder_ == null) {
return java.util.Collections.unmodifiableList(repeatedImportMessage_);
} else {
return repeatedImportMessageBuilder_.getMessageList();
}
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public int getRepeatedImportMessageCount() {
if (repeatedImportMessageBuilder_ == null) {
return repeatedImportMessage_.size();
} else {
return repeatedImportMessageBuilder_.getCount();
}
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLite getRepeatedImportMessage(int index) {
if (repeatedImportMessageBuilder_ == null) {
return repeatedImportMessage_.get(index);
} else {
return repeatedImportMessageBuilder_.getMessage(index);
}
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder setRepeatedImportMessage(
int index, com.google.protobuf.UnittestImportLite.ImportMessageLite value) {
if (repeatedImportMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.set(index, value);
onChanged();
} else {
repeatedImportMessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder setRepeatedImportMessage(
int index, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) {
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.set(index, builderForValue.build());
onChanged();
} else {
repeatedImportMessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(com.google.protobuf.UnittestImportLite.ImportMessageLite value) {
if (repeatedImportMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(value);
onChanged();
} else {
repeatedImportMessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(
int index, com.google.protobuf.UnittestImportLite.ImportMessageLite value) {
if (repeatedImportMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(index, value);
onChanged();
} else {
repeatedImportMessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder addRepeatedImportMessage(
com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) {
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(builderForValue.build());
onChanged();
} else {
repeatedImportMessageBuilder_.addMessage(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) {
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.add(index, builderForValue.build());
onChanged();
} else {
repeatedImportMessageBuilder_.addMessage(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) {
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedImportMessage_);
onChanged();
} else {
repeatedImportMessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder clearRepeatedImportMessage() {
if (repeatedImportMessageBuilder_ == null) {
repeatedImportMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00002000);
onChanged();
} else {
repeatedImportMessageBuilder_.clear();
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public Builder removeRepeatedImportMessage(int index) {
if (repeatedImportMessageBuilder_ == null) {
ensureRepeatedImportMessageIsMutable();
repeatedImportMessage_.remove(index);
onChanged();
} else {
repeatedImportMessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder getRepeatedImportMessageBuilder(
int index) {
return getRepeatedImportMessageFieldBuilder().getBuilder(index);
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder getRepeatedImportMessageOrBuilder(
int index) {
if (repeatedImportMessageBuilder_ == null) {
return repeatedImportMessage_.get(index); } else {
return repeatedImportMessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public java.util.List extends com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder>
getRepeatedImportMessageOrBuilderList() {
if (repeatedImportMessageBuilder_ != null) {
return repeatedImportMessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedImportMessage_);
}
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder addRepeatedImportMessageBuilder() {
return getRepeatedImportMessageFieldBuilder().addBuilder(
com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance());
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder addRepeatedImportMessageBuilder(
int index) {
return getRepeatedImportMessageFieldBuilder().addBuilder(
index, com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance());
}
/**
* repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
*/
public java.util.List
getRepeatedImportMessageBuilderList() {
return getRepeatedImportMessageFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder>
getRepeatedImportMessageFieldBuilder() {
if (repeatedImportMessageBuilder_ == null) {
repeatedImportMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder>(
repeatedImportMessage_,
((bitField1_ & 0x00002000) != 0),
getParentForChildren(),
isClean());
repeatedImportMessage_ = null;
}
return repeatedImportMessageBuilder_;
}
private java.util.List repeatedNestedEnum_ =
java.util.Collections.emptyList();
private void ensureRepeatedNestedEnumIsMutable() {
if (!((bitField1_ & 0x00004000) != 0)) {
repeatedNestedEnum_ = new java.util.ArrayList(repeatedNestedEnum_);
bitField1_ |= 0x00004000;
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
* @return A list containing the repeatedNestedEnum.
*/
public java.util.List getRepeatedNestedEnumList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum>(repeatedNestedEnum_, repeatedNestedEnum_converter_);
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
* @return The count of repeatedNestedEnum.
*/
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index));
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
* @param index The index to set the value at.
* @param value The repeatedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedNestedEnum(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
* @param value The repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedNestedEnum(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
* @param values The repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedNestedEnum(
java.lang.Iterable extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum> values) {
ensureRepeatedNestedEnumIsMutable();
for (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value : values) {
repeatedNestedEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
* @return This builder for chaining.
*/
public Builder clearRepeatedNestedEnum() {
repeatedNestedEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00004000);
onChanged();
return this;
}
private java.util.List repeatedForeignEnum_ =
java.util.Collections.emptyList();
private void ensureRepeatedForeignEnumIsMutable() {
if (!((bitField1_ & 0x00008000) != 0)) {
repeatedForeignEnum_ = new java.util.ArrayList(repeatedForeignEnum_);
bitField1_ |= 0x00008000;
}
}
/**
* repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52;
* @return A list containing the repeatedForeignEnum.
*/
public java.util.List getRepeatedForeignEnumList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite>(repeatedForeignEnum_, repeatedForeignEnum_converter_);
}
/**
* repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52;
* @return The count of repeatedForeignEnum.
*/
public int getRepeatedForeignEnumCount() {
return repeatedForeignEnum_.size();
}
/**
* repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52;
* @param index The index of the element to return.
* @return The repeatedForeignEnum at the given index.
*/
public com.google.protobuf.UnittestLite.ForeignEnumLite getRepeatedForeignEnum(int index) {
return repeatedForeignEnum_converter_.convert(repeatedForeignEnum_.get(index));
}
/**
* repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52;
* @param index The index to set the value at.
* @param value The repeatedForeignEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedForeignEnum(
int index, com.google.protobuf.UnittestLite.ForeignEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52;
* @param value The repeatedForeignEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedForeignEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedForeignEnumIsMutable();
repeatedForeignEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52;
* @param values The repeatedForeignEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedForeignEnum(
java.lang.Iterable extends com.google.protobuf.UnittestLite.ForeignEnumLite> values) {
ensureRepeatedForeignEnumIsMutable();
for (com.google.protobuf.UnittestLite.ForeignEnumLite value : values) {
repeatedForeignEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52;
* @return This builder for chaining.
*/
public Builder clearRepeatedForeignEnum() {
repeatedForeignEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00008000);
onChanged();
return this;
}
private java.util.List repeatedImportEnum_ =
java.util.Collections.emptyList();
private void ensureRepeatedImportEnumIsMutable() {
if (!((bitField1_ & 0x00010000) != 0)) {
repeatedImportEnum_ = new java.util.ArrayList(repeatedImportEnum_);
bitField1_ |= 0x00010000;
}
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
* @return A list containing the repeatedImportEnum.
*/
public java.util.List getRepeatedImportEnumList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.protobuf.UnittestImportLite.ImportEnumLite>(repeatedImportEnum_, repeatedImportEnum_converter_);
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
* @return The count of repeatedImportEnum.
*/
public int getRepeatedImportEnumCount() {
return repeatedImportEnum_.size();
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
* @param index The index of the element to return.
* @return The repeatedImportEnum at the given index.
*/
public com.google.protobuf.UnittestImportLite.ImportEnumLite getRepeatedImportEnum(int index) {
return repeatedImportEnum_converter_.convert(repeatedImportEnum_.get(index));
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
* @param index The index to set the value at.
* @param value The repeatedImportEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedImportEnum(
int index, com.google.protobuf.UnittestImportLite.ImportEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
* @param value The repeatedImportEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedImportEnum(com.google.protobuf.UnittestImportLite.ImportEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedImportEnumIsMutable();
repeatedImportEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
* @param values The repeatedImportEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedImportEnum(
java.lang.Iterable extends com.google.protobuf.UnittestImportLite.ImportEnumLite> values) {
ensureRepeatedImportEnumIsMutable();
for (com.google.protobuf.UnittestImportLite.ImportEnumLite value : values) {
repeatedImportEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
* @return This builder for chaining.
*/
public Builder clearRepeatedImportEnum() {
repeatedImportEnum_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00010000);
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList repeatedStringPiece_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRepeatedStringPieceIsMutable() {
if (!repeatedStringPiece_.isModifiable()) {
repeatedStringPiece_ = new com.google.protobuf.LazyStringArrayList(repeatedStringPiece_);
}
bitField1_ |= 0x00020000;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
* @return A list containing the repeatedStringPiece.
*/
public com.google.protobuf.ProtocolStringList
getRepeatedStringPieceList() {
repeatedStringPiece_.makeImmutable();
return repeatedStringPiece_;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
* @return The count of repeatedStringPiece.
*/
public int getRepeatedStringPieceCount() {
return repeatedStringPiece_.size();
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
* @param index The index of the element to return.
* @return The repeatedStringPiece at the given index.
*/
public java.lang.String getRepeatedStringPiece(int index) {
return repeatedStringPiece_.get(index);
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
* @param index The index of the value to return.
* @return The bytes of the repeatedStringPiece at the given index.
*/
public com.google.protobuf.ByteString
getRepeatedStringPieceBytes(int index) {
return repeatedStringPiece_.getByteString(index);
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
* @param index The index to set the value at.
* @param value The repeatedStringPiece to set.
* @return This builder for chaining.
*/
public Builder setRepeatedStringPiece(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedStringPieceIsMutable();
repeatedStringPiece_.set(index, value);
bitField1_ |= 0x00020000;
onChanged();
return this;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
* @param value The repeatedStringPiece to add.
* @return This builder for chaining.
*/
public Builder addRepeatedStringPiece(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedStringPieceIsMutable();
repeatedStringPiece_.add(value);
bitField1_ |= 0x00020000;
onChanged();
return this;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
* @param values The repeatedStringPiece to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedStringPiece(
java.lang.Iterable values) {
ensureRepeatedStringPieceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedStringPiece_);
bitField1_ |= 0x00020000;
onChanged();
return this;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
* @return This builder for chaining.
*/
public Builder clearRepeatedStringPiece() {
repeatedStringPiece_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField1_ = (bitField1_ & ~0x00020000);;
onChanged();
return this;
}
/**
* repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
* @param value The bytes of the repeatedStringPiece to add.
* @return This builder for chaining.
*/
public Builder addRepeatedStringPieceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedStringPieceIsMutable();
repeatedStringPiece_.add(value);
bitField1_ |= 0x00020000;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList repeatedCord_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRepeatedCordIsMutable() {
if (!repeatedCord_.isModifiable()) {
repeatedCord_ = new com.google.protobuf.LazyStringArrayList(repeatedCord_);
}
bitField1_ |= 0x00040000;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
* @return A list containing the repeatedCord.
*/
public com.google.protobuf.ProtocolStringList
getRepeatedCordList() {
repeatedCord_.makeImmutable();
return repeatedCord_;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
* @return The count of repeatedCord.
*/
public int getRepeatedCordCount() {
return repeatedCord_.size();
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
* @param index The index of the element to return.
* @return The repeatedCord at the given index.
*/
public java.lang.String getRepeatedCord(int index) {
return repeatedCord_.get(index);
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
* @param index The index of the value to return.
* @return The bytes of the repeatedCord at the given index.
*/
public com.google.protobuf.ByteString
getRepeatedCordBytes(int index) {
return repeatedCord_.getByteString(index);
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
* @param index The index to set the value at.
* @param value The repeatedCord to set.
* @return This builder for chaining.
*/
public Builder setRepeatedCord(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedCordIsMutable();
repeatedCord_.set(index, value);
bitField1_ |= 0x00040000;
onChanged();
return this;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
* @param value The repeatedCord to add.
* @return This builder for chaining.
*/
public Builder addRepeatedCord(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedCordIsMutable();
repeatedCord_.add(value);
bitField1_ |= 0x00040000;
onChanged();
return this;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
* @param values The repeatedCord to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedCord(
java.lang.Iterable values) {
ensureRepeatedCordIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedCord_);
bitField1_ |= 0x00040000;
onChanged();
return this;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
* @return This builder for chaining.
*/
public Builder clearRepeatedCord() {
repeatedCord_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField1_ = (bitField1_ & ~0x00040000);;
onChanged();
return this;
}
/**
* repeated string repeated_cord = 55 [ctype = CORD];
* @param value The bytes of the repeatedCord to add.
* @return This builder for chaining.
*/
public Builder addRepeatedCordBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedCordIsMutable();
repeatedCord_.add(value);
bitField1_ |= 0x00040000;
onChanged();
return this;
}
private java.util.List repeatedLazyMessage_ =
java.util.Collections.emptyList();
private void ensureRepeatedLazyMessageIsMutable() {
if (!((bitField1_ & 0x00080000) != 0)) {
repeatedLazyMessage_ = new java.util.ArrayList(repeatedLazyMessage_);
bitField1_ |= 0x00080000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> repeatedLazyMessageBuilder_;
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List getRepeatedLazyMessageList() {
if (repeatedLazyMessageBuilder_ == null) {
return java.util.Collections.unmodifiableList(repeatedLazyMessage_);
} else {
return repeatedLazyMessageBuilder_.getMessageList();
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public int getRepeatedLazyMessageCount() {
if (repeatedLazyMessageBuilder_ == null) {
return repeatedLazyMessage_.size();
} else {
return repeatedLazyMessageBuilder_.getCount();
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedLazyMessage(int index) {
if (repeatedLazyMessageBuilder_ == null) {
return repeatedLazyMessage_.get(index);
} else {
return repeatedLazyMessageBuilder_.getMessage(index);
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder setRepeatedLazyMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (repeatedLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.set(index, value);
onChanged();
} else {
repeatedLazyMessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder setRepeatedLazyMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.set(index, builderForValue.build());
onChanged();
} else {
repeatedLazyMessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (repeatedLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(value);
onChanged();
} else {
repeatedLazyMessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (repeatedLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(index, value);
onChanged();
} else {
repeatedLazyMessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(builderForValue.build());
onChanged();
} else {
repeatedLazyMessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addRepeatedLazyMessage(
int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.add(index, builderForValue.build());
onChanged();
} else {
repeatedLazyMessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder addAllRepeatedLazyMessage(
java.lang.Iterable extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage> values) {
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedLazyMessage_);
onChanged();
} else {
repeatedLazyMessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder clearRepeatedLazyMessage() {
if (repeatedLazyMessageBuilder_ == null) {
repeatedLazyMessage_ = java.util.Collections.emptyList();
bitField1_ = (bitField1_ & ~0x00080000);
onChanged();
} else {
repeatedLazyMessageBuilder_.clear();
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public Builder removeRepeatedLazyMessage(int index) {
if (repeatedLazyMessageBuilder_ == null) {
ensureRepeatedLazyMessageIsMutable();
repeatedLazyMessage_.remove(index);
onChanged();
} else {
repeatedLazyMessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getRepeatedLazyMessageBuilder(
int index) {
return getRepeatedLazyMessageFieldBuilder().getBuilder(index);
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder(
int index) {
if (repeatedLazyMessageBuilder_ == null) {
return repeatedLazyMessage_.get(index); } else {
return repeatedLazyMessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List extends com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getRepeatedLazyMessageOrBuilderList() {
if (repeatedLazyMessageBuilder_ != null) {
return repeatedLazyMessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedLazyMessage_);
}
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder addRepeatedLazyMessageBuilder() {
return getRepeatedLazyMessageFieldBuilder().addBuilder(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance());
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder addRepeatedLazyMessageBuilder(
int index) {
return getRepeatedLazyMessageFieldBuilder().addBuilder(
index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance());
}
/**
* repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
*/
public java.util.List
getRepeatedLazyMessageBuilderList() {
return getRepeatedLazyMessageFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getRepeatedLazyMessageFieldBuilder() {
if (repeatedLazyMessageBuilder_ == null) {
repeatedLazyMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>(
repeatedLazyMessage_,
((bitField1_ & 0x00080000) != 0),
getParentForChildren(),
isClean());
repeatedLazyMessage_ = null;
}
return repeatedLazyMessageBuilder_;
}
private int defaultInt32_ = 41;
/**
*
* Singular with defaults
*
*
* optional int32 default_int32 = 61 [default = 41];
* @return Whether the defaultInt32 field is set.
*/
@java.lang.Override
public boolean hasDefaultInt32() {
return ((bitField1_ & 0x00100000) != 0);
}
/**
*
* Singular with defaults
*
*
* optional int32 default_int32 = 61 [default = 41];
* @return The defaultInt32.
*/
@java.lang.Override
public int getDefaultInt32() {
return defaultInt32_;
}
/**
*
* Singular with defaults
*
*
* optional int32 default_int32 = 61 [default = 41];
* @param value The defaultInt32 to set.
* @return This builder for chaining.
*/
public Builder setDefaultInt32(int value) {
defaultInt32_ = value;
bitField1_ |= 0x00100000;
onChanged();
return this;
}
/**
*
* Singular with defaults
*
*
* optional int32 default_int32 = 61 [default = 41];
* @return This builder for chaining.
*/
public Builder clearDefaultInt32() {
bitField1_ = (bitField1_ & ~0x00100000);
defaultInt32_ = 41;
onChanged();
return this;
}
private long defaultInt64_ = 42L;
/**
* optional int64 default_int64 = 62 [default = 42];
* @return Whether the defaultInt64 field is set.
*/
@java.lang.Override
public boolean hasDefaultInt64() {
return ((bitField1_ & 0x00200000) != 0);
}
/**
* optional int64 default_int64 = 62 [default = 42];
* @return The defaultInt64.
*/
@java.lang.Override
public long getDefaultInt64() {
return defaultInt64_;
}
/**
* optional int64 default_int64 = 62 [default = 42];
* @param value The defaultInt64 to set.
* @return This builder for chaining.
*/
public Builder setDefaultInt64(long value) {
defaultInt64_ = value;
bitField1_ |= 0x00200000;
onChanged();
return this;
}
/**
* optional int64 default_int64 = 62 [default = 42];
* @return This builder for chaining.
*/
public Builder clearDefaultInt64() {
bitField1_ = (bitField1_ & ~0x00200000);
defaultInt64_ = 42L;
onChanged();
return this;
}
private int defaultUint32_ = 43;
/**
* optional uint32 default_uint32 = 63 [default = 43];
* @return Whether the defaultUint32 field is set.
*/
@java.lang.Override
public boolean hasDefaultUint32() {
return ((bitField1_ & 0x00400000) != 0);
}
/**
* optional uint32 default_uint32 = 63 [default = 43];
* @return The defaultUint32.
*/
@java.lang.Override
public int getDefaultUint32() {
return defaultUint32_;
}
/**
* optional uint32 default_uint32 = 63 [default = 43];
* @param value The defaultUint32 to set.
* @return This builder for chaining.
*/
public Builder setDefaultUint32(int value) {
defaultUint32_ = value;
bitField1_ |= 0x00400000;
onChanged();
return this;
}
/**
* optional uint32 default_uint32 = 63 [default = 43];
* @return This builder for chaining.
*/
public Builder clearDefaultUint32() {
bitField1_ = (bitField1_ & ~0x00400000);
defaultUint32_ = 43;
onChanged();
return this;
}
private long defaultUint64_ = 44L;
/**
* optional uint64 default_uint64 = 64 [default = 44];
* @return Whether the defaultUint64 field is set.
*/
@java.lang.Override
public boolean hasDefaultUint64() {
return ((bitField1_ & 0x00800000) != 0);
}
/**
* optional uint64 default_uint64 = 64 [default = 44];
* @return The defaultUint64.
*/
@java.lang.Override
public long getDefaultUint64() {
return defaultUint64_;
}
/**
* optional uint64 default_uint64 = 64 [default = 44];
* @param value The defaultUint64 to set.
* @return This builder for chaining.
*/
public Builder setDefaultUint64(long value) {
defaultUint64_ = value;
bitField1_ |= 0x00800000;
onChanged();
return this;
}
/**
* optional uint64 default_uint64 = 64 [default = 44];
* @return This builder for chaining.
*/
public Builder clearDefaultUint64() {
bitField1_ = (bitField1_ & ~0x00800000);
defaultUint64_ = 44L;
onChanged();
return this;
}
private int defaultSint32_ = -45;
/**
* optional sint32 default_sint32 = 65 [default = -45];
* @return Whether the defaultSint32 field is set.
*/
@java.lang.Override
public boolean hasDefaultSint32() {
return ((bitField1_ & 0x01000000) != 0);
}
/**
* optional sint32 default_sint32 = 65 [default = -45];
* @return The defaultSint32.
*/
@java.lang.Override
public int getDefaultSint32() {
return defaultSint32_;
}
/**
* optional sint32 default_sint32 = 65 [default = -45];
* @param value The defaultSint32 to set.
* @return This builder for chaining.
*/
public Builder setDefaultSint32(int value) {
defaultSint32_ = value;
bitField1_ |= 0x01000000;
onChanged();
return this;
}
/**
* optional sint32 default_sint32 = 65 [default = -45];
* @return This builder for chaining.
*/
public Builder clearDefaultSint32() {
bitField1_ = (bitField1_ & ~0x01000000);
defaultSint32_ = -45;
onChanged();
return this;
}
private long defaultSint64_ = 46L;
/**
* optional sint64 default_sint64 = 66 [default = 46];
* @return Whether the defaultSint64 field is set.
*/
@java.lang.Override
public boolean hasDefaultSint64() {
return ((bitField1_ & 0x02000000) != 0);
}
/**
* optional sint64 default_sint64 = 66 [default = 46];
* @return The defaultSint64.
*/
@java.lang.Override
public long getDefaultSint64() {
return defaultSint64_;
}
/**
* optional sint64 default_sint64 = 66 [default = 46];
* @param value The defaultSint64 to set.
* @return This builder for chaining.
*/
public Builder setDefaultSint64(long value) {
defaultSint64_ = value;
bitField1_ |= 0x02000000;
onChanged();
return this;
}
/**
* optional sint64 default_sint64 = 66 [default = 46];
* @return This builder for chaining.
*/
public Builder clearDefaultSint64() {
bitField1_ = (bitField1_ & ~0x02000000);
defaultSint64_ = 46L;
onChanged();
return this;
}
private int defaultFixed32_ = 47;
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
* @return Whether the defaultFixed32 field is set.
*/
@java.lang.Override
public boolean hasDefaultFixed32() {
return ((bitField1_ & 0x04000000) != 0);
}
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
* @return The defaultFixed32.
*/
@java.lang.Override
public int getDefaultFixed32() {
return defaultFixed32_;
}
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
* @param value The defaultFixed32 to set.
* @return This builder for chaining.
*/
public Builder setDefaultFixed32(int value) {
defaultFixed32_ = value;
bitField1_ |= 0x04000000;
onChanged();
return this;
}
/**
* optional fixed32 default_fixed32 = 67 [default = 47];
* @return This builder for chaining.
*/
public Builder clearDefaultFixed32() {
bitField1_ = (bitField1_ & ~0x04000000);
defaultFixed32_ = 47;
onChanged();
return this;
}
private long defaultFixed64_ = 48L;
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
* @return Whether the defaultFixed64 field is set.
*/
@java.lang.Override
public boolean hasDefaultFixed64() {
return ((bitField1_ & 0x08000000) != 0);
}
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
* @return The defaultFixed64.
*/
@java.lang.Override
public long getDefaultFixed64() {
return defaultFixed64_;
}
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
* @param value The defaultFixed64 to set.
* @return This builder for chaining.
*/
public Builder setDefaultFixed64(long value) {
defaultFixed64_ = value;
bitField1_ |= 0x08000000;
onChanged();
return this;
}
/**
* optional fixed64 default_fixed64 = 68 [default = 48];
* @return This builder for chaining.
*/
public Builder clearDefaultFixed64() {
bitField1_ = (bitField1_ & ~0x08000000);
defaultFixed64_ = 48L;
onChanged();
return this;
}
private int defaultSfixed32_ = 49;
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
* @return Whether the defaultSfixed32 field is set.
*/
@java.lang.Override
public boolean hasDefaultSfixed32() {
return ((bitField1_ & 0x10000000) != 0);
}
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
* @return The defaultSfixed32.
*/
@java.lang.Override
public int getDefaultSfixed32() {
return defaultSfixed32_;
}
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
* @param value The defaultSfixed32 to set.
* @return This builder for chaining.
*/
public Builder setDefaultSfixed32(int value) {
defaultSfixed32_ = value;
bitField1_ |= 0x10000000;
onChanged();
return this;
}
/**
* optional sfixed32 default_sfixed32 = 69 [default = 49];
* @return This builder for chaining.
*/
public Builder clearDefaultSfixed32() {
bitField1_ = (bitField1_ & ~0x10000000);
defaultSfixed32_ = 49;
onChanged();
return this;
}
private long defaultSfixed64_ = -50L;
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
* @return Whether the defaultSfixed64 field is set.
*/
@java.lang.Override
public boolean hasDefaultSfixed64() {
return ((bitField1_ & 0x20000000) != 0);
}
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
* @return The defaultSfixed64.
*/
@java.lang.Override
public long getDefaultSfixed64() {
return defaultSfixed64_;
}
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
* @param value The defaultSfixed64 to set.
* @return This builder for chaining.
*/
public Builder setDefaultSfixed64(long value) {
defaultSfixed64_ = value;
bitField1_ |= 0x20000000;
onChanged();
return this;
}
/**
* optional sfixed64 default_sfixed64 = 70 [default = -50];
* @return This builder for chaining.
*/
public Builder clearDefaultSfixed64() {
bitField1_ = (bitField1_ & ~0x20000000);
defaultSfixed64_ = -50L;
onChanged();
return this;
}
private float defaultFloat_ = 51.5F;
/**
* optional float default_float = 71 [default = 51.5];
* @return Whether the defaultFloat field is set.
*/
@java.lang.Override
public boolean hasDefaultFloat() {
return ((bitField1_ & 0x40000000) != 0);
}
/**
* optional float default_float = 71 [default = 51.5];
* @return The defaultFloat.
*/
@java.lang.Override
public float getDefaultFloat() {
return defaultFloat_;
}
/**
* optional float default_float = 71 [default = 51.5];
* @param value The defaultFloat to set.
* @return This builder for chaining.
*/
public Builder setDefaultFloat(float value) {
defaultFloat_ = value;
bitField1_ |= 0x40000000;
onChanged();
return this;
}
/**
* optional float default_float = 71 [default = 51.5];
* @return This builder for chaining.
*/
public Builder clearDefaultFloat() {
bitField1_ = (bitField1_ & ~0x40000000);
defaultFloat_ = 51.5F;
onChanged();
return this;
}
private double defaultDouble_ = 52000D;
/**
* optional double default_double = 72 [default = 52000];
* @return Whether the defaultDouble field is set.
*/
@java.lang.Override
public boolean hasDefaultDouble() {
return ((bitField1_ & 0x80000000) != 0);
}
/**
* optional double default_double = 72 [default = 52000];
* @return The defaultDouble.
*/
@java.lang.Override
public double getDefaultDouble() {
return defaultDouble_;
}
/**
* optional double default_double = 72 [default = 52000];
* @param value The defaultDouble to set.
* @return This builder for chaining.
*/
public Builder setDefaultDouble(double value) {
defaultDouble_ = value;
bitField1_ |= 0x80000000;
onChanged();
return this;
}
/**
* optional double default_double = 72 [default = 52000];
* @return This builder for chaining.
*/
public Builder clearDefaultDouble() {
bitField1_ = (bitField1_ & ~0x80000000);
defaultDouble_ = 52000D;
onChanged();
return this;
}
private boolean defaultBool_ = true;
/**
* optional bool default_bool = 73 [default = true];
* @return Whether the defaultBool field is set.
*/
@java.lang.Override
public boolean hasDefaultBool() {
return ((bitField2_ & 0x00000001) != 0);
}
/**
* optional bool default_bool = 73 [default = true];
* @return The defaultBool.
*/
@java.lang.Override
public boolean getDefaultBool() {
return defaultBool_;
}
/**
* optional bool default_bool = 73 [default = true];
* @param value The defaultBool to set.
* @return This builder for chaining.
*/
public Builder setDefaultBool(boolean value) {
defaultBool_ = value;
bitField2_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional bool default_bool = 73 [default = true];
* @return This builder for chaining.
*/
public Builder clearDefaultBool() {
bitField2_ = (bitField2_ & ~0x00000001);
defaultBool_ = true;
onChanged();
return this;
}
private java.lang.Object defaultString_ = "hello";
/**
* optional string default_string = 74 [default = "hello"];
* @return Whether the defaultString field is set.
*/
public boolean hasDefaultString() {
return ((bitField2_ & 0x00000002) != 0);
}
/**
* optional string default_string = 74 [default = "hello"];
* @return The defaultString.
*/
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"];
* @return The bytes for defaultString.
*/
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"];
* @param value The defaultString to set.
* @return This builder for chaining.
*/
public Builder setDefaultString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
defaultString_ = value;
bitField2_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string default_string = 74 [default = "hello"];
* @return This builder for chaining.
*/
public Builder clearDefaultString() {
defaultString_ = getDefaultInstance().getDefaultString();
bitField2_ = (bitField2_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string default_string = 74 [default = "hello"];
* @param value The bytes for defaultString to set.
* @return This builder for chaining.
*/
public Builder setDefaultStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
defaultString_ = value;
bitField2_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.ByteString defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world");
/**
* optional bytes default_bytes = 75 [default = "world"];
* @return Whether the defaultBytes field is set.
*/
@java.lang.Override
public boolean hasDefaultBytes() {
return ((bitField2_ & 0x00000004) != 0);
}
/**
* optional bytes default_bytes = 75 [default = "world"];
* @return The defaultBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDefaultBytes() {
return defaultBytes_;
}
/**
* optional bytes default_bytes = 75 [default = "world"];
* @param value The defaultBytes to set.
* @return This builder for chaining.
*/
public Builder setDefaultBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
defaultBytes_ = value;
bitField2_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional bytes default_bytes = 75 [default = "world"];
* @return This builder for chaining.
*/
public Builder clearDefaultBytes() {
bitField2_ = (bitField2_ & ~0x00000004);
defaultBytes_ = getDefaultInstance().getDefaultBytes();
onChanged();
return this;
}
private int defaultNestedEnum_ = 2;
/**
* optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
* @return Whether the defaultNestedEnum field is set.
*/
@java.lang.Override public boolean hasDefaultNestedEnum() {
return ((bitField2_ & 0x00000008) != 0);
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
* @return The defaultNestedEnum.
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getDefaultNestedEnum() {
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum result = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(defaultNestedEnum_);
return result == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.BAR : result;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
* @param value The defaultNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setDefaultNestedEnum(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000008;
defaultNestedEnum_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
* @return This builder for chaining.
*/
public Builder clearDefaultNestedEnum() {
bitField2_ = (bitField2_ & ~0x00000008);
defaultNestedEnum_ = 2;
onChanged();
return this;
}
private int defaultForeignEnum_ = 5;
/**
* optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
* @return Whether the defaultForeignEnum field is set.
*/
@java.lang.Override public boolean hasDefaultForeignEnum() {
return ((bitField2_ & 0x00000010) != 0);
}
/**
* optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
* @return The defaultForeignEnum.
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.ForeignEnumLite getDefaultForeignEnum() {
com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(defaultForeignEnum_);
return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_BAR : result;
}
/**
* optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
* @param value The defaultForeignEnum to set.
* @return This builder for chaining.
*/
public Builder setDefaultForeignEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000010;
defaultForeignEnum_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
* @return This builder for chaining.
*/
public Builder clearDefaultForeignEnum() {
bitField2_ = (bitField2_ & ~0x00000010);
defaultForeignEnum_ = 5;
onChanged();
return this;
}
private int defaultImportEnum_ = 8;
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
* @return Whether the defaultImportEnum field is set.
*/
@java.lang.Override public boolean hasDefaultImportEnum() {
return ((bitField2_ & 0x00000020) != 0);
}
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
* @return The defaultImportEnum.
*/
@java.lang.Override
public com.google.protobuf.UnittestImportLite.ImportEnumLite getDefaultImportEnum() {
com.google.protobuf.UnittestImportLite.ImportEnumLite result = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(defaultImportEnum_);
return result == null ? com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_BAR : result;
}
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
* @param value The defaultImportEnum to set.
* @return This builder for chaining.
*/
public Builder setDefaultImportEnum(com.google.protobuf.UnittestImportLite.ImportEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
bitField2_ |= 0x00000020;
defaultImportEnum_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
* @return This builder for chaining.
*/
public Builder clearDefaultImportEnum() {
bitField2_ = (bitField2_ & ~0x00000020);
defaultImportEnum_ = 8;
onChanged();
return this;
}
private java.lang.Object defaultStringPiece_ = "abc";
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
* @return Whether the defaultStringPiece field is set.
*/
public boolean hasDefaultStringPiece() {
return ((bitField2_ & 0x00000040) != 0);
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
* @return The defaultStringPiece.
*/
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];
* @return The bytes for defaultStringPiece.
*/
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];
* @param value The defaultStringPiece to set.
* @return This builder for chaining.
*/
public Builder setDefaultStringPiece(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
defaultStringPiece_ = value;
bitField2_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
* @return This builder for chaining.
*/
public Builder clearDefaultStringPiece() {
defaultStringPiece_ = getDefaultInstance().getDefaultStringPiece();
bitField2_ = (bitField2_ & ~0x00000040);
onChanged();
return this;
}
/**
* optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
* @param value The bytes for defaultStringPiece to set.
* @return This builder for chaining.
*/
public Builder setDefaultStringPieceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
defaultStringPiece_ = value;
bitField2_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object defaultCord_ = "123";
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
* @return Whether the defaultCord field is set.
*/
public boolean hasDefaultCord() {
return ((bitField2_ & 0x00000080) != 0);
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
* @return The defaultCord.
*/
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];
* @return The bytes for defaultCord.
*/
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];
* @param value The defaultCord to set.
* @return This builder for chaining.
*/
public Builder setDefaultCord(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
defaultCord_ = value;
bitField2_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
* @return This builder for chaining.
*/
public Builder clearDefaultCord() {
defaultCord_ = getDefaultInstance().getDefaultCord();
bitField2_ = (bitField2_ & ~0x00000080);
onChanged();
return this;
}
/**
* optional string default_cord = 85 [default = "123", ctype = CORD];
* @param value The bytes for defaultCord to set.
* @return This builder for chaining.
*/
public Builder setDefaultCordBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
defaultCord_ = value;
bitField2_ |= 0x00000080;
onChanged();
return this;
}
/**
* uint32 oneof_uint32 = 111;
* @return Whether the oneofUint32 field is set.
*/
public boolean hasOneofUint32() {
return oneofFieldCase_ == 111;
}
/**
* uint32 oneof_uint32 = 111;
* @return The oneofUint32.
*/
public int getOneofUint32() {
if (oneofFieldCase_ == 111) {
return (java.lang.Integer) oneofField_;
}
return 0;
}
/**
* uint32 oneof_uint32 = 111;
* @param value The oneofUint32 to set.
* @return This builder for chaining.
*/
public Builder setOneofUint32(int value) {
oneofFieldCase_ = 111;
oneofField_ = value;
onChanged();
return this;
}
/**
* uint32 oneof_uint32 = 111;
* @return This builder for chaining.
*/
public Builder clearOneofUint32() {
if (oneofFieldCase_ == 111) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> oneofNestedMessageBuilder_;
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
* @return Whether the oneofNestedMessage field is set.
*/
@java.lang.Override
public boolean hasOneofNestedMessage() {
return oneofFieldCase_ == 112;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
* @return The oneofNestedMessage.
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofNestedMessage() {
if (oneofNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 112) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
} else {
if (oneofFieldCase_ == 112) {
return oneofNestedMessageBuilder_.getMessage();
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
}
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public Builder setOneofNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (oneofNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
oneofField_ = value;
onChanged();
} else {
oneofNestedMessageBuilder_.setMessage(value);
}
oneofFieldCase_ = 112;
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public Builder setOneofNestedMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (oneofNestedMessageBuilder_ == null) {
oneofField_ = builderForValue.build();
onChanged();
} else {
oneofNestedMessageBuilder_.setMessage(builderForValue.build());
}
oneofFieldCase_ = 112;
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public Builder mergeOneofNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (oneofNestedMessageBuilder_ == null) {
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;
}
onChanged();
} else {
if (oneofFieldCase_ == 112) {
oneofNestedMessageBuilder_.mergeFrom(value);
} else {
oneofNestedMessageBuilder_.setMessage(value);
}
}
oneofFieldCase_ = 112;
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public Builder clearOneofNestedMessage() {
if (oneofNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 112) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
} else {
if (oneofFieldCase_ == 112) {
oneofFieldCase_ = 0;
oneofField_ = null;
}
oneofNestedMessageBuilder_.clear();
}
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getOneofNestedMessageBuilder() {
return getOneofNestedMessageFieldBuilder().getBuilder();
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOneofNestedMessageOrBuilder() {
if ((oneofFieldCase_ == 112) && (oneofNestedMessageBuilder_ != null)) {
return oneofNestedMessageBuilder_.getMessageOrBuilder();
} else {
if (oneofFieldCase_ == 112) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
}
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getOneofNestedMessageFieldBuilder() {
if (oneofNestedMessageBuilder_ == null) {
if (!(oneofFieldCase_ == 112)) {
oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
}
oneofNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>(
(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_,
getParentForChildren(),
isClean());
oneofField_ = null;
}
oneofFieldCase_ = 112;
onChanged();
return oneofNestedMessageBuilder_;
}
/**
* string oneof_string = 113;
* @return Whether the oneofString field is set.
*/
@java.lang.Override
public boolean hasOneofString() {
return oneofFieldCase_ == 113;
}
/**
* string oneof_string = 113;
* @return The oneofString.
*/
@java.lang.Override
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;
}
}
/**
* string oneof_string = 113;
* @return The bytes for oneofString.
*/
@java.lang.Override
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;
}
}
/**
* string oneof_string = 113;
* @param value The oneofString to set.
* @return This builder for chaining.
*/
public Builder setOneofString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
oneofFieldCase_ = 113;
oneofField_ = value;
onChanged();
return this;
}
/**
* string oneof_string = 113;
* @return This builder for chaining.
*/
public Builder clearOneofString() {
if (oneofFieldCase_ == 113) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
/**
* string oneof_string = 113;
* @param value The bytes for oneofString to set.
* @return This builder for chaining.
*/
public Builder setOneofStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
oneofFieldCase_ = 113;
oneofField_ = value;
onChanged();
return this;
}
/**
* bytes oneof_bytes = 114;
* @return Whether the oneofBytes field is set.
*/
public boolean hasOneofBytes() {
return oneofFieldCase_ == 114;
}
/**
* bytes oneof_bytes = 114;
* @return The oneofBytes.
*/
public com.google.protobuf.ByteString getOneofBytes() {
if (oneofFieldCase_ == 114) {
return (com.google.protobuf.ByteString) oneofField_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes oneof_bytes = 114;
* @param value The oneofBytes to set.
* @return This builder for chaining.
*/
public Builder setOneofBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
oneofFieldCase_ = 114;
oneofField_ = value;
onChanged();
return this;
}
/**
* bytes oneof_bytes = 114;
* @return This builder for chaining.
*/
public Builder clearOneofBytes() {
if (oneofFieldCase_ == 114) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> oneofLazyNestedMessageBuilder_;
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
* @return Whether the oneofLazyNestedMessage field is set.
*/
@java.lang.Override
public boolean hasOneofLazyNestedMessage() {
return oneofFieldCase_ == 115;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
* @return The oneofLazyNestedMessage.
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofLazyNestedMessage() {
if (oneofLazyNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 115) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
} else {
if (oneofFieldCase_ == 115) {
return oneofLazyNestedMessageBuilder_.getMessage();
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
}
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
*/
public Builder setOneofLazyNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (oneofLazyNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
oneofField_ = value;
onChanged();
} else {
oneofLazyNestedMessageBuilder_.setMessage(value);
}
oneofFieldCase_ = 115;
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
*/
public Builder setOneofLazyNestedMessage(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) {
if (oneofLazyNestedMessageBuilder_ == null) {
oneofField_ = builderForValue.build();
onChanged();
} else {
oneofLazyNestedMessageBuilder_.setMessage(builderForValue.build());
}
oneofFieldCase_ = 115;
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
*/
public Builder mergeOneofLazyNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) {
if (oneofLazyNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 115 &&
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;
}
onChanged();
} else {
if (oneofFieldCase_ == 115) {
oneofLazyNestedMessageBuilder_.mergeFrom(value);
} else {
oneofLazyNestedMessageBuilder_.setMessage(value);
}
}
oneofFieldCase_ = 115;
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
*/
public Builder clearOneofLazyNestedMessage() {
if (oneofLazyNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 115) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
} else {
if (oneofFieldCase_ == 115) {
oneofFieldCase_ = 0;
oneofField_ = null;
}
oneofLazyNestedMessageBuilder_.clear();
}
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getOneofLazyNestedMessageBuilder() {
return getOneofLazyNestedMessageFieldBuilder().getBuilder();
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOneofLazyNestedMessageOrBuilder() {
if ((oneofFieldCase_ == 115) && (oneofLazyNestedMessageBuilder_ != null)) {
return oneofLazyNestedMessageBuilder_.getMessageOrBuilder();
} else {
if (oneofFieldCase_ == 115) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
}
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>
getOneofLazyNestedMessageFieldBuilder() {
if (oneofLazyNestedMessageBuilder_ == null) {
if (!(oneofFieldCase_ == 115)) {
oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance();
}
oneofLazyNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>(
(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_,
getParentForChildren(),
isClean());
oneofField_ = null;
}
oneofFieldCase_ = 115;
onChanged();
return oneofLazyNestedMessageBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder> oneofNestedMessage2Builder_;
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
* @return Whether the oneofNestedMessage2 field is set.
*/
@java.lang.Override
public boolean hasOneofNestedMessage2() {
return oneofFieldCase_ == 117;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
* @return The oneofNestedMessage2.
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 getOneofNestedMessage2() {
if (oneofNestedMessage2Builder_ == null) {
if (oneofFieldCase_ == 117) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance();
} else {
if (oneofFieldCase_ == 117) {
return oneofNestedMessage2Builder_.getMessage();
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance();
}
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
*/
public Builder setOneofNestedMessage2(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 value) {
if (oneofNestedMessage2Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
oneofField_ = value;
onChanged();
} else {
oneofNestedMessage2Builder_.setMessage(value);
}
oneofFieldCase_ = 117;
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
*/
public Builder setOneofNestedMessage2(
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder builderForValue) {
if (oneofNestedMessage2Builder_ == null) {
oneofField_ = builderForValue.build();
onChanged();
} else {
oneofNestedMessage2Builder_.setMessage(builderForValue.build());
}
oneofFieldCase_ = 117;
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
*/
public Builder mergeOneofNestedMessage2(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 value) {
if (oneofNestedMessage2Builder_ == null) {
if (oneofFieldCase_ == 117 &&
oneofField_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance()) {
oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.newBuilder((com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_)
.mergeFrom(value).buildPartial();
} else {
oneofField_ = value;
}
onChanged();
} else {
if (oneofFieldCase_ == 117) {
oneofNestedMessage2Builder_.mergeFrom(value);
} else {
oneofNestedMessage2Builder_.setMessage(value);
}
}
oneofFieldCase_ = 117;
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
*/
public Builder clearOneofNestedMessage2() {
if (oneofNestedMessage2Builder_ == null) {
if (oneofFieldCase_ == 117) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
} else {
if (oneofFieldCase_ == 117) {
oneofFieldCase_ = 0;
oneofField_ = null;
}
oneofNestedMessage2Builder_.clear();
}
return this;
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
*/
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder getOneofNestedMessage2Builder() {
return getOneofNestedMessage2FieldBuilder().getBuilder();
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder getOneofNestedMessage2OrBuilder() {
if ((oneofFieldCase_ == 117) && (oneofNestedMessage2Builder_ != null)) {
return oneofNestedMessage2Builder_.getMessageOrBuilder();
} else {
if (oneofFieldCase_ == 117) {
return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_;
}
return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance();
}
}
/**
* .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder>
getOneofNestedMessage2FieldBuilder() {
if (oneofNestedMessage2Builder_ == null) {
if (!(oneofFieldCase_ == 117)) {
oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance();
}
oneofNestedMessage2Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder>(
(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_,
getParentForChildren(),
isClean());
oneofField_ = null;
}
oneofFieldCase_ = 117;
onChanged();
return oneofNestedMessage2Builder_;
}
private int deceptivelyNamedList_ ;
/**
*
* Tests toString for non-repeated fields with a list suffix
*
*
* optional int32 deceptively_named_list = 116;
* @return Whether the deceptivelyNamedList field is set.
*/
@java.lang.Override
public boolean hasDeceptivelyNamedList() {
return ((bitField2_ & 0x00004000) != 0);
}
/**
*
* Tests toString for non-repeated fields with a list suffix
*
*
* optional int32 deceptively_named_list = 116;
* @return The deceptivelyNamedList.
*/
@java.lang.Override
public int getDeceptivelyNamedList() {
return deceptivelyNamedList_;
}
/**
*
* Tests toString for non-repeated fields with a list suffix
*
*
* optional int32 deceptively_named_list = 116;
* @param value The deceptivelyNamedList to set.
* @return This builder for chaining.
*/
public Builder setDeceptivelyNamedList(int value) {
deceptivelyNamedList_ = value;
bitField2_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* Tests toString for non-repeated fields with a list suffix
*
*
* optional int32 deceptively_named_list = 116;
* @return This builder for chaining.
*/
public Builder clearDeceptivelyNamedList() {
bitField2_ = (bitField2_ & ~0x00004000);
deceptivelyNamedList_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unittest.TestAllTypesLite)
}
// @@protoc_insertion_point(class_scope:proto2_unittest.TestAllTypesLite)
private static final com.google.protobuf.UnittestLite.TestAllTypesLite DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestAllTypesLite();
}
public static com.google.protobuf.UnittestLite.TestAllTypesLite getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TestAllTypesLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllTypesLite getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ForeignMessageLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_unittest.ForeignMessageLite)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 c = 1;
* @return Whether the c field is set.
*/
boolean hasC();
/**
* optional int32 c = 1;
* @return The c.
*/
int getC();
}
/**
* Protobuf type {@code proto2_unittest.ForeignMessageLite}
*/
public static final class ForeignMessageLite extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto2_unittest.ForeignMessageLite)
ForeignMessageLiteOrBuilder {
private static final long serialVersionUID = 0L;
// Use ForeignMessageLite.newBuilder() to construct.
private ForeignMessageLite(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ForeignMessageLite() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ForeignMessageLite();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_ForeignMessageLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_ForeignMessageLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.ForeignMessageLite.class, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder.class);
}
private int bitField0_;
public static final int C_FIELD_NUMBER = 1;
private int c_ = 0;
/**
* optional int32 c = 1;
* @return Whether the c field is set.
*/
@java.lang.Override
public boolean hasC() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 c = 1;
* @return The c.
*/
@java.lang.Override
public int getC() {
return c_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, c_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, c_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.UnittestLite.ForeignMessageLite)) {
return super.equals(obj);
}
com.google.protobuf.UnittestLite.ForeignMessageLite other = (com.google.protobuf.UnittestLite.ForeignMessageLite) obj;
if (hasC() != other.hasC()) return false;
if (hasC()) {
if (getC()
!= other.getC()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasC()) {
hash = (37 * hash) + C_FIELD_NUMBER;
hash = (53 * hash) + getC();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.UnittestLite.ForeignMessageLite prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto2_unittest.ForeignMessageLite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto2_unittest.ForeignMessageLite)
com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_ForeignMessageLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_ForeignMessageLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.ForeignMessageLite.class, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder.class);
}
// Construct using com.google.protobuf.UnittestLite.ForeignMessageLite.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
c_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_ForeignMessageLite_descriptor;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.ForeignMessageLite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance();
}
@java.lang.Override
public com.google.protobuf.UnittestLite.ForeignMessageLite build() {
com.google.protobuf.UnittestLite.ForeignMessageLite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.ForeignMessageLite buildPartial() {
com.google.protobuf.UnittestLite.ForeignMessageLite result = new com.google.protobuf.UnittestLite.ForeignMessageLite(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.protobuf.UnittestLite.ForeignMessageLite result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.c_ = c_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.UnittestLite.ForeignMessageLite) {
return mergeFrom((com.google.protobuf.UnittestLite.ForeignMessageLite)other);
} else {
super.mergeFrom(other);
return this;
}
}
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());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
c_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int c_ ;
/**
* optional int32 c = 1;
* @return Whether the c field is set.
*/
@java.lang.Override
public boolean hasC() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 c = 1;
* @return The c.
*/
@java.lang.Override
public int getC() {
return c_;
}
/**
* optional int32 c = 1;
* @param value The c to set.
* @return This builder for chaining.
*/
public Builder setC(int value) {
c_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int32 c = 1;
* @return This builder for chaining.
*/
public Builder clearC() {
bitField0_ = (bitField0_ & ~0x00000001);
c_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unittest.ForeignMessageLite)
}
// @@protoc_insertion_point(class_scope:proto2_unittest.ForeignMessageLite)
private static final com.google.protobuf.UnittestLite.ForeignMessageLite DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.ForeignMessageLite();
}
public static com.google.protobuf.UnittestLite.ForeignMessageLite getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ForeignMessageLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.ForeignMessageLite getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TestPackedTypesLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_unittest.TestPackedTypesLite)
com.google.protobuf.MessageOrBuilder {
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @return A list containing the packedInt32.
*/
java.util.List getPackedInt32List();
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @return The count of packedInt32.
*/
int getPackedInt32Count();
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @param index The index of the element to return.
* @return The packedInt32 at the given index.
*/
int getPackedInt32(int index);
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @return A list containing the packedInt64.
*/
java.util.List getPackedInt64List();
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @return The count of packedInt64.
*/
int getPackedInt64Count();
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @param index The index of the element to return.
* @return The packedInt64 at the given index.
*/
long getPackedInt64(int index);
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @return A list containing the packedUint32.
*/
java.util.List getPackedUint32List();
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @return The count of packedUint32.
*/
int getPackedUint32Count();
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @param index The index of the element to return.
* @return The packedUint32 at the given index.
*/
int getPackedUint32(int index);
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @return A list containing the packedUint64.
*/
java.util.List getPackedUint64List();
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @return The count of packedUint64.
*/
int getPackedUint64Count();
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @param index The index of the element to return.
* @return The packedUint64 at the given index.
*/
long getPackedUint64(int index);
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @return A list containing the packedSint32.
*/
java.util.List getPackedSint32List();
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @return The count of packedSint32.
*/
int getPackedSint32Count();
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @param index The index of the element to return.
* @return The packedSint32 at the given index.
*/
int getPackedSint32(int index);
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @return A list containing the packedSint64.
*/
java.util.List getPackedSint64List();
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @return The count of packedSint64.
*/
int getPackedSint64Count();
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @param index The index of the element to return.
* @return The packedSint64 at the given index.
*/
long getPackedSint64(int index);
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @return A list containing the packedFixed32.
*/
java.util.List getPackedFixed32List();
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @return The count of packedFixed32.
*/
int getPackedFixed32Count();
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @param index The index of the element to return.
* @return The packedFixed32 at the given index.
*/
int getPackedFixed32(int index);
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @return A list containing the packedFixed64.
*/
java.util.List getPackedFixed64List();
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @return The count of packedFixed64.
*/
int getPackedFixed64Count();
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @param index The index of the element to return.
* @return The packedFixed64 at the given index.
*/
long getPackedFixed64(int index);
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @return A list containing the packedSfixed32.
*/
java.util.List getPackedSfixed32List();
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @return The count of packedSfixed32.
*/
int getPackedSfixed32Count();
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @param index The index of the element to return.
* @return The packedSfixed32 at the given index.
*/
int getPackedSfixed32(int index);
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @return A list containing the packedSfixed64.
*/
java.util.List getPackedSfixed64List();
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @return The count of packedSfixed64.
*/
int getPackedSfixed64Count();
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @param index The index of the element to return.
* @return The packedSfixed64 at the given index.
*/
long getPackedSfixed64(int index);
/**
* repeated float packed_float = 100 [packed = true];
* @return A list containing the packedFloat.
*/
java.util.List getPackedFloatList();
/**
* repeated float packed_float = 100 [packed = true];
* @return The count of packedFloat.
*/
int getPackedFloatCount();
/**
* repeated float packed_float = 100 [packed = true];
* @param index The index of the element to return.
* @return The packedFloat at the given index.
*/
float getPackedFloat(int index);
/**
* repeated double packed_double = 101 [packed = true];
* @return A list containing the packedDouble.
*/
java.util.List getPackedDoubleList();
/**
* repeated double packed_double = 101 [packed = true];
* @return The count of packedDouble.
*/
int getPackedDoubleCount();
/**
* repeated double packed_double = 101 [packed = true];
* @param index The index of the element to return.
* @return The packedDouble at the given index.
*/
double getPackedDouble(int index);
/**
* repeated bool packed_bool = 102 [packed = true];
* @return A list containing the packedBool.
*/
java.util.List getPackedBoolList();
/**
* repeated bool packed_bool = 102 [packed = true];
* @return The count of packedBool.
*/
int getPackedBoolCount();
/**
* repeated bool packed_bool = 102 [packed = true];
* @param index The index of the element to return.
* @return The packedBool at the given index.
*/
boolean getPackedBool(int index);
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @return A list containing the packedEnum.
*/
java.util.List getPackedEnumList();
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @return The count of packedEnum.
*/
int getPackedEnumCount();
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @param index The index of the element to return.
* @return The packedEnum at the given index.
*/
com.google.protobuf.UnittestLite.ForeignEnumLite getPackedEnum(int index);
}
/**
* Protobuf type {@code proto2_unittest.TestPackedTypesLite}
*/
public static final class TestPackedTypesLite extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto2_unittest.TestPackedTypesLite)
TestPackedTypesLiteOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestPackedTypesLite.newBuilder() to construct.
private TestPackedTypesLite(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestPackedTypesLite() {
packedInt32_ = emptyIntList();
packedInt64_ = emptyLongList();
packedUint32_ = emptyIntList();
packedUint64_ = emptyLongList();
packedSint32_ = emptyIntList();
packedSint64_ = emptyLongList();
packedFixed32_ = emptyIntList();
packedFixed64_ = emptyLongList();
packedSfixed32_ = emptyIntList();
packedSfixed64_ = emptyLongList();
packedFloat_ = emptyFloatList();
packedDouble_ = emptyDoubleList();
packedBool_ = emptyBooleanList();
packedEnum_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestPackedTypesLite();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedTypesLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedTypesLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestPackedTypesLite.class, com.google.protobuf.UnittestLite.TestPackedTypesLite.Builder.class);
}
public static final int PACKED_INT32_FIELD_NUMBER = 90;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList packedInt32_ =
emptyIntList();
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @return A list containing the packedInt32.
*/
@java.lang.Override
public java.util.List
getPackedInt32List() {
return packedInt32_;
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @return The count of packedInt32.
*/
public int getPackedInt32Count() {
return packedInt32_.size();
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @param index The index of the element to return.
* @return The packedInt32 at the given index.
*/
public int getPackedInt32(int index) {
return packedInt32_.getInt(index);
}
private int packedInt32MemoizedSerializedSize = -1;
public static final int PACKED_INT64_FIELD_NUMBER = 91;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList packedInt64_ =
emptyLongList();
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @return A list containing the packedInt64.
*/
@java.lang.Override
public java.util.List
getPackedInt64List() {
return packedInt64_;
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @return The count of packedInt64.
*/
public int getPackedInt64Count() {
return packedInt64_.size();
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @param index The index of the element to return.
* @return The packedInt64 at the given index.
*/
public long getPackedInt64(int index) {
return packedInt64_.getLong(index);
}
private int packedInt64MemoizedSerializedSize = -1;
public static final int PACKED_UINT32_FIELD_NUMBER = 92;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList packedUint32_ =
emptyIntList();
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @return A list containing the packedUint32.
*/
@java.lang.Override
public java.util.List
getPackedUint32List() {
return packedUint32_;
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @return The count of packedUint32.
*/
public int getPackedUint32Count() {
return packedUint32_.size();
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @param index The index of the element to return.
* @return The packedUint32 at the given index.
*/
public int getPackedUint32(int index) {
return packedUint32_.getInt(index);
}
private int packedUint32MemoizedSerializedSize = -1;
public static final int PACKED_UINT64_FIELD_NUMBER = 93;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList packedUint64_ =
emptyLongList();
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @return A list containing the packedUint64.
*/
@java.lang.Override
public java.util.List
getPackedUint64List() {
return packedUint64_;
}
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @return The count of packedUint64.
*/
public int getPackedUint64Count() {
return packedUint64_.size();
}
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @param index The index of the element to return.
* @return The packedUint64 at the given index.
*/
public long getPackedUint64(int index) {
return packedUint64_.getLong(index);
}
private int packedUint64MemoizedSerializedSize = -1;
public static final int PACKED_SINT32_FIELD_NUMBER = 94;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList packedSint32_ =
emptyIntList();
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @return A list containing the packedSint32.
*/
@java.lang.Override
public java.util.List
getPackedSint32List() {
return packedSint32_;
}
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @return The count of packedSint32.
*/
public int getPackedSint32Count() {
return packedSint32_.size();
}
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @param index The index of the element to return.
* @return The packedSint32 at the given index.
*/
public int getPackedSint32(int index) {
return packedSint32_.getInt(index);
}
private int packedSint32MemoizedSerializedSize = -1;
public static final int PACKED_SINT64_FIELD_NUMBER = 95;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList packedSint64_ =
emptyLongList();
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @return A list containing the packedSint64.
*/
@java.lang.Override
public java.util.List
getPackedSint64List() {
return packedSint64_;
}
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @return The count of packedSint64.
*/
public int getPackedSint64Count() {
return packedSint64_.size();
}
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @param index The index of the element to return.
* @return The packedSint64 at the given index.
*/
public long getPackedSint64(int index) {
return packedSint64_.getLong(index);
}
private int packedSint64MemoizedSerializedSize = -1;
public static final int PACKED_FIXED32_FIELD_NUMBER = 96;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList packedFixed32_ =
emptyIntList();
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @return A list containing the packedFixed32.
*/
@java.lang.Override
public java.util.List
getPackedFixed32List() {
return packedFixed32_;
}
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @return The count of packedFixed32.
*/
public int getPackedFixed32Count() {
return packedFixed32_.size();
}
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @param index The index of the element to return.
* @return The packedFixed32 at the given index.
*/
public int getPackedFixed32(int index) {
return packedFixed32_.getInt(index);
}
private int packedFixed32MemoizedSerializedSize = -1;
public static final int PACKED_FIXED64_FIELD_NUMBER = 97;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList packedFixed64_ =
emptyLongList();
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @return A list containing the packedFixed64.
*/
@java.lang.Override
public java.util.List
getPackedFixed64List() {
return packedFixed64_;
}
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @return The count of packedFixed64.
*/
public int getPackedFixed64Count() {
return packedFixed64_.size();
}
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @param index The index of the element to return.
* @return The packedFixed64 at the given index.
*/
public long getPackedFixed64(int index) {
return packedFixed64_.getLong(index);
}
private int packedFixed64MemoizedSerializedSize = -1;
public static final int PACKED_SFIXED32_FIELD_NUMBER = 98;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList packedSfixed32_ =
emptyIntList();
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @return A list containing the packedSfixed32.
*/
@java.lang.Override
public java.util.List
getPackedSfixed32List() {
return packedSfixed32_;
}
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @return The count of packedSfixed32.
*/
public int getPackedSfixed32Count() {
return packedSfixed32_.size();
}
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @param index The index of the element to return.
* @return The packedSfixed32 at the given index.
*/
public int getPackedSfixed32(int index) {
return packedSfixed32_.getInt(index);
}
private int packedSfixed32MemoizedSerializedSize = -1;
public static final int PACKED_SFIXED64_FIELD_NUMBER = 99;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList packedSfixed64_ =
emptyLongList();
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @return A list containing the packedSfixed64.
*/
@java.lang.Override
public java.util.List
getPackedSfixed64List() {
return packedSfixed64_;
}
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @return The count of packedSfixed64.
*/
public int getPackedSfixed64Count() {
return packedSfixed64_.size();
}
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @param index The index of the element to return.
* @return The packedSfixed64 at the given index.
*/
public long getPackedSfixed64(int index) {
return packedSfixed64_.getLong(index);
}
private int packedSfixed64MemoizedSerializedSize = -1;
public static final int PACKED_FLOAT_FIELD_NUMBER = 100;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.FloatList packedFloat_ =
emptyFloatList();
/**
* repeated float packed_float = 100 [packed = true];
* @return A list containing the packedFloat.
*/
@java.lang.Override
public java.util.List
getPackedFloatList() {
return packedFloat_;
}
/**
* repeated float packed_float = 100 [packed = true];
* @return The count of packedFloat.
*/
public int getPackedFloatCount() {
return packedFloat_.size();
}
/**
* repeated float packed_float = 100 [packed = true];
* @param index The index of the element to return.
* @return The packedFloat at the given index.
*/
public float getPackedFloat(int index) {
return packedFloat_.getFloat(index);
}
private int packedFloatMemoizedSerializedSize = -1;
public static final int PACKED_DOUBLE_FIELD_NUMBER = 101;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.DoubleList packedDouble_ =
emptyDoubleList();
/**
* repeated double packed_double = 101 [packed = true];
* @return A list containing the packedDouble.
*/
@java.lang.Override
public java.util.List
getPackedDoubleList() {
return packedDouble_;
}
/**
* repeated double packed_double = 101 [packed = true];
* @return The count of packedDouble.
*/
public int getPackedDoubleCount() {
return packedDouble_.size();
}
/**
* repeated double packed_double = 101 [packed = true];
* @param index The index of the element to return.
* @return The packedDouble at the given index.
*/
public double getPackedDouble(int index) {
return packedDouble_.getDouble(index);
}
private int packedDoubleMemoizedSerializedSize = -1;
public static final int PACKED_BOOL_FIELD_NUMBER = 102;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.BooleanList packedBool_ =
emptyBooleanList();
/**
* repeated bool packed_bool = 102 [packed = true];
* @return A list containing the packedBool.
*/
@java.lang.Override
public java.util.List
getPackedBoolList() {
return packedBool_;
}
/**
* repeated bool packed_bool = 102 [packed = true];
* @return The count of packedBool.
*/
public int getPackedBoolCount() {
return packedBool_.size();
}
/**
* repeated bool packed_bool = 102 [packed = true];
* @param index The index of the element to return.
* @return The packedBool at the given index.
*/
public boolean getPackedBool(int index) {
return packedBool_.getBoolean(index);
}
private int packedBoolMemoizedSerializedSize = -1;
public static final int PACKED_ENUM_FIELD_NUMBER = 103;
@SuppressWarnings("serial")
private java.util.List packedEnum_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite> packedEnum_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite>() {
public com.google.protobuf.UnittestLite.ForeignEnumLite convert(java.lang.Integer from) {
com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(from);
return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO : result;
}
};
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @return A list containing the packedEnum.
*/
@java.lang.Override
public java.util.List getPackedEnumList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite>(packedEnum_, packedEnum_converter_);
}
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @return The count of packedEnum.
*/
@java.lang.Override
public int getPackedEnumCount() {
return packedEnum_.size();
}
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @param index The index of the element to return.
* @return The packedEnum at the given index.
*/
@java.lang.Override
public com.google.protobuf.UnittestLite.ForeignEnumLite getPackedEnum(int index) {
return packedEnum_converter_.convert(packedEnum_.get(index));
}
private int packedEnumMemoizedSerializedSize;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getPackedInt32List().size() > 0) {
output.writeUInt32NoTag(722);
output.writeUInt32NoTag(packedInt32MemoizedSerializedSize);
}
for (int i = 0; i < packedInt32_.size(); i++) {
output.writeInt32NoTag(packedInt32_.getInt(i));
}
if (getPackedInt64List().size() > 0) {
output.writeUInt32NoTag(730);
output.writeUInt32NoTag(packedInt64MemoizedSerializedSize);
}
for (int i = 0; i < packedInt64_.size(); i++) {
output.writeInt64NoTag(packedInt64_.getLong(i));
}
if (getPackedUint32List().size() > 0) {
output.writeUInt32NoTag(738);
output.writeUInt32NoTag(packedUint32MemoizedSerializedSize);
}
for (int i = 0; i < packedUint32_.size(); i++) {
output.writeUInt32NoTag(packedUint32_.getInt(i));
}
if (getPackedUint64List().size() > 0) {
output.writeUInt32NoTag(746);
output.writeUInt32NoTag(packedUint64MemoizedSerializedSize);
}
for (int i = 0; i < packedUint64_.size(); i++) {
output.writeUInt64NoTag(packedUint64_.getLong(i));
}
if (getPackedSint32List().size() > 0) {
output.writeUInt32NoTag(754);
output.writeUInt32NoTag(packedSint32MemoizedSerializedSize);
}
for (int i = 0; i < packedSint32_.size(); i++) {
output.writeSInt32NoTag(packedSint32_.getInt(i));
}
if (getPackedSint64List().size() > 0) {
output.writeUInt32NoTag(762);
output.writeUInt32NoTag(packedSint64MemoizedSerializedSize);
}
for (int i = 0; i < packedSint64_.size(); i++) {
output.writeSInt64NoTag(packedSint64_.getLong(i));
}
if (getPackedFixed32List().size() > 0) {
output.writeUInt32NoTag(770);
output.writeUInt32NoTag(packedFixed32MemoizedSerializedSize);
}
for (int i = 0; i < packedFixed32_.size(); i++) {
output.writeFixed32NoTag(packedFixed32_.getInt(i));
}
if (getPackedFixed64List().size() > 0) {
output.writeUInt32NoTag(778);
output.writeUInt32NoTag(packedFixed64MemoizedSerializedSize);
}
for (int i = 0; i < packedFixed64_.size(); i++) {
output.writeFixed64NoTag(packedFixed64_.getLong(i));
}
if (getPackedSfixed32List().size() > 0) {
output.writeUInt32NoTag(786);
output.writeUInt32NoTag(packedSfixed32MemoizedSerializedSize);
}
for (int i = 0; i < packedSfixed32_.size(); i++) {
output.writeSFixed32NoTag(packedSfixed32_.getInt(i));
}
if (getPackedSfixed64List().size() > 0) {
output.writeUInt32NoTag(794);
output.writeUInt32NoTag(packedSfixed64MemoizedSerializedSize);
}
for (int i = 0; i < packedSfixed64_.size(); i++) {
output.writeSFixed64NoTag(packedSfixed64_.getLong(i));
}
if (getPackedFloatList().size() > 0) {
output.writeUInt32NoTag(802);
output.writeUInt32NoTag(packedFloatMemoizedSerializedSize);
}
for (int i = 0; i < packedFloat_.size(); i++) {
output.writeFloatNoTag(packedFloat_.getFloat(i));
}
if (getPackedDoubleList().size() > 0) {
output.writeUInt32NoTag(810);
output.writeUInt32NoTag(packedDoubleMemoizedSerializedSize);
}
for (int i = 0; i < packedDouble_.size(); i++) {
output.writeDoubleNoTag(packedDouble_.getDouble(i));
}
if (getPackedBoolList().size() > 0) {
output.writeUInt32NoTag(818);
output.writeUInt32NoTag(packedBoolMemoizedSerializedSize);
}
for (int i = 0; i < packedBool_.size(); i++) {
output.writeBoolNoTag(packedBool_.getBoolean(i));
}
if (getPackedEnumList().size() > 0) {
output.writeUInt32NoTag(826);
output.writeUInt32NoTag(packedEnumMemoizedSerializedSize);
}
for (int i = 0; i < packedEnum_.size(); i++) {
output.writeEnumNoTag(packedEnum_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < packedInt32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(packedInt32_.getInt(i));
}
size += dataSize;
if (!getPackedInt32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedInt32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < packedInt64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(packedInt64_.getLong(i));
}
size += dataSize;
if (!getPackedInt64List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedInt64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < packedUint32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(packedUint32_.getInt(i));
}
size += dataSize;
if (!getPackedUint32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedUint32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < packedUint64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(packedUint64_.getLong(i));
}
size += dataSize;
if (!getPackedUint64List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedUint64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < packedSint32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt32SizeNoTag(packedSint32_.getInt(i));
}
size += dataSize;
if (!getPackedSint32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedSint32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < packedSint64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt64SizeNoTag(packedSint64_.getLong(i));
}
size += dataSize;
if (!getPackedSint64List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedSint64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getPackedFixed32List().size();
size += dataSize;
if (!getPackedFixed32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedFixed32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getPackedFixed64List().size();
size += dataSize;
if (!getPackedFixed64List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedFixed64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getPackedSfixed32List().size();
size += dataSize;
if (!getPackedSfixed32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedSfixed32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getPackedSfixed64List().size();
size += dataSize;
if (!getPackedSfixed64List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedSfixed64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getPackedFloatList().size();
size += dataSize;
if (!getPackedFloatList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedFloatMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getPackedDoubleList().size();
size += dataSize;
if (!getPackedDoubleList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedDoubleMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 1 * getPackedBoolList().size();
size += dataSize;
if (!getPackedBoolList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
packedBoolMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < packedEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(packedEnum_.get(i));
}
size += dataSize;
if (!getPackedEnumList().isEmpty()) { size += 2;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}packedEnumMemoizedSerializedSize = dataSize;
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.UnittestLite.TestPackedTypesLite)) {
return super.equals(obj);
}
com.google.protobuf.UnittestLite.TestPackedTypesLite other = (com.google.protobuf.UnittestLite.TestPackedTypesLite) obj;
if (!getPackedInt32List()
.equals(other.getPackedInt32List())) return false;
if (!getPackedInt64List()
.equals(other.getPackedInt64List())) return false;
if (!getPackedUint32List()
.equals(other.getPackedUint32List())) return false;
if (!getPackedUint64List()
.equals(other.getPackedUint64List())) return false;
if (!getPackedSint32List()
.equals(other.getPackedSint32List())) return false;
if (!getPackedSint64List()
.equals(other.getPackedSint64List())) return false;
if (!getPackedFixed32List()
.equals(other.getPackedFixed32List())) return false;
if (!getPackedFixed64List()
.equals(other.getPackedFixed64List())) return false;
if (!getPackedSfixed32List()
.equals(other.getPackedSfixed32List())) return false;
if (!getPackedSfixed64List()
.equals(other.getPackedSfixed64List())) return false;
if (!getPackedFloatList()
.equals(other.getPackedFloatList())) return false;
if (!getPackedDoubleList()
.equals(other.getPackedDoubleList())) return false;
if (!getPackedBoolList()
.equals(other.getPackedBoolList())) return false;
if (!packedEnum_.equals(other.packedEnum_)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getPackedInt32Count() > 0) {
hash = (37 * hash) + PACKED_INT32_FIELD_NUMBER;
hash = (53 * hash) + getPackedInt32List().hashCode();
}
if (getPackedInt64Count() > 0) {
hash = (37 * hash) + PACKED_INT64_FIELD_NUMBER;
hash = (53 * hash) + getPackedInt64List().hashCode();
}
if (getPackedUint32Count() > 0) {
hash = (37 * hash) + PACKED_UINT32_FIELD_NUMBER;
hash = (53 * hash) + getPackedUint32List().hashCode();
}
if (getPackedUint64Count() > 0) {
hash = (37 * hash) + PACKED_UINT64_FIELD_NUMBER;
hash = (53 * hash) + getPackedUint64List().hashCode();
}
if (getPackedSint32Count() > 0) {
hash = (37 * hash) + PACKED_SINT32_FIELD_NUMBER;
hash = (53 * hash) + getPackedSint32List().hashCode();
}
if (getPackedSint64Count() > 0) {
hash = (37 * hash) + PACKED_SINT64_FIELD_NUMBER;
hash = (53 * hash) + getPackedSint64List().hashCode();
}
if (getPackedFixed32Count() > 0) {
hash = (37 * hash) + PACKED_FIXED32_FIELD_NUMBER;
hash = (53 * hash) + getPackedFixed32List().hashCode();
}
if (getPackedFixed64Count() > 0) {
hash = (37 * hash) + PACKED_FIXED64_FIELD_NUMBER;
hash = (53 * hash) + getPackedFixed64List().hashCode();
}
if (getPackedSfixed32Count() > 0) {
hash = (37 * hash) + PACKED_SFIXED32_FIELD_NUMBER;
hash = (53 * hash) + getPackedSfixed32List().hashCode();
}
if (getPackedSfixed64Count() > 0) {
hash = (37 * hash) + PACKED_SFIXED64_FIELD_NUMBER;
hash = (53 * hash) + getPackedSfixed64List().hashCode();
}
if (getPackedFloatCount() > 0) {
hash = (37 * hash) + PACKED_FLOAT_FIELD_NUMBER;
hash = (53 * hash) + getPackedFloatList().hashCode();
}
if (getPackedDoubleCount() > 0) {
hash = (37 * hash) + PACKED_DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + getPackedDoubleList().hashCode();
}
if (getPackedBoolCount() > 0) {
hash = (37 * hash) + PACKED_BOOL_FIELD_NUMBER;
hash = (53 * hash) + getPackedBoolList().hashCode();
}
if (getPackedEnumCount() > 0) {
hash = (37 * hash) + PACKED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + packedEnum_.hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite 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.TestPackedTypesLite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.UnittestLite.TestPackedTypesLite prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto2_unittest.TestPackedTypesLite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto2_unittest.TestPackedTypesLite)
com.google.protobuf.UnittestLite.TestPackedTypesLiteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedTypesLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedTypesLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestPackedTypesLite.class, com.google.protobuf.UnittestLite.TestPackedTypesLite.Builder.class);
}
// Construct using com.google.protobuf.UnittestLite.TestPackedTypesLite.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
packedInt32_ = emptyIntList();
packedInt64_ = emptyLongList();
packedUint32_ = emptyIntList();
packedUint64_ = emptyLongList();
packedSint32_ = emptyIntList();
packedSint64_ = emptyLongList();
packedFixed32_ = emptyIntList();
packedFixed64_ = emptyLongList();
packedSfixed32_ = emptyIntList();
packedSfixed64_ = emptyLongList();
packedFloat_ = emptyFloatList();
packedDouble_ = emptyDoubleList();
packedBool_ = emptyBooleanList();
packedEnum_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedTypesLite_descriptor;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestPackedTypesLite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.TestPackedTypesLite.getDefaultInstance();
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestPackedTypesLite build() {
com.google.protobuf.UnittestLite.TestPackedTypesLite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestPackedTypesLite buildPartial() {
com.google.protobuf.UnittestLite.TestPackedTypesLite result = new com.google.protobuf.UnittestLite.TestPackedTypesLite(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.protobuf.UnittestLite.TestPackedTypesLite result) {
if (((bitField0_ & 0x00002000) != 0)) {
packedEnum_ = java.util.Collections.unmodifiableList(packedEnum_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.packedEnum_ = packedEnum_;
}
private void buildPartial0(com.google.protobuf.UnittestLite.TestPackedTypesLite result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
packedInt32_.makeImmutable();
result.packedInt32_ = packedInt32_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
packedInt64_.makeImmutable();
result.packedInt64_ = packedInt64_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
packedUint32_.makeImmutable();
result.packedUint32_ = packedUint32_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
packedUint64_.makeImmutable();
result.packedUint64_ = packedUint64_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
packedSint32_.makeImmutable();
result.packedSint32_ = packedSint32_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
packedSint64_.makeImmutable();
result.packedSint64_ = packedSint64_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
packedFixed32_.makeImmutable();
result.packedFixed32_ = packedFixed32_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
packedFixed64_.makeImmutable();
result.packedFixed64_ = packedFixed64_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
packedSfixed32_.makeImmutable();
result.packedSfixed32_ = packedSfixed32_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
packedSfixed64_.makeImmutable();
result.packedSfixed64_ = packedSfixed64_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
packedFloat_.makeImmutable();
result.packedFloat_ = packedFloat_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
packedDouble_.makeImmutable();
result.packedDouble_ = packedDouble_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
packedBool_.makeImmutable();
result.packedBool_ = packedBool_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.UnittestLite.TestPackedTypesLite) {
return mergeFrom((com.google.protobuf.UnittestLite.TestPackedTypesLite)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.TestPackedTypesLite other) {
if (other == com.google.protobuf.UnittestLite.TestPackedTypesLite.getDefaultInstance()) return this;
if (!other.packedInt32_.isEmpty()) {
if (packedInt32_.isEmpty()) {
packedInt32_ = other.packedInt32_;
packedInt32_.makeImmutable();
bitField0_ |= 0x00000001;
} else {
ensurePackedInt32IsMutable();
packedInt32_.addAll(other.packedInt32_);
}
onChanged();
}
if (!other.packedInt64_.isEmpty()) {
if (packedInt64_.isEmpty()) {
packedInt64_ = other.packedInt64_;
packedInt64_.makeImmutable();
bitField0_ |= 0x00000002;
} else {
ensurePackedInt64IsMutable();
packedInt64_.addAll(other.packedInt64_);
}
onChanged();
}
if (!other.packedUint32_.isEmpty()) {
if (packedUint32_.isEmpty()) {
packedUint32_ = other.packedUint32_;
packedUint32_.makeImmutable();
bitField0_ |= 0x00000004;
} else {
ensurePackedUint32IsMutable();
packedUint32_.addAll(other.packedUint32_);
}
onChanged();
}
if (!other.packedUint64_.isEmpty()) {
if (packedUint64_.isEmpty()) {
packedUint64_ = other.packedUint64_;
packedUint64_.makeImmutable();
bitField0_ |= 0x00000008;
} else {
ensurePackedUint64IsMutable();
packedUint64_.addAll(other.packedUint64_);
}
onChanged();
}
if (!other.packedSint32_.isEmpty()) {
if (packedSint32_.isEmpty()) {
packedSint32_ = other.packedSint32_;
packedSint32_.makeImmutable();
bitField0_ |= 0x00000010;
} else {
ensurePackedSint32IsMutable();
packedSint32_.addAll(other.packedSint32_);
}
onChanged();
}
if (!other.packedSint64_.isEmpty()) {
if (packedSint64_.isEmpty()) {
packedSint64_ = other.packedSint64_;
packedSint64_.makeImmutable();
bitField0_ |= 0x00000020;
} else {
ensurePackedSint64IsMutable();
packedSint64_.addAll(other.packedSint64_);
}
onChanged();
}
if (!other.packedFixed32_.isEmpty()) {
if (packedFixed32_.isEmpty()) {
packedFixed32_ = other.packedFixed32_;
packedFixed32_.makeImmutable();
bitField0_ |= 0x00000040;
} else {
ensurePackedFixed32IsMutable();
packedFixed32_.addAll(other.packedFixed32_);
}
onChanged();
}
if (!other.packedFixed64_.isEmpty()) {
if (packedFixed64_.isEmpty()) {
packedFixed64_ = other.packedFixed64_;
packedFixed64_.makeImmutable();
bitField0_ |= 0x00000080;
} else {
ensurePackedFixed64IsMutable();
packedFixed64_.addAll(other.packedFixed64_);
}
onChanged();
}
if (!other.packedSfixed32_.isEmpty()) {
if (packedSfixed32_.isEmpty()) {
packedSfixed32_ = other.packedSfixed32_;
packedSfixed32_.makeImmutable();
bitField0_ |= 0x00000100;
} else {
ensurePackedSfixed32IsMutable();
packedSfixed32_.addAll(other.packedSfixed32_);
}
onChanged();
}
if (!other.packedSfixed64_.isEmpty()) {
if (packedSfixed64_.isEmpty()) {
packedSfixed64_ = other.packedSfixed64_;
packedSfixed64_.makeImmutable();
bitField0_ |= 0x00000200;
} else {
ensurePackedSfixed64IsMutable();
packedSfixed64_.addAll(other.packedSfixed64_);
}
onChanged();
}
if (!other.packedFloat_.isEmpty()) {
if (packedFloat_.isEmpty()) {
packedFloat_ = other.packedFloat_;
packedFloat_.makeImmutable();
bitField0_ |= 0x00000400;
} else {
ensurePackedFloatIsMutable();
packedFloat_.addAll(other.packedFloat_);
}
onChanged();
}
if (!other.packedDouble_.isEmpty()) {
if (packedDouble_.isEmpty()) {
packedDouble_ = other.packedDouble_;
packedDouble_.makeImmutable();
bitField0_ |= 0x00000800;
} else {
ensurePackedDoubleIsMutable();
packedDouble_.addAll(other.packedDouble_);
}
onChanged();
}
if (!other.packedBool_.isEmpty()) {
if (packedBool_.isEmpty()) {
packedBool_ = other.packedBool_;
packedBool_.makeImmutable();
bitField0_ |= 0x00001000;
} else {
ensurePackedBoolIsMutable();
packedBool_.addAll(other.packedBool_);
}
onChanged();
}
if (!other.packedEnum_.isEmpty()) {
if (packedEnum_.isEmpty()) {
packedEnum_ = other.packedEnum_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensurePackedEnumIsMutable();
packedEnum_.addAll(other.packedEnum_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 720: {
int v = input.readInt32();
ensurePackedInt32IsMutable();
packedInt32_.addInt(v);
break;
} // case 720
case 722: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensurePackedInt32IsMutable();
while (input.getBytesUntilLimit() > 0) {
packedInt32_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
} // case 722
case 728: {
long v = input.readInt64();
ensurePackedInt64IsMutable();
packedInt64_.addLong(v);
break;
} // case 728
case 730: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensurePackedInt64IsMutable();
while (input.getBytesUntilLimit() > 0) {
packedInt64_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 730
case 736: {
int v = input.readUInt32();
ensurePackedUint32IsMutable();
packedUint32_.addInt(v);
break;
} // case 736
case 738: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensurePackedUint32IsMutable();
while (input.getBytesUntilLimit() > 0) {
packedUint32_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
} // case 738
case 744: {
long v = input.readUInt64();
ensurePackedUint64IsMutable();
packedUint64_.addLong(v);
break;
} // case 744
case 746: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensurePackedUint64IsMutable();
while (input.getBytesUntilLimit() > 0) {
packedUint64_.addLong(input.readUInt64());
}
input.popLimit(limit);
break;
} // case 746
case 752: {
int v = input.readSInt32();
ensurePackedSint32IsMutable();
packedSint32_.addInt(v);
break;
} // case 752
case 754: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensurePackedSint32IsMutable();
while (input.getBytesUntilLimit() > 0) {
packedSint32_.addInt(input.readSInt32());
}
input.popLimit(limit);
break;
} // case 754
case 760: {
long v = input.readSInt64();
ensurePackedSint64IsMutable();
packedSint64_.addLong(v);
break;
} // case 760
case 762: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensurePackedSint64IsMutable();
while (input.getBytesUntilLimit() > 0) {
packedSint64_.addLong(input.readSInt64());
}
input.popLimit(limit);
break;
} // case 762
case 773: {
int v = input.readFixed32();
ensurePackedFixed32IsMutable();
packedFixed32_.addInt(v);
break;
} // case 773
case 770: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensurePackedFixed32IsMutable(alloc / 4);
while (input.getBytesUntilLimit() > 0) {
packedFixed32_.addInt(input.readFixed32());
}
input.popLimit(limit);
break;
} // case 770
case 777: {
long v = input.readFixed64();
ensurePackedFixed64IsMutable();
packedFixed64_.addLong(v);
break;
} // case 777
case 778: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensurePackedFixed64IsMutable(alloc / 8);
while (input.getBytesUntilLimit() > 0) {
packedFixed64_.addLong(input.readFixed64());
}
input.popLimit(limit);
break;
} // case 778
case 789: {
int v = input.readSFixed32();
ensurePackedSfixed32IsMutable();
packedSfixed32_.addInt(v);
break;
} // case 789
case 786: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensurePackedSfixed32IsMutable(alloc / 4);
while (input.getBytesUntilLimit() > 0) {
packedSfixed32_.addInt(input.readSFixed32());
}
input.popLimit(limit);
break;
} // case 786
case 793: {
long v = input.readSFixed64();
ensurePackedSfixed64IsMutable();
packedSfixed64_.addLong(v);
break;
} // case 793
case 794: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensurePackedSfixed64IsMutable(alloc / 8);
while (input.getBytesUntilLimit() > 0) {
packedSfixed64_.addLong(input.readSFixed64());
}
input.popLimit(limit);
break;
} // case 794
case 805: {
float v = input.readFloat();
ensurePackedFloatIsMutable();
packedFloat_.addFloat(v);
break;
} // case 805
case 802: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensurePackedFloatIsMutable(alloc / 4);
while (input.getBytesUntilLimit() > 0) {
packedFloat_.addFloat(input.readFloat());
}
input.popLimit(limit);
break;
} // case 802
case 809: {
double v = input.readDouble();
ensurePackedDoubleIsMutable();
packedDouble_.addDouble(v);
break;
} // case 809
case 810: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensurePackedDoubleIsMutable(alloc / 8);
while (input.getBytesUntilLimit() > 0) {
packedDouble_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
} // case 810
case 816: {
boolean v = input.readBool();
ensurePackedBoolIsMutable();
packedBool_.addBoolean(v);
break;
} // case 816
case 818: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensurePackedBoolIsMutable(alloc / 1);
while (input.getBytesUntilLimit() > 0) {
packedBool_.addBoolean(input.readBool());
}
input.popLimit(limit);
break;
} // case 818
case 824: {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue =
com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(103, tmpRaw);
} else {
ensurePackedEnumIsMutable();
packedEnum_.add(tmpRaw);
}
break;
} // case 824
case 826: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue =
com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(103, tmpRaw);
} else {
ensurePackedEnumIsMutable();
packedEnum_.add(tmpRaw);
}
}
input.popLimit(oldLimit);
break;
} // case 826
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.IntList packedInt32_ = emptyIntList();
private void ensurePackedInt32IsMutable() {
if (!packedInt32_.isModifiable()) {
packedInt32_ = makeMutableCopy(packedInt32_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @return A list containing the packedInt32.
*/
public java.util.List
getPackedInt32List() {
packedInt32_.makeImmutable();
return packedInt32_;
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @return The count of packedInt32.
*/
public int getPackedInt32Count() {
return packedInt32_.size();
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @param index The index of the element to return.
* @return The packedInt32 at the given index.
*/
public int getPackedInt32(int index) {
return packedInt32_.getInt(index);
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @param index The index to set the value at.
* @param value The packedInt32 to set.
* @return This builder for chaining.
*/
public Builder setPackedInt32(
int index, int value) {
ensurePackedInt32IsMutable();
packedInt32_.setInt(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @param value The packedInt32 to add.
* @return This builder for chaining.
*/
public Builder addPackedInt32(int value) {
ensurePackedInt32IsMutable();
packedInt32_.addInt(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @param values The packedInt32 to add.
* @return This builder for chaining.
*/
public Builder addAllPackedInt32(
java.lang.Iterable extends java.lang.Integer> values) {
ensurePackedInt32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedInt32_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 packed_int32 = 90 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedInt32() {
packedInt32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList packedInt64_ = emptyLongList();
private void ensurePackedInt64IsMutable() {
if (!packedInt64_.isModifiable()) {
packedInt64_ = makeMutableCopy(packedInt64_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @return A list containing the packedInt64.
*/
public java.util.List
getPackedInt64List() {
packedInt64_.makeImmutable();
return packedInt64_;
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @return The count of packedInt64.
*/
public int getPackedInt64Count() {
return packedInt64_.size();
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @param index The index of the element to return.
* @return The packedInt64 at the given index.
*/
public long getPackedInt64(int index) {
return packedInt64_.getLong(index);
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @param index The index to set the value at.
* @param value The packedInt64 to set.
* @return This builder for chaining.
*/
public Builder setPackedInt64(
int index, long value) {
ensurePackedInt64IsMutable();
packedInt64_.setLong(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @param value The packedInt64 to add.
* @return This builder for chaining.
*/
public Builder addPackedInt64(long value) {
ensurePackedInt64IsMutable();
packedInt64_.addLong(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @param values The packedInt64 to add.
* @return This builder for chaining.
*/
public Builder addAllPackedInt64(
java.lang.Iterable extends java.lang.Long> values) {
ensurePackedInt64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedInt64_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated int64 packed_int64 = 91 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedInt64() {
packedInt64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList packedUint32_ = emptyIntList();
private void ensurePackedUint32IsMutable() {
if (!packedUint32_.isModifiable()) {
packedUint32_ = makeMutableCopy(packedUint32_);
}
bitField0_ |= 0x00000004;
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @return A list containing the packedUint32.
*/
public java.util.List
getPackedUint32List() {
packedUint32_.makeImmutable();
return packedUint32_;
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @return The count of packedUint32.
*/
public int getPackedUint32Count() {
return packedUint32_.size();
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @param index The index of the element to return.
* @return The packedUint32 at the given index.
*/
public int getPackedUint32(int index) {
return packedUint32_.getInt(index);
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @param index The index to set the value at.
* @param value The packedUint32 to set.
* @return This builder for chaining.
*/
public Builder setPackedUint32(
int index, int value) {
ensurePackedUint32IsMutable();
packedUint32_.setInt(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @param value The packedUint32 to add.
* @return This builder for chaining.
*/
public Builder addPackedUint32(int value) {
ensurePackedUint32IsMutable();
packedUint32_.addInt(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @param values The packedUint32 to add.
* @return This builder for chaining.
*/
public Builder addAllPackedUint32(
java.lang.Iterable extends java.lang.Integer> values) {
ensurePackedUint32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedUint32_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated uint32 packed_uint32 = 92 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedUint32() {
packedUint32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList packedUint64_ = emptyLongList();
private void ensurePackedUint64IsMutable() {
if (!packedUint64_.isModifiable()) {
packedUint64_ = makeMutableCopy(packedUint64_);
}
bitField0_ |= 0x00000008;
}
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @return A list containing the packedUint64.
*/
public java.util.List
getPackedUint64List() {
packedUint64_.makeImmutable();
return packedUint64_;
}
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @return The count of packedUint64.
*/
public int getPackedUint64Count() {
return packedUint64_.size();
}
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @param index The index of the element to return.
* @return The packedUint64 at the given index.
*/
public long getPackedUint64(int index) {
return packedUint64_.getLong(index);
}
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @param index The index to set the value at.
* @param value The packedUint64 to set.
* @return This builder for chaining.
*/
public Builder setPackedUint64(
int index, long value) {
ensurePackedUint64IsMutable();
packedUint64_.setLong(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @param value The packedUint64 to add.
* @return This builder for chaining.
*/
public Builder addPackedUint64(long value) {
ensurePackedUint64IsMutable();
packedUint64_.addLong(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @param values The packedUint64 to add.
* @return This builder for chaining.
*/
public Builder addAllPackedUint64(
java.lang.Iterable extends java.lang.Long> values) {
ensurePackedUint64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedUint64_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated uint64 packed_uint64 = 93 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedUint64() {
packedUint64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList packedSint32_ = emptyIntList();
private void ensurePackedSint32IsMutable() {
if (!packedSint32_.isModifiable()) {
packedSint32_ = makeMutableCopy(packedSint32_);
}
bitField0_ |= 0x00000010;
}
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @return A list containing the packedSint32.
*/
public java.util.List
getPackedSint32List() {
packedSint32_.makeImmutable();
return packedSint32_;
}
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @return The count of packedSint32.
*/
public int getPackedSint32Count() {
return packedSint32_.size();
}
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @param index The index of the element to return.
* @return The packedSint32 at the given index.
*/
public int getPackedSint32(int index) {
return packedSint32_.getInt(index);
}
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @param index The index to set the value at.
* @param value The packedSint32 to set.
* @return This builder for chaining.
*/
public Builder setPackedSint32(
int index, int value) {
ensurePackedSint32IsMutable();
packedSint32_.setInt(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @param value The packedSint32 to add.
* @return This builder for chaining.
*/
public Builder addPackedSint32(int value) {
ensurePackedSint32IsMutable();
packedSint32_.addInt(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @param values The packedSint32 to add.
* @return This builder for chaining.
*/
public Builder addAllPackedSint32(
java.lang.Iterable extends java.lang.Integer> values) {
ensurePackedSint32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedSint32_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sint32 packed_sint32 = 94 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedSint32() {
packedSint32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList packedSint64_ = emptyLongList();
private void ensurePackedSint64IsMutable() {
if (!packedSint64_.isModifiable()) {
packedSint64_ = makeMutableCopy(packedSint64_);
}
bitField0_ |= 0x00000020;
}
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @return A list containing the packedSint64.
*/
public java.util.List
getPackedSint64List() {
packedSint64_.makeImmutable();
return packedSint64_;
}
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @return The count of packedSint64.
*/
public int getPackedSint64Count() {
return packedSint64_.size();
}
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @param index The index of the element to return.
* @return The packedSint64 at the given index.
*/
public long getPackedSint64(int index) {
return packedSint64_.getLong(index);
}
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @param index The index to set the value at.
* @param value The packedSint64 to set.
* @return This builder for chaining.
*/
public Builder setPackedSint64(
int index, long value) {
ensurePackedSint64IsMutable();
packedSint64_.setLong(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @param value The packedSint64 to add.
* @return This builder for chaining.
*/
public Builder addPackedSint64(long value) {
ensurePackedSint64IsMutable();
packedSint64_.addLong(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @param values The packedSint64 to add.
* @return This builder for chaining.
*/
public Builder addAllPackedSint64(
java.lang.Iterable extends java.lang.Long> values) {
ensurePackedSint64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedSint64_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated sint64 packed_sint64 = 95 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedSint64() {
packedSint64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList packedFixed32_ = emptyIntList();
private void ensurePackedFixed32IsMutable() {
if (!packedFixed32_.isModifiable()) {
packedFixed32_ = makeMutableCopy(packedFixed32_);
}
bitField0_ |= 0x00000040;
}
private void ensurePackedFixed32IsMutable(int capacity) {
if (!packedFixed32_.isModifiable()) {
packedFixed32_ = makeMutableCopy(packedFixed32_, capacity);
}
bitField0_ |= 0x00000040;
}
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @return A list containing the packedFixed32.
*/
public java.util.List
getPackedFixed32List() {
packedFixed32_.makeImmutable();
return packedFixed32_;
}
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @return The count of packedFixed32.
*/
public int getPackedFixed32Count() {
return packedFixed32_.size();
}
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @param index The index of the element to return.
* @return The packedFixed32 at the given index.
*/
public int getPackedFixed32(int index) {
return packedFixed32_.getInt(index);
}
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @param index The index to set the value at.
* @param value The packedFixed32 to set.
* @return This builder for chaining.
*/
public Builder setPackedFixed32(
int index, int value) {
ensurePackedFixed32IsMutable();
packedFixed32_.setInt(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @param value The packedFixed32 to add.
* @return This builder for chaining.
*/
public Builder addPackedFixed32(int value) {
ensurePackedFixed32IsMutable();
packedFixed32_.addInt(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @param values The packedFixed32 to add.
* @return This builder for chaining.
*/
public Builder addAllPackedFixed32(
java.lang.Iterable extends java.lang.Integer> values) {
ensurePackedFixed32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedFixed32_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated fixed32 packed_fixed32 = 96 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedFixed32() {
packedFixed32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList packedFixed64_ = emptyLongList();
private void ensurePackedFixed64IsMutable() {
if (!packedFixed64_.isModifiable()) {
packedFixed64_ = makeMutableCopy(packedFixed64_);
}
bitField0_ |= 0x00000080;
}
private void ensurePackedFixed64IsMutable(int capacity) {
if (!packedFixed64_.isModifiable()) {
packedFixed64_ = makeMutableCopy(packedFixed64_, capacity);
}
bitField0_ |= 0x00000080;
}
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @return A list containing the packedFixed64.
*/
public java.util.List
getPackedFixed64List() {
packedFixed64_.makeImmutable();
return packedFixed64_;
}
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @return The count of packedFixed64.
*/
public int getPackedFixed64Count() {
return packedFixed64_.size();
}
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @param index The index of the element to return.
* @return The packedFixed64 at the given index.
*/
public long getPackedFixed64(int index) {
return packedFixed64_.getLong(index);
}
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @param index The index to set the value at.
* @param value The packedFixed64 to set.
* @return This builder for chaining.
*/
public Builder setPackedFixed64(
int index, long value) {
ensurePackedFixed64IsMutable();
packedFixed64_.setLong(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @param value The packedFixed64 to add.
* @return This builder for chaining.
*/
public Builder addPackedFixed64(long value) {
ensurePackedFixed64IsMutable();
packedFixed64_.addLong(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @param values The packedFixed64 to add.
* @return This builder for chaining.
*/
public Builder addAllPackedFixed64(
java.lang.Iterable extends java.lang.Long> values) {
ensurePackedFixed64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedFixed64_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated fixed64 packed_fixed64 = 97 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedFixed64() {
packedFixed64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList packedSfixed32_ = emptyIntList();
private void ensurePackedSfixed32IsMutable() {
if (!packedSfixed32_.isModifiable()) {
packedSfixed32_ = makeMutableCopy(packedSfixed32_);
}
bitField0_ |= 0x00000100;
}
private void ensurePackedSfixed32IsMutable(int capacity) {
if (!packedSfixed32_.isModifiable()) {
packedSfixed32_ = makeMutableCopy(packedSfixed32_, capacity);
}
bitField0_ |= 0x00000100;
}
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @return A list containing the packedSfixed32.
*/
public java.util.List
getPackedSfixed32List() {
packedSfixed32_.makeImmutable();
return packedSfixed32_;
}
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @return The count of packedSfixed32.
*/
public int getPackedSfixed32Count() {
return packedSfixed32_.size();
}
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @param index The index of the element to return.
* @return The packedSfixed32 at the given index.
*/
public int getPackedSfixed32(int index) {
return packedSfixed32_.getInt(index);
}
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @param index The index to set the value at.
* @param value The packedSfixed32 to set.
* @return This builder for chaining.
*/
public Builder setPackedSfixed32(
int index, int value) {
ensurePackedSfixed32IsMutable();
packedSfixed32_.setInt(index, value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @param value The packedSfixed32 to add.
* @return This builder for chaining.
*/
public Builder addPackedSfixed32(int value) {
ensurePackedSfixed32IsMutable();
packedSfixed32_.addInt(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @param values The packedSfixed32 to add.
* @return This builder for chaining.
*/
public Builder addAllPackedSfixed32(
java.lang.Iterable extends java.lang.Integer> values) {
ensurePackedSfixed32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedSfixed32_);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated sfixed32 packed_sfixed32 = 98 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedSfixed32() {
packedSfixed32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList packedSfixed64_ = emptyLongList();
private void ensurePackedSfixed64IsMutable() {
if (!packedSfixed64_.isModifiable()) {
packedSfixed64_ = makeMutableCopy(packedSfixed64_);
}
bitField0_ |= 0x00000200;
}
private void ensurePackedSfixed64IsMutable(int capacity) {
if (!packedSfixed64_.isModifiable()) {
packedSfixed64_ = makeMutableCopy(packedSfixed64_, capacity);
}
bitField0_ |= 0x00000200;
}
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @return A list containing the packedSfixed64.
*/
public java.util.List
getPackedSfixed64List() {
packedSfixed64_.makeImmutable();
return packedSfixed64_;
}
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @return The count of packedSfixed64.
*/
public int getPackedSfixed64Count() {
return packedSfixed64_.size();
}
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @param index The index of the element to return.
* @return The packedSfixed64 at the given index.
*/
public long getPackedSfixed64(int index) {
return packedSfixed64_.getLong(index);
}
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @param index The index to set the value at.
* @param value The packedSfixed64 to set.
* @return This builder for chaining.
*/
public Builder setPackedSfixed64(
int index, long value) {
ensurePackedSfixed64IsMutable();
packedSfixed64_.setLong(index, value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @param value The packedSfixed64 to add.
* @return This builder for chaining.
*/
public Builder addPackedSfixed64(long value) {
ensurePackedSfixed64IsMutable();
packedSfixed64_.addLong(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @param values The packedSfixed64 to add.
* @return This builder for chaining.
*/
public Builder addAllPackedSfixed64(
java.lang.Iterable extends java.lang.Long> values) {
ensurePackedSfixed64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedSfixed64_);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated sfixed64 packed_sfixed64 = 99 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedSfixed64() {
packedSfixed64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private com.google.protobuf.Internal.FloatList packedFloat_ = emptyFloatList();
private void ensurePackedFloatIsMutable() {
if (!packedFloat_.isModifiable()) {
packedFloat_ = makeMutableCopy(packedFloat_);
}
bitField0_ |= 0x00000400;
}
private void ensurePackedFloatIsMutable(int capacity) {
if (!packedFloat_.isModifiable()) {
packedFloat_ = makeMutableCopy(packedFloat_, capacity);
}
bitField0_ |= 0x00000400;
}
/**
* repeated float packed_float = 100 [packed = true];
* @return A list containing the packedFloat.
*/
public java.util.List
getPackedFloatList() {
packedFloat_.makeImmutable();
return packedFloat_;
}
/**
* repeated float packed_float = 100 [packed = true];
* @return The count of packedFloat.
*/
public int getPackedFloatCount() {
return packedFloat_.size();
}
/**
* repeated float packed_float = 100 [packed = true];
* @param index The index of the element to return.
* @return The packedFloat at the given index.
*/
public float getPackedFloat(int index) {
return packedFloat_.getFloat(index);
}
/**
* repeated float packed_float = 100 [packed = true];
* @param index The index to set the value at.
* @param value The packedFloat to set.
* @return This builder for chaining.
*/
public Builder setPackedFloat(
int index, float value) {
ensurePackedFloatIsMutable();
packedFloat_.setFloat(index, value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated float packed_float = 100 [packed = true];
* @param value The packedFloat to add.
* @return This builder for chaining.
*/
public Builder addPackedFloat(float value) {
ensurePackedFloatIsMutable();
packedFloat_.addFloat(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated float packed_float = 100 [packed = true];
* @param values The packedFloat to add.
* @return This builder for chaining.
*/
public Builder addAllPackedFloat(
java.lang.Iterable extends java.lang.Float> values) {
ensurePackedFloatIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedFloat_);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated float packed_float = 100 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedFloat() {
packedFloat_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList packedDouble_ = emptyDoubleList();
private void ensurePackedDoubleIsMutable() {
if (!packedDouble_.isModifiable()) {
packedDouble_ = makeMutableCopy(packedDouble_);
}
bitField0_ |= 0x00000800;
}
private void ensurePackedDoubleIsMutable(int capacity) {
if (!packedDouble_.isModifiable()) {
packedDouble_ = makeMutableCopy(packedDouble_, capacity);
}
bitField0_ |= 0x00000800;
}
/**
* repeated double packed_double = 101 [packed = true];
* @return A list containing the packedDouble.
*/
public java.util.List
getPackedDoubleList() {
packedDouble_.makeImmutable();
return packedDouble_;
}
/**
* repeated double packed_double = 101 [packed = true];
* @return The count of packedDouble.
*/
public int getPackedDoubleCount() {
return packedDouble_.size();
}
/**
* repeated double packed_double = 101 [packed = true];
* @param index The index of the element to return.
* @return The packedDouble at the given index.
*/
public double getPackedDouble(int index) {
return packedDouble_.getDouble(index);
}
/**
* repeated double packed_double = 101 [packed = true];
* @param index The index to set the value at.
* @param value The packedDouble to set.
* @return This builder for chaining.
*/
public Builder setPackedDouble(
int index, double value) {
ensurePackedDoubleIsMutable();
packedDouble_.setDouble(index, value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* repeated double packed_double = 101 [packed = true];
* @param value The packedDouble to add.
* @return This builder for chaining.
*/
public Builder addPackedDouble(double value) {
ensurePackedDoubleIsMutable();
packedDouble_.addDouble(value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* repeated double packed_double = 101 [packed = true];
* @param values The packedDouble to add.
* @return This builder for chaining.
*/
public Builder addAllPackedDouble(
java.lang.Iterable extends java.lang.Double> values) {
ensurePackedDoubleIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedDouble_);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* repeated double packed_double = 101 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedDouble() {
packedDouble_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
private com.google.protobuf.Internal.BooleanList packedBool_ = emptyBooleanList();
private void ensurePackedBoolIsMutable() {
if (!packedBool_.isModifiable()) {
packedBool_ = makeMutableCopy(packedBool_);
}
bitField0_ |= 0x00001000;
}
private void ensurePackedBoolIsMutable(int capacity) {
if (!packedBool_.isModifiable()) {
packedBool_ = makeMutableCopy(packedBool_, capacity);
}
bitField0_ |= 0x00001000;
}
/**
* repeated bool packed_bool = 102 [packed = true];
* @return A list containing the packedBool.
*/
public java.util.List
getPackedBoolList() {
packedBool_.makeImmutable();
return packedBool_;
}
/**
* repeated bool packed_bool = 102 [packed = true];
* @return The count of packedBool.
*/
public int getPackedBoolCount() {
return packedBool_.size();
}
/**
* repeated bool packed_bool = 102 [packed = true];
* @param index The index of the element to return.
* @return The packedBool at the given index.
*/
public boolean getPackedBool(int index) {
return packedBool_.getBoolean(index);
}
/**
* repeated bool packed_bool = 102 [packed = true];
* @param index The index to set the value at.
* @param value The packedBool to set.
* @return This builder for chaining.
*/
public Builder setPackedBool(
int index, boolean value) {
ensurePackedBoolIsMutable();
packedBool_.setBoolean(index, value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated bool packed_bool = 102 [packed = true];
* @param value The packedBool to add.
* @return This builder for chaining.
*/
public Builder addPackedBool(boolean value) {
ensurePackedBoolIsMutable();
packedBool_.addBoolean(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated bool packed_bool = 102 [packed = true];
* @param values The packedBool to add.
* @return This builder for chaining.
*/
public Builder addAllPackedBool(
java.lang.Iterable extends java.lang.Boolean> values) {
ensurePackedBoolIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packedBool_);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated bool packed_bool = 102 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedBool() {
packedBool_ = emptyBooleanList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
private java.util.List packedEnum_ =
java.util.Collections.emptyList();
private void ensurePackedEnumIsMutable() {
if (!((bitField0_ & 0x00002000) != 0)) {
packedEnum_ = new java.util.ArrayList(packedEnum_);
bitField0_ |= 0x00002000;
}
}
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @return A list containing the packedEnum.
*/
public java.util.List getPackedEnumList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite>(packedEnum_, packedEnum_converter_);
}
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @return The count of packedEnum.
*/
public int getPackedEnumCount() {
return packedEnum_.size();
}
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @param index The index of the element to return.
* @return The packedEnum at the given index.
*/
public com.google.protobuf.UnittestLite.ForeignEnumLite getPackedEnum(int index) {
return packedEnum_converter_.convert(packedEnum_.get(index));
}
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @param index The index to set the value at.
* @param value The packedEnum to set.
* @return This builder for chaining.
*/
public Builder setPackedEnum(
int index, com.google.protobuf.UnittestLite.ForeignEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
ensurePackedEnumIsMutable();
packedEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @param value The packedEnum to add.
* @return This builder for chaining.
*/
public Builder addPackedEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) {
if (value == null) {
throw new NullPointerException();
}
ensurePackedEnumIsMutable();
packedEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @param values The packedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllPackedEnum(
java.lang.Iterable extends com.google.protobuf.UnittestLite.ForeignEnumLite> values) {
ensurePackedEnumIsMutable();
for (com.google.protobuf.UnittestLite.ForeignEnumLite value : values) {
packedEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedEnum() {
packedEnum_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unittest.TestPackedTypesLite)
}
// @@protoc_insertion_point(class_scope:proto2_unittest.TestPackedTypesLite)
private static final com.google.protobuf.UnittestLite.TestPackedTypesLite DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestPackedTypesLite();
}
public static com.google.protobuf.UnittestLite.TestPackedTypesLite getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TestPackedTypesLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestPackedTypesLite getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TestAllExtensionsLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_unittest.TestAllExtensionsLite)
com.google.protobuf.GeneratedMessageV3.
ExtendableMessageOrBuilder {
}
/**
* Protobuf type {@code proto2_unittest.TestAllExtensionsLite}
*/
public static final class TestAllExtensionsLite extends
com.google.protobuf.GeneratedMessageV3.ExtendableMessage<
TestAllExtensionsLite> implements
// @@protoc_insertion_point(message_implements:proto2_unittest.TestAllExtensionsLite)
TestAllExtensionsLiteOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestAllExtensionsLite.newBuilder() to construct.
private TestAllExtensionsLite(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) {
super(builder);
}
private TestAllExtensionsLite() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestAllExtensionsLite();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllExtensionsLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllExtensionsLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestAllExtensionsLite.class, com.google.protobuf.UnittestLite.TestAllExtensionsLite.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessageV3
.ExtendableMessage.ExtensionWriter
extensionWriter = newExtensionWriter();
extensionWriter.writeUntil(536870912, output);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += extensionsSerializedSize();
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.UnittestLite.TestAllExtensionsLite)) {
return super.equals(obj);
}
com.google.protobuf.UnittestLite.TestAllExtensionsLite other = (com.google.protobuf.UnittestLite.TestAllExtensionsLite) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
if (!getExtensionFields().equals(other.getExtensionFields()))
return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = hashFields(hash, getExtensionFields());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite 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.TestAllExtensionsLite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.UnittestLite.TestAllExtensionsLite prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto2_unittest.TestAllExtensionsLite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<
com.google.protobuf.UnittestLite.TestAllExtensionsLite, Builder> implements
// @@protoc_insertion_point(builder_implements:proto2_unittest.TestAllExtensionsLite)
com.google.protobuf.UnittestLite.TestAllExtensionsLiteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllExtensionsLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllExtensionsLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestAllExtensionsLite.class, com.google.protobuf.UnittestLite.TestAllExtensionsLite.Builder.class);
}
// Construct using com.google.protobuf.UnittestLite.TestAllExtensionsLite.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllExtensionsLite_descriptor;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllExtensionsLite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.TestAllExtensionsLite.getDefaultInstance();
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllExtensionsLite build() {
com.google.protobuf.UnittestLite.TestAllExtensionsLite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllExtensionsLite buildPartial() {
com.google.protobuf.UnittestLite.TestAllExtensionsLite result = new com.google.protobuf.UnittestLite.TestAllExtensionsLite(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder setExtension(
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.UnittestLite.TestAllExtensionsLite, Type> extension,
Type value) {
return super.setExtension(extension, value);
}
@java.lang.Override
public Builder setExtension(
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> extension,
int index, Type value) {
return super.setExtension(extension, index, value);
}
@java.lang.Override
public Builder addExtension(
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> extension,
Type value) {
return super.addExtension(extension, value);
}
@java.lang.Override
public Builder clearExtension(
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.UnittestLite.TestAllExtensionsLite, T> extension) {
return super.clearExtension(extension);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.UnittestLite.TestAllExtensionsLite) {
return mergeFrom((com.google.protobuf.UnittestLite.TestAllExtensionsLite)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllExtensionsLite other) {
if (other == com.google.protobuf.UnittestLite.TestAllExtensionsLite.getDefaultInstance()) return this;
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unittest.TestAllExtensionsLite)
}
// @@protoc_insertion_point(class_scope:proto2_unittest.TestAllExtensionsLite)
private static final com.google.protobuf.UnittestLite.TestAllExtensionsLite DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestAllExtensionsLite();
}
public static com.google.protobuf.UnittestLite.TestAllExtensionsLite getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TestAllExtensionsLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestAllExtensionsLite getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OptionalGroup_extension_liteOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_unittest.OptionalGroup_extension_lite)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 a = 17;
* @return Whether the a field is set.
*/
boolean hasA();
/**
* optional int32 a = 17;
* @return The a.
*/
int getA();
}
/**
* Protobuf type {@code proto2_unittest.OptionalGroup_extension_lite}
*/
public static final class OptionalGroup_extension_lite extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto2_unittest.OptionalGroup_extension_lite)
OptionalGroup_extension_liteOrBuilder {
private static final long serialVersionUID = 0L;
// Use OptionalGroup_extension_lite.newBuilder() to construct.
private OptionalGroup_extension_lite(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OptionalGroup_extension_lite() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OptionalGroup_extension_lite();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_OptionalGroup_extension_lite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_OptionalGroup_extension_lite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.class, com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.Builder.class);
}
private int bitField0_;
public static final int A_FIELD_NUMBER = 17;
private int a_ = 0;
/**
* optional int32 a = 17;
* @return Whether the a field is set.
*/
@java.lang.Override
public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 a = 17;
* @return The a.
*/
@java.lang.Override
public int getA() {
return a_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(17, a_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(17, a_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.UnittestLite.OptionalGroup_extension_lite)) {
return super.equals(obj);
}
com.google.protobuf.UnittestLite.OptionalGroup_extension_lite other = (com.google.protobuf.UnittestLite.OptionalGroup_extension_lite) obj;
if (hasA() != other.hasA()) return false;
if (hasA()) {
if (getA()
!= other.getA()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasA()) {
hash = (37 * hash) + A_FIELD_NUMBER;
hash = (53 * hash) + getA();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite 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.OptionalGroup_extension_lite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.UnittestLite.OptionalGroup_extension_lite prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto2_unittest.OptionalGroup_extension_lite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto2_unittest.OptionalGroup_extension_lite)
com.google.protobuf.UnittestLite.OptionalGroup_extension_liteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_OptionalGroup_extension_lite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_OptionalGroup_extension_lite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.class, com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.Builder.class);
}
// Construct using com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
a_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_OptionalGroup_extension_lite_descriptor;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.OptionalGroup_extension_lite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.getDefaultInstance();
}
@java.lang.Override
public com.google.protobuf.UnittestLite.OptionalGroup_extension_lite build() {
com.google.protobuf.UnittestLite.OptionalGroup_extension_lite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.OptionalGroup_extension_lite buildPartial() {
com.google.protobuf.UnittestLite.OptionalGroup_extension_lite result = new com.google.protobuf.UnittestLite.OptionalGroup_extension_lite(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.protobuf.UnittestLite.OptionalGroup_extension_lite result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.a_ = a_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.UnittestLite.OptionalGroup_extension_lite) {
return mergeFrom((com.google.protobuf.UnittestLite.OptionalGroup_extension_lite)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.OptionalGroup_extension_lite other) {
if (other == com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.getDefaultInstance()) return this;
if (other.hasA()) {
setA(other.getA());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 136: {
a_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 136
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int a_ ;
/**
* optional int32 a = 17;
* @return Whether the a field is set.
*/
@java.lang.Override
public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 a = 17;
* @return The a.
*/
@java.lang.Override
public int getA() {
return a_;
}
/**
* optional int32 a = 17;
* @param value The a to set.
* @return This builder for chaining.
*/
public Builder setA(int value) {
a_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int32 a = 17;
* @return This builder for chaining.
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000001);
a_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unittest.OptionalGroup_extension_lite)
}
// @@protoc_insertion_point(class_scope:proto2_unittest.OptionalGroup_extension_lite)
private static final com.google.protobuf.UnittestLite.OptionalGroup_extension_lite DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.OptionalGroup_extension_lite();
}
public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OptionalGroup_extension_lite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.OptionalGroup_extension_lite getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RepeatedGroup_extension_liteOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_unittest.RepeatedGroup_extension_lite)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 a = 47;
* @return Whether the a field is set.
*/
boolean hasA();
/**
* optional int32 a = 47;
* @return The a.
*/
int getA();
}
/**
* Protobuf type {@code proto2_unittest.RepeatedGroup_extension_lite}
*/
public static final class RepeatedGroup_extension_lite extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto2_unittest.RepeatedGroup_extension_lite)
RepeatedGroup_extension_liteOrBuilder {
private static final long serialVersionUID = 0L;
// Use RepeatedGroup_extension_lite.newBuilder() to construct.
private RepeatedGroup_extension_lite(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RepeatedGroup_extension_lite() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RepeatedGroup_extension_lite();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RepeatedGroup_extension_lite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RepeatedGroup_extension_lite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.class, com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.Builder.class);
}
private int bitField0_;
public static final int A_FIELD_NUMBER = 47;
private int a_ = 0;
/**
* optional int32 a = 47;
* @return Whether the a field is set.
*/
@java.lang.Override
public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 a = 47;
* @return The a.
*/
@java.lang.Override
public int getA() {
return a_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(47, a_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(47, a_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite)) {
return super.equals(obj);
}
com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite other = (com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite) obj;
if (hasA() != other.hasA()) return false;
if (hasA()) {
if (getA()
!= other.getA()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasA()) {
hash = (37 * hash) + A_FIELD_NUMBER;
hash = (53 * hash) + getA();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite 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.RepeatedGroup_extension_lite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto2_unittest.RepeatedGroup_extension_lite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto2_unittest.RepeatedGroup_extension_lite)
com.google.protobuf.UnittestLite.RepeatedGroup_extension_liteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RepeatedGroup_extension_lite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RepeatedGroup_extension_lite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.class, com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.Builder.class);
}
// Construct using com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
a_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RepeatedGroup_extension_lite_descriptor;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.getDefaultInstance();
}
@java.lang.Override
public com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite build() {
com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite buildPartial() {
com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite result = new com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.a_ = a_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite) {
return mergeFrom((com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite other) {
if (other == com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.getDefaultInstance()) return this;
if (other.hasA()) {
setA(other.getA());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 376: {
a_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 376
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int a_ ;
/**
* optional int32 a = 47;
* @return Whether the a field is set.
*/
@java.lang.Override
public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 a = 47;
* @return The a.
*/
@java.lang.Override
public int getA() {
return a_;
}
/**
* optional int32 a = 47;
* @param value The a to set.
* @return This builder for chaining.
*/
public Builder setA(int value) {
a_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int32 a = 47;
* @return This builder for chaining.
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000001);
a_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unittest.RepeatedGroup_extension_lite)
}
// @@protoc_insertion_point(class_scope:proto2_unittest.RepeatedGroup_extension_lite)
private static final com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite();
}
public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RepeatedGroup_extension_lite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TestPackedExtensionsLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_unittest.TestPackedExtensionsLite)
com.google.protobuf.GeneratedMessageV3.
ExtendableMessageOrBuilder {
}
/**
* Protobuf type {@code proto2_unittest.TestPackedExtensionsLite}
*/
public static final class TestPackedExtensionsLite extends
com.google.protobuf.GeneratedMessageV3.ExtendableMessage<
TestPackedExtensionsLite> implements
// @@protoc_insertion_point(message_implements:proto2_unittest.TestPackedExtensionsLite)
TestPackedExtensionsLiteOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestPackedExtensionsLite.newBuilder() to construct.
private TestPackedExtensionsLite(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) {
super(builder);
}
private TestPackedExtensionsLite() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestPackedExtensionsLite();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedExtensionsLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedExtensionsLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestPackedExtensionsLite.class, com.google.protobuf.UnittestLite.TestPackedExtensionsLite.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessageV3
.ExtendableMessage.ExtensionWriter
extensionWriter = newExtensionWriter();
extensionWriter.writeUntil(536870912, output);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += extensionsSerializedSize();
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.UnittestLite.TestPackedExtensionsLite)) {
return super.equals(obj);
}
com.google.protobuf.UnittestLite.TestPackedExtensionsLite other = (com.google.protobuf.UnittestLite.TestPackedExtensionsLite) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
if (!getExtensionFields().equals(other.getExtensionFields()))
return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = hashFields(hash, getExtensionFields());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite 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.TestPackedExtensionsLite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.UnittestLite.TestPackedExtensionsLite prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto2_unittest.TestPackedExtensionsLite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<
com.google.protobuf.UnittestLite.TestPackedExtensionsLite, Builder> implements
// @@protoc_insertion_point(builder_implements:proto2_unittest.TestPackedExtensionsLite)
com.google.protobuf.UnittestLite.TestPackedExtensionsLiteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedExtensionsLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedExtensionsLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestPackedExtensionsLite.class, com.google.protobuf.UnittestLite.TestPackedExtensionsLite.Builder.class);
}
// Construct using com.google.protobuf.UnittestLite.TestPackedExtensionsLite.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedExtensionsLite_descriptor;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestPackedExtensionsLite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.TestPackedExtensionsLite.getDefaultInstance();
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestPackedExtensionsLite build() {
com.google.protobuf.UnittestLite.TestPackedExtensionsLite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestPackedExtensionsLite buildPartial() {
com.google.protobuf.UnittestLite.TestPackedExtensionsLite result = new com.google.protobuf.UnittestLite.TestPackedExtensionsLite(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder setExtension(
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.UnittestLite.TestPackedExtensionsLite, Type> extension,
Type value) {
return super.setExtension(extension, value);
}
@java.lang.Override
public Builder setExtension(
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> extension,
int index, Type value) {
return super.setExtension(extension, index, value);
}
@java.lang.Override
public Builder addExtension(
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> extension,
Type value) {
return super.addExtension(extension, value);
}
@java.lang.Override
public Builder clearExtension(
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.UnittestLite.TestPackedExtensionsLite, T> extension) {
return super.clearExtension(extension);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.UnittestLite.TestPackedExtensionsLite) {
return mergeFrom((com.google.protobuf.UnittestLite.TestPackedExtensionsLite)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.TestPackedExtensionsLite other) {
if (other == com.google.protobuf.UnittestLite.TestPackedExtensionsLite.getDefaultInstance()) return this;
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unittest.TestPackedExtensionsLite)
}
// @@protoc_insertion_point(class_scope:proto2_unittest.TestPackedExtensionsLite)
private static final com.google.protobuf.UnittestLite.TestPackedExtensionsLite DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestPackedExtensionsLite();
}
public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TestPackedExtensionsLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestPackedExtensionsLite getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TestNestedExtensionLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_unittest.TestNestedExtensionLite)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code proto2_unittest.TestNestedExtensionLite}
*/
public static final class TestNestedExtensionLite extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto2_unittest.TestNestedExtensionLite)
TestNestedExtensionLiteOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestNestedExtensionLite.newBuilder() to construct.
private TestNestedExtensionLite(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestNestedExtensionLite() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestNestedExtensionLite();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestNestedExtensionLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestNestedExtensionLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestNestedExtensionLite.class, com.google.protobuf.UnittestLite.TestNestedExtensionLite.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.UnittestLite.TestNestedExtensionLite)) {
return super.equals(obj);
}
com.google.protobuf.UnittestLite.TestNestedExtensionLite other = (com.google.protobuf.UnittestLite.TestNestedExtensionLite) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite 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.TestNestedExtensionLite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.UnittestLite.TestNestedExtensionLite prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto2_unittest.TestNestedExtensionLite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto2_unittest.TestNestedExtensionLite)
com.google.protobuf.UnittestLite.TestNestedExtensionLiteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestNestedExtensionLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestNestedExtensionLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestNestedExtensionLite.class, com.google.protobuf.UnittestLite.TestNestedExtensionLite.Builder.class);
}
// Construct using com.google.protobuf.UnittestLite.TestNestedExtensionLite.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestNestedExtensionLite_descriptor;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestNestedExtensionLite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.TestNestedExtensionLite.getDefaultInstance();
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestNestedExtensionLite build() {
com.google.protobuf.UnittestLite.TestNestedExtensionLite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestNestedExtensionLite buildPartial() {
com.google.protobuf.UnittestLite.TestNestedExtensionLite result = new com.google.protobuf.UnittestLite.TestNestedExtensionLite(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.UnittestLite.TestNestedExtensionLite) {
return mergeFrom((com.google.protobuf.UnittestLite.TestNestedExtensionLite)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.TestNestedExtensionLite other) {
if (other == com.google.protobuf.UnittestLite.TestNestedExtensionLite.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unittest.TestNestedExtensionLite)
}
// @@protoc_insertion_point(class_scope:proto2_unittest.TestNestedExtensionLite)
private static final com.google.protobuf.UnittestLite.TestNestedExtensionLite DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestNestedExtensionLite();
}
public static com.google.protobuf.UnittestLite.TestNestedExtensionLite getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TestNestedExtensionLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestNestedExtensionLite getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
public static final int NESTED_EXTENSION_FIELD_NUMBER = 12345;
/**
* extend .proto2_unittest.TestAllExtensionsLite { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.UnittestLite.TestAllExtensionsLite,
java.lang.Integer> nestedExtension = com.google.protobuf.GeneratedMessage
.newMessageScopedGeneratedExtension(
com.google.protobuf.UnittestLite.TestNestedExtensionLite.getDefaultInstance(),
0,
java.lang.Integer.class,
null);
}
public interface TestDeprecatedLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_unittest.TestDeprecatedLite)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 deprecated_field = 1 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated.
* See google/protobuf/unittest_lite.proto;l=344
* @return Whether the deprecatedField field is set.
*/
@java.lang.Deprecated boolean hasDeprecatedField();
/**
* optional int32 deprecated_field = 1 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated.
* See google/protobuf/unittest_lite.proto;l=344
* @return The deprecatedField.
*/
@java.lang.Deprecated int getDeprecatedField();
/**
* required int32 deprecated_field2 = 2 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated.
* See google/protobuf/unittest_lite.proto;l=345
* @return Whether the deprecatedField2 field is set.
*/
@java.lang.Deprecated boolean hasDeprecatedField2();
/**
* required int32 deprecated_field2 = 2 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated.
* See google/protobuf/unittest_lite.proto;l=345
* @return The deprecatedField2.
*/
@java.lang.Deprecated int getDeprecatedField2();
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated.
* See google/protobuf/unittest_lite.proto;l=346
* @return Whether the deprecatedField3 field is set.
*/
@java.lang.Deprecated boolean hasDeprecatedField3();
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated.
* See google/protobuf/unittest_lite.proto;l=346
* @return The deprecatedField3.
*/
@java.lang.Deprecated java.lang.String getDeprecatedField3();
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated.
* See google/protobuf/unittest_lite.proto;l=346
* @return The bytes for deprecatedField3.
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getDeprecatedField3Bytes();
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated.
* See google/protobuf/unittest_lite.proto;l=347
* @return Whether the deprecatedField4 field is set.
*/
@java.lang.Deprecated boolean hasDeprecatedField4();
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated.
* See google/protobuf/unittest_lite.proto;l=347
* @return The deprecatedField4.
*/
@java.lang.Deprecated com.google.protobuf.UnittestLite.TestDeprecatedLite getDeprecatedField4();
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder getDeprecatedField4OrBuilder();
}
/**
*
* Test that deprecated fields work. We only verify that they compile (at one
* point this failed).
*
*
* Protobuf type {@code proto2_unittest.TestDeprecatedLite}
*/
public static final class TestDeprecatedLite extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto2_unittest.TestDeprecatedLite)
TestDeprecatedLiteOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestDeprecatedLite.newBuilder() to construct.
private TestDeprecatedLite(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestDeprecatedLite() {
deprecatedField3_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestDeprecatedLite();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestDeprecatedLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestDeprecatedLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestDeprecatedLite.class, com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder.class);
}
private int bitField0_;
public static final int DEPRECATED_FIELD_FIELD_NUMBER = 1;
private int deprecatedField_ = 0;
/**
* optional int32 deprecated_field = 1 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated.
* See google/protobuf/unittest_lite.proto;l=344
* @return Whether the deprecatedField field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDeprecatedField() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 deprecated_field = 1 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated.
* See google/protobuf/unittest_lite.proto;l=344
* @return The deprecatedField.
*/
@java.lang.Override
@java.lang.Deprecated public int getDeprecatedField() {
return deprecatedField_;
}
public static final int DEPRECATED_FIELD2_FIELD_NUMBER = 2;
private int deprecatedField2_ = 0;
/**
* required int32 deprecated_field2 = 2 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated.
* See google/protobuf/unittest_lite.proto;l=345
* @return Whether the deprecatedField2 field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDeprecatedField2() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required int32 deprecated_field2 = 2 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated.
* See google/protobuf/unittest_lite.proto;l=345
* @return The deprecatedField2.
*/
@java.lang.Override
@java.lang.Deprecated public int getDeprecatedField2() {
return deprecatedField2_;
}
public static final int DEPRECATED_FIELD3_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object deprecatedField3_ = "";
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated.
* See google/protobuf/unittest_lite.proto;l=346
* @return Whether the deprecatedField3 field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDeprecatedField3() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated.
* See google/protobuf/unittest_lite.proto;l=346
* @return The deprecatedField3.
*/
@java.lang.Override
@java.lang.Deprecated public java.lang.String getDeprecatedField3() {
java.lang.Object ref = deprecatedField3_;
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()) {
deprecatedField3_ = s;
}
return s;
}
}
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated.
* See google/protobuf/unittest_lite.proto;l=346
* @return The bytes for deprecatedField3.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString
getDeprecatedField3Bytes() {
java.lang.Object ref = deprecatedField3_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deprecatedField3_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPRECATED_FIELD4_FIELD_NUMBER = 4;
private com.google.protobuf.UnittestLite.TestDeprecatedLite deprecatedField4_;
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated.
* See google/protobuf/unittest_lite.proto;l=347
* @return Whether the deprecatedField4 field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDeprecatedField4() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated.
* See google/protobuf/unittest_lite.proto;l=347
* @return The deprecatedField4.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.UnittestLite.TestDeprecatedLite getDeprecatedField4() {
return deprecatedField4_ == null ? com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance() : deprecatedField4_;
}
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder getDeprecatedField4OrBuilder() {
return deprecatedField4_ == null ? com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance() : deprecatedField4_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasDeprecatedField2()) {
memoizedIsInitialized = 0;
return false;
}
if (hasDeprecatedField4()) {
if (!getDeprecatedField4().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, deprecatedField_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, deprecatedField2_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deprecatedField3_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getDeprecatedField4());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, deprecatedField_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, deprecatedField2_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deprecatedField3_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getDeprecatedField4());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.UnittestLite.TestDeprecatedLite)) {
return super.equals(obj);
}
com.google.protobuf.UnittestLite.TestDeprecatedLite other = (com.google.protobuf.UnittestLite.TestDeprecatedLite) obj;
if (hasDeprecatedField() != other.hasDeprecatedField()) return false;
if (hasDeprecatedField()) {
if (getDeprecatedField()
!= other.getDeprecatedField()) return false;
}
if (hasDeprecatedField2() != other.hasDeprecatedField2()) return false;
if (hasDeprecatedField2()) {
if (getDeprecatedField2()
!= other.getDeprecatedField2()) return false;
}
if (hasDeprecatedField3() != other.hasDeprecatedField3()) return false;
if (hasDeprecatedField3()) {
if (!getDeprecatedField3()
.equals(other.getDeprecatedField3())) return false;
}
if (hasDeprecatedField4() != other.hasDeprecatedField4()) return false;
if (hasDeprecatedField4()) {
if (!getDeprecatedField4()
.equals(other.getDeprecatedField4())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDeprecatedField()) {
hash = (37 * hash) + DEPRECATED_FIELD_FIELD_NUMBER;
hash = (53 * hash) + getDeprecatedField();
}
if (hasDeprecatedField2()) {
hash = (37 * hash) + DEPRECATED_FIELD2_FIELD_NUMBER;
hash = (53 * hash) + getDeprecatedField2();
}
if (hasDeprecatedField3()) {
hash = (37 * hash) + DEPRECATED_FIELD3_FIELD_NUMBER;
hash = (53 * hash) + getDeprecatedField3().hashCode();
}
if (hasDeprecatedField4()) {
hash = (37 * hash) + DEPRECATED_FIELD4_FIELD_NUMBER;
hash = (53 * hash) + getDeprecatedField4().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite 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.TestDeprecatedLite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.UnittestLite.TestDeprecatedLite prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Test that deprecated fields work. We only verify that they compile (at one
* point this failed).
*
*
* Protobuf type {@code proto2_unittest.TestDeprecatedLite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto2_unittest.TestDeprecatedLite)
com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestDeprecatedLite_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestDeprecatedLite_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.UnittestLite.TestDeprecatedLite.class, com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder.class);
}
// Construct using com.google.protobuf.UnittestLite.TestDeprecatedLite.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeprecatedField4FieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
deprecatedField_ = 0;
deprecatedField2_ = 0;
deprecatedField3_ = "";
deprecatedField4_ = null;
if (deprecatedField4Builder_ != null) {
deprecatedField4Builder_.dispose();
deprecatedField4Builder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestDeprecatedLite_descriptor;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestDeprecatedLite getDefaultInstanceForType() {
return com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance();
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestDeprecatedLite build() {
com.google.protobuf.UnittestLite.TestDeprecatedLite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestDeprecatedLite buildPartial() {
com.google.protobuf.UnittestLite.TestDeprecatedLite result = new com.google.protobuf.UnittestLite.TestDeprecatedLite(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.protobuf.UnittestLite.TestDeprecatedLite result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.deprecatedField_ = deprecatedField_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.deprecatedField2_ = deprecatedField2_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.deprecatedField3_ = deprecatedField3_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.deprecatedField4_ = deprecatedField4Builder_ == null
? deprecatedField4_
: deprecatedField4Builder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.UnittestLite.TestDeprecatedLite) {
return mergeFrom((com.google.protobuf.UnittestLite.TestDeprecatedLite)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protobuf.UnittestLite.TestDeprecatedLite other) {
if (other == com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance()) return this;
if (other.hasDeprecatedField()) {
setDeprecatedField(other.getDeprecatedField());
}
if (other.hasDeprecatedField2()) {
setDeprecatedField2(other.getDeprecatedField2());
}
if (other.hasDeprecatedField3()) {
deprecatedField3_ = other.deprecatedField3_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasDeprecatedField4()) {
mergeDeprecatedField4(other.getDeprecatedField4());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasDeprecatedField2()) {
return false;
}
if (hasDeprecatedField4()) {
if (!getDeprecatedField4().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
deprecatedField_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
deprecatedField2_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
deprecatedField3_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getDeprecatedField4FieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int deprecatedField_ ;
/**
* optional int32 deprecated_field = 1 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated.
* See google/protobuf/unittest_lite.proto;l=344
* @return Whether the deprecatedField field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDeprecatedField() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 deprecated_field = 1 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated.
* See google/protobuf/unittest_lite.proto;l=344
* @return The deprecatedField.
*/
@java.lang.Override
@java.lang.Deprecated public int getDeprecatedField() {
return deprecatedField_;
}
/**
* optional int32 deprecated_field = 1 [deprecated = true];
* @param value The deprecatedField to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setDeprecatedField(int value) {
deprecatedField_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int32 deprecated_field = 1 [deprecated = true];
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearDeprecatedField() {
bitField0_ = (bitField0_ & ~0x00000001);
deprecatedField_ = 0;
onChanged();
return this;
}
private int deprecatedField2_ ;
/**
* required int32 deprecated_field2 = 2 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated.
* See google/protobuf/unittest_lite.proto;l=345
* @return Whether the deprecatedField2 field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDeprecatedField2() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required int32 deprecated_field2 = 2 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated.
* See google/protobuf/unittest_lite.proto;l=345
* @return The deprecatedField2.
*/
@java.lang.Override
@java.lang.Deprecated public int getDeprecatedField2() {
return deprecatedField2_;
}
/**
* required int32 deprecated_field2 = 2 [deprecated = true];
* @param value The deprecatedField2 to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setDeprecatedField2(int value) {
deprecatedField2_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required int32 deprecated_field2 = 2 [deprecated = true];
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearDeprecatedField2() {
bitField0_ = (bitField0_ & ~0x00000002);
deprecatedField2_ = 0;
onChanged();
return this;
}
private java.lang.Object deprecatedField3_ = "";
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated.
* See google/protobuf/unittest_lite.proto;l=346
* @return Whether the deprecatedField3 field is set.
*/
@java.lang.Deprecated public boolean hasDeprecatedField3() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated.
* See google/protobuf/unittest_lite.proto;l=346
* @return The deprecatedField3.
*/
@java.lang.Deprecated public java.lang.String getDeprecatedField3() {
java.lang.Object ref = deprecatedField3_;
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()) {
deprecatedField3_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated.
* See google/protobuf/unittest_lite.proto;l=346
* @return The bytes for deprecatedField3.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getDeprecatedField3Bytes() {
java.lang.Object ref = deprecatedField3_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deprecatedField3_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @param value The deprecatedField3 to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setDeprecatedField3(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
deprecatedField3_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearDeprecatedField3() {
deprecatedField3_ = getDefaultInstance().getDeprecatedField3();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string deprecated_field3 = 3 [deprecated = true];
* @param value The bytes for deprecatedField3 to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setDeprecatedField3Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
deprecatedField3_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.UnittestLite.TestDeprecatedLite deprecatedField4_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestDeprecatedLite, com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder, com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder> deprecatedField4Builder_;
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated.
* See google/protobuf/unittest_lite.proto;l=347
* @return Whether the deprecatedField4 field is set.
*/
@java.lang.Deprecated public boolean hasDeprecatedField4() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
* @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated.
* See google/protobuf/unittest_lite.proto;l=347
* @return The deprecatedField4.
*/
@java.lang.Deprecated public com.google.protobuf.UnittestLite.TestDeprecatedLite getDeprecatedField4() {
if (deprecatedField4Builder_ == null) {
return deprecatedField4_ == null ? com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance() : deprecatedField4_;
} else {
return deprecatedField4Builder_.getMessage();
}
}
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder setDeprecatedField4(com.google.protobuf.UnittestLite.TestDeprecatedLite value) {
if (deprecatedField4Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deprecatedField4_ = value;
} else {
deprecatedField4Builder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder setDeprecatedField4(
com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder builderForValue) {
if (deprecatedField4Builder_ == null) {
deprecatedField4_ = builderForValue.build();
} else {
deprecatedField4Builder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeDeprecatedField4(com.google.protobuf.UnittestLite.TestDeprecatedLite value) {
if (deprecatedField4Builder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
deprecatedField4_ != null &&
deprecatedField4_ != com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance()) {
getDeprecatedField4Builder().mergeFrom(value);
} else {
deprecatedField4_ = value;
}
} else {
deprecatedField4Builder_.mergeFrom(value);
}
if (deprecatedField4_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearDeprecatedField4() {
bitField0_ = (bitField0_ & ~0x00000008);
deprecatedField4_ = null;
if (deprecatedField4Builder_ != null) {
deprecatedField4Builder_.dispose();
deprecatedField4Builder_ = null;
}
onChanged();
return this;
}
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder getDeprecatedField4Builder() {
bitField0_ |= 0x00000008;
onChanged();
return getDeprecatedField4FieldBuilder().getBuilder();
}
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder getDeprecatedField4OrBuilder() {
if (deprecatedField4Builder_ != null) {
return deprecatedField4Builder_.getMessageOrBuilder();
} else {
return deprecatedField4_ == null ?
com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance() : deprecatedField4_;
}
}
/**
* optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestDeprecatedLite, com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder, com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder>
getDeprecatedField4FieldBuilder() {
if (deprecatedField4Builder_ == null) {
deprecatedField4Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UnittestLite.TestDeprecatedLite, com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder, com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder>(
getDeprecatedField4(),
getParentForChildren(),
isClean());
deprecatedField4_ = null;
}
return deprecatedField4Builder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unittest.TestDeprecatedLite)
}
// @@protoc_insertion_point(class_scope:proto2_unittest.TestDeprecatedLite)
private static final com.google.protobuf.UnittestLite.TestDeprecatedLite DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestDeprecatedLite();
}
public static com.google.protobuf.UnittestLite.TestDeprecatedLite getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TestDeprecatedLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.UnittestLite.TestDeprecatedLite getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TestParsingMergeLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_unittest.TestParsingMergeLite)
com.google.protobuf.GeneratedMessageV3.
ExtendableMessageOrBuilder {
/**
* required .proto2_unittest.TestAllTypesLite required_all_types = 1;
* @return Whether the requiredAllTypes field is set.
*/
boolean hasRequiredAllTypes();
/**
* required .proto2_unittest.TestAllTypesLite required_all_types = 1;
* @return The requiredAllTypes.
*/
com.google.protobuf.UnittestLite.TestAllTypesLite getRequiredAllTypes();
/**
* required .proto2_unittest.TestAllTypesLite required_all_types = 1;
*/
com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getRequiredAllTypesOrBuilder();
/**
* optional .proto2_unittest.TestAllTypesLite optional_all_types = 2;
* @return Whether the optionalAllTypes field is set.
*/
boolean hasOptionalAllTypes();
/**
* optional .proto2_unittest.TestAllTypesLite optional_all_types = 2;
* @return The optionalAllTypes.
*/
com.google.protobuf.UnittestLite.TestAllTypesLite getOptionalAllTypes();
/**
* optional .proto2_unittest.TestAllTypesLite optional_all_types = 2;
*/
com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOptionalAllTypesOrBuilder();
/**
* repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3;
*/
java.util.List
getRepeatedAllTypesList();
/**
*