All Downloads are FREE. Search and download functionalities are using the official Maven repository.

protobuf_unittest.UnittestProto Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/protobuf/unittest.proto

package protobuf_unittest;

public final class UnittestProto {
  private UnittestProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registry.add(protobuf_unittest.UnittestProto.optionalInt32Extension);
    registry.add(protobuf_unittest.UnittestProto.optionalInt64Extension);
    registry.add(protobuf_unittest.UnittestProto.optionalUint32Extension);
    registry.add(protobuf_unittest.UnittestProto.optionalUint64Extension);
    registry.add(protobuf_unittest.UnittestProto.optionalSint32Extension);
    registry.add(protobuf_unittest.UnittestProto.optionalSint64Extension);
    registry.add(protobuf_unittest.UnittestProto.optionalFixed32Extension);
    registry.add(protobuf_unittest.UnittestProto.optionalFixed64Extension);
    registry.add(protobuf_unittest.UnittestProto.optionalSfixed32Extension);
    registry.add(protobuf_unittest.UnittestProto.optionalSfixed64Extension);
    registry.add(protobuf_unittest.UnittestProto.optionalFloatExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalDoubleExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalBoolExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalStringExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalBytesExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalGroupExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalNestedMessageExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalForeignMessageExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalImportMessageExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalNestedEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalForeignEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalImportEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalStringPieceExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalCordExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalPublicImportMessageExtension);
    registry.add(protobuf_unittest.UnittestProto.optionalLazyMessageExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedInt32Extension);
    registry.add(protobuf_unittest.UnittestProto.repeatedInt64Extension);
    registry.add(protobuf_unittest.UnittestProto.repeatedUint32Extension);
    registry.add(protobuf_unittest.UnittestProto.repeatedUint64Extension);
    registry.add(protobuf_unittest.UnittestProto.repeatedSint32Extension);
    registry.add(protobuf_unittest.UnittestProto.repeatedSint64Extension);
    registry.add(protobuf_unittest.UnittestProto.repeatedFixed32Extension);
    registry.add(protobuf_unittest.UnittestProto.repeatedFixed64Extension);
    registry.add(protobuf_unittest.UnittestProto.repeatedSfixed32Extension);
    registry.add(protobuf_unittest.UnittestProto.repeatedSfixed64Extension);
    registry.add(protobuf_unittest.UnittestProto.repeatedFloatExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedDoubleExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedBoolExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedStringExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedBytesExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedGroupExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedNestedMessageExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedForeignMessageExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedImportMessageExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedNestedEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedForeignEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedImportEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedStringPieceExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedCordExtension);
    registry.add(protobuf_unittest.UnittestProto.repeatedLazyMessageExtension);
    registry.add(protobuf_unittest.UnittestProto.defaultInt32Extension);
    registry.add(protobuf_unittest.UnittestProto.defaultInt64Extension);
    registry.add(protobuf_unittest.UnittestProto.defaultUint32Extension);
    registry.add(protobuf_unittest.UnittestProto.defaultUint64Extension);
    registry.add(protobuf_unittest.UnittestProto.defaultSint32Extension);
    registry.add(protobuf_unittest.UnittestProto.defaultSint64Extension);
    registry.add(protobuf_unittest.UnittestProto.defaultFixed32Extension);
    registry.add(protobuf_unittest.UnittestProto.defaultFixed64Extension);
    registry.add(protobuf_unittest.UnittestProto.defaultSfixed32Extension);
    registry.add(protobuf_unittest.UnittestProto.defaultSfixed64Extension);
    registry.add(protobuf_unittest.UnittestProto.defaultFloatExtension);
    registry.add(protobuf_unittest.UnittestProto.defaultDoubleExtension);
    registry.add(protobuf_unittest.UnittestProto.defaultBoolExtension);
    registry.add(protobuf_unittest.UnittestProto.defaultStringExtension);
    registry.add(protobuf_unittest.UnittestProto.defaultBytesExtension);
    registry.add(protobuf_unittest.UnittestProto.defaultNestedEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.defaultForeignEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.defaultImportEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.defaultStringPieceExtension);
    registry.add(protobuf_unittest.UnittestProto.defaultCordExtension);
    registry.add(protobuf_unittest.UnittestProto.oneofUint32Extension);
    registry.add(protobuf_unittest.UnittestProto.oneofNestedMessageExtension);
    registry.add(protobuf_unittest.UnittestProto.oneofStringExtension);
    registry.add(protobuf_unittest.UnittestProto.oneofBytesExtension);
    registry.add(protobuf_unittest.UnittestProto.myExtensionString);
    registry.add(protobuf_unittest.UnittestProto.myExtensionInt);
    registry.add(protobuf_unittest.UnittestProto.packedInt32Extension);
    registry.add(protobuf_unittest.UnittestProto.packedInt64Extension);
    registry.add(protobuf_unittest.UnittestProto.packedUint32Extension);
    registry.add(protobuf_unittest.UnittestProto.packedUint64Extension);
    registry.add(protobuf_unittest.UnittestProto.packedSint32Extension);
    registry.add(protobuf_unittest.UnittestProto.packedSint64Extension);
    registry.add(protobuf_unittest.UnittestProto.packedFixed32Extension);
    registry.add(protobuf_unittest.UnittestProto.packedFixed64Extension);
    registry.add(protobuf_unittest.UnittestProto.packedSfixed32Extension);
    registry.add(protobuf_unittest.UnittestProto.packedSfixed64Extension);
    registry.add(protobuf_unittest.UnittestProto.packedFloatExtension);
    registry.add(protobuf_unittest.UnittestProto.packedDoubleExtension);
    registry.add(protobuf_unittest.UnittestProto.packedBoolExtension);
    registry.add(protobuf_unittest.UnittestProto.packedEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.unpackedInt32Extension);
    registry.add(protobuf_unittest.UnittestProto.unpackedInt64Extension);
    registry.add(protobuf_unittest.UnittestProto.unpackedUint32Extension);
    registry.add(protobuf_unittest.UnittestProto.unpackedUint64Extension);
    registry.add(protobuf_unittest.UnittestProto.unpackedSint32Extension);
    registry.add(protobuf_unittest.UnittestProto.unpackedSint64Extension);
    registry.add(protobuf_unittest.UnittestProto.unpackedFixed32Extension);
    registry.add(protobuf_unittest.UnittestProto.unpackedFixed64Extension);
    registry.add(protobuf_unittest.UnittestProto.unpackedSfixed32Extension);
    registry.add(protobuf_unittest.UnittestProto.unpackedSfixed64Extension);
    registry.add(protobuf_unittest.UnittestProto.unpackedFloatExtension);
    registry.add(protobuf_unittest.UnittestProto.unpackedDoubleExtension);
    registry.add(protobuf_unittest.UnittestProto.unpackedBoolExtension);
    registry.add(protobuf_unittest.UnittestProto.unpackedEnumExtension);
    registry.add(protobuf_unittest.UnittestProto.TestNestedExtension.test);
    registry.add(protobuf_unittest.UnittestProto.TestNestedExtension.nestedStringExtension);
    registry.add(protobuf_unittest.UnittestProto.TestRequired.single);
    registry.add(protobuf_unittest.UnittestProto.TestRequired.multi);
    registry.add(protobuf_unittest.UnittestProto.TestParsingMerge.optionalExt);
    registry.add(protobuf_unittest.UnittestProto.TestParsingMerge.repeatedExt);
  }
  /**
   * Protobuf enum {@code protobuf_unittest.ForeignEnum}
   */
  public enum ForeignEnum
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * FOREIGN_FOO = 4;
     */
    FOREIGN_FOO(0, 4),
    /**
     * FOREIGN_BAR = 5;
     */
    FOREIGN_BAR(1, 5),
    /**
     * FOREIGN_BAZ = 6;
     */
    FOREIGN_BAZ(2, 6),
    ;

    /**
     * FOREIGN_FOO = 4;
     */
    public static final int FOREIGN_FOO_VALUE = 4;
    /**
     * FOREIGN_BAR = 5;
     */
    public static final int FOREIGN_BAR_VALUE = 5;
    /**
     * FOREIGN_BAZ = 6;
     */
    public static final int FOREIGN_BAZ_VALUE = 6;


    public final int getNumber() { return value; }

    public static ForeignEnum valueOf(int value) {
      switch (value) {
        case 4: return FOREIGN_FOO;
        case 5: return FOREIGN_BAR;
        case 6: return FOREIGN_BAZ;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static com.google.protobuf.Internal.EnumLiteMap
        internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public ForeignEnum findValueByNumber(int number) {
              return ForeignEnum.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return protobuf_unittest.UnittestProto.getDescriptor().getEnumTypes().get(0);
    }

    private static final ForeignEnum[] VALUES = values();

    public static ForeignEnum valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int index;
    private final int value;

    private ForeignEnum(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:protobuf_unittest.ForeignEnum)
  }

  /**
   * Protobuf enum {@code protobuf_unittest.TestEnumWithDupValue}
   *
   * 
   * Test an enum that has multiple values with the same number.
   * 
*/ public enum TestEnumWithDupValue implements com.google.protobuf.ProtocolMessageEnum { /** * FOO1 = 1; */ FOO1(0, 1), /** * BAR1 = 2; */ BAR1(1, 2), /** * BAZ = 3; */ BAZ(2, 3), ; /** * FOO2 = 1; */ public static final TestEnumWithDupValue FOO2 = FOO1; /** * BAR2 = 2; */ public static final TestEnumWithDupValue BAR2 = BAR1; /** * FOO1 = 1; */ public static final int FOO1_VALUE = 1; /** * BAR1 = 2; */ public static final int BAR1_VALUE = 2; /** * BAZ = 3; */ public static final int BAZ_VALUE = 3; /** * FOO2 = 1; */ public static final int FOO2_VALUE = 1; /** * BAR2 = 2; */ public static final int BAR2_VALUE = 2; public final int getNumber() { return value; } public static TestEnumWithDupValue valueOf(int value) { switch (value) { case 1: return FOO1; case 2: return BAR1; case 3: return BAZ; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TestEnumWithDupValue findValueByNumber(int number) { return TestEnumWithDupValue.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return protobuf_unittest.UnittestProto.getDescriptor().getEnumTypes().get(1); } private static final TestEnumWithDupValue[] VALUES = { FOO1, BAR1, BAZ, FOO2, BAR2, }; public static TestEnumWithDupValue valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private TestEnumWithDupValue(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protobuf_unittest.TestEnumWithDupValue) } /** * Protobuf enum {@code protobuf_unittest.TestSparseEnum} * *
   * Test an enum with large, unordered values.
   * 
*/ public enum TestSparseEnum implements com.google.protobuf.ProtocolMessageEnum { /** * SPARSE_A = 123; */ SPARSE_A(0, 123), /** * SPARSE_B = 62374; */ SPARSE_B(1, 62374), /** * SPARSE_C = 12589234; */ SPARSE_C(2, 12589234), /** * SPARSE_D = -15; */ SPARSE_D(3, -15), /** * SPARSE_E = -53452; */ SPARSE_E(4, -53452), /** * SPARSE_F = 0; */ SPARSE_F(5, 0), /** * SPARSE_G = 2; */ SPARSE_G(6, 2), ; /** * SPARSE_A = 123; */ public static final int SPARSE_A_VALUE = 123; /** * SPARSE_B = 62374; */ public static final int SPARSE_B_VALUE = 62374; /** * SPARSE_C = 12589234; */ public static final int SPARSE_C_VALUE = 12589234; /** * SPARSE_D = -15; */ public static final int SPARSE_D_VALUE = -15; /** * SPARSE_E = -53452; */ public static final int SPARSE_E_VALUE = -53452; /** * SPARSE_F = 0; */ public static final int SPARSE_F_VALUE = 0; /** * SPARSE_G = 2; */ public static final int SPARSE_G_VALUE = 2; public final int getNumber() { return value; } public static TestSparseEnum valueOf(int value) { switch (value) { case 123: return SPARSE_A; case 62374: return SPARSE_B; case 12589234: return SPARSE_C; case -15: return SPARSE_D; case -53452: return SPARSE_E; case 0: return SPARSE_F; case 2: return SPARSE_G; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TestSparseEnum findValueByNumber(int number) { return TestSparseEnum.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return protobuf_unittest.UnittestProto.getDescriptor().getEnumTypes().get(2); } private static final TestSparseEnum[] VALUES = values(); public static TestSparseEnum valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private TestSparseEnum(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protobuf_unittest.TestSparseEnum) } public interface TestAllTypesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypes) com.google.protobuf.MessageOrBuilder { /** * optional int32 optional_int32 = 1; * *
     * Singular
     * 
*/ boolean hasOptionalInt32(); /** * optional int32 optional_int32 = 1; * *
     * Singular
     * 
*/ int getOptionalInt32(); /** * optional int64 optional_int64 = 2; */ boolean hasOptionalInt64(); /** * optional int64 optional_int64 = 2; */ long getOptionalInt64(); /** * optional uint32 optional_uint32 = 3; */ boolean hasOptionalUint32(); /** * optional uint32 optional_uint32 = 3; */ int getOptionalUint32(); /** * optional uint64 optional_uint64 = 4; */ boolean hasOptionalUint64(); /** * optional uint64 optional_uint64 = 4; */ long getOptionalUint64(); /** * optional sint32 optional_sint32 = 5; */ boolean hasOptionalSint32(); /** * optional sint32 optional_sint32 = 5; */ int getOptionalSint32(); /** * optional sint64 optional_sint64 = 6; */ boolean hasOptionalSint64(); /** * optional sint64 optional_sint64 = 6; */ long getOptionalSint64(); /** * optional fixed32 optional_fixed32 = 7; */ boolean hasOptionalFixed32(); /** * optional fixed32 optional_fixed32 = 7; */ int getOptionalFixed32(); /** * optional fixed64 optional_fixed64 = 8; */ boolean hasOptionalFixed64(); /** * optional fixed64 optional_fixed64 = 8; */ long getOptionalFixed64(); /** * optional sfixed32 optional_sfixed32 = 9; */ boolean hasOptionalSfixed32(); /** * optional sfixed32 optional_sfixed32 = 9; */ int getOptionalSfixed32(); /** * optional sfixed64 optional_sfixed64 = 10; */ boolean hasOptionalSfixed64(); /** * optional sfixed64 optional_sfixed64 = 10; */ long getOptionalSfixed64(); /** * optional float optional_float = 11; */ boolean hasOptionalFloat(); /** * optional float optional_float = 11; */ float getOptionalFloat(); /** * optional double optional_double = 12; */ boolean hasOptionalDouble(); /** * optional double optional_double = 12; */ double getOptionalDouble(); /** * optional bool optional_bool = 13; */ boolean hasOptionalBool(); /** * optional bool optional_bool = 13; */ boolean getOptionalBool(); /** * optional string optional_string = 14; */ boolean hasOptionalString(); /** * optional string optional_string = 14; */ java.lang.String getOptionalString(); /** * optional string optional_string = 14; */ com.google.protobuf.ByteString getOptionalStringBytes(); /** * optional bytes optional_bytes = 15; */ boolean hasOptionalBytes(); /** * optional bytes optional_bytes = 15; */ com.google.protobuf.ByteString getOptionalBytes(); /** * optional group OptionalGroup = 16 { ... } */ boolean hasOptionalGroup(); /** * optional group OptionalGroup = 16 { ... } */ protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup getOptionalGroup(); /** * optional group OptionalGroup = 16 { ... } */ protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder getOptionalGroupOrBuilder(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ boolean hasOptionalNestedMessage(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalNestedMessage(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder(); /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ boolean hasOptionalForeignMessage(); /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ protobuf_unittest.UnittestProto.ForeignMessage getOptionalForeignMessage(); /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getOptionalForeignMessageOrBuilder(); /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ boolean hasOptionalImportMessage(); /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ com.google.protobuf.test.UnittestImport.ImportMessage getOptionalImportMessage(); /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getOptionalImportMessageOrBuilder(); /** * optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21; */ boolean hasOptionalNestedEnum(); /** * optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getOptionalNestedEnum(); /** * optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22; */ boolean hasOptionalForeignEnum(); /** * optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22; */ protobuf_unittest.UnittestProto.ForeignEnum getOptionalForeignEnum(); /** * optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23; */ boolean hasOptionalImportEnum(); /** * optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23; */ com.google.protobuf.test.UnittestImport.ImportEnum getOptionalImportEnum(); /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ boolean hasOptionalStringPiece(); /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ java.lang.String getOptionalStringPiece(); /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ com.google.protobuf.ByteString getOptionalStringPieceBytes(); /** * optional string optional_cord = 25 [ctype = CORD]; */ boolean hasOptionalCord(); /** * optional string optional_cord = 25 [ctype = CORD]; */ java.lang.String getOptionalCord(); /** * optional string optional_cord = 25 [ctype = CORD]; */ com.google.protobuf.ByteString getOptionalCordBytes(); /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
     * Defined in unittest_import_public.proto
     * 
*/ boolean hasOptionalPublicImportMessage(); /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
     * Defined in unittest_import_public.proto
     * 
*/ com.google.protobuf.test.UnittestImportPublic.PublicImportMessage getOptionalPublicImportMessage(); /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
     * Defined in unittest_import_public.proto
     * 
*/ com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder getOptionalPublicImportMessageOrBuilder(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ boolean hasOptionalLazyMessage(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalLazyMessage(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder(); /** * repeated int32 repeated_int32 = 31; * *
     * Repeated
     * 
*/ java.util.List getRepeatedInt32List(); /** * repeated int32 repeated_int32 = 31; * *
     * Repeated
     * 
*/ int getRepeatedInt32Count(); /** * repeated int32 repeated_int32 = 31; * *
     * Repeated
     * 
*/ int getRepeatedInt32(int index); /** * repeated int64 repeated_int64 = 32; */ java.util.List getRepeatedInt64List(); /** * repeated int64 repeated_int64 = 32; */ int getRepeatedInt64Count(); /** * repeated int64 repeated_int64 = 32; */ long getRepeatedInt64(int index); /** * repeated uint32 repeated_uint32 = 33; */ java.util.List getRepeatedUint32List(); /** * repeated uint32 repeated_uint32 = 33; */ int getRepeatedUint32Count(); /** * repeated uint32 repeated_uint32 = 33; */ int getRepeatedUint32(int index); /** * repeated uint64 repeated_uint64 = 34; */ java.util.List getRepeatedUint64List(); /** * repeated uint64 repeated_uint64 = 34; */ int getRepeatedUint64Count(); /** * repeated uint64 repeated_uint64 = 34; */ long getRepeatedUint64(int index); /** * repeated sint32 repeated_sint32 = 35; */ java.util.List getRepeatedSint32List(); /** * repeated sint32 repeated_sint32 = 35; */ int getRepeatedSint32Count(); /** * repeated sint32 repeated_sint32 = 35; */ int getRepeatedSint32(int index); /** * repeated sint64 repeated_sint64 = 36; */ java.util.List getRepeatedSint64List(); /** * repeated sint64 repeated_sint64 = 36; */ int getRepeatedSint64Count(); /** * repeated sint64 repeated_sint64 = 36; */ long getRepeatedSint64(int index); /** * repeated fixed32 repeated_fixed32 = 37; */ java.util.List getRepeatedFixed32List(); /** * repeated fixed32 repeated_fixed32 = 37; */ int getRepeatedFixed32Count(); /** * repeated fixed32 repeated_fixed32 = 37; */ int getRepeatedFixed32(int index); /** * repeated fixed64 repeated_fixed64 = 38; */ java.util.List getRepeatedFixed64List(); /** * repeated fixed64 repeated_fixed64 = 38; */ int getRepeatedFixed64Count(); /** * repeated fixed64 repeated_fixed64 = 38; */ long getRepeatedFixed64(int index); /** * repeated sfixed32 repeated_sfixed32 = 39; */ java.util.List getRepeatedSfixed32List(); /** * repeated sfixed32 repeated_sfixed32 = 39; */ int getRepeatedSfixed32Count(); /** * repeated sfixed32 repeated_sfixed32 = 39; */ int getRepeatedSfixed32(int index); /** * repeated sfixed64 repeated_sfixed64 = 40; */ java.util.List getRepeatedSfixed64List(); /** * repeated sfixed64 repeated_sfixed64 = 40; */ int getRepeatedSfixed64Count(); /** * repeated sfixed64 repeated_sfixed64 = 40; */ long getRepeatedSfixed64(int index); /** * repeated float repeated_float = 41; */ java.util.List getRepeatedFloatList(); /** * repeated float repeated_float = 41; */ int getRepeatedFloatCount(); /** * repeated float repeated_float = 41; */ float getRepeatedFloat(int index); /** * repeated double repeated_double = 42; */ java.util.List getRepeatedDoubleList(); /** * repeated double repeated_double = 42; */ int getRepeatedDoubleCount(); /** * repeated double repeated_double = 42; */ double getRepeatedDouble(int index); /** * repeated bool repeated_bool = 43; */ java.util.List getRepeatedBoolList(); /** * repeated bool repeated_bool = 43; */ int getRepeatedBoolCount(); /** * repeated bool repeated_bool = 43; */ boolean getRepeatedBool(int index); /** * repeated string repeated_string = 44; */ com.google.protobuf.ProtocolStringList getRepeatedStringList(); /** * repeated string repeated_string = 44; */ int getRepeatedStringCount(); /** * repeated string repeated_string = 44; */ java.lang.String getRepeatedString(int index); /** * repeated string repeated_string = 44; */ com.google.protobuf.ByteString getRepeatedStringBytes(int index); /** * repeated bytes repeated_bytes = 45; */ java.util.List getRepeatedBytesList(); /** * repeated bytes repeated_bytes = 45; */ int getRepeatedBytesCount(); /** * repeated bytes repeated_bytes = 45; */ com.google.protobuf.ByteString getRepeatedBytes(int index); /** * repeated group RepeatedGroup = 46 { ... } */ java.util.List getRepeatedGroupList(); /** * repeated group RepeatedGroup = 46 { ... } */ protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup getRepeatedGroup(int index); /** * repeated group RepeatedGroup = 46 { ... } */ int getRepeatedGroupCount(); /** * repeated group RepeatedGroup = 46 { ... } */ java.util.List getRepeatedGroupOrBuilderList(); /** * repeated group RepeatedGroup = 46 { ... } */ protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index); /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ java.util.List getRepeatedNestedMessageList(); /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index); /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ int getRepeatedNestedMessageCount(); /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ java.util.List getRepeatedNestedMessageOrBuilderList(); /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder( int index); /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ java.util.List getRepeatedForeignMessageList(); /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ protobuf_unittest.UnittestProto.ForeignMessage getRepeatedForeignMessage(int index); /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ int getRepeatedForeignMessageCount(); /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ java.util.List getRepeatedForeignMessageOrBuilderList(); /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getRepeatedForeignMessageOrBuilder( int index); /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ java.util.List getRepeatedImportMessageList(); /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ com.google.protobuf.test.UnittestImport.ImportMessage getRepeatedImportMessage(int index); /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ int getRepeatedImportMessageCount(); /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ java.util.List getRepeatedImportMessageOrBuilderList(); /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getRepeatedImportMessageOrBuilder( int index); /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ java.util.List getRepeatedNestedEnumList(); /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ int getRepeatedNestedEnumCount(); /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index); /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ java.util.List getRepeatedForeignEnumList(); /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ int getRepeatedForeignEnumCount(); /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ protobuf_unittest.UnittestProto.ForeignEnum getRepeatedForeignEnum(int index); /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ java.util.List getRepeatedImportEnumList(); /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ int getRepeatedImportEnumCount(); /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ com.google.protobuf.test.UnittestImport.ImportEnum getRepeatedImportEnum(int index); /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ com.google.protobuf.ProtocolStringList getRepeatedStringPieceList(); /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ int getRepeatedStringPieceCount(); /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ java.lang.String getRepeatedStringPiece(int index); /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ com.google.protobuf.ByteString getRepeatedStringPieceBytes(int index); /** * repeated string repeated_cord = 55 [ctype = CORD]; */ com.google.protobuf.ProtocolStringList getRepeatedCordList(); /** * repeated string repeated_cord = 55 [ctype = CORD]; */ int getRepeatedCordCount(); /** * repeated string repeated_cord = 55 [ctype = CORD]; */ java.lang.String getRepeatedCord(int index); /** * repeated string repeated_cord = 55 [ctype = CORD]; */ com.google.protobuf.ByteString getRepeatedCordBytes(int index); /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ java.util.List getRepeatedLazyMessageList(); /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedLazyMessage(int index); /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ int getRepeatedLazyMessageCount(); /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ java.util.List getRepeatedLazyMessageOrBuilderList(); /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder( int index); /** * optional int32 default_int32 = 61 [default = 41]; * *
     * Singular with defaults
     * 
*/ boolean hasDefaultInt32(); /** * optional int32 default_int32 = 61 [default = 41]; * *
     * Singular with defaults
     * 
*/ int getDefaultInt32(); /** * optional int64 default_int64 = 62 [default = 42]; */ boolean hasDefaultInt64(); /** * optional int64 default_int64 = 62 [default = 42]; */ long getDefaultInt64(); /** * optional uint32 default_uint32 = 63 [default = 43]; */ boolean hasDefaultUint32(); /** * optional uint32 default_uint32 = 63 [default = 43]; */ int getDefaultUint32(); /** * optional uint64 default_uint64 = 64 [default = 44]; */ boolean hasDefaultUint64(); /** * optional uint64 default_uint64 = 64 [default = 44]; */ long getDefaultUint64(); /** * optional sint32 default_sint32 = 65 [default = -45]; */ boolean hasDefaultSint32(); /** * optional sint32 default_sint32 = 65 [default = -45]; */ int getDefaultSint32(); /** * optional sint64 default_sint64 = 66 [default = 46]; */ boolean hasDefaultSint64(); /** * optional sint64 default_sint64 = 66 [default = 46]; */ long getDefaultSint64(); /** * optional fixed32 default_fixed32 = 67 [default = 47]; */ boolean hasDefaultFixed32(); /** * optional fixed32 default_fixed32 = 67 [default = 47]; */ int getDefaultFixed32(); /** * optional fixed64 default_fixed64 = 68 [default = 48]; */ boolean hasDefaultFixed64(); /** * optional fixed64 default_fixed64 = 68 [default = 48]; */ long getDefaultFixed64(); /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; */ boolean hasDefaultSfixed32(); /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; */ int getDefaultSfixed32(); /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; */ boolean hasDefaultSfixed64(); /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; */ long getDefaultSfixed64(); /** * optional float default_float = 71 [default = 51.5]; */ boolean hasDefaultFloat(); /** * optional float default_float = 71 [default = 51.5]; */ float getDefaultFloat(); /** * optional double default_double = 72 [default = 52000]; */ boolean hasDefaultDouble(); /** * optional double default_double = 72 [default = 52000]; */ double getDefaultDouble(); /** * optional bool default_bool = 73 [default = true]; */ boolean hasDefaultBool(); /** * optional bool default_bool = 73 [default = true]; */ boolean getDefaultBool(); /** * optional string default_string = 74 [default = "hello"]; */ boolean hasDefaultString(); /** * optional string default_string = 74 [default = "hello"]; */ java.lang.String getDefaultString(); /** * optional string default_string = 74 [default = "hello"]; */ com.google.protobuf.ByteString getDefaultStringBytes(); /** * optional bytes default_bytes = 75 [default = "world"]; */ boolean hasDefaultBytes(); /** * optional bytes default_bytes = 75 [default = "world"]; */ com.google.protobuf.ByteString getDefaultBytes(); /** * optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR]; */ boolean hasDefaultNestedEnum(); /** * optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR]; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getDefaultNestedEnum(); /** * optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; */ boolean hasDefaultForeignEnum(); /** * optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; */ protobuf_unittest.UnittestProto.ForeignEnum getDefaultForeignEnum(); /** * optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR]; */ boolean hasDefaultImportEnum(); /** * optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR]; */ com.google.protobuf.test.UnittestImport.ImportEnum getDefaultImportEnum(); /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ boolean hasDefaultStringPiece(); /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ java.lang.String getDefaultStringPiece(); /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ com.google.protobuf.ByteString getDefaultStringPieceBytes(); /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ boolean hasDefaultCord(); /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ java.lang.String getDefaultCord(); /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ com.google.protobuf.ByteString getDefaultCordBytes(); /** * optional uint32 oneof_uint32 = 111; */ boolean hasOneofUint32(); /** * optional uint32 oneof_uint32 = 111; */ int getOneofUint32(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ boolean hasOneofNestedMessage(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOneofNestedMessage(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOneofNestedMessageOrBuilder(); /** * optional string oneof_string = 113; */ boolean hasOneofString(); /** * optional string oneof_string = 113; */ java.lang.String getOneofString(); /** * optional string oneof_string = 113; */ com.google.protobuf.ByteString getOneofStringBytes(); /** * optional bytes oneof_bytes = 114; */ boolean hasOneofBytes(); /** * optional bytes oneof_bytes = 114; */ com.google.protobuf.ByteString getOneofBytes(); } /** * Protobuf type {@code protobuf_unittest.TestAllTypes} * *
   * This proto includes every type of field in both singular and repeated
   * forms.
   * 
*/ public static final class TestAllTypes extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypes) TestAllTypesOrBuilder { // Use TestAllTypes.newBuilder() to construct. private TestAllTypes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestAllTypes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestAllTypes defaultInstance; public static TestAllTypes getDefaultInstance() { return defaultInstance; } public TestAllTypes getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestAllTypes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; int mutable_bitField1_ = 0; int mutable_bitField2_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; optionalInt32_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; optionalInt64_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; optionalUint32_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000008; optionalUint64_ = input.readUInt64(); break; } case 40: { bitField0_ |= 0x00000010; optionalSint32_ = input.readSInt32(); break; } case 48: { bitField0_ |= 0x00000020; optionalSint64_ = input.readSInt64(); break; } case 61: { bitField0_ |= 0x00000040; optionalFixed32_ = input.readFixed32(); break; } case 65: { bitField0_ |= 0x00000080; optionalFixed64_ = input.readFixed64(); break; } case 77: { bitField0_ |= 0x00000100; optionalSfixed32_ = input.readSFixed32(); break; } case 81: { bitField0_ |= 0x00000200; optionalSfixed64_ = input.readSFixed64(); break; } case 93: { bitField0_ |= 0x00000400; optionalFloat_ = input.readFloat(); break; } case 97: { bitField0_ |= 0x00000800; optionalDouble_ = input.readDouble(); break; } case 104: { bitField0_ |= 0x00001000; optionalBool_ = input.readBool(); break; } case 114: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00002000; optionalString_ = bs; break; } case 122: { bitField0_ |= 0x00004000; optionalBytes_ = input.readBytes(); break; } case 131: { protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder subBuilder = null; if (((bitField0_ & 0x00008000) == 0x00008000)) { subBuilder = optionalGroup_.toBuilder(); } optionalGroup_ = input.readGroup(16, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalGroup_); optionalGroup_ = subBuilder.buildPartial(); } bitField0_ |= 0x00008000; break; } case 146: { protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder subBuilder = null; if (((bitField0_ & 0x00010000) == 0x00010000)) { subBuilder = optionalNestedMessage_.toBuilder(); } optionalNestedMessage_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalNestedMessage_); optionalNestedMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00010000; break; } case 154: { protobuf_unittest.UnittestProto.ForeignMessage.Builder subBuilder = null; if (((bitField0_ & 0x00020000) == 0x00020000)) { subBuilder = optionalForeignMessage_.toBuilder(); } optionalForeignMessage_ = input.readMessage(protobuf_unittest.UnittestProto.ForeignMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalForeignMessage_); optionalForeignMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00020000; break; } case 162: { com.google.protobuf.test.UnittestImport.ImportMessage.Builder subBuilder = null; if (((bitField0_ & 0x00040000) == 0x00040000)) { subBuilder = optionalImportMessage_.toBuilder(); } optionalImportMessage_ = input.readMessage(com.google.protobuf.test.UnittestImport.ImportMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalImportMessage_); optionalImportMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00040000; break; } case 168: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(21, rawValue); } else { bitField0_ |= 0x00080000; optionalNestedEnum_ = value; } break; } case 176: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(22, rawValue); } else { bitField0_ |= 0x00100000; optionalForeignEnum_ = value; } break; } case 184: { int rawValue = input.readEnum(); com.google.protobuf.test.UnittestImport.ImportEnum value = com.google.protobuf.test.UnittestImport.ImportEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(23, rawValue); } else { bitField0_ |= 0x00200000; optionalImportEnum_ = value; } break; } case 194: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00400000; optionalStringPiece_ = bs; break; } case 202: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00800000; optionalCord_ = bs; break; } case 210: { com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder subBuilder = null; if (((bitField0_ & 0x01000000) == 0x01000000)) { subBuilder = optionalPublicImportMessage_.toBuilder(); } optionalPublicImportMessage_ = input.readMessage(com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalPublicImportMessage_); optionalPublicImportMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x01000000; break; } case 218: { protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder subBuilder = null; if (((bitField0_ & 0x02000000) == 0x02000000)) { subBuilder = optionalLazyMessage_.toBuilder(); } optionalLazyMessage_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalLazyMessage_); optionalLazyMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x02000000; break; } case 248: { if (!((mutable_bitField0_ & 0x04000000) == 0x04000000)) { repeatedInt32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x04000000; } repeatedInt32_.add(input.readInt32()); break; } case 250: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x04000000) == 0x04000000) && input.getBytesUntilLimit() > 0) { repeatedInt32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x04000000; } while (input.getBytesUntilLimit() > 0) { repeatedInt32_.add(input.readInt32()); } input.popLimit(limit); break; } case 256: { if (!((mutable_bitField0_ & 0x08000000) == 0x08000000)) { repeatedInt64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x08000000; } repeatedInt64_.add(input.readInt64()); break; } case 258: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x08000000) == 0x08000000) && input.getBytesUntilLimit() > 0) { repeatedInt64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x08000000; } while (input.getBytesUntilLimit() > 0) { repeatedInt64_.add(input.readInt64()); } input.popLimit(limit); break; } case 264: { if (!((mutable_bitField0_ & 0x10000000) == 0x10000000)) { repeatedUint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x10000000; } repeatedUint32_.add(input.readUInt32()); break; } case 266: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x10000000) == 0x10000000) && input.getBytesUntilLimit() > 0) { repeatedUint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x10000000; } while (input.getBytesUntilLimit() > 0) { repeatedUint32_.add(input.readUInt32()); } input.popLimit(limit); break; } case 272: { if (!((mutable_bitField0_ & 0x20000000) == 0x20000000)) { repeatedUint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x20000000; } repeatedUint64_.add(input.readUInt64()); break; } case 274: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x20000000) == 0x20000000) && input.getBytesUntilLimit() > 0) { repeatedUint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x20000000; } while (input.getBytesUntilLimit() > 0) { repeatedUint64_.add(input.readUInt64()); } input.popLimit(limit); break; } case 280: { if (!((mutable_bitField0_ & 0x40000000) == 0x40000000)) { repeatedSint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x40000000; } repeatedSint32_.add(input.readSInt32()); break; } case 282: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x40000000) == 0x40000000) && input.getBytesUntilLimit() > 0) { repeatedSint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x40000000; } while (input.getBytesUntilLimit() > 0) { repeatedSint32_.add(input.readSInt32()); } input.popLimit(limit); break; } case 288: { if (!((mutable_bitField0_ & 0x80000000) == 0x80000000)) { repeatedSint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x80000000; } repeatedSint64_.add(input.readSInt64()); break; } case 290: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x80000000) == 0x80000000) && input.getBytesUntilLimit() > 0) { repeatedSint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x80000000; } while (input.getBytesUntilLimit() > 0) { repeatedSint64_.add(input.readSInt64()); } input.popLimit(limit); break; } case 301: { if (!((mutable_bitField1_ & 0x00000001) == 0x00000001)) { repeatedFixed32_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000001; } repeatedFixed32_.add(input.readFixed32()); break; } case 298: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField1_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { repeatedFixed32_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { repeatedFixed32_.add(input.readFixed32()); } input.popLimit(limit); break; } case 305: { if (!((mutable_bitField1_ & 0x00000002) == 0x00000002)) { repeatedFixed64_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000002; } repeatedFixed64_.add(input.readFixed64()); break; } case 306: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField1_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { repeatedFixed64_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { repeatedFixed64_.add(input.readFixed64()); } input.popLimit(limit); break; } case 317: { if (!((mutable_bitField1_ & 0x00000004) == 0x00000004)) { repeatedSfixed32_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000004; } repeatedSfixed32_.add(input.readSFixed32()); break; } case 314: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField1_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { repeatedSfixed32_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { repeatedSfixed32_.add(input.readSFixed32()); } input.popLimit(limit); break; } case 321: { if (!((mutable_bitField1_ & 0x00000008) == 0x00000008)) { repeatedSfixed64_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000008; } repeatedSfixed64_.add(input.readSFixed64()); break; } case 322: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField1_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { repeatedSfixed64_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { repeatedSfixed64_.add(input.readSFixed64()); } input.popLimit(limit); break; } case 333: { if (!((mutable_bitField1_ & 0x00000010) == 0x00000010)) { repeatedFloat_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000010; } repeatedFloat_.add(input.readFloat()); break; } case 330: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField1_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { repeatedFloat_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { repeatedFloat_.add(input.readFloat()); } input.popLimit(limit); break; } case 337: { if (!((mutable_bitField1_ & 0x00000020) == 0x00000020)) { repeatedDouble_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000020; } repeatedDouble_.add(input.readDouble()); break; } case 338: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField1_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { repeatedDouble_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { repeatedDouble_.add(input.readDouble()); } input.popLimit(limit); break; } case 344: { if (!((mutable_bitField1_ & 0x00000040) == 0x00000040)) { repeatedBool_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000040; } repeatedBool_.add(input.readBool()); break; } case 346: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField1_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { repeatedBool_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { repeatedBool_.add(input.readBool()); } input.popLimit(limit); break; } case 354: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField1_ & 0x00000080) == 0x00000080)) { repeatedString_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField1_ |= 0x00000080; } repeatedString_.add(bs); break; } case 362: { if (!((mutable_bitField1_ & 0x00000100) == 0x00000100)) { repeatedBytes_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000100; } repeatedBytes_.add(input.readBytes()); break; } case 371: { if (!((mutable_bitField1_ & 0x00000200) == 0x00000200)) { repeatedGroup_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000200; } repeatedGroup_.add(input.readGroup(46, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.PARSER, extensionRegistry)); break; } case 386: { if (!((mutable_bitField1_ & 0x00000400) == 0x00000400)) { repeatedNestedMessage_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000400; } repeatedNestedMessage_.add(input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry)); break; } case 394: { if (!((mutable_bitField1_ & 0x00000800) == 0x00000800)) { repeatedForeignMessage_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000800; } repeatedForeignMessage_.add(input.readMessage(protobuf_unittest.UnittestProto.ForeignMessage.PARSER, extensionRegistry)); break; } case 402: { if (!((mutable_bitField1_ & 0x00001000) == 0x00001000)) { repeatedImportMessage_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00001000; } repeatedImportMessage_.add(input.readMessage(com.google.protobuf.test.UnittestImport.ImportMessage.PARSER, extensionRegistry)); break; } case 408: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(51, rawValue); } else { if (!((mutable_bitField1_ & 0x00002000) == 0x00002000)) { repeatedNestedEnum_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00002000; } repeatedNestedEnum_.add(value); } break; } case 410: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(51, rawValue); } else { if (!((mutable_bitField1_ & 0x00002000) == 0x00002000)) { repeatedNestedEnum_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00002000; } repeatedNestedEnum_.add(value); } } input.popLimit(oldLimit); break; } case 416: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(52, rawValue); } else { if (!((mutable_bitField1_ & 0x00004000) == 0x00004000)) { repeatedForeignEnum_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00004000; } repeatedForeignEnum_.add(value); } break; } case 418: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(52, rawValue); } else { if (!((mutable_bitField1_ & 0x00004000) == 0x00004000)) { repeatedForeignEnum_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00004000; } repeatedForeignEnum_.add(value); } } input.popLimit(oldLimit); break; } case 424: { int rawValue = input.readEnum(); com.google.protobuf.test.UnittestImport.ImportEnum value = com.google.protobuf.test.UnittestImport.ImportEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(53, rawValue); } else { if (!((mutable_bitField1_ & 0x00008000) == 0x00008000)) { repeatedImportEnum_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00008000; } repeatedImportEnum_.add(value); } break; } case 426: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); com.google.protobuf.test.UnittestImport.ImportEnum value = com.google.protobuf.test.UnittestImport.ImportEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(53, rawValue); } else { if (!((mutable_bitField1_ & 0x00008000) == 0x00008000)) { repeatedImportEnum_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00008000; } repeatedImportEnum_.add(value); } } input.popLimit(oldLimit); break; } case 434: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField1_ & 0x00010000) == 0x00010000)) { repeatedStringPiece_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField1_ |= 0x00010000; } repeatedStringPiece_.add(bs); break; } case 442: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField1_ & 0x00020000) == 0x00020000)) { repeatedCord_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField1_ |= 0x00020000; } repeatedCord_.add(bs); break; } case 458: { if (!((mutable_bitField1_ & 0x00040000) == 0x00040000)) { repeatedLazyMessage_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00040000; } repeatedLazyMessage_.add(input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry)); break; } case 488: { bitField0_ |= 0x04000000; defaultInt32_ = input.readInt32(); break; } case 496: { bitField0_ |= 0x08000000; defaultInt64_ = input.readInt64(); break; } case 504: { bitField0_ |= 0x10000000; defaultUint32_ = input.readUInt32(); break; } case 512: { bitField0_ |= 0x20000000; defaultUint64_ = input.readUInt64(); break; } case 520: { bitField0_ |= 0x40000000; defaultSint32_ = input.readSInt32(); break; } case 528: { bitField0_ |= 0x80000000; defaultSint64_ = input.readSInt64(); break; } case 541: { bitField1_ |= 0x00000001; defaultFixed32_ = input.readFixed32(); break; } case 545: { bitField1_ |= 0x00000002; defaultFixed64_ = input.readFixed64(); break; } case 557: { bitField1_ |= 0x00000004; defaultSfixed32_ = input.readSFixed32(); break; } case 561: { bitField1_ |= 0x00000008; defaultSfixed64_ = input.readSFixed64(); break; } case 573: { bitField1_ |= 0x00000010; defaultFloat_ = input.readFloat(); break; } case 577: { bitField1_ |= 0x00000020; defaultDouble_ = input.readDouble(); break; } case 584: { bitField1_ |= 0x00000040; defaultBool_ = input.readBool(); break; } case 594: { com.google.protobuf.ByteString bs = input.readBytes(); bitField1_ |= 0x00000080; defaultString_ = bs; break; } case 602: { bitField1_ |= 0x00000100; defaultBytes_ = input.readBytes(); break; } case 648: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(81, rawValue); } else { bitField1_ |= 0x00000200; defaultNestedEnum_ = value; } break; } case 656: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(82, rawValue); } else { bitField1_ |= 0x00000400; defaultForeignEnum_ = value; } break; } case 664: { int rawValue = input.readEnum(); com.google.protobuf.test.UnittestImport.ImportEnum value = com.google.protobuf.test.UnittestImport.ImportEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(83, rawValue); } else { bitField1_ |= 0x00000800; defaultImportEnum_ = value; } break; } case 674: { com.google.protobuf.ByteString bs = input.readBytes(); bitField1_ |= 0x00001000; defaultStringPiece_ = bs; break; } case 682: { com.google.protobuf.ByteString bs = input.readBytes(); bitField1_ |= 0x00002000; defaultCord_ = bs; break; } case 888: { oneofFieldCase_ = 111; oneofField_ = input.readUInt32(); break; } case 898: { protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder subBuilder = null; if (oneofFieldCase_ == 112) { subBuilder = ((protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_).toBuilder(); } oneofField_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_); oneofField_ = subBuilder.buildPartial(); } oneofFieldCase_ = 112; break; } case 906: { com.google.protobuf.ByteString bs = input.readBytes(); oneofFieldCase_ = 113; oneofField_ = bs; break; } case 914: { oneofFieldCase_ = 114; oneofField_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x04000000) == 0x04000000)) { repeatedInt32_ = java.util.Collections.unmodifiableList(repeatedInt32_); } if (((mutable_bitField0_ & 0x08000000) == 0x08000000)) { repeatedInt64_ = java.util.Collections.unmodifiableList(repeatedInt64_); } if (((mutable_bitField0_ & 0x10000000) == 0x10000000)) { repeatedUint32_ = java.util.Collections.unmodifiableList(repeatedUint32_); } if (((mutable_bitField0_ & 0x20000000) == 0x20000000)) { repeatedUint64_ = java.util.Collections.unmodifiableList(repeatedUint64_); } if (((mutable_bitField0_ & 0x40000000) == 0x40000000)) { repeatedSint32_ = java.util.Collections.unmodifiableList(repeatedSint32_); } if (((mutable_bitField0_ & 0x80000000) == 0x80000000)) { repeatedSint64_ = java.util.Collections.unmodifiableList(repeatedSint64_); } if (((mutable_bitField1_ & 0x00000001) == 0x00000001)) { repeatedFixed32_ = java.util.Collections.unmodifiableList(repeatedFixed32_); } if (((mutable_bitField1_ & 0x00000002) == 0x00000002)) { repeatedFixed64_ = java.util.Collections.unmodifiableList(repeatedFixed64_); } if (((mutable_bitField1_ & 0x00000004) == 0x00000004)) { repeatedSfixed32_ = java.util.Collections.unmodifiableList(repeatedSfixed32_); } if (((mutable_bitField1_ & 0x00000008) == 0x00000008)) { repeatedSfixed64_ = java.util.Collections.unmodifiableList(repeatedSfixed64_); } if (((mutable_bitField1_ & 0x00000010) == 0x00000010)) { repeatedFloat_ = java.util.Collections.unmodifiableList(repeatedFloat_); } if (((mutable_bitField1_ & 0x00000020) == 0x00000020)) { repeatedDouble_ = java.util.Collections.unmodifiableList(repeatedDouble_); } if (((mutable_bitField1_ & 0x00000040) == 0x00000040)) { repeatedBool_ = java.util.Collections.unmodifiableList(repeatedBool_); } if (((mutable_bitField1_ & 0x00000080) == 0x00000080)) { repeatedString_ = repeatedString_.getUnmodifiableView(); } if (((mutable_bitField1_ & 0x00000100) == 0x00000100)) { repeatedBytes_ = java.util.Collections.unmodifiableList(repeatedBytes_); } if (((mutable_bitField1_ & 0x00000200) == 0x00000200)) { repeatedGroup_ = java.util.Collections.unmodifiableList(repeatedGroup_); } if (((mutable_bitField1_ & 0x00000400) == 0x00000400)) { repeatedNestedMessage_ = java.util.Collections.unmodifiableList(repeatedNestedMessage_); } if (((mutable_bitField1_ & 0x00000800) == 0x00000800)) { repeatedForeignMessage_ = java.util.Collections.unmodifiableList(repeatedForeignMessage_); } if (((mutable_bitField1_ & 0x00001000) == 0x00001000)) { repeatedImportMessage_ = java.util.Collections.unmodifiableList(repeatedImportMessage_); } if (((mutable_bitField1_ & 0x00002000) == 0x00002000)) { repeatedNestedEnum_ = java.util.Collections.unmodifiableList(repeatedNestedEnum_); } if (((mutable_bitField1_ & 0x00004000) == 0x00004000)) { repeatedForeignEnum_ = java.util.Collections.unmodifiableList(repeatedForeignEnum_); } if (((mutable_bitField1_ & 0x00008000) == 0x00008000)) { repeatedImportEnum_ = java.util.Collections.unmodifiableList(repeatedImportEnum_); } if (((mutable_bitField1_ & 0x00010000) == 0x00010000)) { repeatedStringPiece_ = repeatedStringPiece_.getUnmodifiableView(); } if (((mutable_bitField1_ & 0x00020000) == 0x00020000)) { repeatedCord_ = repeatedCord_.getUnmodifiableView(); } if (((mutable_bitField1_ & 0x00040000) == 0x00040000)) { repeatedLazyMessage_ = java.util.Collections.unmodifiableList(repeatedLazyMessage_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestAllTypes.class, protobuf_unittest.UnittestProto.TestAllTypes.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestAllTypes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestAllTypes(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code protobuf_unittest.TestAllTypes.NestedEnum} */ public enum NestedEnum implements com.google.protobuf.ProtocolMessageEnum { /** * FOO = 1; */ FOO(0, 1), /** * BAR = 2; */ BAR(1, 2), /** * BAZ = 3; */ BAZ(2, 3), /** * NEG = -1; * *
       * Intentionally negative.
       * 
*/ NEG(3, -1), ; /** * FOO = 1; */ public static final int FOO_VALUE = 1; /** * BAR = 2; */ public static final int BAR_VALUE = 2; /** * BAZ = 3; */ public static final int BAZ_VALUE = 3; /** * NEG = -1; * *
       * Intentionally negative.
       * 
*/ public static final int NEG_VALUE = -1; public final int getNumber() { return value; } public static NestedEnum valueOf(int value) { switch (value) { case 1: return FOO; case 2: return BAR; case 3: return BAZ; case -1: return NEG; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public NestedEnum findValueByNumber(int number) { return NestedEnum.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return protobuf_unittest.UnittestProto.TestAllTypes.getDescriptor().getEnumTypes().get(0); } private static final NestedEnum[] VALUES = values(); public static NestedEnum valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private NestedEnum(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protobuf_unittest.TestAllTypes.NestedEnum) } public interface NestedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypes.NestedMessage) com.google.protobuf.MessageOrBuilder { /** * optional int32 bb = 1; * *
       * The field name "b" fails to compile in proto1 because it conflicts with
       * a local variable named "b" in one of the generated methods.  Doh.
       * This file needs to compile in proto1 to test backwards-compatibility.
       * 
*/ boolean hasBb(); /** * optional int32 bb = 1; * *
       * The field name "b" fails to compile in proto1 because it conflicts with
       * a local variable named "b" in one of the generated methods.  Doh.
       * This file needs to compile in proto1 to test backwards-compatibility.
       * 
*/ int getBb(); } /** * Protobuf type {@code protobuf_unittest.TestAllTypes.NestedMessage} */ public static final class NestedMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypes.NestedMessage) NestedMessageOrBuilder { // Use NestedMessage.newBuilder() to construct. private NestedMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NestedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NestedMessage defaultInstance; public static NestedMessage getDefaultInstance() { return defaultInstance; } public NestedMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NestedMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; bb_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.class, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NestedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NestedMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BB_FIELD_NUMBER = 1; private int bb_; /** * optional int32 bb = 1; * *
       * The field name "b" fails to compile in proto1 because it conflicts with
       * a local variable named "b" in one of the generated methods.  Doh.
       * This file needs to compile in proto1 to test backwards-compatibility.
       * 
*/ public boolean hasBb() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 bb = 1; * *
       * The field name "b" fails to compile in proto1 because it conflicts with
       * a local variable named "b" in one of the generated methods.  Doh.
       * This file needs to compile in proto1 to test backwards-compatibility.
       * 
*/ public int getBb() { return bb_; } private void initFields() { bb_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, bb_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, bb_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestAllTypes.NestedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypes.NestedMessage) protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.class, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bb_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_NestedMessage_descriptor; } public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage build() { protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage buildPartial() { protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage result = new protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bb_ = bb_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) { return mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage other) { if (other == protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()) return this; if (other.hasBb()) { setBb(other.getBb()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int bb_ ; /** * optional int32 bb = 1; * *
         * The field name "b" fails to compile in proto1 because it conflicts with
         * a local variable named "b" in one of the generated methods.  Doh.
         * This file needs to compile in proto1 to test backwards-compatibility.
         * 
*/ public boolean hasBb() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 bb = 1; * *
         * The field name "b" fails to compile in proto1 because it conflicts with
         * a local variable named "b" in one of the generated methods.  Doh.
         * This file needs to compile in proto1 to test backwards-compatibility.
         * 
*/ public int getBb() { return bb_; } /** * optional int32 bb = 1; * *
         * The field name "b" fails to compile in proto1 because it conflicts with
         * a local variable named "b" in one of the generated methods.  Doh.
         * This file needs to compile in proto1 to test backwards-compatibility.
         * 
*/ public Builder setBb(int value) { bitField0_ |= 0x00000001; bb_ = value; onChanged(); return this; } /** * optional int32 bb = 1; * *
         * The field name "b" fails to compile in proto1 because it conflicts with
         * a local variable named "b" in one of the generated methods.  Doh.
         * This file needs to compile in proto1 to test backwards-compatibility.
         * 
*/ public Builder clearBb() { bitField0_ = (bitField0_ & ~0x00000001); bb_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypes.NestedMessage) } static { defaultInstance = new NestedMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.NestedMessage) } public interface OptionalGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypes.OptionalGroup) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 17; */ boolean hasA(); /** * optional int32 a = 17; */ int getA(); } /** * Protobuf type {@code protobuf_unittest.TestAllTypes.OptionalGroup} */ public static final class OptionalGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypes.OptionalGroup) OptionalGroupOrBuilder { // Use OptionalGroup.newBuilder() to construct. private OptionalGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OptionalGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OptionalGroup defaultInstance; public static OptionalGroup getDefaultInstance() { return defaultInstance; } public OptionalGroup getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OptionalGroup( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 136: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.class, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OptionalGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionalGroup(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 17; private int a_; /** * optional int32 a = 17; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 17; */ public int getA() { return a_; } private void initFields() { a_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(17, a_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, a_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestAllTypes.OptionalGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypes.OptionalGroup) protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.class, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_descriptor; } public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup build() { protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup buildPartial() { protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup result = new protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup) { return mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup other) { if (other == protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 17; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 17; */ public int getA() { return a_; } /** * optional int32 a = 17; */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 17; */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypes.OptionalGroup) } static { defaultInstance = new OptionalGroup(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.OptionalGroup) } public interface RepeatedGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllTypes.RepeatedGroup) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 47; */ boolean hasA(); /** * optional int32 a = 47; */ int getA(); } /** * Protobuf type {@code protobuf_unittest.TestAllTypes.RepeatedGroup} */ public static final class RepeatedGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllTypes.RepeatedGroup) RepeatedGroupOrBuilder { // Use RepeatedGroup.newBuilder() to construct. private RepeatedGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RepeatedGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RepeatedGroup defaultInstance; public static RepeatedGroup getDefaultInstance() { return defaultInstance; } public RepeatedGroup getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RepeatedGroup( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 376: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.class, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RepeatedGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RepeatedGroup(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 47; private int a_; /** * optional int32 a = 47; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 47; */ public int getA() { return a_; } private void initFields() { a_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(47, a_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(47, a_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestAllTypes.RepeatedGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypes.RepeatedGroup) protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.class, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_descriptor; } public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup build() { protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup buildPartial() { protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup result = new protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup) { return mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup other) { if (other == protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 47; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 47; */ public int getA() { return a_; } /** * optional int32 a = 47; */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 47; */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypes.RepeatedGroup) } static { defaultInstance = new RepeatedGroup(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.RepeatedGroup) } private int bitField0_; private int bitField1_; private int oneofFieldCase_ = 0; private java.lang.Object oneofField_; public enum OneofFieldCase implements com.google.protobuf.Internal.EnumLite { ONEOF_UINT32(111), ONEOF_NESTED_MESSAGE(112), ONEOF_STRING(113), ONEOF_BYTES(114), ONEOFFIELD_NOT_SET(0); private int value = 0; private OneofFieldCase(int value) { this.value = value; } public static OneofFieldCase valueOf(int value) { switch (value) { case 111: return ONEOF_UINT32; case 112: return ONEOF_NESTED_MESSAGE; case 113: return ONEOF_STRING; case 114: return ONEOF_BYTES; case 0: return ONEOFFIELD_NOT_SET; default: throw new java.lang.IllegalArgumentException( "Value is undefined for this oneof enum."); } } public int getNumber() { return this.value; } }; public OneofFieldCase getOneofFieldCase() { return OneofFieldCase.valueOf( oneofFieldCase_); } public static final int OPTIONAL_INT32_FIELD_NUMBER = 1; private int optionalInt32_; /** * optional int32 optional_int32 = 1; * *
     * Singular
     * 
*/ public boolean hasOptionalInt32() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 optional_int32 = 1; * *
     * Singular
     * 
*/ public int getOptionalInt32() { return optionalInt32_; } public static final int OPTIONAL_INT64_FIELD_NUMBER = 2; private long optionalInt64_; /** * optional int64 optional_int64 = 2; */ public boolean hasOptionalInt64() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 optional_int64 = 2; */ public long getOptionalInt64() { return optionalInt64_; } public static final int OPTIONAL_UINT32_FIELD_NUMBER = 3; private int optionalUint32_; /** * optional uint32 optional_uint32 = 3; */ public boolean hasOptionalUint32() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 optional_uint32 = 3; */ public int getOptionalUint32() { return optionalUint32_; } public static final int OPTIONAL_UINT64_FIELD_NUMBER = 4; private long optionalUint64_; /** * optional uint64 optional_uint64 = 4; */ public boolean hasOptionalUint64() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 optional_uint64 = 4; */ public long getOptionalUint64() { return optionalUint64_; } public static final int OPTIONAL_SINT32_FIELD_NUMBER = 5; private int optionalSint32_; /** * optional sint32 optional_sint32 = 5; */ public boolean hasOptionalSint32() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional sint32 optional_sint32 = 5; */ public int getOptionalSint32() { return optionalSint32_; } public static final int OPTIONAL_SINT64_FIELD_NUMBER = 6; private long optionalSint64_; /** * optional sint64 optional_sint64 = 6; */ public boolean hasOptionalSint64() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional sint64 optional_sint64 = 6; */ public long getOptionalSint64() { return optionalSint64_; } public static final int OPTIONAL_FIXED32_FIELD_NUMBER = 7; private int optionalFixed32_; /** * optional fixed32 optional_fixed32 = 7; */ public boolean hasOptionalFixed32() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional fixed32 optional_fixed32 = 7; */ public int getOptionalFixed32() { return optionalFixed32_; } public static final int OPTIONAL_FIXED64_FIELD_NUMBER = 8; private long optionalFixed64_; /** * optional fixed64 optional_fixed64 = 8; */ public boolean hasOptionalFixed64() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional fixed64 optional_fixed64 = 8; */ public long getOptionalFixed64() { return optionalFixed64_; } public static final int OPTIONAL_SFIXED32_FIELD_NUMBER = 9; private int optionalSfixed32_; /** * optional sfixed32 optional_sfixed32 = 9; */ public boolean hasOptionalSfixed32() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional sfixed32 optional_sfixed32 = 9; */ public int getOptionalSfixed32() { return optionalSfixed32_; } public static final int OPTIONAL_SFIXED64_FIELD_NUMBER = 10; private long optionalSfixed64_; /** * optional sfixed64 optional_sfixed64 = 10; */ public boolean hasOptionalSfixed64() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional sfixed64 optional_sfixed64 = 10; */ public long getOptionalSfixed64() { return optionalSfixed64_; } public static final int OPTIONAL_FLOAT_FIELD_NUMBER = 11; private float optionalFloat_; /** * optional float optional_float = 11; */ public boolean hasOptionalFloat() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional float optional_float = 11; */ public float getOptionalFloat() { return optionalFloat_; } public static final int OPTIONAL_DOUBLE_FIELD_NUMBER = 12; private double optionalDouble_; /** * optional double optional_double = 12; */ public boolean hasOptionalDouble() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional double optional_double = 12; */ public double getOptionalDouble() { return optionalDouble_; } public static final int OPTIONAL_BOOL_FIELD_NUMBER = 13; private boolean optionalBool_; /** * optional bool optional_bool = 13; */ public boolean hasOptionalBool() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bool optional_bool = 13; */ public boolean getOptionalBool() { return optionalBool_; } public static final int OPTIONAL_STRING_FIELD_NUMBER = 14; private java.lang.Object optionalString_; /** * optional string optional_string = 14; */ public boolean hasOptionalString() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional string optional_string = 14; */ public java.lang.String getOptionalString() { java.lang.Object ref = optionalString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalString_ = s; } return s; } } /** * optional string optional_string = 14; */ public com.google.protobuf.ByteString getOptionalStringBytes() { java.lang.Object ref = optionalString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONAL_BYTES_FIELD_NUMBER = 15; private com.google.protobuf.ByteString optionalBytes_; /** * optional bytes optional_bytes = 15; */ public boolean hasOptionalBytes() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional bytes optional_bytes = 15; */ public com.google.protobuf.ByteString getOptionalBytes() { return optionalBytes_; } public static final int OPTIONALGROUP_FIELD_NUMBER = 16; private protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup optionalGroup_; /** * optional group OptionalGroup = 16 { ... } */ public boolean hasOptionalGroup() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional group OptionalGroup = 16 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup getOptionalGroup() { return optionalGroup_; } /** * optional group OptionalGroup = 16 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder getOptionalGroupOrBuilder() { return optionalGroup_; } public static final int OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER = 18; private protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage optionalNestedMessage_; /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public boolean hasOptionalNestedMessage() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalNestedMessage() { return optionalNestedMessage_; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() { return optionalNestedMessage_; } public static final int OPTIONAL_FOREIGN_MESSAGE_FIELD_NUMBER = 19; private protobuf_unittest.UnittestProto.ForeignMessage optionalForeignMessage_; /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public boolean hasOptionalForeignMessage() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public protobuf_unittest.UnittestProto.ForeignMessage getOptionalForeignMessage() { return optionalForeignMessage_; } /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getOptionalForeignMessageOrBuilder() { return optionalForeignMessage_; } public static final int OPTIONAL_IMPORT_MESSAGE_FIELD_NUMBER = 20; private com.google.protobuf.test.UnittestImport.ImportMessage optionalImportMessage_; /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public boolean hasOptionalImportMessage() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public com.google.protobuf.test.UnittestImport.ImportMessage getOptionalImportMessage() { return optionalImportMessage_; } /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getOptionalImportMessageOrBuilder() { return optionalImportMessage_; } public static final int OPTIONAL_NESTED_ENUM_FIELD_NUMBER = 21; private protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum optionalNestedEnum_; /** * optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21; */ public boolean hasOptionalNestedEnum() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getOptionalNestedEnum() { return optionalNestedEnum_; } public static final int OPTIONAL_FOREIGN_ENUM_FIELD_NUMBER = 22; private protobuf_unittest.UnittestProto.ForeignEnum optionalForeignEnum_; /** * optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22; */ public boolean hasOptionalForeignEnum() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22; */ public protobuf_unittest.UnittestProto.ForeignEnum getOptionalForeignEnum() { return optionalForeignEnum_; } public static final int OPTIONAL_IMPORT_ENUM_FIELD_NUMBER = 23; private com.google.protobuf.test.UnittestImport.ImportEnum optionalImportEnum_; /** * optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23; */ public boolean hasOptionalImportEnum() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23; */ public com.google.protobuf.test.UnittestImport.ImportEnum getOptionalImportEnum() { return optionalImportEnum_; } public static final int OPTIONAL_STRING_PIECE_FIELD_NUMBER = 24; private java.lang.Object optionalStringPiece_; /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ public boolean hasOptionalStringPiece() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ public java.lang.String getOptionalStringPiece() { java.lang.Object ref = optionalStringPiece_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalStringPiece_ = s; } return s; } } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getOptionalStringPieceBytes() { java.lang.Object ref = optionalStringPiece_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalStringPiece_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONAL_CORD_FIELD_NUMBER = 25; private java.lang.Object optionalCord_; /** * optional string optional_cord = 25 [ctype = CORD]; */ public boolean hasOptionalCord() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional string optional_cord = 25 [ctype = CORD]; */ public java.lang.String getOptionalCord() { java.lang.Object ref = optionalCord_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalCord_ = s; } return s; } } /** * optional string optional_cord = 25 [ctype = CORD]; */ public com.google.protobuf.ByteString getOptionalCordBytes() { java.lang.Object ref = optionalCord_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalCord_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONAL_PUBLIC_IMPORT_MESSAGE_FIELD_NUMBER = 26; private com.google.protobuf.test.UnittestImportPublic.PublicImportMessage optionalPublicImportMessage_; /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
     * Defined in unittest_import_public.proto
     * 
*/ public boolean hasOptionalPublicImportMessage() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
     * Defined in unittest_import_public.proto
     * 
*/ public com.google.protobuf.test.UnittestImportPublic.PublicImportMessage getOptionalPublicImportMessage() { return optionalPublicImportMessage_; } /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
     * Defined in unittest_import_public.proto
     * 
*/ public com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder getOptionalPublicImportMessageOrBuilder() { return optionalPublicImportMessage_; } public static final int OPTIONAL_LAZY_MESSAGE_FIELD_NUMBER = 27; private protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage optionalLazyMessage_; /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public boolean hasOptionalLazyMessage() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalLazyMessage() { return optionalLazyMessage_; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() { return optionalLazyMessage_; } public static final int REPEATED_INT32_FIELD_NUMBER = 31; private java.util.List repeatedInt32_; /** * repeated int32 repeated_int32 = 31; * *
     * Repeated
     * 
*/ public java.util.List getRepeatedInt32List() { return repeatedInt32_; } /** * repeated int32 repeated_int32 = 31; * *
     * Repeated
     * 
*/ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** * repeated int32 repeated_int32 = 31; * *
     * Repeated
     * 
*/ public int getRepeatedInt32(int index) { return repeatedInt32_.get(index); } public static final int REPEATED_INT64_FIELD_NUMBER = 32; private java.util.List repeatedInt64_; /** * repeated int64 repeated_int64 = 32; */ public java.util.List getRepeatedInt64List() { return repeatedInt64_; } /** * repeated int64 repeated_int64 = 32; */ public int getRepeatedInt64Count() { return repeatedInt64_.size(); } /** * repeated int64 repeated_int64 = 32; */ public long getRepeatedInt64(int index) { return repeatedInt64_.get(index); } public static final int REPEATED_UINT32_FIELD_NUMBER = 33; private java.util.List repeatedUint32_; /** * repeated uint32 repeated_uint32 = 33; */ public java.util.List getRepeatedUint32List() { return repeatedUint32_; } /** * repeated uint32 repeated_uint32 = 33; */ public int getRepeatedUint32Count() { return repeatedUint32_.size(); } /** * repeated uint32 repeated_uint32 = 33; */ public int getRepeatedUint32(int index) { return repeatedUint32_.get(index); } public static final int REPEATED_UINT64_FIELD_NUMBER = 34; private java.util.List repeatedUint64_; /** * repeated uint64 repeated_uint64 = 34; */ public java.util.List getRepeatedUint64List() { return repeatedUint64_; } /** * repeated uint64 repeated_uint64 = 34; */ public int getRepeatedUint64Count() { return repeatedUint64_.size(); } /** * repeated uint64 repeated_uint64 = 34; */ public long getRepeatedUint64(int index) { return repeatedUint64_.get(index); } public static final int REPEATED_SINT32_FIELD_NUMBER = 35; private java.util.List repeatedSint32_; /** * repeated sint32 repeated_sint32 = 35; */ public java.util.List getRepeatedSint32List() { return repeatedSint32_; } /** * repeated sint32 repeated_sint32 = 35; */ public int getRepeatedSint32Count() { return repeatedSint32_.size(); } /** * repeated sint32 repeated_sint32 = 35; */ public int getRepeatedSint32(int index) { return repeatedSint32_.get(index); } public static final int REPEATED_SINT64_FIELD_NUMBER = 36; private java.util.List repeatedSint64_; /** * repeated sint64 repeated_sint64 = 36; */ public java.util.List getRepeatedSint64List() { return repeatedSint64_; } /** * repeated sint64 repeated_sint64 = 36; */ public int getRepeatedSint64Count() { return repeatedSint64_.size(); } /** * repeated sint64 repeated_sint64 = 36; */ public long getRepeatedSint64(int index) { return repeatedSint64_.get(index); } public static final int REPEATED_FIXED32_FIELD_NUMBER = 37; private java.util.List repeatedFixed32_; /** * repeated fixed32 repeated_fixed32 = 37; */ public java.util.List getRepeatedFixed32List() { return repeatedFixed32_; } /** * repeated fixed32 repeated_fixed32 = 37; */ public int getRepeatedFixed32Count() { return repeatedFixed32_.size(); } /** * repeated fixed32 repeated_fixed32 = 37; */ public int getRepeatedFixed32(int index) { return repeatedFixed32_.get(index); } public static final int REPEATED_FIXED64_FIELD_NUMBER = 38; private java.util.List repeatedFixed64_; /** * repeated fixed64 repeated_fixed64 = 38; */ public java.util.List getRepeatedFixed64List() { return repeatedFixed64_; } /** * repeated fixed64 repeated_fixed64 = 38; */ public int getRepeatedFixed64Count() { return repeatedFixed64_.size(); } /** * repeated fixed64 repeated_fixed64 = 38; */ public long getRepeatedFixed64(int index) { return repeatedFixed64_.get(index); } public static final int REPEATED_SFIXED32_FIELD_NUMBER = 39; private java.util.List repeatedSfixed32_; /** * repeated sfixed32 repeated_sfixed32 = 39; */ public java.util.List getRepeatedSfixed32List() { return repeatedSfixed32_; } /** * repeated sfixed32 repeated_sfixed32 = 39; */ public int getRepeatedSfixed32Count() { return repeatedSfixed32_.size(); } /** * repeated sfixed32 repeated_sfixed32 = 39; */ public int getRepeatedSfixed32(int index) { return repeatedSfixed32_.get(index); } public static final int REPEATED_SFIXED64_FIELD_NUMBER = 40; private java.util.List repeatedSfixed64_; /** * repeated sfixed64 repeated_sfixed64 = 40; */ public java.util.List getRepeatedSfixed64List() { return repeatedSfixed64_; } /** * repeated sfixed64 repeated_sfixed64 = 40; */ public int getRepeatedSfixed64Count() { return repeatedSfixed64_.size(); } /** * repeated sfixed64 repeated_sfixed64 = 40; */ public long getRepeatedSfixed64(int index) { return repeatedSfixed64_.get(index); } public static final int REPEATED_FLOAT_FIELD_NUMBER = 41; private java.util.List repeatedFloat_; /** * repeated float repeated_float = 41; */ public java.util.List getRepeatedFloatList() { return repeatedFloat_; } /** * repeated float repeated_float = 41; */ public int getRepeatedFloatCount() { return repeatedFloat_.size(); } /** * repeated float repeated_float = 41; */ public float getRepeatedFloat(int index) { return repeatedFloat_.get(index); } public static final int REPEATED_DOUBLE_FIELD_NUMBER = 42; private java.util.List repeatedDouble_; /** * repeated double repeated_double = 42; */ public java.util.List getRepeatedDoubleList() { return repeatedDouble_; } /** * repeated double repeated_double = 42; */ public int getRepeatedDoubleCount() { return repeatedDouble_.size(); } /** * repeated double repeated_double = 42; */ public double getRepeatedDouble(int index) { return repeatedDouble_.get(index); } public static final int REPEATED_BOOL_FIELD_NUMBER = 43; private java.util.List repeatedBool_; /** * repeated bool repeated_bool = 43; */ public java.util.List getRepeatedBoolList() { return repeatedBool_; } /** * repeated bool repeated_bool = 43; */ public int getRepeatedBoolCount() { return repeatedBool_.size(); } /** * repeated bool repeated_bool = 43; */ public boolean getRepeatedBool(int index) { return repeatedBool_.get(index); } public static final int REPEATED_STRING_FIELD_NUMBER = 44; private com.google.protobuf.LazyStringList repeatedString_; /** * repeated string repeated_string = 44; */ public com.google.protobuf.ProtocolStringList getRepeatedStringList() { return repeatedString_; } /** * repeated string repeated_string = 44; */ public int getRepeatedStringCount() { return repeatedString_.size(); } /** * repeated string repeated_string = 44; */ public java.lang.String getRepeatedString(int index) { return repeatedString_.get(index); } /** * repeated string repeated_string = 44; */ public com.google.protobuf.ByteString getRepeatedStringBytes(int index) { return repeatedString_.getByteString(index); } public static final int REPEATED_BYTES_FIELD_NUMBER = 45; private java.util.List repeatedBytes_; /** * repeated bytes repeated_bytes = 45; */ public java.util.List getRepeatedBytesList() { return repeatedBytes_; } /** * repeated bytes repeated_bytes = 45; */ public int getRepeatedBytesCount() { return repeatedBytes_.size(); } /** * repeated bytes repeated_bytes = 45; */ public com.google.protobuf.ByteString getRepeatedBytes(int index) { return repeatedBytes_.get(index); } public static final int REPEATEDGROUP_FIELD_NUMBER = 46; private java.util.List repeatedGroup_; /** * repeated group RepeatedGroup = 46 { ... } */ public java.util.List getRepeatedGroupList() { return repeatedGroup_; } /** * repeated group RepeatedGroup = 46 { ... } */ public java.util.List getRepeatedGroupOrBuilderList() { return repeatedGroup_; } /** * repeated group RepeatedGroup = 46 { ... } */ public int getRepeatedGroupCount() { return repeatedGroup_.size(); } /** * repeated group RepeatedGroup = 46 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup getRepeatedGroup(int index) { return repeatedGroup_.get(index); } /** * repeated group RepeatedGroup = 46 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index) { return repeatedGroup_.get(index); } public static final int REPEATED_NESTED_MESSAGE_FIELD_NUMBER = 48; private java.util.List repeatedNestedMessage_; /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public java.util.List getRepeatedNestedMessageList() { return repeatedNestedMessage_; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public java.util.List getRepeatedNestedMessageOrBuilderList() { return repeatedNestedMessage_; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public int getRepeatedNestedMessageCount() { return repeatedNestedMessage_.size(); } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index) { return repeatedNestedMessage_.get(index); } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder( int index) { return repeatedNestedMessage_.get(index); } public static final int REPEATED_FOREIGN_MESSAGE_FIELD_NUMBER = 49; private java.util.List repeatedForeignMessage_; /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public java.util.List getRepeatedForeignMessageList() { return repeatedForeignMessage_; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public java.util.List getRepeatedForeignMessageOrBuilderList() { return repeatedForeignMessage_; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public int getRepeatedForeignMessageCount() { return repeatedForeignMessage_.size(); } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public protobuf_unittest.UnittestProto.ForeignMessage getRepeatedForeignMessage(int index) { return repeatedForeignMessage_.get(index); } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getRepeatedForeignMessageOrBuilder( int index) { return repeatedForeignMessage_.get(index); } public static final int REPEATED_IMPORT_MESSAGE_FIELD_NUMBER = 50; private java.util.List repeatedImportMessage_; /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public java.util.List getRepeatedImportMessageList() { return repeatedImportMessage_; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public java.util.List getRepeatedImportMessageOrBuilderList() { return repeatedImportMessage_; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public int getRepeatedImportMessageCount() { return repeatedImportMessage_.size(); } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public com.google.protobuf.test.UnittestImport.ImportMessage getRepeatedImportMessage(int index) { return repeatedImportMessage_.get(index); } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getRepeatedImportMessageOrBuilder( int index) { return repeatedImportMessage_.get(index); } public static final int REPEATED_NESTED_ENUM_FIELD_NUMBER = 51; private java.util.List repeatedNestedEnum_; /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ public java.util.List getRepeatedNestedEnumList() { return repeatedNestedEnum_; } /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ public int getRepeatedNestedEnumCount() { return repeatedNestedEnum_.size(); } /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) { return repeatedNestedEnum_.get(index); } public static final int REPEATED_FOREIGN_ENUM_FIELD_NUMBER = 52; private java.util.List repeatedForeignEnum_; /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ public java.util.List getRepeatedForeignEnumList() { return repeatedForeignEnum_; } /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ public int getRepeatedForeignEnumCount() { return repeatedForeignEnum_.size(); } /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ public protobuf_unittest.UnittestProto.ForeignEnum getRepeatedForeignEnum(int index) { return repeatedForeignEnum_.get(index); } public static final int REPEATED_IMPORT_ENUM_FIELD_NUMBER = 53; private java.util.List repeatedImportEnum_; /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ public java.util.List getRepeatedImportEnumList() { return repeatedImportEnum_; } /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ public int getRepeatedImportEnumCount() { return repeatedImportEnum_.size(); } /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ public com.google.protobuf.test.UnittestImport.ImportEnum getRepeatedImportEnum(int index) { return repeatedImportEnum_.get(index); } public static final int REPEATED_STRING_PIECE_FIELD_NUMBER = 54; private com.google.protobuf.LazyStringList repeatedStringPiece_; /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public com.google.protobuf.ProtocolStringList getRepeatedStringPieceList() { return repeatedStringPiece_; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public int getRepeatedStringPieceCount() { return repeatedStringPiece_.size(); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public java.lang.String getRepeatedStringPiece(int index) { return repeatedStringPiece_.get(index); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getRepeatedStringPieceBytes(int index) { return repeatedStringPiece_.getByteString(index); } public static final int REPEATED_CORD_FIELD_NUMBER = 55; private com.google.protobuf.LazyStringList repeatedCord_; /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public com.google.protobuf.ProtocolStringList getRepeatedCordList() { return repeatedCord_; } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public int getRepeatedCordCount() { return repeatedCord_.size(); } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public java.lang.String getRepeatedCord(int index) { return repeatedCord_.get(index); } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public com.google.protobuf.ByteString getRepeatedCordBytes(int index) { return repeatedCord_.getByteString(index); } public static final int REPEATED_LAZY_MESSAGE_FIELD_NUMBER = 57; private java.util.List repeatedLazyMessage_; /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public java.util.List getRepeatedLazyMessageList() { return repeatedLazyMessage_; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public java.util.List getRepeatedLazyMessageOrBuilderList() { return repeatedLazyMessage_; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public int getRepeatedLazyMessageCount() { return repeatedLazyMessage_.size(); } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedLazyMessage(int index) { return repeatedLazyMessage_.get(index); } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder( int index) { return repeatedLazyMessage_.get(index); } public static final int DEFAULT_INT32_FIELD_NUMBER = 61; private int defaultInt32_; /** * optional int32 default_int32 = 61 [default = 41]; * *
     * Singular with defaults
     * 
*/ public boolean hasDefaultInt32() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional int32 default_int32 = 61 [default = 41]; * *
     * Singular with defaults
     * 
*/ public int getDefaultInt32() { return defaultInt32_; } public static final int DEFAULT_INT64_FIELD_NUMBER = 62; private long defaultInt64_; /** * optional int64 default_int64 = 62 [default = 42]; */ public boolean hasDefaultInt64() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * optional int64 default_int64 = 62 [default = 42]; */ public long getDefaultInt64() { return defaultInt64_; } public static final int DEFAULT_UINT32_FIELD_NUMBER = 63; private int defaultUint32_; /** * optional uint32 default_uint32 = 63 [default = 43]; */ public boolean hasDefaultUint32() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * optional uint32 default_uint32 = 63 [default = 43]; */ public int getDefaultUint32() { return defaultUint32_; } public static final int DEFAULT_UINT64_FIELD_NUMBER = 64; private long defaultUint64_; /** * optional uint64 default_uint64 = 64 [default = 44]; */ public boolean hasDefaultUint64() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * optional uint64 default_uint64 = 64 [default = 44]; */ public long getDefaultUint64() { return defaultUint64_; } public static final int DEFAULT_SINT32_FIELD_NUMBER = 65; private int defaultSint32_; /** * optional sint32 default_sint32 = 65 [default = -45]; */ public boolean hasDefaultSint32() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * optional sint32 default_sint32 = 65 [default = -45]; */ public int getDefaultSint32() { return defaultSint32_; } public static final int DEFAULT_SINT64_FIELD_NUMBER = 66; private long defaultSint64_; /** * optional sint64 default_sint64 = 66 [default = 46]; */ public boolean hasDefaultSint64() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * optional sint64 default_sint64 = 66 [default = 46]; */ public long getDefaultSint64() { return defaultSint64_; } public static final int DEFAULT_FIXED32_FIELD_NUMBER = 67; private int defaultFixed32_; /** * optional fixed32 default_fixed32 = 67 [default = 47]; */ public boolean hasDefaultFixed32() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * optional fixed32 default_fixed32 = 67 [default = 47]; */ public int getDefaultFixed32() { return defaultFixed32_; } public static final int DEFAULT_FIXED64_FIELD_NUMBER = 68; private long defaultFixed64_; /** * optional fixed64 default_fixed64 = 68 [default = 48]; */ public boolean hasDefaultFixed64() { return ((bitField1_ & 0x00000002) == 0x00000002); } /** * optional fixed64 default_fixed64 = 68 [default = 48]; */ public long getDefaultFixed64() { return defaultFixed64_; } public static final int DEFAULT_SFIXED32_FIELD_NUMBER = 69; private int defaultSfixed32_; /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; */ public boolean hasDefaultSfixed32() { return ((bitField1_ & 0x00000004) == 0x00000004); } /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; */ public int getDefaultSfixed32() { return defaultSfixed32_; } public static final int DEFAULT_SFIXED64_FIELD_NUMBER = 70; private long defaultSfixed64_; /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; */ public boolean hasDefaultSfixed64() { return ((bitField1_ & 0x00000008) == 0x00000008); } /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; */ public long getDefaultSfixed64() { return defaultSfixed64_; } public static final int DEFAULT_FLOAT_FIELD_NUMBER = 71; private float defaultFloat_; /** * optional float default_float = 71 [default = 51.5]; */ public boolean hasDefaultFloat() { return ((bitField1_ & 0x00000010) == 0x00000010); } /** * optional float default_float = 71 [default = 51.5]; */ public float getDefaultFloat() { return defaultFloat_; } public static final int DEFAULT_DOUBLE_FIELD_NUMBER = 72; private double defaultDouble_; /** * optional double default_double = 72 [default = 52000]; */ public boolean hasDefaultDouble() { return ((bitField1_ & 0x00000020) == 0x00000020); } /** * optional double default_double = 72 [default = 52000]; */ public double getDefaultDouble() { return defaultDouble_; } public static final int DEFAULT_BOOL_FIELD_NUMBER = 73; private boolean defaultBool_; /** * optional bool default_bool = 73 [default = true]; */ public boolean hasDefaultBool() { return ((bitField1_ & 0x00000040) == 0x00000040); } /** * optional bool default_bool = 73 [default = true]; */ public boolean getDefaultBool() { return defaultBool_; } public static final int DEFAULT_STRING_FIELD_NUMBER = 74; private java.lang.Object defaultString_; /** * optional string default_string = 74 [default = "hello"]; */ public boolean hasDefaultString() { return ((bitField1_ & 0x00000080) == 0x00000080); } /** * optional string default_string = 74 [default = "hello"]; */ public java.lang.String getDefaultString() { java.lang.Object ref = defaultString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultString_ = s; } return s; } } /** * optional string default_string = 74 [default = "hello"]; */ public com.google.protobuf.ByteString getDefaultStringBytes() { java.lang.Object ref = defaultString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_BYTES_FIELD_NUMBER = 75; private com.google.protobuf.ByteString defaultBytes_; /** * optional bytes default_bytes = 75 [default = "world"]; */ public boolean hasDefaultBytes() { return ((bitField1_ & 0x00000100) == 0x00000100); } /** * optional bytes default_bytes = 75 [default = "world"]; */ public com.google.protobuf.ByteString getDefaultBytes() { return defaultBytes_; } public static final int DEFAULT_NESTED_ENUM_FIELD_NUMBER = 81; private protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum defaultNestedEnum_; /** * optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR]; */ public boolean hasDefaultNestedEnum() { return ((bitField1_ & 0x00000200) == 0x00000200); } /** * optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getDefaultNestedEnum() { return defaultNestedEnum_; } public static final int DEFAULT_FOREIGN_ENUM_FIELD_NUMBER = 82; private protobuf_unittest.UnittestProto.ForeignEnum defaultForeignEnum_; /** * optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; */ public boolean hasDefaultForeignEnum() { return ((bitField1_ & 0x00000400) == 0x00000400); } /** * optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; */ public protobuf_unittest.UnittestProto.ForeignEnum getDefaultForeignEnum() { return defaultForeignEnum_; } public static final int DEFAULT_IMPORT_ENUM_FIELD_NUMBER = 83; private com.google.protobuf.test.UnittestImport.ImportEnum defaultImportEnum_; /** * optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR]; */ public boolean hasDefaultImportEnum() { return ((bitField1_ & 0x00000800) == 0x00000800); } /** * optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR]; */ public com.google.protobuf.test.UnittestImport.ImportEnum getDefaultImportEnum() { return defaultImportEnum_; } public static final int DEFAULT_STRING_PIECE_FIELD_NUMBER = 84; private java.lang.Object defaultStringPiece_; /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ public boolean hasDefaultStringPiece() { return ((bitField1_ & 0x00001000) == 0x00001000); } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ public java.lang.String getDefaultStringPiece() { java.lang.Object ref = defaultStringPiece_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultStringPiece_ = s; } return s; } } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getDefaultStringPieceBytes() { java.lang.Object ref = defaultStringPiece_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultStringPiece_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_CORD_FIELD_NUMBER = 85; private java.lang.Object defaultCord_; /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ public boolean hasDefaultCord() { return ((bitField1_ & 0x00002000) == 0x00002000); } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ public java.lang.String getDefaultCord() { java.lang.Object ref = defaultCord_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultCord_ = s; } return s; } } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ public com.google.protobuf.ByteString getDefaultCordBytes() { java.lang.Object ref = defaultCord_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultCord_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONEOF_UINT32_FIELD_NUMBER = 111; /** * optional uint32 oneof_uint32 = 111; */ public boolean hasOneofUint32() { return oneofFieldCase_ == 111; } /** * optional uint32 oneof_uint32 = 111; */ public int getOneofUint32() { if (oneofFieldCase_ == 111) { return (java.lang.Integer) oneofField_; } return 0; } public static final int ONEOF_NESTED_MESSAGE_FIELD_NUMBER = 112; /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public boolean hasOneofNestedMessage() { return oneofFieldCase_ == 112; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOneofNestedMessage() { if (oneofFieldCase_ == 112) { return (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_; } return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOneofNestedMessageOrBuilder() { if (oneofFieldCase_ == 112) { return (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_; } return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } public static final int ONEOF_STRING_FIELD_NUMBER = 113; /** * optional string oneof_string = 113; */ public boolean hasOneofString() { return oneofFieldCase_ == 113; } /** * optional string oneof_string = 113; */ public java.lang.String getOneofString() { java.lang.Object ref = ""; if (oneofFieldCase_ == 113) { ref = oneofField_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8() && (oneofFieldCase_ == 113)) { oneofField_ = s; } return s; } } /** * optional string oneof_string = 113; */ public com.google.protobuf.ByteString getOneofStringBytes() { java.lang.Object ref = ""; if (oneofFieldCase_ == 113) { ref = oneofField_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 113) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONEOF_BYTES_FIELD_NUMBER = 114; /** * optional bytes oneof_bytes = 114; */ public boolean hasOneofBytes() { return oneofFieldCase_ == 114; } /** * optional bytes oneof_bytes = 114; */ public com.google.protobuf.ByteString getOneofBytes() { if (oneofFieldCase_ == 114) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.ByteString.EMPTY; } private void initFields() { optionalInt32_ = 0; optionalInt64_ = 0L; optionalUint32_ = 0; optionalUint64_ = 0L; optionalSint32_ = 0; optionalSint64_ = 0L; optionalFixed32_ = 0; optionalFixed64_ = 0L; optionalSfixed32_ = 0; optionalSfixed64_ = 0L; optionalFloat_ = 0F; optionalDouble_ = 0D; optionalBool_ = false; optionalString_ = ""; optionalBytes_ = com.google.protobuf.ByteString.EMPTY; optionalGroup_ = protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance(); optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); optionalForeignMessage_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); optionalImportMessage_ = com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance(); optionalNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.FOO; optionalForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; optionalImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_FOO; optionalStringPiece_ = ""; optionalCord_ = ""; optionalPublicImportMessage_ = com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance(); optionalLazyMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); repeatedInt32_ = java.util.Collections.emptyList(); repeatedInt64_ = java.util.Collections.emptyList(); repeatedUint32_ = java.util.Collections.emptyList(); repeatedUint64_ = java.util.Collections.emptyList(); repeatedSint32_ = java.util.Collections.emptyList(); repeatedSint64_ = java.util.Collections.emptyList(); repeatedFixed32_ = java.util.Collections.emptyList(); repeatedFixed64_ = java.util.Collections.emptyList(); repeatedSfixed32_ = java.util.Collections.emptyList(); repeatedSfixed64_ = java.util.Collections.emptyList(); repeatedFloat_ = java.util.Collections.emptyList(); repeatedDouble_ = java.util.Collections.emptyList(); repeatedBool_ = java.util.Collections.emptyList(); repeatedString_ = com.google.protobuf.LazyStringArrayList.EMPTY; repeatedBytes_ = java.util.Collections.emptyList(); repeatedGroup_ = java.util.Collections.emptyList(); repeatedNestedMessage_ = java.util.Collections.emptyList(); repeatedForeignMessage_ = java.util.Collections.emptyList(); repeatedImportMessage_ = java.util.Collections.emptyList(); repeatedNestedEnum_ = java.util.Collections.emptyList(); repeatedForeignEnum_ = java.util.Collections.emptyList(); repeatedImportEnum_ = java.util.Collections.emptyList(); repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.EMPTY; repeatedCord_ = com.google.protobuf.LazyStringArrayList.EMPTY; repeatedLazyMessage_ = java.util.Collections.emptyList(); defaultInt32_ = 41; defaultInt64_ = 42L; defaultUint32_ = 43; defaultUint64_ = 44L; defaultSint32_ = -45; defaultSint64_ = 46L; defaultFixed32_ = 47; defaultFixed64_ = 48L; defaultSfixed32_ = 49; defaultSfixed64_ = -50L; defaultFloat_ = 51.5F; defaultDouble_ = 52000D; defaultBool_ = true; defaultString_ = "hello"; defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world"); defaultNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.BAR; defaultForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_BAR; defaultImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_BAR; defaultStringPiece_ = "abc"; defaultCord_ = "123"; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, optionalInt32_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, optionalInt64_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, optionalUint32_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(4, optionalUint64_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeSInt32(5, optionalSint32_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeSInt64(6, optionalSint64_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeFixed32(7, optionalFixed32_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeFixed64(8, optionalFixed64_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeSFixed32(9, optionalSfixed32_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeSFixed64(10, optionalSfixed64_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeFloat(11, optionalFloat_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeDouble(12, optionalDouble_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBool(13, optionalBool_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeBytes(14, getOptionalStringBytes()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeBytes(15, optionalBytes_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeGroup(16, optionalGroup_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeMessage(18, optionalNestedMessage_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeMessage(19, optionalForeignMessage_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeMessage(20, optionalImportMessage_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeEnum(21, optionalNestedEnum_.getNumber()); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeEnum(22, optionalForeignEnum_.getNumber()); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeEnum(23, optionalImportEnum_.getNumber()); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeBytes(24, getOptionalStringPieceBytes()); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeBytes(25, getOptionalCordBytes()); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeMessage(26, optionalPublicImportMessage_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeMessage(27, optionalLazyMessage_); } for (int i = 0; i < repeatedInt32_.size(); i++) { output.writeInt32(31, repeatedInt32_.get(i)); } for (int i = 0; i < repeatedInt64_.size(); i++) { output.writeInt64(32, repeatedInt64_.get(i)); } for (int i = 0; i < repeatedUint32_.size(); i++) { output.writeUInt32(33, repeatedUint32_.get(i)); } for (int i = 0; i < repeatedUint64_.size(); i++) { output.writeUInt64(34, repeatedUint64_.get(i)); } for (int i = 0; i < repeatedSint32_.size(); i++) { output.writeSInt32(35, repeatedSint32_.get(i)); } for (int i = 0; i < repeatedSint64_.size(); i++) { output.writeSInt64(36, repeatedSint64_.get(i)); } for (int i = 0; i < repeatedFixed32_.size(); i++) { output.writeFixed32(37, repeatedFixed32_.get(i)); } for (int i = 0; i < repeatedFixed64_.size(); i++) { output.writeFixed64(38, repeatedFixed64_.get(i)); } for (int i = 0; i < repeatedSfixed32_.size(); i++) { output.writeSFixed32(39, repeatedSfixed32_.get(i)); } for (int i = 0; i < repeatedSfixed64_.size(); i++) { output.writeSFixed64(40, repeatedSfixed64_.get(i)); } for (int i = 0; i < repeatedFloat_.size(); i++) { output.writeFloat(41, repeatedFloat_.get(i)); } for (int i = 0; i < repeatedDouble_.size(); i++) { output.writeDouble(42, repeatedDouble_.get(i)); } for (int i = 0; i < repeatedBool_.size(); i++) { output.writeBool(43, repeatedBool_.get(i)); } for (int i = 0; i < repeatedString_.size(); i++) { output.writeBytes(44, repeatedString_.getByteString(i)); } for (int i = 0; i < repeatedBytes_.size(); i++) { output.writeBytes(45, repeatedBytes_.get(i)); } for (int i = 0; i < repeatedGroup_.size(); i++) { output.writeGroup(46, repeatedGroup_.get(i)); } for (int i = 0; i < repeatedNestedMessage_.size(); i++) { output.writeMessage(48, repeatedNestedMessage_.get(i)); } for (int i = 0; i < repeatedForeignMessage_.size(); i++) { output.writeMessage(49, repeatedForeignMessage_.get(i)); } for (int i = 0; i < repeatedImportMessage_.size(); i++) { output.writeMessage(50, repeatedImportMessage_.get(i)); } for (int i = 0; i < repeatedNestedEnum_.size(); i++) { output.writeEnum(51, repeatedNestedEnum_.get(i).getNumber()); } for (int i = 0; i < repeatedForeignEnum_.size(); i++) { output.writeEnum(52, repeatedForeignEnum_.get(i).getNumber()); } for (int i = 0; i < repeatedImportEnum_.size(); i++) { output.writeEnum(53, repeatedImportEnum_.get(i).getNumber()); } for (int i = 0; i < repeatedStringPiece_.size(); i++) { output.writeBytes(54, repeatedStringPiece_.getByteString(i)); } for (int i = 0; i < repeatedCord_.size(); i++) { output.writeBytes(55, repeatedCord_.getByteString(i)); } for (int i = 0; i < repeatedLazyMessage_.size(); i++) { output.writeMessage(57, repeatedLazyMessage_.get(i)); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeInt32(61, defaultInt32_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeInt64(62, defaultInt64_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { output.writeUInt32(63, defaultUint32_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { output.writeUInt64(64, defaultUint64_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { output.writeSInt32(65, defaultSint32_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { output.writeSInt64(66, defaultSint64_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { output.writeFixed32(67, defaultFixed32_); } if (((bitField1_ & 0x00000002) == 0x00000002)) { output.writeFixed64(68, defaultFixed64_); } if (((bitField1_ & 0x00000004) == 0x00000004)) { output.writeSFixed32(69, defaultSfixed32_); } if (((bitField1_ & 0x00000008) == 0x00000008)) { output.writeSFixed64(70, defaultSfixed64_); } if (((bitField1_ & 0x00000010) == 0x00000010)) { output.writeFloat(71, defaultFloat_); } if (((bitField1_ & 0x00000020) == 0x00000020)) { output.writeDouble(72, defaultDouble_); } if (((bitField1_ & 0x00000040) == 0x00000040)) { output.writeBool(73, defaultBool_); } if (((bitField1_ & 0x00000080) == 0x00000080)) { output.writeBytes(74, getDefaultStringBytes()); } if (((bitField1_ & 0x00000100) == 0x00000100)) { output.writeBytes(75, defaultBytes_); } if (((bitField1_ & 0x00000200) == 0x00000200)) { output.writeEnum(81, defaultNestedEnum_.getNumber()); } if (((bitField1_ & 0x00000400) == 0x00000400)) { output.writeEnum(82, defaultForeignEnum_.getNumber()); } if (((bitField1_ & 0x00000800) == 0x00000800)) { output.writeEnum(83, defaultImportEnum_.getNumber()); } if (((bitField1_ & 0x00001000) == 0x00001000)) { output.writeBytes(84, getDefaultStringPieceBytes()); } if (((bitField1_ & 0x00002000) == 0x00002000)) { output.writeBytes(85, getDefaultCordBytes()); } if (oneofFieldCase_ == 111) { output.writeUInt32( 111, (int)((java.lang.Integer) oneofField_)); } if (oneofFieldCase_ == 112) { output.writeMessage(112, (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_); } if (oneofFieldCase_ == 113) { output.writeBytes(113, getOneofStringBytes()); } if (oneofFieldCase_ == 114) { output.writeBytes( 114, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) oneofField_)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, optionalInt32_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, optionalInt64_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, optionalUint32_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, optionalUint64_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(5, optionalSint32_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(6, optionalSint64_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeFixed32Size(7, optionalFixed32_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(8, optionalFixed64_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size(9, optionalSfixed32_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(10, optionalSfixed64_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(11, optionalFloat_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(12, optionalDouble_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, optionalBool_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(14, getOptionalStringBytes()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, optionalBytes_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(16, optionalGroup_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, optionalNestedMessage_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, optionalForeignMessage_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, optionalImportMessage_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(21, optionalNestedEnum_.getNumber()); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(22, optionalForeignEnum_.getNumber()); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(23, optionalImportEnum_.getNumber()); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(24, getOptionalStringPieceBytes()); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(25, getOptionalCordBytes()); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, optionalPublicImportMessage_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, optionalLazyMessage_); } { int dataSize = 0; for (int i = 0; i < repeatedInt32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(repeatedInt32_.get(i)); } size += dataSize; size += 2 * getRepeatedInt32List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedInt64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(repeatedInt64_.get(i)); } size += dataSize; size += 2 * getRepeatedInt64List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedUint32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(repeatedUint32_.get(i)); } size += dataSize; size += 2 * getRepeatedUint32List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedUint64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(repeatedUint64_.get(i)); } size += dataSize; size += 2 * getRepeatedUint64List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedSint32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt32SizeNoTag(repeatedSint32_.get(i)); } size += dataSize; size += 2 * getRepeatedSint32List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedSint64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt64SizeNoTag(repeatedSint64_.get(i)); } size += dataSize; size += 2 * getRepeatedSint64List().size(); } { int dataSize = 0; dataSize = 4 * getRepeatedFixed32List().size(); size += dataSize; size += 2 * getRepeatedFixed32List().size(); } { int dataSize = 0; dataSize = 8 * getRepeatedFixed64List().size(); size += dataSize; size += 2 * getRepeatedFixed64List().size(); } { int dataSize = 0; dataSize = 4 * getRepeatedSfixed32List().size(); size += dataSize; size += 2 * getRepeatedSfixed32List().size(); } { int dataSize = 0; dataSize = 8 * getRepeatedSfixed64List().size(); size += dataSize; size += 2 * getRepeatedSfixed64List().size(); } { int dataSize = 0; dataSize = 4 * getRepeatedFloatList().size(); size += dataSize; size += 2 * getRepeatedFloatList().size(); } { int dataSize = 0; dataSize = 8 * getRepeatedDoubleList().size(); size += dataSize; size += 2 * getRepeatedDoubleList().size(); } { int dataSize = 0; dataSize = 1 * getRepeatedBoolList().size(); size += dataSize; size += 2 * getRepeatedBoolList().size(); } { int dataSize = 0; for (int i = 0; i < repeatedString_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(repeatedString_.getByteString(i)); } size += dataSize; size += 2 * getRepeatedStringList().size(); } { int dataSize = 0; for (int i = 0; i < repeatedBytes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(repeatedBytes_.get(i)); } size += dataSize; size += 2 * getRepeatedBytesList().size(); } for (int i = 0; i < repeatedGroup_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(46, repeatedGroup_.get(i)); } for (int i = 0; i < repeatedNestedMessage_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(48, repeatedNestedMessage_.get(i)); } for (int i = 0; i < repeatedForeignMessage_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(49, repeatedForeignMessage_.get(i)); } for (int i = 0; i < repeatedImportMessage_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(50, repeatedImportMessage_.get(i)); } { int dataSize = 0; for (int i = 0; i < repeatedNestedEnum_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(repeatedNestedEnum_.get(i).getNumber()); } size += dataSize; size += 2 * repeatedNestedEnum_.size(); } { int dataSize = 0; for (int i = 0; i < repeatedForeignEnum_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(repeatedForeignEnum_.get(i).getNumber()); } size += dataSize; size += 2 * repeatedForeignEnum_.size(); } { int dataSize = 0; for (int i = 0; i < repeatedImportEnum_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(repeatedImportEnum_.get(i).getNumber()); } size += dataSize; size += 2 * repeatedImportEnum_.size(); } { int dataSize = 0; for (int i = 0; i < repeatedStringPiece_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(repeatedStringPiece_.getByteString(i)); } size += dataSize; size += 2 * getRepeatedStringPieceList().size(); } { int dataSize = 0; for (int i = 0; i < repeatedCord_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(repeatedCord_.getByteString(i)); } size += dataSize; size += 2 * getRepeatedCordList().size(); } for (int i = 0; i < repeatedLazyMessage_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(57, repeatedLazyMessage_.get(i)); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(61, defaultInt32_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(62, defaultInt64_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(63, defaultUint32_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(64, defaultUint64_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(65, defaultSint32_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(66, defaultSint64_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeFixed32Size(67, defaultFixed32_); } if (((bitField1_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(68, defaultFixed64_); } if (((bitField1_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size(69, defaultSfixed32_); } if (((bitField1_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(70, defaultSfixed64_); } if (((bitField1_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(71, defaultFloat_); } if (((bitField1_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(72, defaultDouble_); } if (((bitField1_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(73, defaultBool_); } if (((bitField1_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(74, getDefaultStringBytes()); } if (((bitField1_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(75, defaultBytes_); } if (((bitField1_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(81, defaultNestedEnum_.getNumber()); } if (((bitField1_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(82, defaultForeignEnum_.getNumber()); } if (((bitField1_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(83, defaultImportEnum_.getNumber()); } if (((bitField1_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(84, getDefaultStringPieceBytes()); } if (((bitField1_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(85, getDefaultCordBytes()); } if (oneofFieldCase_ == 111) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 111, (int)((java.lang.Integer) oneofField_)); } if (oneofFieldCase_ == 112) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(112, (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_); } if (oneofFieldCase_ == 113) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(113, getOneofStringBytes()); } if (oneofFieldCase_ == 114) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 114, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) oneofField_)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestAllTypes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestAllTypes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestAllTypes} * *
     * This proto includes every type of field in both singular and repeated
     * forms.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllTypes) protobuf_unittest.UnittestProto.TestAllTypesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestAllTypes.class, protobuf_unittest.UnittestProto.TestAllTypes.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestAllTypes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getOptionalGroupFieldBuilder(); getOptionalNestedMessageFieldBuilder(); getOptionalForeignMessageFieldBuilder(); getOptionalImportMessageFieldBuilder(); getOptionalPublicImportMessageFieldBuilder(); getOptionalLazyMessageFieldBuilder(); getRepeatedGroupFieldBuilder(); getRepeatedNestedMessageFieldBuilder(); getRepeatedForeignMessageFieldBuilder(); getRepeatedImportMessageFieldBuilder(); getRepeatedLazyMessageFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); optionalInt32_ = 0; bitField0_ = (bitField0_ & ~0x00000001); optionalInt64_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); optionalUint32_ = 0; bitField0_ = (bitField0_ & ~0x00000004); optionalUint64_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); optionalSint32_ = 0; bitField0_ = (bitField0_ & ~0x00000010); optionalSint64_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); optionalFixed32_ = 0; bitField0_ = (bitField0_ & ~0x00000040); optionalFixed64_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); optionalSfixed32_ = 0; bitField0_ = (bitField0_ & ~0x00000100); optionalSfixed64_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); optionalFloat_ = 0F; bitField0_ = (bitField0_ & ~0x00000400); optionalDouble_ = 0D; bitField0_ = (bitField0_ & ~0x00000800); optionalBool_ = false; bitField0_ = (bitField0_ & ~0x00001000); optionalString_ = ""; bitField0_ = (bitField0_ & ~0x00002000); optionalBytes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); if (optionalGroupBuilder_ == null) { optionalGroup_ = protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance(); } else { optionalGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); if (optionalNestedMessageBuilder_ == null) { optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } else { optionalNestedMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00010000); if (optionalForeignMessageBuilder_ == null) { optionalForeignMessage_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); } else { optionalForeignMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); if (optionalImportMessageBuilder_ == null) { optionalImportMessage_ = com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance(); } else { optionalImportMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); optionalNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.FOO; bitField0_ = (bitField0_ & ~0x00080000); optionalForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; bitField0_ = (bitField0_ & ~0x00100000); optionalImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_FOO; bitField0_ = (bitField0_ & ~0x00200000); optionalStringPiece_ = ""; bitField0_ = (bitField0_ & ~0x00400000); optionalCord_ = ""; bitField0_ = (bitField0_ & ~0x00800000); if (optionalPublicImportMessageBuilder_ == null) { optionalPublicImportMessage_ = com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance(); } else { optionalPublicImportMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x01000000); if (optionalLazyMessageBuilder_ == null) { optionalLazyMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } else { optionalLazyMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x02000000); repeatedInt32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x04000000); repeatedInt64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x08000000); repeatedUint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x10000000); repeatedUint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x20000000); repeatedSint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x40000000); repeatedSint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x80000000); repeatedFixed32_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000001); repeatedFixed64_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000002); repeatedSfixed32_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000004); repeatedSfixed64_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000008); repeatedFloat_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000010); repeatedDouble_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000020); repeatedBool_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000040); repeatedString_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000080); repeatedBytes_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000100); if (repeatedGroupBuilder_ == null) { repeatedGroup_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000200); } else { repeatedGroupBuilder_.clear(); } if (repeatedNestedMessageBuilder_ == null) { repeatedNestedMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000400); } else { repeatedNestedMessageBuilder_.clear(); } if (repeatedForeignMessageBuilder_ == null) { repeatedForeignMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000800); } else { repeatedForeignMessageBuilder_.clear(); } if (repeatedImportMessageBuilder_ == null) { repeatedImportMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00001000); } else { repeatedImportMessageBuilder_.clear(); } repeatedNestedEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00002000); repeatedForeignEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00004000); repeatedImportEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00008000); repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00010000); repeatedCord_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00020000); if (repeatedLazyMessageBuilder_ == null) { repeatedLazyMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00040000); } else { repeatedLazyMessageBuilder_.clear(); } defaultInt32_ = 41; bitField1_ = (bitField1_ & ~0x00080000); defaultInt64_ = 42L; bitField1_ = (bitField1_ & ~0x00100000); defaultUint32_ = 43; bitField1_ = (bitField1_ & ~0x00200000); defaultUint64_ = 44L; bitField1_ = (bitField1_ & ~0x00400000); defaultSint32_ = -45; bitField1_ = (bitField1_ & ~0x00800000); defaultSint64_ = 46L; bitField1_ = (bitField1_ & ~0x01000000); defaultFixed32_ = 47; bitField1_ = (bitField1_ & ~0x02000000); defaultFixed64_ = 48L; bitField1_ = (bitField1_ & ~0x04000000); defaultSfixed32_ = 49; bitField1_ = (bitField1_ & ~0x08000000); defaultSfixed64_ = -50L; bitField1_ = (bitField1_ & ~0x10000000); defaultFloat_ = 51.5F; bitField1_ = (bitField1_ & ~0x20000000); defaultDouble_ = 52000D; bitField1_ = (bitField1_ & ~0x40000000); defaultBool_ = true; bitField1_ = (bitField1_ & ~0x80000000); defaultString_ = "hello"; bitField2_ = (bitField2_ & ~0x00000001); defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world"); bitField2_ = (bitField2_ & ~0x00000002); defaultNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.BAR; bitField2_ = (bitField2_ & ~0x00000004); defaultForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_BAR; bitField2_ = (bitField2_ & ~0x00000008); defaultImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_BAR; bitField2_ = (bitField2_ & ~0x00000010); defaultStringPiece_ = "abc"; bitField2_ = (bitField2_ & ~0x00000020); defaultCord_ = "123"; bitField2_ = (bitField2_ & ~0x00000040); oneofFieldCase_ = 0; oneofField_ = null; return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllTypes_descriptor; } public protobuf_unittest.UnittestProto.TestAllTypes getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestAllTypes build() { protobuf_unittest.UnittestProto.TestAllTypes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestAllTypes buildPartial() { protobuf_unittest.UnittestProto.TestAllTypes result = new protobuf_unittest.UnittestProto.TestAllTypes(this); int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_; int from_bitField2_ = bitField2_; int to_bitField0_ = 0; int to_bitField1_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.optionalInt32_ = optionalInt32_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.optionalInt64_ = optionalInt64_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.optionalUint32_ = optionalUint32_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.optionalUint64_ = optionalUint64_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.optionalSint32_ = optionalSint32_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.optionalSint64_ = optionalSint64_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.optionalFixed32_ = optionalFixed32_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.optionalFixed64_ = optionalFixed64_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.optionalSfixed32_ = optionalSfixed32_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.optionalSfixed64_ = optionalSfixed64_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.optionalFloat_ = optionalFloat_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.optionalDouble_ = optionalDouble_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.optionalBool_ = optionalBool_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.optionalString_ = optionalString_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.optionalBytes_ = optionalBytes_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } if (optionalGroupBuilder_ == null) { result.optionalGroup_ = optionalGroup_; } else { result.optionalGroup_ = optionalGroupBuilder_.build(); } if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } if (optionalNestedMessageBuilder_ == null) { result.optionalNestedMessage_ = optionalNestedMessage_; } else { result.optionalNestedMessage_ = optionalNestedMessageBuilder_.build(); } if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } if (optionalForeignMessageBuilder_ == null) { result.optionalForeignMessage_ = optionalForeignMessage_; } else { result.optionalForeignMessage_ = optionalForeignMessageBuilder_.build(); } if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } if (optionalImportMessageBuilder_ == null) { result.optionalImportMessage_ = optionalImportMessage_; } else { result.optionalImportMessage_ = optionalImportMessageBuilder_.build(); } if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00080000; } result.optionalNestedEnum_ = optionalNestedEnum_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00100000; } result.optionalForeignEnum_ = optionalForeignEnum_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00200000; } result.optionalImportEnum_ = optionalImportEnum_; if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00400000; } result.optionalStringPiece_ = optionalStringPiece_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00800000; } result.optionalCord_ = optionalCord_; if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x01000000; } if (optionalPublicImportMessageBuilder_ == null) { result.optionalPublicImportMessage_ = optionalPublicImportMessage_; } else { result.optionalPublicImportMessage_ = optionalPublicImportMessageBuilder_.build(); } if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x02000000; } if (optionalLazyMessageBuilder_ == null) { result.optionalLazyMessage_ = optionalLazyMessage_; } else { result.optionalLazyMessage_ = optionalLazyMessageBuilder_.build(); } if (((bitField0_ & 0x04000000) == 0x04000000)) { repeatedInt32_ = java.util.Collections.unmodifiableList(repeatedInt32_); bitField0_ = (bitField0_ & ~0x04000000); } result.repeatedInt32_ = repeatedInt32_; if (((bitField0_ & 0x08000000) == 0x08000000)) { repeatedInt64_ = java.util.Collections.unmodifiableList(repeatedInt64_); bitField0_ = (bitField0_ & ~0x08000000); } result.repeatedInt64_ = repeatedInt64_; if (((bitField0_ & 0x10000000) == 0x10000000)) { repeatedUint32_ = java.util.Collections.unmodifiableList(repeatedUint32_); bitField0_ = (bitField0_ & ~0x10000000); } result.repeatedUint32_ = repeatedUint32_; if (((bitField0_ & 0x20000000) == 0x20000000)) { repeatedUint64_ = java.util.Collections.unmodifiableList(repeatedUint64_); bitField0_ = (bitField0_ & ~0x20000000); } result.repeatedUint64_ = repeatedUint64_; if (((bitField0_ & 0x40000000) == 0x40000000)) { repeatedSint32_ = java.util.Collections.unmodifiableList(repeatedSint32_); bitField0_ = (bitField0_ & ~0x40000000); } result.repeatedSint32_ = repeatedSint32_; if (((bitField0_ & 0x80000000) == 0x80000000)) { repeatedSint64_ = java.util.Collections.unmodifiableList(repeatedSint64_); bitField0_ = (bitField0_ & ~0x80000000); } result.repeatedSint64_ = repeatedSint64_; if (((bitField1_ & 0x00000001) == 0x00000001)) { repeatedFixed32_ = java.util.Collections.unmodifiableList(repeatedFixed32_); bitField1_ = (bitField1_ & ~0x00000001); } result.repeatedFixed32_ = repeatedFixed32_; if (((bitField1_ & 0x00000002) == 0x00000002)) { repeatedFixed64_ = java.util.Collections.unmodifiableList(repeatedFixed64_); bitField1_ = (bitField1_ & ~0x00000002); } result.repeatedFixed64_ = repeatedFixed64_; if (((bitField1_ & 0x00000004) == 0x00000004)) { repeatedSfixed32_ = java.util.Collections.unmodifiableList(repeatedSfixed32_); bitField1_ = (bitField1_ & ~0x00000004); } result.repeatedSfixed32_ = repeatedSfixed32_; if (((bitField1_ & 0x00000008) == 0x00000008)) { repeatedSfixed64_ = java.util.Collections.unmodifiableList(repeatedSfixed64_); bitField1_ = (bitField1_ & ~0x00000008); } result.repeatedSfixed64_ = repeatedSfixed64_; if (((bitField1_ & 0x00000010) == 0x00000010)) { repeatedFloat_ = java.util.Collections.unmodifiableList(repeatedFloat_); bitField1_ = (bitField1_ & ~0x00000010); } result.repeatedFloat_ = repeatedFloat_; if (((bitField1_ & 0x00000020) == 0x00000020)) { repeatedDouble_ = java.util.Collections.unmodifiableList(repeatedDouble_); bitField1_ = (bitField1_ & ~0x00000020); } result.repeatedDouble_ = repeatedDouble_; if (((bitField1_ & 0x00000040) == 0x00000040)) { repeatedBool_ = java.util.Collections.unmodifiableList(repeatedBool_); bitField1_ = (bitField1_ & ~0x00000040); } result.repeatedBool_ = repeatedBool_; if (((bitField1_ & 0x00000080) == 0x00000080)) { repeatedString_ = repeatedString_.getUnmodifiableView(); bitField1_ = (bitField1_ & ~0x00000080); } result.repeatedString_ = repeatedString_; if (((bitField1_ & 0x00000100) == 0x00000100)) { repeatedBytes_ = java.util.Collections.unmodifiableList(repeatedBytes_); bitField1_ = (bitField1_ & ~0x00000100); } result.repeatedBytes_ = repeatedBytes_; if (repeatedGroupBuilder_ == null) { if (((bitField1_ & 0x00000200) == 0x00000200)) { repeatedGroup_ = java.util.Collections.unmodifiableList(repeatedGroup_); bitField1_ = (bitField1_ & ~0x00000200); } result.repeatedGroup_ = repeatedGroup_; } else { result.repeatedGroup_ = repeatedGroupBuilder_.build(); } if (repeatedNestedMessageBuilder_ == null) { if (((bitField1_ & 0x00000400) == 0x00000400)) { repeatedNestedMessage_ = java.util.Collections.unmodifiableList(repeatedNestedMessage_); bitField1_ = (bitField1_ & ~0x00000400); } result.repeatedNestedMessage_ = repeatedNestedMessage_; } else { result.repeatedNestedMessage_ = repeatedNestedMessageBuilder_.build(); } if (repeatedForeignMessageBuilder_ == null) { if (((bitField1_ & 0x00000800) == 0x00000800)) { repeatedForeignMessage_ = java.util.Collections.unmodifiableList(repeatedForeignMessage_); bitField1_ = (bitField1_ & ~0x00000800); } result.repeatedForeignMessage_ = repeatedForeignMessage_; } else { result.repeatedForeignMessage_ = repeatedForeignMessageBuilder_.build(); } if (repeatedImportMessageBuilder_ == null) { if (((bitField1_ & 0x00001000) == 0x00001000)) { repeatedImportMessage_ = java.util.Collections.unmodifiableList(repeatedImportMessage_); bitField1_ = (bitField1_ & ~0x00001000); } result.repeatedImportMessage_ = repeatedImportMessage_; } else { result.repeatedImportMessage_ = repeatedImportMessageBuilder_.build(); } if (((bitField1_ & 0x00002000) == 0x00002000)) { repeatedNestedEnum_ = java.util.Collections.unmodifiableList(repeatedNestedEnum_); bitField1_ = (bitField1_ & ~0x00002000); } result.repeatedNestedEnum_ = repeatedNestedEnum_; if (((bitField1_ & 0x00004000) == 0x00004000)) { repeatedForeignEnum_ = java.util.Collections.unmodifiableList(repeatedForeignEnum_); bitField1_ = (bitField1_ & ~0x00004000); } result.repeatedForeignEnum_ = repeatedForeignEnum_; if (((bitField1_ & 0x00008000) == 0x00008000)) { repeatedImportEnum_ = java.util.Collections.unmodifiableList(repeatedImportEnum_); bitField1_ = (bitField1_ & ~0x00008000); } result.repeatedImportEnum_ = repeatedImportEnum_; if (((bitField1_ & 0x00010000) == 0x00010000)) { repeatedStringPiece_ = repeatedStringPiece_.getUnmodifiableView(); bitField1_ = (bitField1_ & ~0x00010000); } result.repeatedStringPiece_ = repeatedStringPiece_; if (((bitField1_ & 0x00020000) == 0x00020000)) { repeatedCord_ = repeatedCord_.getUnmodifiableView(); bitField1_ = (bitField1_ & ~0x00020000); } result.repeatedCord_ = repeatedCord_; if (repeatedLazyMessageBuilder_ == null) { if (((bitField1_ & 0x00040000) == 0x00040000)) { repeatedLazyMessage_ = java.util.Collections.unmodifiableList(repeatedLazyMessage_); bitField1_ = (bitField1_ & ~0x00040000); } result.repeatedLazyMessage_ = repeatedLazyMessage_; } else { result.repeatedLazyMessage_ = repeatedLazyMessageBuilder_.build(); } if (((from_bitField1_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x04000000; } result.defaultInt32_ = defaultInt32_; if (((from_bitField1_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x08000000; } result.defaultInt64_ = defaultInt64_; if (((from_bitField1_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x10000000; } result.defaultUint32_ = defaultUint32_; if (((from_bitField1_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x20000000; } result.defaultUint64_ = defaultUint64_; if (((from_bitField1_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x40000000; } result.defaultSint32_ = defaultSint32_; if (((from_bitField1_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x80000000; } result.defaultSint64_ = defaultSint64_; if (((from_bitField1_ & 0x02000000) == 0x02000000)) { to_bitField1_ |= 0x00000001; } result.defaultFixed32_ = defaultFixed32_; if (((from_bitField1_ & 0x04000000) == 0x04000000)) { to_bitField1_ |= 0x00000002; } result.defaultFixed64_ = defaultFixed64_; if (((from_bitField1_ & 0x08000000) == 0x08000000)) { to_bitField1_ |= 0x00000004; } result.defaultSfixed32_ = defaultSfixed32_; if (((from_bitField1_ & 0x10000000) == 0x10000000)) { to_bitField1_ |= 0x00000008; } result.defaultSfixed64_ = defaultSfixed64_; if (((from_bitField1_ & 0x20000000) == 0x20000000)) { to_bitField1_ |= 0x00000010; } result.defaultFloat_ = defaultFloat_; if (((from_bitField1_ & 0x40000000) == 0x40000000)) { to_bitField1_ |= 0x00000020; } result.defaultDouble_ = defaultDouble_; if (((from_bitField1_ & 0x80000000) == 0x80000000)) { to_bitField1_ |= 0x00000040; } result.defaultBool_ = defaultBool_; if (((from_bitField2_ & 0x00000001) == 0x00000001)) { to_bitField1_ |= 0x00000080; } result.defaultString_ = defaultString_; if (((from_bitField2_ & 0x00000002) == 0x00000002)) { to_bitField1_ |= 0x00000100; } result.defaultBytes_ = defaultBytes_; if (((from_bitField2_ & 0x00000004) == 0x00000004)) { to_bitField1_ |= 0x00000200; } result.defaultNestedEnum_ = defaultNestedEnum_; if (((from_bitField2_ & 0x00000008) == 0x00000008)) { to_bitField1_ |= 0x00000400; } result.defaultForeignEnum_ = defaultForeignEnum_; if (((from_bitField2_ & 0x00000010) == 0x00000010)) { to_bitField1_ |= 0x00000800; } result.defaultImportEnum_ = defaultImportEnum_; if (((from_bitField2_ & 0x00000020) == 0x00000020)) { to_bitField1_ |= 0x00001000; } result.defaultStringPiece_ = defaultStringPiece_; if (((from_bitField2_ & 0x00000040) == 0x00000040)) { to_bitField1_ |= 0x00002000; } result.defaultCord_ = defaultCord_; if (oneofFieldCase_ == 111) { result.oneofField_ = oneofField_; } if (oneofFieldCase_ == 112) { if (oneofNestedMessageBuilder_ == null) { result.oneofField_ = oneofField_; } else { result.oneofField_ = oneofNestedMessageBuilder_.build(); } } if (oneofFieldCase_ == 113) { result.oneofField_ = oneofField_; } if (oneofFieldCase_ == 114) { result.oneofField_ = oneofField_; } result.bitField0_ = to_bitField0_; result.bitField1_ = to_bitField1_; result.oneofFieldCase_ = oneofFieldCase_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestAllTypes) { return mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestAllTypes other) { if (other == protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) return this; if (other.hasOptionalInt32()) { setOptionalInt32(other.getOptionalInt32()); } if (other.hasOptionalInt64()) { setOptionalInt64(other.getOptionalInt64()); } if (other.hasOptionalUint32()) { setOptionalUint32(other.getOptionalUint32()); } if (other.hasOptionalUint64()) { setOptionalUint64(other.getOptionalUint64()); } if (other.hasOptionalSint32()) { setOptionalSint32(other.getOptionalSint32()); } if (other.hasOptionalSint64()) { setOptionalSint64(other.getOptionalSint64()); } if (other.hasOptionalFixed32()) { setOptionalFixed32(other.getOptionalFixed32()); } if (other.hasOptionalFixed64()) { setOptionalFixed64(other.getOptionalFixed64()); } if (other.hasOptionalSfixed32()) { setOptionalSfixed32(other.getOptionalSfixed32()); } if (other.hasOptionalSfixed64()) { setOptionalSfixed64(other.getOptionalSfixed64()); } if (other.hasOptionalFloat()) { setOptionalFloat(other.getOptionalFloat()); } if (other.hasOptionalDouble()) { setOptionalDouble(other.getOptionalDouble()); } if (other.hasOptionalBool()) { setOptionalBool(other.getOptionalBool()); } if (other.hasOptionalString()) { bitField0_ |= 0x00002000; optionalString_ = other.optionalString_; onChanged(); } if (other.hasOptionalBytes()) { setOptionalBytes(other.getOptionalBytes()); } if (other.hasOptionalGroup()) { mergeOptionalGroup(other.getOptionalGroup()); } if (other.hasOptionalNestedMessage()) { mergeOptionalNestedMessage(other.getOptionalNestedMessage()); } if (other.hasOptionalForeignMessage()) { mergeOptionalForeignMessage(other.getOptionalForeignMessage()); } if (other.hasOptionalImportMessage()) { mergeOptionalImportMessage(other.getOptionalImportMessage()); } if (other.hasOptionalNestedEnum()) { setOptionalNestedEnum(other.getOptionalNestedEnum()); } if (other.hasOptionalForeignEnum()) { setOptionalForeignEnum(other.getOptionalForeignEnum()); } if (other.hasOptionalImportEnum()) { setOptionalImportEnum(other.getOptionalImportEnum()); } if (other.hasOptionalStringPiece()) { bitField0_ |= 0x00400000; optionalStringPiece_ = other.optionalStringPiece_; onChanged(); } if (other.hasOptionalCord()) { bitField0_ |= 0x00800000; optionalCord_ = other.optionalCord_; onChanged(); } if (other.hasOptionalPublicImportMessage()) { mergeOptionalPublicImportMessage(other.getOptionalPublicImportMessage()); } if (other.hasOptionalLazyMessage()) { mergeOptionalLazyMessage(other.getOptionalLazyMessage()); } if (!other.repeatedInt32_.isEmpty()) { if (repeatedInt32_.isEmpty()) { repeatedInt32_ = other.repeatedInt32_; bitField0_ = (bitField0_ & ~0x04000000); } else { ensureRepeatedInt32IsMutable(); repeatedInt32_.addAll(other.repeatedInt32_); } onChanged(); } if (!other.repeatedInt64_.isEmpty()) { if (repeatedInt64_.isEmpty()) { repeatedInt64_ = other.repeatedInt64_; bitField0_ = (bitField0_ & ~0x08000000); } else { ensureRepeatedInt64IsMutable(); repeatedInt64_.addAll(other.repeatedInt64_); } onChanged(); } if (!other.repeatedUint32_.isEmpty()) { if (repeatedUint32_.isEmpty()) { repeatedUint32_ = other.repeatedUint32_; bitField0_ = (bitField0_ & ~0x10000000); } else { ensureRepeatedUint32IsMutable(); repeatedUint32_.addAll(other.repeatedUint32_); } onChanged(); } if (!other.repeatedUint64_.isEmpty()) { if (repeatedUint64_.isEmpty()) { repeatedUint64_ = other.repeatedUint64_; bitField0_ = (bitField0_ & ~0x20000000); } else { ensureRepeatedUint64IsMutable(); repeatedUint64_.addAll(other.repeatedUint64_); } onChanged(); } if (!other.repeatedSint32_.isEmpty()) { if (repeatedSint32_.isEmpty()) { repeatedSint32_ = other.repeatedSint32_; bitField0_ = (bitField0_ & ~0x40000000); } else { ensureRepeatedSint32IsMutable(); repeatedSint32_.addAll(other.repeatedSint32_); } onChanged(); } if (!other.repeatedSint64_.isEmpty()) { if (repeatedSint64_.isEmpty()) { repeatedSint64_ = other.repeatedSint64_; bitField0_ = (bitField0_ & ~0x80000000); } else { ensureRepeatedSint64IsMutable(); repeatedSint64_.addAll(other.repeatedSint64_); } onChanged(); } if (!other.repeatedFixed32_.isEmpty()) { if (repeatedFixed32_.isEmpty()) { repeatedFixed32_ = other.repeatedFixed32_; bitField1_ = (bitField1_ & ~0x00000001); } else { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addAll(other.repeatedFixed32_); } onChanged(); } if (!other.repeatedFixed64_.isEmpty()) { if (repeatedFixed64_.isEmpty()) { repeatedFixed64_ = other.repeatedFixed64_; bitField1_ = (bitField1_ & ~0x00000002); } else { ensureRepeatedFixed64IsMutable(); repeatedFixed64_.addAll(other.repeatedFixed64_); } onChanged(); } if (!other.repeatedSfixed32_.isEmpty()) { if (repeatedSfixed32_.isEmpty()) { repeatedSfixed32_ = other.repeatedSfixed32_; bitField1_ = (bitField1_ & ~0x00000004); } else { ensureRepeatedSfixed32IsMutable(); repeatedSfixed32_.addAll(other.repeatedSfixed32_); } onChanged(); } if (!other.repeatedSfixed64_.isEmpty()) { if (repeatedSfixed64_.isEmpty()) { repeatedSfixed64_ = other.repeatedSfixed64_; bitField1_ = (bitField1_ & ~0x00000008); } else { ensureRepeatedSfixed64IsMutable(); repeatedSfixed64_.addAll(other.repeatedSfixed64_); } onChanged(); } if (!other.repeatedFloat_.isEmpty()) { if (repeatedFloat_.isEmpty()) { repeatedFloat_ = other.repeatedFloat_; bitField1_ = (bitField1_ & ~0x00000010); } else { ensureRepeatedFloatIsMutable(); repeatedFloat_.addAll(other.repeatedFloat_); } onChanged(); } if (!other.repeatedDouble_.isEmpty()) { if (repeatedDouble_.isEmpty()) { repeatedDouble_ = other.repeatedDouble_; bitField1_ = (bitField1_ & ~0x00000020); } else { ensureRepeatedDoubleIsMutable(); repeatedDouble_.addAll(other.repeatedDouble_); } onChanged(); } if (!other.repeatedBool_.isEmpty()) { if (repeatedBool_.isEmpty()) { repeatedBool_ = other.repeatedBool_; bitField1_ = (bitField1_ & ~0x00000040); } else { ensureRepeatedBoolIsMutable(); repeatedBool_.addAll(other.repeatedBool_); } onChanged(); } if (!other.repeatedString_.isEmpty()) { if (repeatedString_.isEmpty()) { repeatedString_ = other.repeatedString_; bitField1_ = (bitField1_ & ~0x00000080); } else { ensureRepeatedStringIsMutable(); repeatedString_.addAll(other.repeatedString_); } onChanged(); } if (!other.repeatedBytes_.isEmpty()) { if (repeatedBytes_.isEmpty()) { repeatedBytes_ = other.repeatedBytes_; bitField1_ = (bitField1_ & ~0x00000100); } else { ensureRepeatedBytesIsMutable(); repeatedBytes_.addAll(other.repeatedBytes_); } onChanged(); } if (repeatedGroupBuilder_ == null) { if (!other.repeatedGroup_.isEmpty()) { if (repeatedGroup_.isEmpty()) { repeatedGroup_ = other.repeatedGroup_; bitField1_ = (bitField1_ & ~0x00000200); } else { ensureRepeatedGroupIsMutable(); repeatedGroup_.addAll(other.repeatedGroup_); } onChanged(); } } else { if (!other.repeatedGroup_.isEmpty()) { if (repeatedGroupBuilder_.isEmpty()) { repeatedGroupBuilder_.dispose(); repeatedGroupBuilder_ = null; repeatedGroup_ = other.repeatedGroup_; bitField1_ = (bitField1_ & ~0x00000200); repeatedGroupBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepeatedGroupFieldBuilder() : null; } else { repeatedGroupBuilder_.addAllMessages(other.repeatedGroup_); } } } if (repeatedNestedMessageBuilder_ == null) { if (!other.repeatedNestedMessage_.isEmpty()) { if (repeatedNestedMessage_.isEmpty()) { repeatedNestedMessage_ = other.repeatedNestedMessage_; bitField1_ = (bitField1_ & ~0x00000400); } else { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.addAll(other.repeatedNestedMessage_); } onChanged(); } } else { if (!other.repeatedNestedMessage_.isEmpty()) { if (repeatedNestedMessageBuilder_.isEmpty()) { repeatedNestedMessageBuilder_.dispose(); repeatedNestedMessageBuilder_ = null; repeatedNestedMessage_ = other.repeatedNestedMessage_; bitField1_ = (bitField1_ & ~0x00000400); repeatedNestedMessageBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepeatedNestedMessageFieldBuilder() : null; } else { repeatedNestedMessageBuilder_.addAllMessages(other.repeatedNestedMessage_); } } } if (repeatedForeignMessageBuilder_ == null) { if (!other.repeatedForeignMessage_.isEmpty()) { if (repeatedForeignMessage_.isEmpty()) { repeatedForeignMessage_ = other.repeatedForeignMessage_; bitField1_ = (bitField1_ & ~0x00000800); } else { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.addAll(other.repeatedForeignMessage_); } onChanged(); } } else { if (!other.repeatedForeignMessage_.isEmpty()) { if (repeatedForeignMessageBuilder_.isEmpty()) { repeatedForeignMessageBuilder_.dispose(); repeatedForeignMessageBuilder_ = null; repeatedForeignMessage_ = other.repeatedForeignMessage_; bitField1_ = (bitField1_ & ~0x00000800); repeatedForeignMessageBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepeatedForeignMessageFieldBuilder() : null; } else { repeatedForeignMessageBuilder_.addAllMessages(other.repeatedForeignMessage_); } } } if (repeatedImportMessageBuilder_ == null) { if (!other.repeatedImportMessage_.isEmpty()) { if (repeatedImportMessage_.isEmpty()) { repeatedImportMessage_ = other.repeatedImportMessage_; bitField1_ = (bitField1_ & ~0x00001000); } else { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.addAll(other.repeatedImportMessage_); } onChanged(); } } else { if (!other.repeatedImportMessage_.isEmpty()) { if (repeatedImportMessageBuilder_.isEmpty()) { repeatedImportMessageBuilder_.dispose(); repeatedImportMessageBuilder_ = null; repeatedImportMessage_ = other.repeatedImportMessage_; bitField1_ = (bitField1_ & ~0x00001000); repeatedImportMessageBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepeatedImportMessageFieldBuilder() : null; } else { repeatedImportMessageBuilder_.addAllMessages(other.repeatedImportMessage_); } } } if (!other.repeatedNestedEnum_.isEmpty()) { if (repeatedNestedEnum_.isEmpty()) { repeatedNestedEnum_ = other.repeatedNestedEnum_; bitField1_ = (bitField1_ & ~0x00002000); } else { ensureRepeatedNestedEnumIsMutable(); repeatedNestedEnum_.addAll(other.repeatedNestedEnum_); } onChanged(); } if (!other.repeatedForeignEnum_.isEmpty()) { if (repeatedForeignEnum_.isEmpty()) { repeatedForeignEnum_ = other.repeatedForeignEnum_; bitField1_ = (bitField1_ & ~0x00004000); } else { ensureRepeatedForeignEnumIsMutable(); repeatedForeignEnum_.addAll(other.repeatedForeignEnum_); } onChanged(); } if (!other.repeatedImportEnum_.isEmpty()) { if (repeatedImportEnum_.isEmpty()) { repeatedImportEnum_ = other.repeatedImportEnum_; bitField1_ = (bitField1_ & ~0x00008000); } else { ensureRepeatedImportEnumIsMutable(); repeatedImportEnum_.addAll(other.repeatedImportEnum_); } onChanged(); } if (!other.repeatedStringPiece_.isEmpty()) { if (repeatedStringPiece_.isEmpty()) { repeatedStringPiece_ = other.repeatedStringPiece_; bitField1_ = (bitField1_ & ~0x00010000); } else { ensureRepeatedStringPieceIsMutable(); repeatedStringPiece_.addAll(other.repeatedStringPiece_); } onChanged(); } if (!other.repeatedCord_.isEmpty()) { if (repeatedCord_.isEmpty()) { repeatedCord_ = other.repeatedCord_; bitField1_ = (bitField1_ & ~0x00020000); } else { ensureRepeatedCordIsMutable(); repeatedCord_.addAll(other.repeatedCord_); } onChanged(); } if (repeatedLazyMessageBuilder_ == null) { if (!other.repeatedLazyMessage_.isEmpty()) { if (repeatedLazyMessage_.isEmpty()) { repeatedLazyMessage_ = other.repeatedLazyMessage_; bitField1_ = (bitField1_ & ~0x00040000); } else { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.addAll(other.repeatedLazyMessage_); } onChanged(); } } else { if (!other.repeatedLazyMessage_.isEmpty()) { if (repeatedLazyMessageBuilder_.isEmpty()) { repeatedLazyMessageBuilder_.dispose(); repeatedLazyMessageBuilder_ = null; repeatedLazyMessage_ = other.repeatedLazyMessage_; bitField1_ = (bitField1_ & ~0x00040000); repeatedLazyMessageBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepeatedLazyMessageFieldBuilder() : null; } else { repeatedLazyMessageBuilder_.addAllMessages(other.repeatedLazyMessage_); } } } if (other.hasDefaultInt32()) { setDefaultInt32(other.getDefaultInt32()); } if (other.hasDefaultInt64()) { setDefaultInt64(other.getDefaultInt64()); } if (other.hasDefaultUint32()) { setDefaultUint32(other.getDefaultUint32()); } if (other.hasDefaultUint64()) { setDefaultUint64(other.getDefaultUint64()); } if (other.hasDefaultSint32()) { setDefaultSint32(other.getDefaultSint32()); } if (other.hasDefaultSint64()) { setDefaultSint64(other.getDefaultSint64()); } if (other.hasDefaultFixed32()) { setDefaultFixed32(other.getDefaultFixed32()); } if (other.hasDefaultFixed64()) { setDefaultFixed64(other.getDefaultFixed64()); } if (other.hasDefaultSfixed32()) { setDefaultSfixed32(other.getDefaultSfixed32()); } if (other.hasDefaultSfixed64()) { setDefaultSfixed64(other.getDefaultSfixed64()); } if (other.hasDefaultFloat()) { setDefaultFloat(other.getDefaultFloat()); } if (other.hasDefaultDouble()) { setDefaultDouble(other.getDefaultDouble()); } if (other.hasDefaultBool()) { setDefaultBool(other.getDefaultBool()); } if (other.hasDefaultString()) { bitField2_ |= 0x00000001; defaultString_ = other.defaultString_; onChanged(); } if (other.hasDefaultBytes()) { setDefaultBytes(other.getDefaultBytes()); } if (other.hasDefaultNestedEnum()) { setDefaultNestedEnum(other.getDefaultNestedEnum()); } if (other.hasDefaultForeignEnum()) { setDefaultForeignEnum(other.getDefaultForeignEnum()); } if (other.hasDefaultImportEnum()) { setDefaultImportEnum(other.getDefaultImportEnum()); } if (other.hasDefaultStringPiece()) { bitField2_ |= 0x00000020; defaultStringPiece_ = other.defaultStringPiece_; onChanged(); } if (other.hasDefaultCord()) { bitField2_ |= 0x00000040; defaultCord_ = other.defaultCord_; onChanged(); } switch (other.getOneofFieldCase()) { case ONEOF_UINT32: { setOneofUint32(other.getOneofUint32()); break; } case ONEOF_NESTED_MESSAGE: { mergeOneofNestedMessage(other.getOneofNestedMessage()); break; } case ONEOF_STRING: { oneofFieldCase_ = 113; oneofField_ = other.oneofField_; onChanged(); break; } case ONEOF_BYTES: { setOneofBytes(other.getOneofBytes()); break; } case ONEOFFIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestAllTypes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestAllTypes) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int oneofFieldCase_ = 0; private java.lang.Object oneofField_; public OneofFieldCase getOneofFieldCase() { return OneofFieldCase.valueOf( oneofFieldCase_); } public Builder clearOneofField() { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); return this; } private int bitField0_; private int bitField1_; private int bitField2_; private int optionalInt32_ ; /** * optional int32 optional_int32 = 1; * *
       * Singular
       * 
*/ public boolean hasOptionalInt32() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 optional_int32 = 1; * *
       * Singular
       * 
*/ public int getOptionalInt32() { return optionalInt32_; } /** * optional int32 optional_int32 = 1; * *
       * Singular
       * 
*/ public Builder setOptionalInt32(int value) { bitField0_ |= 0x00000001; optionalInt32_ = value; onChanged(); return this; } /** * optional int32 optional_int32 = 1; * *
       * Singular
       * 
*/ public Builder clearOptionalInt32() { bitField0_ = (bitField0_ & ~0x00000001); optionalInt32_ = 0; onChanged(); return this; } private long optionalInt64_ ; /** * optional int64 optional_int64 = 2; */ public boolean hasOptionalInt64() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 optional_int64 = 2; */ public long getOptionalInt64() { return optionalInt64_; } /** * optional int64 optional_int64 = 2; */ public Builder setOptionalInt64(long value) { bitField0_ |= 0x00000002; optionalInt64_ = value; onChanged(); return this; } /** * optional int64 optional_int64 = 2; */ public Builder clearOptionalInt64() { bitField0_ = (bitField0_ & ~0x00000002); optionalInt64_ = 0L; onChanged(); return this; } private int optionalUint32_ ; /** * optional uint32 optional_uint32 = 3; */ public boolean hasOptionalUint32() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 optional_uint32 = 3; */ public int getOptionalUint32() { return optionalUint32_; } /** * optional uint32 optional_uint32 = 3; */ public Builder setOptionalUint32(int value) { bitField0_ |= 0x00000004; optionalUint32_ = value; onChanged(); return this; } /** * optional uint32 optional_uint32 = 3; */ public Builder clearOptionalUint32() { bitField0_ = (bitField0_ & ~0x00000004); optionalUint32_ = 0; onChanged(); return this; } private long optionalUint64_ ; /** * optional uint64 optional_uint64 = 4; */ public boolean hasOptionalUint64() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 optional_uint64 = 4; */ public long getOptionalUint64() { return optionalUint64_; } /** * optional uint64 optional_uint64 = 4; */ public Builder setOptionalUint64(long value) { bitField0_ |= 0x00000008; optionalUint64_ = value; onChanged(); return this; } /** * optional uint64 optional_uint64 = 4; */ public Builder clearOptionalUint64() { bitField0_ = (bitField0_ & ~0x00000008); optionalUint64_ = 0L; onChanged(); return this; } private int optionalSint32_ ; /** * optional sint32 optional_sint32 = 5; */ public boolean hasOptionalSint32() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional sint32 optional_sint32 = 5; */ public int getOptionalSint32() { return optionalSint32_; } /** * optional sint32 optional_sint32 = 5; */ public Builder setOptionalSint32(int value) { bitField0_ |= 0x00000010; optionalSint32_ = value; onChanged(); return this; } /** * optional sint32 optional_sint32 = 5; */ public Builder clearOptionalSint32() { bitField0_ = (bitField0_ & ~0x00000010); optionalSint32_ = 0; onChanged(); return this; } private long optionalSint64_ ; /** * optional sint64 optional_sint64 = 6; */ public boolean hasOptionalSint64() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional sint64 optional_sint64 = 6; */ public long getOptionalSint64() { return optionalSint64_; } /** * optional sint64 optional_sint64 = 6; */ public Builder setOptionalSint64(long value) { bitField0_ |= 0x00000020; optionalSint64_ = value; onChanged(); return this; } /** * optional sint64 optional_sint64 = 6; */ public Builder clearOptionalSint64() { bitField0_ = (bitField0_ & ~0x00000020); optionalSint64_ = 0L; onChanged(); return this; } private int optionalFixed32_ ; /** * optional fixed32 optional_fixed32 = 7; */ public boolean hasOptionalFixed32() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional fixed32 optional_fixed32 = 7; */ public int getOptionalFixed32() { return optionalFixed32_; } /** * optional fixed32 optional_fixed32 = 7; */ public Builder setOptionalFixed32(int value) { bitField0_ |= 0x00000040; optionalFixed32_ = value; onChanged(); return this; } /** * optional fixed32 optional_fixed32 = 7; */ public Builder clearOptionalFixed32() { bitField0_ = (bitField0_ & ~0x00000040); optionalFixed32_ = 0; onChanged(); return this; } private long optionalFixed64_ ; /** * optional fixed64 optional_fixed64 = 8; */ public boolean hasOptionalFixed64() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional fixed64 optional_fixed64 = 8; */ public long getOptionalFixed64() { return optionalFixed64_; } /** * optional fixed64 optional_fixed64 = 8; */ public Builder setOptionalFixed64(long value) { bitField0_ |= 0x00000080; optionalFixed64_ = value; onChanged(); return this; } /** * optional fixed64 optional_fixed64 = 8; */ public Builder clearOptionalFixed64() { bitField0_ = (bitField0_ & ~0x00000080); optionalFixed64_ = 0L; onChanged(); return this; } private int optionalSfixed32_ ; /** * optional sfixed32 optional_sfixed32 = 9; */ public boolean hasOptionalSfixed32() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional sfixed32 optional_sfixed32 = 9; */ public int getOptionalSfixed32() { return optionalSfixed32_; } /** * optional sfixed32 optional_sfixed32 = 9; */ public Builder setOptionalSfixed32(int value) { bitField0_ |= 0x00000100; optionalSfixed32_ = value; onChanged(); return this; } /** * optional sfixed32 optional_sfixed32 = 9; */ public Builder clearOptionalSfixed32() { bitField0_ = (bitField0_ & ~0x00000100); optionalSfixed32_ = 0; onChanged(); return this; } private long optionalSfixed64_ ; /** * optional sfixed64 optional_sfixed64 = 10; */ public boolean hasOptionalSfixed64() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional sfixed64 optional_sfixed64 = 10; */ public long getOptionalSfixed64() { return optionalSfixed64_; } /** * optional sfixed64 optional_sfixed64 = 10; */ public Builder setOptionalSfixed64(long value) { bitField0_ |= 0x00000200; optionalSfixed64_ = value; onChanged(); return this; } /** * optional sfixed64 optional_sfixed64 = 10; */ public Builder clearOptionalSfixed64() { bitField0_ = (bitField0_ & ~0x00000200); optionalSfixed64_ = 0L; onChanged(); return this; } private float optionalFloat_ ; /** * optional float optional_float = 11; */ public boolean hasOptionalFloat() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional float optional_float = 11; */ public float getOptionalFloat() { return optionalFloat_; } /** * optional float optional_float = 11; */ public Builder setOptionalFloat(float value) { bitField0_ |= 0x00000400; optionalFloat_ = value; onChanged(); return this; } /** * optional float optional_float = 11; */ public Builder clearOptionalFloat() { bitField0_ = (bitField0_ & ~0x00000400); optionalFloat_ = 0F; onChanged(); return this; } private double optionalDouble_ ; /** * optional double optional_double = 12; */ public boolean hasOptionalDouble() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional double optional_double = 12; */ public double getOptionalDouble() { return optionalDouble_; } /** * optional double optional_double = 12; */ public Builder setOptionalDouble(double value) { bitField0_ |= 0x00000800; optionalDouble_ = value; onChanged(); return this; } /** * optional double optional_double = 12; */ public Builder clearOptionalDouble() { bitField0_ = (bitField0_ & ~0x00000800); optionalDouble_ = 0D; onChanged(); return this; } private boolean optionalBool_ ; /** * optional bool optional_bool = 13; */ public boolean hasOptionalBool() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bool optional_bool = 13; */ public boolean getOptionalBool() { return optionalBool_; } /** * optional bool optional_bool = 13; */ public Builder setOptionalBool(boolean value) { bitField0_ |= 0x00001000; optionalBool_ = value; onChanged(); return this; } /** * optional bool optional_bool = 13; */ public Builder clearOptionalBool() { bitField0_ = (bitField0_ & ~0x00001000); optionalBool_ = false; onChanged(); return this; } private java.lang.Object optionalString_ = ""; /** * optional string optional_string = 14; */ public boolean hasOptionalString() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional string optional_string = 14; */ public java.lang.String getOptionalString() { java.lang.Object ref = optionalString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string optional_string = 14; */ public com.google.protobuf.ByteString getOptionalStringBytes() { java.lang.Object ref = optionalString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string optional_string = 14; */ public Builder setOptionalString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; optionalString_ = value; onChanged(); return this; } /** * optional string optional_string = 14; */ public Builder clearOptionalString() { bitField0_ = (bitField0_ & ~0x00002000); optionalString_ = getDefaultInstance().getOptionalString(); onChanged(); return this; } /** * optional string optional_string = 14; */ public Builder setOptionalStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; optionalString_ = value; onChanged(); return this; } private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes optional_bytes = 15; */ public boolean hasOptionalBytes() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional bytes optional_bytes = 15; */ public com.google.protobuf.ByteString getOptionalBytes() { return optionalBytes_; } /** * optional bytes optional_bytes = 15; */ public Builder setOptionalBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; optionalBytes_ = value; onChanged(); return this; } /** * optional bytes optional_bytes = 15; */ public Builder clearOptionalBytes() { bitField0_ = (bitField0_ & ~0x00004000); optionalBytes_ = getDefaultInstance().getOptionalBytes(); onChanged(); return this; } private protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup optionalGroup_ = protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder> optionalGroupBuilder_; /** * optional group OptionalGroup = 16 { ... } */ public boolean hasOptionalGroup() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional group OptionalGroup = 16 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup getOptionalGroup() { if (optionalGroupBuilder_ == null) { return optionalGroup_; } else { return optionalGroupBuilder_.getMessage(); } } /** * optional group OptionalGroup = 16 { ... } */ public Builder setOptionalGroup(protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup value) { if (optionalGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalGroup_ = value; onChanged(); } else { optionalGroupBuilder_.setMessage(value); } bitField0_ |= 0x00008000; return this; } /** * optional group OptionalGroup = 16 { ... } */ public Builder setOptionalGroup( protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder builderForValue) { if (optionalGroupBuilder_ == null) { optionalGroup_ = builderForValue.build(); onChanged(); } else { optionalGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; return this; } /** * optional group OptionalGroup = 16 { ... } */ public Builder mergeOptionalGroup(protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup value) { if (optionalGroupBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000) && optionalGroup_ != protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance()) { optionalGroup_ = protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.newBuilder(optionalGroup_).mergeFrom(value).buildPartial(); } else { optionalGroup_ = value; } onChanged(); } else { optionalGroupBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; return this; } /** * optional group OptionalGroup = 16 { ... } */ public Builder clearOptionalGroup() { if (optionalGroupBuilder_ == null) { optionalGroup_ = protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.getDefaultInstance(); onChanged(); } else { optionalGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); return this; } /** * optional group OptionalGroup = 16 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder getOptionalGroupBuilder() { bitField0_ |= 0x00008000; onChanged(); return getOptionalGroupFieldBuilder().getBuilder(); } /** * optional group OptionalGroup = 16 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder getOptionalGroupOrBuilder() { if (optionalGroupBuilder_ != null) { return optionalGroupBuilder_.getMessageOrBuilder(); } else { return optionalGroup_; } } /** * optional group OptionalGroup = 16 { ... } */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder> getOptionalGroupFieldBuilder() { if (optionalGroupBuilder_ == null) { optionalGroupBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.OptionalGroupOrBuilder>( getOptionalGroup(), getParentForChildren(), isClean()); optionalGroup_ = null; } return optionalGroupBuilder_; } private protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> optionalNestedMessageBuilder_; /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public boolean hasOptionalNestedMessage() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalNestedMessage() { if (optionalNestedMessageBuilder_ == null) { return optionalNestedMessage_; } else { return optionalNestedMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public Builder setOptionalNestedMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (optionalNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalNestedMessage_ = value; onChanged(); } else { optionalNestedMessageBuilder_.setMessage(value); } bitField0_ |= 0x00010000; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public Builder setOptionalNestedMessage( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) { if (optionalNestedMessageBuilder_ == null) { optionalNestedMessage_ = builderForValue.build(); onChanged(); } else { optionalNestedMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public Builder mergeOptionalNestedMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (optionalNestedMessageBuilder_ == null) { if (((bitField0_ & 0x00010000) == 0x00010000) && optionalNestedMessage_ != protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()) { optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.newBuilder(optionalNestedMessage_).mergeFrom(value).buildPartial(); } else { optionalNestedMessage_ = value; } onChanged(); } else { optionalNestedMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x00010000; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public Builder clearOptionalNestedMessage() { if (optionalNestedMessageBuilder_ == null) { optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); onChanged(); } else { optionalNestedMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00010000); return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getOptionalNestedMessageBuilder() { bitField0_ |= 0x00010000; onChanged(); return getOptionalNestedMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() { if (optionalNestedMessageBuilder_ != null) { return optionalNestedMessageBuilder_.getMessageOrBuilder(); } else { return optionalNestedMessage_; } } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> getOptionalNestedMessageFieldBuilder() { if (optionalNestedMessageBuilder_ == null) { optionalNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>( getOptionalNestedMessage(), getParentForChildren(), isClean()); optionalNestedMessage_ = null; } return optionalNestedMessageBuilder_; } private protobuf_unittest.UnittestProto.ForeignMessage optionalForeignMessage_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> optionalForeignMessageBuilder_; /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public boolean hasOptionalForeignMessage() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public protobuf_unittest.UnittestProto.ForeignMessage getOptionalForeignMessage() { if (optionalForeignMessageBuilder_ == null) { return optionalForeignMessage_; } else { return optionalForeignMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public Builder setOptionalForeignMessage(protobuf_unittest.UnittestProto.ForeignMessage value) { if (optionalForeignMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalForeignMessage_ = value; onChanged(); } else { optionalForeignMessageBuilder_.setMessage(value); } bitField0_ |= 0x00020000; return this; } /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public Builder setOptionalForeignMessage( protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (optionalForeignMessageBuilder_ == null) { optionalForeignMessage_ = builderForValue.build(); onChanged(); } else { optionalForeignMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; return this; } /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public Builder mergeOptionalForeignMessage(protobuf_unittest.UnittestProto.ForeignMessage value) { if (optionalForeignMessageBuilder_ == null) { if (((bitField0_ & 0x00020000) == 0x00020000) && optionalForeignMessage_ != protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()) { optionalForeignMessage_ = protobuf_unittest.UnittestProto.ForeignMessage.newBuilder(optionalForeignMessage_).mergeFrom(value).buildPartial(); } else { optionalForeignMessage_ = value; } onChanged(); } else { optionalForeignMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x00020000; return this; } /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public Builder clearOptionalForeignMessage() { if (optionalForeignMessageBuilder_ == null) { optionalForeignMessage_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); onChanged(); } else { optionalForeignMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); return this; } /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder getOptionalForeignMessageBuilder() { bitField0_ |= 0x00020000; onChanged(); return getOptionalForeignMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getOptionalForeignMessageOrBuilder() { if (optionalForeignMessageBuilder_ != null) { return optionalForeignMessageBuilder_.getMessageOrBuilder(); } else { return optionalForeignMessage_; } } /** * optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> getOptionalForeignMessageFieldBuilder() { if (optionalForeignMessageBuilder_ == null) { optionalForeignMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>( getOptionalForeignMessage(), getParentForChildren(), isClean()); optionalForeignMessage_ = null; } return optionalForeignMessageBuilder_; } private com.google.protobuf.test.UnittestImport.ImportMessage optionalImportMessage_ = com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder> optionalImportMessageBuilder_; /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public boolean hasOptionalImportMessage() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public com.google.protobuf.test.UnittestImport.ImportMessage getOptionalImportMessage() { if (optionalImportMessageBuilder_ == null) { return optionalImportMessage_; } else { return optionalImportMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public Builder setOptionalImportMessage(com.google.protobuf.test.UnittestImport.ImportMessage value) { if (optionalImportMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalImportMessage_ = value; onChanged(); } else { optionalImportMessageBuilder_.setMessage(value); } bitField0_ |= 0x00040000; return this; } /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public Builder setOptionalImportMessage( com.google.protobuf.test.UnittestImport.ImportMessage.Builder builderForValue) { if (optionalImportMessageBuilder_ == null) { optionalImportMessage_ = builderForValue.build(); onChanged(); } else { optionalImportMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; return this; } /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public Builder mergeOptionalImportMessage(com.google.protobuf.test.UnittestImport.ImportMessage value) { if (optionalImportMessageBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000) && optionalImportMessage_ != com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance()) { optionalImportMessage_ = com.google.protobuf.test.UnittestImport.ImportMessage.newBuilder(optionalImportMessage_).mergeFrom(value).buildPartial(); } else { optionalImportMessage_ = value; } onChanged(); } else { optionalImportMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x00040000; return this; } /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public Builder clearOptionalImportMessage() { if (optionalImportMessageBuilder_ == null) { optionalImportMessage_ = com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance(); onChanged(); } else { optionalImportMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); return this; } /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public com.google.protobuf.test.UnittestImport.ImportMessage.Builder getOptionalImportMessageBuilder() { bitField0_ |= 0x00040000; onChanged(); return getOptionalImportMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ public com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getOptionalImportMessageOrBuilder() { if (optionalImportMessageBuilder_ != null) { return optionalImportMessageBuilder_.getMessageOrBuilder(); } else { return optionalImportMessage_; } } /** * optional .protobuf_unittest_import.ImportMessage optional_import_message = 20; */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder> getOptionalImportMessageFieldBuilder() { if (optionalImportMessageBuilder_ == null) { optionalImportMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder>( getOptionalImportMessage(), getParentForChildren(), isClean()); optionalImportMessage_ = null; } return optionalImportMessageBuilder_; } private protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum optionalNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.FOO; /** * optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21; */ public boolean hasOptionalNestedEnum() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getOptionalNestedEnum() { return optionalNestedEnum_; } /** * optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21; */ public Builder setOptionalNestedEnum(protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; optionalNestedEnum_ = value; onChanged(); return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21; */ public Builder clearOptionalNestedEnum() { bitField0_ = (bitField0_ & ~0x00080000); optionalNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.FOO; onChanged(); return this; } private protobuf_unittest.UnittestProto.ForeignEnum optionalForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; /** * optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22; */ public boolean hasOptionalForeignEnum() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22; */ public protobuf_unittest.UnittestProto.ForeignEnum getOptionalForeignEnum() { return optionalForeignEnum_; } /** * optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22; */ public Builder setOptionalForeignEnum(protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00100000; optionalForeignEnum_ = value; onChanged(); return this; } /** * optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22; */ public Builder clearOptionalForeignEnum() { bitField0_ = (bitField0_ & ~0x00100000); optionalForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; onChanged(); return this; } private com.google.protobuf.test.UnittestImport.ImportEnum optionalImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_FOO; /** * optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23; */ public boolean hasOptionalImportEnum() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23; */ public com.google.protobuf.test.UnittestImport.ImportEnum getOptionalImportEnum() { return optionalImportEnum_; } /** * optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23; */ public Builder setOptionalImportEnum(com.google.protobuf.test.UnittestImport.ImportEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00200000; optionalImportEnum_ = value; onChanged(); return this; } /** * optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23; */ public Builder clearOptionalImportEnum() { bitField0_ = (bitField0_ & ~0x00200000); optionalImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_FOO; onChanged(); return this; } private java.lang.Object optionalStringPiece_ = ""; /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ public boolean hasOptionalStringPiece() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ public java.lang.String getOptionalStringPiece() { java.lang.Object ref = optionalStringPiece_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalStringPiece_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getOptionalStringPieceBytes() { java.lang.Object ref = optionalStringPiece_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalStringPiece_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ public Builder setOptionalStringPiece( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00400000; optionalStringPiece_ = value; onChanged(); return this; } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ public Builder clearOptionalStringPiece() { bitField0_ = (bitField0_ & ~0x00400000); optionalStringPiece_ = getDefaultInstance().getOptionalStringPiece(); onChanged(); return this; } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; */ public Builder setOptionalStringPieceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00400000; optionalStringPiece_ = value; onChanged(); return this; } private java.lang.Object optionalCord_ = ""; /** * optional string optional_cord = 25 [ctype = CORD]; */ public boolean hasOptionalCord() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional string optional_cord = 25 [ctype = CORD]; */ public java.lang.String getOptionalCord() { java.lang.Object ref = optionalCord_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalCord_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string optional_cord = 25 [ctype = CORD]; */ public com.google.protobuf.ByteString getOptionalCordBytes() { java.lang.Object ref = optionalCord_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalCord_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string optional_cord = 25 [ctype = CORD]; */ public Builder setOptionalCord( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00800000; optionalCord_ = value; onChanged(); return this; } /** * optional string optional_cord = 25 [ctype = CORD]; */ public Builder clearOptionalCord() { bitField0_ = (bitField0_ & ~0x00800000); optionalCord_ = getDefaultInstance().getOptionalCord(); onChanged(); return this; } /** * optional string optional_cord = 25 [ctype = CORD]; */ public Builder setOptionalCordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00800000; optionalCord_ = value; onChanged(); return this; } private com.google.protobuf.test.UnittestImportPublic.PublicImportMessage optionalPublicImportMessage_ = com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.test.UnittestImportPublic.PublicImportMessage, com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder, com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder> optionalPublicImportMessageBuilder_; /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
       * Defined in unittest_import_public.proto
       * 
*/ public boolean hasOptionalPublicImportMessage() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
       * Defined in unittest_import_public.proto
       * 
*/ public com.google.protobuf.test.UnittestImportPublic.PublicImportMessage getOptionalPublicImportMessage() { if (optionalPublicImportMessageBuilder_ == null) { return optionalPublicImportMessage_; } else { return optionalPublicImportMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
       * Defined in unittest_import_public.proto
       * 
*/ public Builder setOptionalPublicImportMessage(com.google.protobuf.test.UnittestImportPublic.PublicImportMessage value) { if (optionalPublicImportMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalPublicImportMessage_ = value; onChanged(); } else { optionalPublicImportMessageBuilder_.setMessage(value); } bitField0_ |= 0x01000000; return this; } /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
       * Defined in unittest_import_public.proto
       * 
*/ public Builder setOptionalPublicImportMessage( com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder builderForValue) { if (optionalPublicImportMessageBuilder_ == null) { optionalPublicImportMessage_ = builderForValue.build(); onChanged(); } else { optionalPublicImportMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x01000000; return this; } /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
       * Defined in unittest_import_public.proto
       * 
*/ public Builder mergeOptionalPublicImportMessage(com.google.protobuf.test.UnittestImportPublic.PublicImportMessage value) { if (optionalPublicImportMessageBuilder_ == null) { if (((bitField0_ & 0x01000000) == 0x01000000) && optionalPublicImportMessage_ != com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance()) { optionalPublicImportMessage_ = com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.newBuilder(optionalPublicImportMessage_).mergeFrom(value).buildPartial(); } else { optionalPublicImportMessage_ = value; } onChanged(); } else { optionalPublicImportMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x01000000; return this; } /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
       * Defined in unittest_import_public.proto
       * 
*/ public Builder clearOptionalPublicImportMessage() { if (optionalPublicImportMessageBuilder_ == null) { optionalPublicImportMessage_ = com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance(); onChanged(); } else { optionalPublicImportMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x01000000); return this; } /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
       * Defined in unittest_import_public.proto
       * 
*/ public com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder getOptionalPublicImportMessageBuilder() { bitField0_ |= 0x01000000; onChanged(); return getOptionalPublicImportMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
       * Defined in unittest_import_public.proto
       * 
*/ public com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder getOptionalPublicImportMessageOrBuilder() { if (optionalPublicImportMessageBuilder_ != null) { return optionalPublicImportMessageBuilder_.getMessageOrBuilder(); } else { return optionalPublicImportMessage_; } } /** * optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26; * *
       * Defined in unittest_import_public.proto
       * 
*/ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.test.UnittestImportPublic.PublicImportMessage, com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder, com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder> getOptionalPublicImportMessageFieldBuilder() { if (optionalPublicImportMessageBuilder_ == null) { optionalPublicImportMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.test.UnittestImportPublic.PublicImportMessage, com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder, com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder>( getOptionalPublicImportMessage(), getParentForChildren(), isClean()); optionalPublicImportMessage_ = null; } return optionalPublicImportMessageBuilder_; } private protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage optionalLazyMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> optionalLazyMessageBuilder_; /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public boolean hasOptionalLazyMessage() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOptionalLazyMessage() { if (optionalLazyMessageBuilder_ == null) { return optionalLazyMessage_; } else { return optionalLazyMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public Builder setOptionalLazyMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (optionalLazyMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalLazyMessage_ = value; onChanged(); } else { optionalLazyMessageBuilder_.setMessage(value); } bitField0_ |= 0x02000000; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public Builder setOptionalLazyMessage( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) { if (optionalLazyMessageBuilder_ == null) { optionalLazyMessage_ = builderForValue.build(); onChanged(); } else { optionalLazyMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x02000000; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public Builder mergeOptionalLazyMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (optionalLazyMessageBuilder_ == null) { if (((bitField0_ & 0x02000000) == 0x02000000) && optionalLazyMessage_ != protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()) { optionalLazyMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.newBuilder(optionalLazyMessage_).mergeFrom(value).buildPartial(); } else { optionalLazyMessage_ = value; } onChanged(); } else { optionalLazyMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x02000000; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public Builder clearOptionalLazyMessage() { if (optionalLazyMessageBuilder_ == null) { optionalLazyMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); onChanged(); } else { optionalLazyMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x02000000); return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getOptionalLazyMessageBuilder() { bitField0_ |= 0x02000000; onChanged(); return getOptionalLazyMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() { if (optionalLazyMessageBuilder_ != null) { return optionalLazyMessageBuilder_.getMessageOrBuilder(); } else { return optionalLazyMessage_; } } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true]; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> getOptionalLazyMessageFieldBuilder() { if (optionalLazyMessageBuilder_ == null) { optionalLazyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>( getOptionalLazyMessage(), getParentForChildren(), isClean()); optionalLazyMessage_ = null; } return optionalLazyMessageBuilder_; } private java.util.List repeatedInt32_ = java.util.Collections.emptyList(); private void ensureRepeatedInt32IsMutable() { if (!((bitField0_ & 0x04000000) == 0x04000000)) { repeatedInt32_ = new java.util.ArrayList(repeatedInt32_); bitField0_ |= 0x04000000; } } /** * repeated int32 repeated_int32 = 31; * *
       * Repeated
       * 
*/ public java.util.List getRepeatedInt32List() { return java.util.Collections.unmodifiableList(repeatedInt32_); } /** * repeated int32 repeated_int32 = 31; * *
       * Repeated
       * 
*/ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** * repeated int32 repeated_int32 = 31; * *
       * Repeated
       * 
*/ public int getRepeatedInt32(int index) { return repeatedInt32_.get(index); } /** * repeated int32 repeated_int32 = 31; * *
       * Repeated
       * 
*/ public Builder setRepeatedInt32( int index, int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.set(index, value); onChanged(); return this; } /** * repeated int32 repeated_int32 = 31; * *
       * Repeated
       * 
*/ public Builder addRepeatedInt32(int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.add(value); onChanged(); return this; } /** * repeated int32 repeated_int32 = 31; * *
       * Repeated
       * 
*/ public Builder addAllRepeatedInt32( java.lang.Iterable values) { ensureRepeatedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedInt32_); onChanged(); return this; } /** * repeated int32 repeated_int32 = 31; * *
       * Repeated
       * 
*/ public Builder clearRepeatedInt32() { repeatedInt32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } private java.util.List repeatedInt64_ = java.util.Collections.emptyList(); private void ensureRepeatedInt64IsMutable() { if (!((bitField0_ & 0x08000000) == 0x08000000)) { repeatedInt64_ = new java.util.ArrayList(repeatedInt64_); bitField0_ |= 0x08000000; } } /** * repeated int64 repeated_int64 = 32; */ public java.util.List getRepeatedInt64List() { return java.util.Collections.unmodifiableList(repeatedInt64_); } /** * repeated int64 repeated_int64 = 32; */ public int getRepeatedInt64Count() { return repeatedInt64_.size(); } /** * repeated int64 repeated_int64 = 32; */ public long getRepeatedInt64(int index) { return repeatedInt64_.get(index); } /** * repeated int64 repeated_int64 = 32; */ public Builder setRepeatedInt64( int index, long value) { ensureRepeatedInt64IsMutable(); repeatedInt64_.set(index, value); onChanged(); return this; } /** * repeated int64 repeated_int64 = 32; */ public Builder addRepeatedInt64(long value) { ensureRepeatedInt64IsMutable(); repeatedInt64_.add(value); onChanged(); return this; } /** * repeated int64 repeated_int64 = 32; */ public Builder addAllRepeatedInt64( java.lang.Iterable values) { ensureRepeatedInt64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedInt64_); onChanged(); return this; } /** * repeated int64 repeated_int64 = 32; */ public Builder clearRepeatedInt64() { repeatedInt64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x08000000); onChanged(); return this; } private java.util.List repeatedUint32_ = java.util.Collections.emptyList(); private void ensureRepeatedUint32IsMutable() { if (!((bitField0_ & 0x10000000) == 0x10000000)) { repeatedUint32_ = new java.util.ArrayList(repeatedUint32_); bitField0_ |= 0x10000000; } } /** * repeated uint32 repeated_uint32 = 33; */ public java.util.List getRepeatedUint32List() { return java.util.Collections.unmodifiableList(repeatedUint32_); } /** * repeated uint32 repeated_uint32 = 33; */ public int getRepeatedUint32Count() { return repeatedUint32_.size(); } /** * repeated uint32 repeated_uint32 = 33; */ public int getRepeatedUint32(int index) { return repeatedUint32_.get(index); } /** * repeated uint32 repeated_uint32 = 33; */ public Builder setRepeatedUint32( int index, int value) { ensureRepeatedUint32IsMutable(); repeatedUint32_.set(index, value); onChanged(); return this; } /** * repeated uint32 repeated_uint32 = 33; */ public Builder addRepeatedUint32(int value) { ensureRepeatedUint32IsMutable(); repeatedUint32_.add(value); onChanged(); return this; } /** * repeated uint32 repeated_uint32 = 33; */ public Builder addAllRepeatedUint32( java.lang.Iterable values) { ensureRepeatedUint32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedUint32_); onChanged(); return this; } /** * repeated uint32 repeated_uint32 = 33; */ public Builder clearRepeatedUint32() { repeatedUint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x10000000); onChanged(); return this; } private java.util.List repeatedUint64_ = java.util.Collections.emptyList(); private void ensureRepeatedUint64IsMutable() { if (!((bitField0_ & 0x20000000) == 0x20000000)) { repeatedUint64_ = new java.util.ArrayList(repeatedUint64_); bitField0_ |= 0x20000000; } } /** * repeated uint64 repeated_uint64 = 34; */ public java.util.List getRepeatedUint64List() { return java.util.Collections.unmodifiableList(repeatedUint64_); } /** * repeated uint64 repeated_uint64 = 34; */ public int getRepeatedUint64Count() { return repeatedUint64_.size(); } /** * repeated uint64 repeated_uint64 = 34; */ public long getRepeatedUint64(int index) { return repeatedUint64_.get(index); } /** * repeated uint64 repeated_uint64 = 34; */ public Builder setRepeatedUint64( int index, long value) { ensureRepeatedUint64IsMutable(); repeatedUint64_.set(index, value); onChanged(); return this; } /** * repeated uint64 repeated_uint64 = 34; */ public Builder addRepeatedUint64(long value) { ensureRepeatedUint64IsMutable(); repeatedUint64_.add(value); onChanged(); return this; } /** * repeated uint64 repeated_uint64 = 34; */ public Builder addAllRepeatedUint64( java.lang.Iterable values) { ensureRepeatedUint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedUint64_); onChanged(); return this; } /** * repeated uint64 repeated_uint64 = 34; */ public Builder clearRepeatedUint64() { repeatedUint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x20000000); onChanged(); return this; } private java.util.List repeatedSint32_ = java.util.Collections.emptyList(); private void ensureRepeatedSint32IsMutable() { if (!((bitField0_ & 0x40000000) == 0x40000000)) { repeatedSint32_ = new java.util.ArrayList(repeatedSint32_); bitField0_ |= 0x40000000; } } /** * repeated sint32 repeated_sint32 = 35; */ public java.util.List getRepeatedSint32List() { return java.util.Collections.unmodifiableList(repeatedSint32_); } /** * repeated sint32 repeated_sint32 = 35; */ public int getRepeatedSint32Count() { return repeatedSint32_.size(); } /** * repeated sint32 repeated_sint32 = 35; */ public int getRepeatedSint32(int index) { return repeatedSint32_.get(index); } /** * repeated sint32 repeated_sint32 = 35; */ public Builder setRepeatedSint32( int index, int value) { ensureRepeatedSint32IsMutable(); repeatedSint32_.set(index, value); onChanged(); return this; } /** * repeated sint32 repeated_sint32 = 35; */ public Builder addRepeatedSint32(int value) { ensureRepeatedSint32IsMutable(); repeatedSint32_.add(value); onChanged(); return this; } /** * repeated sint32 repeated_sint32 = 35; */ public Builder addAllRepeatedSint32( java.lang.Iterable values) { ensureRepeatedSint32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedSint32_); onChanged(); return this; } /** * repeated sint32 repeated_sint32 = 35; */ public Builder clearRepeatedSint32() { repeatedSint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } private java.util.List repeatedSint64_ = java.util.Collections.emptyList(); private void ensureRepeatedSint64IsMutable() { if (!((bitField0_ & 0x80000000) == 0x80000000)) { repeatedSint64_ = new java.util.ArrayList(repeatedSint64_); bitField0_ |= 0x80000000; } } /** * repeated sint64 repeated_sint64 = 36; */ public java.util.List getRepeatedSint64List() { return java.util.Collections.unmodifiableList(repeatedSint64_); } /** * repeated sint64 repeated_sint64 = 36; */ public int getRepeatedSint64Count() { return repeatedSint64_.size(); } /** * repeated sint64 repeated_sint64 = 36; */ public long getRepeatedSint64(int index) { return repeatedSint64_.get(index); } /** * repeated sint64 repeated_sint64 = 36; */ public Builder setRepeatedSint64( int index, long value) { ensureRepeatedSint64IsMutable(); repeatedSint64_.set(index, value); onChanged(); return this; } /** * repeated sint64 repeated_sint64 = 36; */ public Builder addRepeatedSint64(long value) { ensureRepeatedSint64IsMutable(); repeatedSint64_.add(value); onChanged(); return this; } /** * repeated sint64 repeated_sint64 = 36; */ public Builder addAllRepeatedSint64( java.lang.Iterable values) { ensureRepeatedSint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedSint64_); onChanged(); return this; } /** * repeated sint64 repeated_sint64 = 36; */ public Builder clearRepeatedSint64() { repeatedSint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x80000000); onChanged(); return this; } private java.util.List repeatedFixed32_ = java.util.Collections.emptyList(); private void ensureRepeatedFixed32IsMutable() { if (!((bitField1_ & 0x00000001) == 0x00000001)) { repeatedFixed32_ = new java.util.ArrayList(repeatedFixed32_); bitField1_ |= 0x00000001; } } /** * repeated fixed32 repeated_fixed32 = 37; */ public java.util.List getRepeatedFixed32List() { return java.util.Collections.unmodifiableList(repeatedFixed32_); } /** * repeated fixed32 repeated_fixed32 = 37; */ public int getRepeatedFixed32Count() { return repeatedFixed32_.size(); } /** * repeated fixed32 repeated_fixed32 = 37; */ public int getRepeatedFixed32(int index) { return repeatedFixed32_.get(index); } /** * repeated fixed32 repeated_fixed32 = 37; */ public Builder setRepeatedFixed32( int index, int value) { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.set(index, value); onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 37; */ public Builder addRepeatedFixed32(int value) { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.add(value); onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 37; */ public Builder addAllRepeatedFixed32( java.lang.Iterable values) { ensureRepeatedFixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFixed32_); onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 37; */ public Builder clearRepeatedFixed32() { repeatedFixed32_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000001); onChanged(); return this; } private java.util.List repeatedFixed64_ = java.util.Collections.emptyList(); private void ensureRepeatedFixed64IsMutable() { if (!((bitField1_ & 0x00000002) == 0x00000002)) { repeatedFixed64_ = new java.util.ArrayList(repeatedFixed64_); bitField1_ |= 0x00000002; } } /** * repeated fixed64 repeated_fixed64 = 38; */ public java.util.List getRepeatedFixed64List() { return java.util.Collections.unmodifiableList(repeatedFixed64_); } /** * repeated fixed64 repeated_fixed64 = 38; */ public int getRepeatedFixed64Count() { return repeatedFixed64_.size(); } /** * repeated fixed64 repeated_fixed64 = 38; */ public long getRepeatedFixed64(int index) { return repeatedFixed64_.get(index); } /** * repeated fixed64 repeated_fixed64 = 38; */ public Builder setRepeatedFixed64( int index, long value) { ensureRepeatedFixed64IsMutable(); repeatedFixed64_.set(index, value); onChanged(); return this; } /** * repeated fixed64 repeated_fixed64 = 38; */ public Builder addRepeatedFixed64(long value) { ensureRepeatedFixed64IsMutable(); repeatedFixed64_.add(value); onChanged(); return this; } /** * repeated fixed64 repeated_fixed64 = 38; */ public Builder addAllRepeatedFixed64( java.lang.Iterable values) { ensureRepeatedFixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFixed64_); onChanged(); return this; } /** * repeated fixed64 repeated_fixed64 = 38; */ public Builder clearRepeatedFixed64() { repeatedFixed64_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000002); onChanged(); return this; } private java.util.List repeatedSfixed32_ = java.util.Collections.emptyList(); private void ensureRepeatedSfixed32IsMutable() { if (!((bitField1_ & 0x00000004) == 0x00000004)) { repeatedSfixed32_ = new java.util.ArrayList(repeatedSfixed32_); bitField1_ |= 0x00000004; } } /** * repeated sfixed32 repeated_sfixed32 = 39; */ public java.util.List getRepeatedSfixed32List() { return java.util.Collections.unmodifiableList(repeatedSfixed32_); } /** * repeated sfixed32 repeated_sfixed32 = 39; */ public int getRepeatedSfixed32Count() { return repeatedSfixed32_.size(); } /** * repeated sfixed32 repeated_sfixed32 = 39; */ public int getRepeatedSfixed32(int index) { return repeatedSfixed32_.get(index); } /** * repeated sfixed32 repeated_sfixed32 = 39; */ public Builder setRepeatedSfixed32( int index, int value) { ensureRepeatedSfixed32IsMutable(); repeatedSfixed32_.set(index, value); onChanged(); return this; } /** * repeated sfixed32 repeated_sfixed32 = 39; */ public Builder addRepeatedSfixed32(int value) { ensureRepeatedSfixed32IsMutable(); repeatedSfixed32_.add(value); onChanged(); return this; } /** * repeated sfixed32 repeated_sfixed32 = 39; */ public Builder addAllRepeatedSfixed32( java.lang.Iterable values) { ensureRepeatedSfixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedSfixed32_); onChanged(); return this; } /** * repeated sfixed32 repeated_sfixed32 = 39; */ public Builder clearRepeatedSfixed32() { repeatedSfixed32_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000004); onChanged(); return this; } private java.util.List repeatedSfixed64_ = java.util.Collections.emptyList(); private void ensureRepeatedSfixed64IsMutable() { if (!((bitField1_ & 0x00000008) == 0x00000008)) { repeatedSfixed64_ = new java.util.ArrayList(repeatedSfixed64_); bitField1_ |= 0x00000008; } } /** * repeated sfixed64 repeated_sfixed64 = 40; */ public java.util.List getRepeatedSfixed64List() { return java.util.Collections.unmodifiableList(repeatedSfixed64_); } /** * repeated sfixed64 repeated_sfixed64 = 40; */ public int getRepeatedSfixed64Count() { return repeatedSfixed64_.size(); } /** * repeated sfixed64 repeated_sfixed64 = 40; */ public long getRepeatedSfixed64(int index) { return repeatedSfixed64_.get(index); } /** * repeated sfixed64 repeated_sfixed64 = 40; */ public Builder setRepeatedSfixed64( int index, long value) { ensureRepeatedSfixed64IsMutable(); repeatedSfixed64_.set(index, value); onChanged(); return this; } /** * repeated sfixed64 repeated_sfixed64 = 40; */ public Builder addRepeatedSfixed64(long value) { ensureRepeatedSfixed64IsMutable(); repeatedSfixed64_.add(value); onChanged(); return this; } /** * repeated sfixed64 repeated_sfixed64 = 40; */ public Builder addAllRepeatedSfixed64( java.lang.Iterable values) { ensureRepeatedSfixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedSfixed64_); onChanged(); return this; } /** * repeated sfixed64 repeated_sfixed64 = 40; */ public Builder clearRepeatedSfixed64() { repeatedSfixed64_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000008); onChanged(); return this; } private java.util.List repeatedFloat_ = java.util.Collections.emptyList(); private void ensureRepeatedFloatIsMutable() { if (!((bitField1_ & 0x00000010) == 0x00000010)) { repeatedFloat_ = new java.util.ArrayList(repeatedFloat_); bitField1_ |= 0x00000010; } } /** * repeated float repeated_float = 41; */ public java.util.List getRepeatedFloatList() { return java.util.Collections.unmodifiableList(repeatedFloat_); } /** * repeated float repeated_float = 41; */ public int getRepeatedFloatCount() { return repeatedFloat_.size(); } /** * repeated float repeated_float = 41; */ public float getRepeatedFloat(int index) { return repeatedFloat_.get(index); } /** * repeated float repeated_float = 41; */ public Builder setRepeatedFloat( int index, float value) { ensureRepeatedFloatIsMutable(); repeatedFloat_.set(index, value); onChanged(); return this; } /** * repeated float repeated_float = 41; */ public Builder addRepeatedFloat(float value) { ensureRepeatedFloatIsMutable(); repeatedFloat_.add(value); onChanged(); return this; } /** * repeated float repeated_float = 41; */ public Builder addAllRepeatedFloat( java.lang.Iterable values) { ensureRepeatedFloatIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFloat_); onChanged(); return this; } /** * repeated float repeated_float = 41; */ public Builder clearRepeatedFloat() { repeatedFloat_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000010); onChanged(); return this; } private java.util.List repeatedDouble_ = java.util.Collections.emptyList(); private void ensureRepeatedDoubleIsMutable() { if (!((bitField1_ & 0x00000020) == 0x00000020)) { repeatedDouble_ = new java.util.ArrayList(repeatedDouble_); bitField1_ |= 0x00000020; } } /** * repeated double repeated_double = 42; */ public java.util.List getRepeatedDoubleList() { return java.util.Collections.unmodifiableList(repeatedDouble_); } /** * repeated double repeated_double = 42; */ public int getRepeatedDoubleCount() { return repeatedDouble_.size(); } /** * repeated double repeated_double = 42; */ public double getRepeatedDouble(int index) { return repeatedDouble_.get(index); } /** * repeated double repeated_double = 42; */ public Builder setRepeatedDouble( int index, double value) { ensureRepeatedDoubleIsMutable(); repeatedDouble_.set(index, value); onChanged(); return this; } /** * repeated double repeated_double = 42; */ public Builder addRepeatedDouble(double value) { ensureRepeatedDoubleIsMutable(); repeatedDouble_.add(value); onChanged(); return this; } /** * repeated double repeated_double = 42; */ public Builder addAllRepeatedDouble( java.lang.Iterable values) { ensureRepeatedDoubleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedDouble_); onChanged(); return this; } /** * repeated double repeated_double = 42; */ public Builder clearRepeatedDouble() { repeatedDouble_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000020); onChanged(); return this; } private java.util.List repeatedBool_ = java.util.Collections.emptyList(); private void ensureRepeatedBoolIsMutable() { if (!((bitField1_ & 0x00000040) == 0x00000040)) { repeatedBool_ = new java.util.ArrayList(repeatedBool_); bitField1_ |= 0x00000040; } } /** * repeated bool repeated_bool = 43; */ public java.util.List getRepeatedBoolList() { return java.util.Collections.unmodifiableList(repeatedBool_); } /** * repeated bool repeated_bool = 43; */ public int getRepeatedBoolCount() { return repeatedBool_.size(); } /** * repeated bool repeated_bool = 43; */ public boolean getRepeatedBool(int index) { return repeatedBool_.get(index); } /** * repeated bool repeated_bool = 43; */ public Builder setRepeatedBool( int index, boolean value) { ensureRepeatedBoolIsMutable(); repeatedBool_.set(index, value); onChanged(); return this; } /** * repeated bool repeated_bool = 43; */ public Builder addRepeatedBool(boolean value) { ensureRepeatedBoolIsMutable(); repeatedBool_.add(value); onChanged(); return this; } /** * repeated bool repeated_bool = 43; */ public Builder addAllRepeatedBool( java.lang.Iterable values) { ensureRepeatedBoolIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedBool_); onChanged(); return this; } /** * repeated bool repeated_bool = 43; */ public Builder clearRepeatedBool() { repeatedBool_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000040); onChanged(); return this; } private com.google.protobuf.LazyStringList repeatedString_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRepeatedStringIsMutable() { if (!((bitField1_ & 0x00000080) == 0x00000080)) { repeatedString_ = new com.google.protobuf.LazyStringArrayList(repeatedString_); bitField1_ |= 0x00000080; } } /** * repeated string repeated_string = 44; */ public com.google.protobuf.ProtocolStringList getRepeatedStringList() { return repeatedString_.getUnmodifiableView(); } /** * repeated string repeated_string = 44; */ public int getRepeatedStringCount() { return repeatedString_.size(); } /** * repeated string repeated_string = 44; */ public java.lang.String getRepeatedString(int index) { return repeatedString_.get(index); } /** * repeated string repeated_string = 44; */ public com.google.protobuf.ByteString getRepeatedStringBytes(int index) { return repeatedString_.getByteString(index); } /** * repeated string repeated_string = 44; */ public Builder setRepeatedString( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringIsMutable(); repeatedString_.set(index, value); onChanged(); return this; } /** * repeated string repeated_string = 44; */ public Builder addRepeatedString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringIsMutable(); repeatedString_.add(value); onChanged(); return this; } /** * repeated string repeated_string = 44; */ public Builder addAllRepeatedString( java.lang.Iterable values) { ensureRepeatedStringIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedString_); onChanged(); return this; } /** * repeated string repeated_string = 44; */ public Builder clearRepeatedString() { repeatedString_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000080); onChanged(); return this; } /** * repeated string repeated_string = 44; */ public Builder addRepeatedStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringIsMutable(); repeatedString_.add(value); onChanged(); return this; } private java.util.List repeatedBytes_ = java.util.Collections.emptyList(); private void ensureRepeatedBytesIsMutable() { if (!((bitField1_ & 0x00000100) == 0x00000100)) { repeatedBytes_ = new java.util.ArrayList(repeatedBytes_); bitField1_ |= 0x00000100; } } /** * repeated bytes repeated_bytes = 45; */ public java.util.List getRepeatedBytesList() { return java.util.Collections.unmodifiableList(repeatedBytes_); } /** * repeated bytes repeated_bytes = 45; */ public int getRepeatedBytesCount() { return repeatedBytes_.size(); } /** * repeated bytes repeated_bytes = 45; */ public com.google.protobuf.ByteString getRepeatedBytes(int index) { return repeatedBytes_.get(index); } /** * repeated bytes repeated_bytes = 45; */ public Builder setRepeatedBytes( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedBytesIsMutable(); repeatedBytes_.set(index, value); onChanged(); return this; } /** * repeated bytes repeated_bytes = 45; */ public Builder addRepeatedBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedBytesIsMutable(); repeatedBytes_.add(value); onChanged(); return this; } /** * repeated bytes repeated_bytes = 45; */ public Builder addAllRepeatedBytes( java.lang.Iterable values) { ensureRepeatedBytesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedBytes_); onChanged(); return this; } /** * repeated bytes repeated_bytes = 45; */ public Builder clearRepeatedBytes() { repeatedBytes_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000100); onChanged(); return this; } private java.util.List repeatedGroup_ = java.util.Collections.emptyList(); private void ensureRepeatedGroupIsMutable() { if (!((bitField1_ & 0x00000200) == 0x00000200)) { repeatedGroup_ = new java.util.ArrayList(repeatedGroup_); bitField1_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder> repeatedGroupBuilder_; /** * repeated group RepeatedGroup = 46 { ... } */ public java.util.List getRepeatedGroupList() { if (repeatedGroupBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedGroup_); } else { return repeatedGroupBuilder_.getMessageList(); } } /** * repeated group RepeatedGroup = 46 { ... } */ public int getRepeatedGroupCount() { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.size(); } else { return repeatedGroupBuilder_.getCount(); } } /** * repeated group RepeatedGroup = 46 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup getRepeatedGroup(int index) { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.get(index); } else { return repeatedGroupBuilder_.getMessage(index); } } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder setRepeatedGroup( int index, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup value) { if (repeatedGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedGroupIsMutable(); repeatedGroup_.set(index, value); onChanged(); } else { repeatedGroupBuilder_.setMessage(index, value); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder setRepeatedGroup( int index, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.set(index, builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder addRepeatedGroup(protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup value) { if (repeatedGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedGroupIsMutable(); repeatedGroup_.add(value); onChanged(); } else { repeatedGroupBuilder_.addMessage(value); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder addRepeatedGroup( int index, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup value) { if (repeatedGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedGroupIsMutable(); repeatedGroup_.add(index, value); onChanged(); } else { repeatedGroupBuilder_.addMessage(index, value); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder addRepeatedGroup( protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.add(builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder addRepeatedGroup( int index, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.add(index, builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder addAllRepeatedGroup( java.lang.Iterable values) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedGroup_); onChanged(); } else { repeatedGroupBuilder_.addAllMessages(values); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder clearRepeatedGroup() { if (repeatedGroupBuilder_ == null) { repeatedGroup_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000200); onChanged(); } else { repeatedGroupBuilder_.clear(); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder removeRepeatedGroup(int index) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.remove(index); onChanged(); } else { repeatedGroupBuilder_.remove(index); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder getRepeatedGroupBuilder( int index) { return getRepeatedGroupFieldBuilder().getBuilder(index); } /** * repeated group RepeatedGroup = 46 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index) { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.get(index); } else { return repeatedGroupBuilder_.getMessageOrBuilder(index); } } /** * repeated group RepeatedGroup = 46 { ... } */ public java.util.List getRepeatedGroupOrBuilderList() { if (repeatedGroupBuilder_ != null) { return repeatedGroupBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedGroup_); } } /** * repeated group RepeatedGroup = 46 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder addRepeatedGroupBuilder() { return getRepeatedGroupFieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.getDefaultInstance()); } /** * repeated group RepeatedGroup = 46 { ... } */ public protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder addRepeatedGroupBuilder( int index) { return getRepeatedGroupFieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.getDefaultInstance()); } /** * repeated group RepeatedGroup = 46 { ... } */ public java.util.List getRepeatedGroupBuilderList() { return getRepeatedGroupFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder> getRepeatedGroupFieldBuilder() { if (repeatedGroupBuilder_ == null) { repeatedGroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroup.Builder, protobuf_unittest.UnittestProto.TestAllTypes.RepeatedGroupOrBuilder>( repeatedGroup_, ((bitField1_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); repeatedGroup_ = null; } return repeatedGroupBuilder_; } private java.util.List repeatedNestedMessage_ = java.util.Collections.emptyList(); private void ensureRepeatedNestedMessageIsMutable() { if (!((bitField1_ & 0x00000400) == 0x00000400)) { repeatedNestedMessage_ = new java.util.ArrayList(repeatedNestedMessage_); bitField1_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> repeatedNestedMessageBuilder_; /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public java.util.List getRepeatedNestedMessageList() { if (repeatedNestedMessageBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedNestedMessage_); } else { return repeatedNestedMessageBuilder_.getMessageList(); } } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public int getRepeatedNestedMessageCount() { if (repeatedNestedMessageBuilder_ == null) { return repeatedNestedMessage_.size(); } else { return repeatedNestedMessageBuilder_.getCount(); } } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index) { if (repeatedNestedMessageBuilder_ == null) { return repeatedNestedMessage_.get(index); } else { return repeatedNestedMessageBuilder_.getMessage(index); } } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public Builder setRepeatedNestedMessage( int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (repeatedNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.set(index, value); onChanged(); } else { repeatedNestedMessageBuilder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public Builder setRepeatedNestedMessage( int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) { if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.set(index, builderForValue.build()); onChanged(); } else { repeatedNestedMessageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public Builder addRepeatedNestedMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (repeatedNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.add(value); onChanged(); } else { repeatedNestedMessageBuilder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public Builder addRepeatedNestedMessage( int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (repeatedNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.add(index, value); onChanged(); } else { repeatedNestedMessageBuilder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public Builder addRepeatedNestedMessage( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) { if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.add(builderForValue.build()); onChanged(); } else { repeatedNestedMessageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public Builder addRepeatedNestedMessage( int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) { if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.add(index, builderForValue.build()); onChanged(); } else { repeatedNestedMessageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public Builder addAllRepeatedNestedMessage( java.lang.Iterable values) { if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedNestedMessage_); onChanged(); } else { repeatedNestedMessageBuilder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public Builder clearRepeatedNestedMessage() { if (repeatedNestedMessageBuilder_ == null) { repeatedNestedMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000400); onChanged(); } else { repeatedNestedMessageBuilder_.clear(); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public Builder removeRepeatedNestedMessage(int index) { if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.remove(index); onChanged(); } else { repeatedNestedMessageBuilder_.remove(index); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getRepeatedNestedMessageBuilder( int index) { return getRepeatedNestedMessageFieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder( int index) { if (repeatedNestedMessageBuilder_ == null) { return repeatedNestedMessage_.get(index); } else { return repeatedNestedMessageBuilder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public java.util.List getRepeatedNestedMessageOrBuilderList() { if (repeatedNestedMessageBuilder_ != null) { return repeatedNestedMessageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedNestedMessage_); } } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder addRepeatedNestedMessageBuilder() { return getRepeatedNestedMessageFieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder addRepeatedNestedMessageBuilder( int index) { return getRepeatedNestedMessageFieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48; */ public java.util.List getRepeatedNestedMessageBuilderList() { return getRepeatedNestedMessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> getRepeatedNestedMessageFieldBuilder() { if (repeatedNestedMessageBuilder_ == null) { repeatedNestedMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>( repeatedNestedMessage_, ((bitField1_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); repeatedNestedMessage_ = null; } return repeatedNestedMessageBuilder_; } private java.util.List repeatedForeignMessage_ = java.util.Collections.emptyList(); private void ensureRepeatedForeignMessageIsMutable() { if (!((bitField1_ & 0x00000800) == 0x00000800)) { repeatedForeignMessage_ = new java.util.ArrayList(repeatedForeignMessage_); bitField1_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> repeatedForeignMessageBuilder_; /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public java.util.List getRepeatedForeignMessageList() { if (repeatedForeignMessageBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedForeignMessage_); } else { return repeatedForeignMessageBuilder_.getMessageList(); } } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public int getRepeatedForeignMessageCount() { if (repeatedForeignMessageBuilder_ == null) { return repeatedForeignMessage_.size(); } else { return repeatedForeignMessageBuilder_.getCount(); } } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public protobuf_unittest.UnittestProto.ForeignMessage getRepeatedForeignMessage(int index) { if (repeatedForeignMessageBuilder_ == null) { return repeatedForeignMessage_.get(index); } else { return repeatedForeignMessageBuilder_.getMessage(index); } } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public Builder setRepeatedForeignMessage( int index, protobuf_unittest.UnittestProto.ForeignMessage value) { if (repeatedForeignMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.set(index, value); onChanged(); } else { repeatedForeignMessageBuilder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public Builder setRepeatedForeignMessage( int index, protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.set(index, builderForValue.build()); onChanged(); } else { repeatedForeignMessageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public Builder addRepeatedForeignMessage(protobuf_unittest.UnittestProto.ForeignMessage value) { if (repeatedForeignMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.add(value); onChanged(); } else { repeatedForeignMessageBuilder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public Builder addRepeatedForeignMessage( int index, protobuf_unittest.UnittestProto.ForeignMessage value) { if (repeatedForeignMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.add(index, value); onChanged(); } else { repeatedForeignMessageBuilder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public Builder addRepeatedForeignMessage( protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.add(builderForValue.build()); onChanged(); } else { repeatedForeignMessageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public Builder addRepeatedForeignMessage( int index, protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.add(index, builderForValue.build()); onChanged(); } else { repeatedForeignMessageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public Builder addAllRepeatedForeignMessage( java.lang.Iterable values) { if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedForeignMessage_); onChanged(); } else { repeatedForeignMessageBuilder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public Builder clearRepeatedForeignMessage() { if (repeatedForeignMessageBuilder_ == null) { repeatedForeignMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000800); onChanged(); } else { repeatedForeignMessageBuilder_.clear(); } return this; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public Builder removeRepeatedForeignMessage(int index) { if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.remove(index); onChanged(); } else { repeatedForeignMessageBuilder_.remove(index); } return this; } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder getRepeatedForeignMessageBuilder( int index) { return getRepeatedForeignMessageFieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getRepeatedForeignMessageOrBuilder( int index) { if (repeatedForeignMessageBuilder_ == null) { return repeatedForeignMessage_.get(index); } else { return repeatedForeignMessageBuilder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public java.util.List getRepeatedForeignMessageOrBuilderList() { if (repeatedForeignMessageBuilder_ != null) { return repeatedForeignMessageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedForeignMessage_); } } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder addRepeatedForeignMessageBuilder() { return getRepeatedForeignMessageFieldBuilder().addBuilder( protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder addRepeatedForeignMessageBuilder( int index) { return getRepeatedForeignMessageFieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49; */ public java.util.List getRepeatedForeignMessageBuilderList() { return getRepeatedForeignMessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> getRepeatedForeignMessageFieldBuilder() { if (repeatedForeignMessageBuilder_ == null) { repeatedForeignMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>( repeatedForeignMessage_, ((bitField1_ & 0x00000800) == 0x00000800), getParentForChildren(), isClean()); repeatedForeignMessage_ = null; } return repeatedForeignMessageBuilder_; } private java.util.List repeatedImportMessage_ = java.util.Collections.emptyList(); private void ensureRepeatedImportMessageIsMutable() { if (!((bitField1_ & 0x00001000) == 0x00001000)) { repeatedImportMessage_ = new java.util.ArrayList(repeatedImportMessage_); bitField1_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder> repeatedImportMessageBuilder_; /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public java.util.List getRepeatedImportMessageList() { if (repeatedImportMessageBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedImportMessage_); } else { return repeatedImportMessageBuilder_.getMessageList(); } } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public int getRepeatedImportMessageCount() { if (repeatedImportMessageBuilder_ == null) { return repeatedImportMessage_.size(); } else { return repeatedImportMessageBuilder_.getCount(); } } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public com.google.protobuf.test.UnittestImport.ImportMessage getRepeatedImportMessage(int index) { if (repeatedImportMessageBuilder_ == null) { return repeatedImportMessage_.get(index); } else { return repeatedImportMessageBuilder_.getMessage(index); } } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public Builder setRepeatedImportMessage( int index, com.google.protobuf.test.UnittestImport.ImportMessage value) { if (repeatedImportMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.set(index, value); onChanged(); } else { repeatedImportMessageBuilder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public Builder setRepeatedImportMessage( int index, com.google.protobuf.test.UnittestImport.ImportMessage.Builder builderForValue) { if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.set(index, builderForValue.build()); onChanged(); } else { repeatedImportMessageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public Builder addRepeatedImportMessage(com.google.protobuf.test.UnittestImport.ImportMessage value) { if (repeatedImportMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.add(value); onChanged(); } else { repeatedImportMessageBuilder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public Builder addRepeatedImportMessage( int index, com.google.protobuf.test.UnittestImport.ImportMessage value) { if (repeatedImportMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.add(index, value); onChanged(); } else { repeatedImportMessageBuilder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public Builder addRepeatedImportMessage( com.google.protobuf.test.UnittestImport.ImportMessage.Builder builderForValue) { if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.add(builderForValue.build()); onChanged(); } else { repeatedImportMessageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public Builder addRepeatedImportMessage( int index, com.google.protobuf.test.UnittestImport.ImportMessage.Builder builderForValue) { if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.add(index, builderForValue.build()); onChanged(); } else { repeatedImportMessageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public Builder addAllRepeatedImportMessage( java.lang.Iterable values) { if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedImportMessage_); onChanged(); } else { repeatedImportMessageBuilder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public Builder clearRepeatedImportMessage() { if (repeatedImportMessageBuilder_ == null) { repeatedImportMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00001000); onChanged(); } else { repeatedImportMessageBuilder_.clear(); } return this; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public Builder removeRepeatedImportMessage(int index) { if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.remove(index); onChanged(); } else { repeatedImportMessageBuilder_.remove(index); } return this; } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public com.google.protobuf.test.UnittestImport.ImportMessage.Builder getRepeatedImportMessageBuilder( int index) { return getRepeatedImportMessageFieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder getRepeatedImportMessageOrBuilder( int index) { if (repeatedImportMessageBuilder_ == null) { return repeatedImportMessage_.get(index); } else { return repeatedImportMessageBuilder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public java.util.List getRepeatedImportMessageOrBuilderList() { if (repeatedImportMessageBuilder_ != null) { return repeatedImportMessageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedImportMessage_); } } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public com.google.protobuf.test.UnittestImport.ImportMessage.Builder addRepeatedImportMessageBuilder() { return getRepeatedImportMessageFieldBuilder().addBuilder( com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public com.google.protobuf.test.UnittestImport.ImportMessage.Builder addRepeatedImportMessageBuilder( int index) { return getRepeatedImportMessageFieldBuilder().addBuilder( index, com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50; */ public java.util.List getRepeatedImportMessageBuilderList() { return getRepeatedImportMessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder> getRepeatedImportMessageFieldBuilder() { if (repeatedImportMessageBuilder_ == null) { repeatedImportMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.test.UnittestImport.ImportMessage, com.google.protobuf.test.UnittestImport.ImportMessage.Builder, com.google.protobuf.test.UnittestImport.ImportMessageOrBuilder>( repeatedImportMessage_, ((bitField1_ & 0x00001000) == 0x00001000), getParentForChildren(), isClean()); repeatedImportMessage_ = null; } return repeatedImportMessageBuilder_; } private java.util.List repeatedNestedEnum_ = java.util.Collections.emptyList(); private void ensureRepeatedNestedEnumIsMutable() { if (!((bitField1_ & 0x00002000) == 0x00002000)) { repeatedNestedEnum_ = new java.util.ArrayList(repeatedNestedEnum_); bitField1_ |= 0x00002000; } } /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ public java.util.List getRepeatedNestedEnumList() { return java.util.Collections.unmodifiableList(repeatedNestedEnum_); } /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ public int getRepeatedNestedEnumCount() { return repeatedNestedEnum_.size(); } /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) { return repeatedNestedEnum_.get(index); } /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ public Builder setRepeatedNestedEnum( int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedNestedEnumIsMutable(); repeatedNestedEnum_.set(index, value); onChanged(); return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ public Builder addRepeatedNestedEnum(protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedNestedEnumIsMutable(); repeatedNestedEnum_.add(value); onChanged(); return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ public Builder addAllRepeatedNestedEnum( java.lang.Iterable values) { ensureRepeatedNestedEnumIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedNestedEnum_); onChanged(); return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51; */ public Builder clearRepeatedNestedEnum() { repeatedNestedEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00002000); onChanged(); return this; } private java.util.List repeatedForeignEnum_ = java.util.Collections.emptyList(); private void ensureRepeatedForeignEnumIsMutable() { if (!((bitField1_ & 0x00004000) == 0x00004000)) { repeatedForeignEnum_ = new java.util.ArrayList(repeatedForeignEnum_); bitField1_ |= 0x00004000; } } /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ public java.util.List getRepeatedForeignEnumList() { return java.util.Collections.unmodifiableList(repeatedForeignEnum_); } /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ public int getRepeatedForeignEnumCount() { return repeatedForeignEnum_.size(); } /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ public protobuf_unittest.UnittestProto.ForeignEnum getRepeatedForeignEnum(int index) { return repeatedForeignEnum_.get(index); } /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ public Builder setRepeatedForeignEnum( int index, protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedForeignEnumIsMutable(); repeatedForeignEnum_.set(index, value); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ public Builder addRepeatedForeignEnum(protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedForeignEnumIsMutable(); repeatedForeignEnum_.add(value); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ public Builder addAllRepeatedForeignEnum( java.lang.Iterable values) { ensureRepeatedForeignEnumIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedForeignEnum_); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52; */ public Builder clearRepeatedForeignEnum() { repeatedForeignEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00004000); onChanged(); return this; } private java.util.List repeatedImportEnum_ = java.util.Collections.emptyList(); private void ensureRepeatedImportEnumIsMutable() { if (!((bitField1_ & 0x00008000) == 0x00008000)) { repeatedImportEnum_ = new java.util.ArrayList(repeatedImportEnum_); bitField1_ |= 0x00008000; } } /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ public java.util.List getRepeatedImportEnumList() { return java.util.Collections.unmodifiableList(repeatedImportEnum_); } /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ public int getRepeatedImportEnumCount() { return repeatedImportEnum_.size(); } /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ public com.google.protobuf.test.UnittestImport.ImportEnum getRepeatedImportEnum(int index) { return repeatedImportEnum_.get(index); } /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ public Builder setRepeatedImportEnum( int index, com.google.protobuf.test.UnittestImport.ImportEnum value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedImportEnumIsMutable(); repeatedImportEnum_.set(index, value); onChanged(); return this; } /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ public Builder addRepeatedImportEnum(com.google.protobuf.test.UnittestImport.ImportEnum value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedImportEnumIsMutable(); repeatedImportEnum_.add(value); onChanged(); return this; } /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ public Builder addAllRepeatedImportEnum( java.lang.Iterable values) { ensureRepeatedImportEnumIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedImportEnum_); onChanged(); return this; } /** * repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53; */ public Builder clearRepeatedImportEnum() { repeatedImportEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00008000); onChanged(); return this; } private com.google.protobuf.LazyStringList repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRepeatedStringPieceIsMutable() { if (!((bitField1_ & 0x00010000) == 0x00010000)) { repeatedStringPiece_ = new com.google.protobuf.LazyStringArrayList(repeatedStringPiece_); bitField1_ |= 0x00010000; } } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public com.google.protobuf.ProtocolStringList getRepeatedStringPieceList() { return repeatedStringPiece_.getUnmodifiableView(); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public int getRepeatedStringPieceCount() { return repeatedStringPiece_.size(); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public java.lang.String getRepeatedStringPiece(int index) { return repeatedStringPiece_.get(index); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getRepeatedStringPieceBytes(int index) { return repeatedStringPiece_.getByteString(index); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public Builder setRepeatedStringPiece( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringPieceIsMutable(); repeatedStringPiece_.set(index, value); onChanged(); return this; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public Builder addRepeatedStringPiece( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringPieceIsMutable(); repeatedStringPiece_.add(value); onChanged(); return this; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public Builder addAllRepeatedStringPiece( java.lang.Iterable values) { ensureRepeatedStringPieceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedStringPiece_); onChanged(); return this; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public Builder clearRepeatedStringPiece() { repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00010000); onChanged(); return this; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; */ public Builder addRepeatedStringPieceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringPieceIsMutable(); repeatedStringPiece_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList repeatedCord_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRepeatedCordIsMutable() { if (!((bitField1_ & 0x00020000) == 0x00020000)) { repeatedCord_ = new com.google.protobuf.LazyStringArrayList(repeatedCord_); bitField1_ |= 0x00020000; } } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public com.google.protobuf.ProtocolStringList getRepeatedCordList() { return repeatedCord_.getUnmodifiableView(); } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public int getRepeatedCordCount() { return repeatedCord_.size(); } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public java.lang.String getRepeatedCord(int index) { return repeatedCord_.get(index); } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public com.google.protobuf.ByteString getRepeatedCordBytes(int index) { return repeatedCord_.getByteString(index); } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public Builder setRepeatedCord( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedCordIsMutable(); repeatedCord_.set(index, value); onChanged(); return this; } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public Builder addRepeatedCord( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedCordIsMutable(); repeatedCord_.add(value); onChanged(); return this; } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public Builder addAllRepeatedCord( java.lang.Iterable values) { ensureRepeatedCordIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedCord_); onChanged(); return this; } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public Builder clearRepeatedCord() { repeatedCord_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00020000); onChanged(); return this; } /** * repeated string repeated_cord = 55 [ctype = CORD]; */ public Builder addRepeatedCordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedCordIsMutable(); repeatedCord_.add(value); onChanged(); return this; } private java.util.List repeatedLazyMessage_ = java.util.Collections.emptyList(); private void ensureRepeatedLazyMessageIsMutable() { if (!((bitField1_ & 0x00040000) == 0x00040000)) { repeatedLazyMessage_ = new java.util.ArrayList(repeatedLazyMessage_); bitField1_ |= 0x00040000; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> repeatedLazyMessageBuilder_; /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public java.util.List getRepeatedLazyMessageList() { if (repeatedLazyMessageBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedLazyMessage_); } else { return repeatedLazyMessageBuilder_.getMessageList(); } } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public int getRepeatedLazyMessageCount() { if (repeatedLazyMessageBuilder_ == null) { return repeatedLazyMessage_.size(); } else { return repeatedLazyMessageBuilder_.getCount(); } } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getRepeatedLazyMessage(int index) { if (repeatedLazyMessageBuilder_ == null) { return repeatedLazyMessage_.get(index); } else { return repeatedLazyMessageBuilder_.getMessage(index); } } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder setRepeatedLazyMessage( int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (repeatedLazyMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.set(index, value); onChanged(); } else { repeatedLazyMessageBuilder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder setRepeatedLazyMessage( int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) { if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.set(index, builderForValue.build()); onChanged(); } else { repeatedLazyMessageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder addRepeatedLazyMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (repeatedLazyMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.add(value); onChanged(); } else { repeatedLazyMessageBuilder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder addRepeatedLazyMessage( int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (repeatedLazyMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.add(index, value); onChanged(); } else { repeatedLazyMessageBuilder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder addRepeatedLazyMessage( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) { if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.add(builderForValue.build()); onChanged(); } else { repeatedLazyMessageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder addRepeatedLazyMessage( int index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) { if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.add(index, builderForValue.build()); onChanged(); } else { repeatedLazyMessageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder addAllRepeatedLazyMessage( java.lang.Iterable values) { if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedLazyMessage_); onChanged(); } else { repeatedLazyMessageBuilder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder clearRepeatedLazyMessage() { if (repeatedLazyMessageBuilder_ == null) { repeatedLazyMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00040000); onChanged(); } else { repeatedLazyMessageBuilder_.clear(); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder removeRepeatedLazyMessage(int index) { if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.remove(index); onChanged(); } else { repeatedLazyMessageBuilder_.remove(index); } return this; } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getRepeatedLazyMessageBuilder( int index) { return getRepeatedLazyMessageFieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder( int index) { if (repeatedLazyMessageBuilder_ == null) { return repeatedLazyMessage_.get(index); } else { return repeatedLazyMessageBuilder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public java.util.List getRepeatedLazyMessageOrBuilderList() { if (repeatedLazyMessageBuilder_ != null) { return repeatedLazyMessageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedLazyMessage_); } } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder addRepeatedLazyMessageBuilder() { return getRepeatedLazyMessageFieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder addRepeatedLazyMessageBuilder( int index) { return getRepeatedLazyMessageFieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public java.util.List getRepeatedLazyMessageBuilderList() { return getRepeatedLazyMessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> getRepeatedLazyMessageFieldBuilder() { if (repeatedLazyMessageBuilder_ == null) { repeatedLazyMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>( repeatedLazyMessage_, ((bitField1_ & 0x00040000) == 0x00040000), getParentForChildren(), isClean()); repeatedLazyMessage_ = null; } return repeatedLazyMessageBuilder_; } private int defaultInt32_ = 41; /** * optional int32 default_int32 = 61 [default = 41]; * *
       * Singular with defaults
       * 
*/ public boolean hasDefaultInt32() { return ((bitField1_ & 0x00080000) == 0x00080000); } /** * optional int32 default_int32 = 61 [default = 41]; * *
       * Singular with defaults
       * 
*/ public int getDefaultInt32() { return defaultInt32_; } /** * optional int32 default_int32 = 61 [default = 41]; * *
       * Singular with defaults
       * 
*/ public Builder setDefaultInt32(int value) { bitField1_ |= 0x00080000; defaultInt32_ = value; onChanged(); return this; } /** * optional int32 default_int32 = 61 [default = 41]; * *
       * Singular with defaults
       * 
*/ public Builder clearDefaultInt32() { bitField1_ = (bitField1_ & ~0x00080000); defaultInt32_ = 41; onChanged(); return this; } private long defaultInt64_ = 42L; /** * optional int64 default_int64 = 62 [default = 42]; */ public boolean hasDefaultInt64() { return ((bitField1_ & 0x00100000) == 0x00100000); } /** * optional int64 default_int64 = 62 [default = 42]; */ public long getDefaultInt64() { return defaultInt64_; } /** * optional int64 default_int64 = 62 [default = 42]; */ public Builder setDefaultInt64(long value) { bitField1_ |= 0x00100000; defaultInt64_ = value; onChanged(); return this; } /** * optional int64 default_int64 = 62 [default = 42]; */ public Builder clearDefaultInt64() { bitField1_ = (bitField1_ & ~0x00100000); defaultInt64_ = 42L; onChanged(); return this; } private int defaultUint32_ = 43; /** * optional uint32 default_uint32 = 63 [default = 43]; */ public boolean hasDefaultUint32() { return ((bitField1_ & 0x00200000) == 0x00200000); } /** * optional uint32 default_uint32 = 63 [default = 43]; */ public int getDefaultUint32() { return defaultUint32_; } /** * optional uint32 default_uint32 = 63 [default = 43]; */ public Builder setDefaultUint32(int value) { bitField1_ |= 0x00200000; defaultUint32_ = value; onChanged(); return this; } /** * optional uint32 default_uint32 = 63 [default = 43]; */ public Builder clearDefaultUint32() { bitField1_ = (bitField1_ & ~0x00200000); defaultUint32_ = 43; onChanged(); return this; } private long defaultUint64_ = 44L; /** * optional uint64 default_uint64 = 64 [default = 44]; */ public boolean hasDefaultUint64() { return ((bitField1_ & 0x00400000) == 0x00400000); } /** * optional uint64 default_uint64 = 64 [default = 44]; */ public long getDefaultUint64() { return defaultUint64_; } /** * optional uint64 default_uint64 = 64 [default = 44]; */ public Builder setDefaultUint64(long value) { bitField1_ |= 0x00400000; defaultUint64_ = value; onChanged(); return this; } /** * optional uint64 default_uint64 = 64 [default = 44]; */ public Builder clearDefaultUint64() { bitField1_ = (bitField1_ & ~0x00400000); defaultUint64_ = 44L; onChanged(); return this; } private int defaultSint32_ = -45; /** * optional sint32 default_sint32 = 65 [default = -45]; */ public boolean hasDefaultSint32() { return ((bitField1_ & 0x00800000) == 0x00800000); } /** * optional sint32 default_sint32 = 65 [default = -45]; */ public int getDefaultSint32() { return defaultSint32_; } /** * optional sint32 default_sint32 = 65 [default = -45]; */ public Builder setDefaultSint32(int value) { bitField1_ |= 0x00800000; defaultSint32_ = value; onChanged(); return this; } /** * optional sint32 default_sint32 = 65 [default = -45]; */ public Builder clearDefaultSint32() { bitField1_ = (bitField1_ & ~0x00800000); defaultSint32_ = -45; onChanged(); return this; } private long defaultSint64_ = 46L; /** * optional sint64 default_sint64 = 66 [default = 46]; */ public boolean hasDefaultSint64() { return ((bitField1_ & 0x01000000) == 0x01000000); } /** * optional sint64 default_sint64 = 66 [default = 46]; */ public long getDefaultSint64() { return defaultSint64_; } /** * optional sint64 default_sint64 = 66 [default = 46]; */ public Builder setDefaultSint64(long value) { bitField1_ |= 0x01000000; defaultSint64_ = value; onChanged(); return this; } /** * optional sint64 default_sint64 = 66 [default = 46]; */ public Builder clearDefaultSint64() { bitField1_ = (bitField1_ & ~0x01000000); defaultSint64_ = 46L; onChanged(); return this; } private int defaultFixed32_ = 47; /** * optional fixed32 default_fixed32 = 67 [default = 47]; */ public boolean hasDefaultFixed32() { return ((bitField1_ & 0x02000000) == 0x02000000); } /** * optional fixed32 default_fixed32 = 67 [default = 47]; */ public int getDefaultFixed32() { return defaultFixed32_; } /** * optional fixed32 default_fixed32 = 67 [default = 47]; */ public Builder setDefaultFixed32(int value) { bitField1_ |= 0x02000000; defaultFixed32_ = value; onChanged(); return this; } /** * optional fixed32 default_fixed32 = 67 [default = 47]; */ public Builder clearDefaultFixed32() { bitField1_ = (bitField1_ & ~0x02000000); defaultFixed32_ = 47; onChanged(); return this; } private long defaultFixed64_ = 48L; /** * optional fixed64 default_fixed64 = 68 [default = 48]; */ public boolean hasDefaultFixed64() { return ((bitField1_ & 0x04000000) == 0x04000000); } /** * optional fixed64 default_fixed64 = 68 [default = 48]; */ public long getDefaultFixed64() { return defaultFixed64_; } /** * optional fixed64 default_fixed64 = 68 [default = 48]; */ public Builder setDefaultFixed64(long value) { bitField1_ |= 0x04000000; defaultFixed64_ = value; onChanged(); return this; } /** * optional fixed64 default_fixed64 = 68 [default = 48]; */ public Builder clearDefaultFixed64() { bitField1_ = (bitField1_ & ~0x04000000); defaultFixed64_ = 48L; onChanged(); return this; } private int defaultSfixed32_ = 49; /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; */ public boolean hasDefaultSfixed32() { return ((bitField1_ & 0x08000000) == 0x08000000); } /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; */ public int getDefaultSfixed32() { return defaultSfixed32_; } /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; */ public Builder setDefaultSfixed32(int value) { bitField1_ |= 0x08000000; defaultSfixed32_ = value; onChanged(); return this; } /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; */ public Builder clearDefaultSfixed32() { bitField1_ = (bitField1_ & ~0x08000000); defaultSfixed32_ = 49; onChanged(); return this; } private long defaultSfixed64_ = -50L; /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; */ public boolean hasDefaultSfixed64() { return ((bitField1_ & 0x10000000) == 0x10000000); } /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; */ public long getDefaultSfixed64() { return defaultSfixed64_; } /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; */ public Builder setDefaultSfixed64(long value) { bitField1_ |= 0x10000000; defaultSfixed64_ = value; onChanged(); return this; } /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; */ public Builder clearDefaultSfixed64() { bitField1_ = (bitField1_ & ~0x10000000); defaultSfixed64_ = -50L; onChanged(); return this; } private float defaultFloat_ = 51.5F; /** * optional float default_float = 71 [default = 51.5]; */ public boolean hasDefaultFloat() { return ((bitField1_ & 0x20000000) == 0x20000000); } /** * optional float default_float = 71 [default = 51.5]; */ public float getDefaultFloat() { return defaultFloat_; } /** * optional float default_float = 71 [default = 51.5]; */ public Builder setDefaultFloat(float value) { bitField1_ |= 0x20000000; defaultFloat_ = value; onChanged(); return this; } /** * optional float default_float = 71 [default = 51.5]; */ public Builder clearDefaultFloat() { bitField1_ = (bitField1_ & ~0x20000000); defaultFloat_ = 51.5F; onChanged(); return this; } private double defaultDouble_ = 52000D; /** * optional double default_double = 72 [default = 52000]; */ public boolean hasDefaultDouble() { return ((bitField1_ & 0x40000000) == 0x40000000); } /** * optional double default_double = 72 [default = 52000]; */ public double getDefaultDouble() { return defaultDouble_; } /** * optional double default_double = 72 [default = 52000]; */ public Builder setDefaultDouble(double value) { bitField1_ |= 0x40000000; defaultDouble_ = value; onChanged(); return this; } /** * optional double default_double = 72 [default = 52000]; */ public Builder clearDefaultDouble() { bitField1_ = (bitField1_ & ~0x40000000); defaultDouble_ = 52000D; onChanged(); return this; } private boolean defaultBool_ = true; /** * optional bool default_bool = 73 [default = true]; */ public boolean hasDefaultBool() { return ((bitField1_ & 0x80000000) == 0x80000000); } /** * optional bool default_bool = 73 [default = true]; */ public boolean getDefaultBool() { return defaultBool_; } /** * optional bool default_bool = 73 [default = true]; */ public Builder setDefaultBool(boolean value) { bitField1_ |= 0x80000000; defaultBool_ = value; onChanged(); return this; } /** * optional bool default_bool = 73 [default = true]; */ public Builder clearDefaultBool() { bitField1_ = (bitField1_ & ~0x80000000); defaultBool_ = true; onChanged(); return this; } private java.lang.Object defaultString_ = "hello"; /** * optional string default_string = 74 [default = "hello"]; */ public boolean hasDefaultString() { return ((bitField2_ & 0x00000001) == 0x00000001); } /** * optional string default_string = 74 [default = "hello"]; */ public java.lang.String getDefaultString() { java.lang.Object ref = defaultString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string default_string = 74 [default = "hello"]; */ public com.google.protobuf.ByteString getDefaultStringBytes() { java.lang.Object ref = defaultString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string default_string = 74 [default = "hello"]; */ public Builder setDefaultString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000001; defaultString_ = value; onChanged(); return this; } /** * optional string default_string = 74 [default = "hello"]; */ public Builder clearDefaultString() { bitField2_ = (bitField2_ & ~0x00000001); defaultString_ = getDefaultInstance().getDefaultString(); onChanged(); return this; } /** * optional string default_string = 74 [default = "hello"]; */ public Builder setDefaultStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000001; defaultString_ = value; onChanged(); return this; } private com.google.protobuf.ByteString defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world"); /** * optional bytes default_bytes = 75 [default = "world"]; */ public boolean hasDefaultBytes() { return ((bitField2_ & 0x00000002) == 0x00000002); } /** * optional bytes default_bytes = 75 [default = "world"]; */ public com.google.protobuf.ByteString getDefaultBytes() { return defaultBytes_; } /** * optional bytes default_bytes = 75 [default = "world"]; */ public Builder setDefaultBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000002; defaultBytes_ = value; onChanged(); return this; } /** * optional bytes default_bytes = 75 [default = "world"]; */ public Builder clearDefaultBytes() { bitField2_ = (bitField2_ & ~0x00000002); defaultBytes_ = getDefaultInstance().getDefaultBytes(); onChanged(); return this; } private protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum defaultNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.BAR; /** * optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR]; */ public boolean hasDefaultNestedEnum() { return ((bitField2_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR]; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum getDefaultNestedEnum() { return defaultNestedEnum_; } /** * optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR]; */ public Builder setDefaultNestedEnum(protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000004; defaultNestedEnum_ = value; onChanged(); return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR]; */ public Builder clearDefaultNestedEnum() { bitField2_ = (bitField2_ & ~0x00000004); defaultNestedEnum_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.BAR; onChanged(); return this; } private protobuf_unittest.UnittestProto.ForeignEnum defaultForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_BAR; /** * optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; */ public boolean hasDefaultForeignEnum() { return ((bitField2_ & 0x00000008) == 0x00000008); } /** * optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; */ public protobuf_unittest.UnittestProto.ForeignEnum getDefaultForeignEnum() { return defaultForeignEnum_; } /** * optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; */ public Builder setDefaultForeignEnum(protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000008; defaultForeignEnum_ = value; onChanged(); return this; } /** * optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; */ public Builder clearDefaultForeignEnum() { bitField2_ = (bitField2_ & ~0x00000008); defaultForeignEnum_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_BAR; onChanged(); return this; } private com.google.protobuf.test.UnittestImport.ImportEnum defaultImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_BAR; /** * optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR]; */ public boolean hasDefaultImportEnum() { return ((bitField2_ & 0x00000010) == 0x00000010); } /** * optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR]; */ public com.google.protobuf.test.UnittestImport.ImportEnum getDefaultImportEnum() { return defaultImportEnum_; } /** * optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR]; */ public Builder setDefaultImportEnum(com.google.protobuf.test.UnittestImport.ImportEnum value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000010; defaultImportEnum_ = value; onChanged(); return this; } /** * optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR]; */ public Builder clearDefaultImportEnum() { bitField2_ = (bitField2_ & ~0x00000010); defaultImportEnum_ = com.google.protobuf.test.UnittestImport.ImportEnum.IMPORT_BAR; onChanged(); return this; } private java.lang.Object defaultStringPiece_ = "abc"; /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ public boolean hasDefaultStringPiece() { return ((bitField2_ & 0x00000020) == 0x00000020); } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ public java.lang.String getDefaultStringPiece() { java.lang.Object ref = defaultStringPiece_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultStringPiece_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getDefaultStringPieceBytes() { java.lang.Object ref = defaultStringPiece_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultStringPiece_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ public Builder setDefaultStringPiece( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000020; defaultStringPiece_ = value; onChanged(); return this; } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ public Builder clearDefaultStringPiece() { bitField2_ = (bitField2_ & ~0x00000020); defaultStringPiece_ = getDefaultInstance().getDefaultStringPiece(); onChanged(); return this; } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; */ public Builder setDefaultStringPieceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000020; defaultStringPiece_ = value; onChanged(); return this; } private java.lang.Object defaultCord_ = "123"; /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ public boolean hasDefaultCord() { return ((bitField2_ & 0x00000040) == 0x00000040); } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ public java.lang.String getDefaultCord() { java.lang.Object ref = defaultCord_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultCord_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ public com.google.protobuf.ByteString getDefaultCordBytes() { java.lang.Object ref = defaultCord_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultCord_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ public Builder setDefaultCord( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000040; defaultCord_ = value; onChanged(); return this; } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ public Builder clearDefaultCord() { bitField2_ = (bitField2_ & ~0x00000040); defaultCord_ = getDefaultInstance().getDefaultCord(); onChanged(); return this; } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; */ public Builder setDefaultCordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000040; defaultCord_ = value; onChanged(); return this; } /** * optional uint32 oneof_uint32 = 111; */ public boolean hasOneofUint32() { return oneofFieldCase_ == 111; } /** * optional uint32 oneof_uint32 = 111; */ public int getOneofUint32() { if (oneofFieldCase_ == 111) { return (java.lang.Integer) oneofField_; } return 0; } /** * optional uint32 oneof_uint32 = 111; */ public Builder setOneofUint32(int value) { oneofFieldCase_ = 111; oneofField_ = value; onChanged(); return this; } /** * optional uint32 oneof_uint32 = 111; */ public Builder clearOneofUint32() { if (oneofFieldCase_ == 111) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> oneofNestedMessageBuilder_; /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public boolean hasOneofNestedMessage() { return oneofFieldCase_ == 112; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getOneofNestedMessage() { if (oneofNestedMessageBuilder_ == null) { if (oneofFieldCase_ == 112) { return (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_; } return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } else { if (oneofFieldCase_ == 112) { return oneofNestedMessageBuilder_.getMessage(); } return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public Builder setOneofNestedMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (oneofNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oneofField_ = value; onChanged(); } else { oneofNestedMessageBuilder_.setMessage(value); } oneofFieldCase_ = 112; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public Builder setOneofNestedMessage( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) { if (oneofNestedMessageBuilder_ == null) { oneofField_ = builderForValue.build(); onChanged(); } else { oneofNestedMessageBuilder_.setMessage(builderForValue.build()); } oneofFieldCase_ = 112; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public Builder mergeOneofNestedMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (oneofNestedMessageBuilder_ == null) { if (oneofFieldCase_ == 112 && oneofField_ != protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()) { oneofField_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.newBuilder((protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_) .mergeFrom(value).buildPartial(); } else { oneofField_ = value; } onChanged(); } else { if (oneofFieldCase_ == 112) { oneofNestedMessageBuilder_.mergeFrom(value); } oneofNestedMessageBuilder_.setMessage(value); } oneofFieldCase_ = 112; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public Builder clearOneofNestedMessage() { if (oneofNestedMessageBuilder_ == null) { if (oneofFieldCase_ == 112) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } } else { if (oneofFieldCase_ == 112) { oneofFieldCase_ = 0; oneofField_ = null; } oneofNestedMessageBuilder_.clear(); } return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getOneofNestedMessageBuilder() { return getOneofNestedMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getOneofNestedMessageOrBuilder() { if ((oneofFieldCase_ == 112) && (oneofNestedMessageBuilder_ != null)) { return oneofNestedMessageBuilder_.getMessageOrBuilder(); } else { if (oneofFieldCase_ == 112) { return (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_; } return protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> getOneofNestedMessageFieldBuilder() { if (oneofNestedMessageBuilder_ == null) { if (!(oneofFieldCase_ == 112)) { oneofField_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } oneofNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>( (protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage) oneofField_, getParentForChildren(), isClean()); oneofField_ = null; } oneofFieldCase_ = 112; return oneofNestedMessageBuilder_; } /** * optional string oneof_string = 113; */ public boolean hasOneofString() { return oneofFieldCase_ == 113; } /** * optional string oneof_string = 113; */ public java.lang.String getOneofString() { java.lang.Object ref = ""; if (oneofFieldCase_ == 113) { ref = oneofField_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofFieldCase_ == 113) { if (bs.isValidUtf8()) { oneofField_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * optional string oneof_string = 113; */ public com.google.protobuf.ByteString getOneofStringBytes() { java.lang.Object ref = ""; if (oneofFieldCase_ == 113) { ref = oneofField_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 113) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string oneof_string = 113; */ public Builder setOneofString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 113; oneofField_ = value; onChanged(); return this; } /** * optional string oneof_string = 113; */ public Builder clearOneofString() { if (oneofFieldCase_ == 113) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } /** * optional string oneof_string = 113; */ public Builder setOneofStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 113; oneofField_ = value; onChanged(); return this; } /** * optional bytes oneof_bytes = 114; */ public boolean hasOneofBytes() { return oneofFieldCase_ == 114; } /** * optional bytes oneof_bytes = 114; */ public com.google.protobuf.ByteString getOneofBytes() { if (oneofFieldCase_ == 114) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.ByteString.EMPTY; } /** * optional bytes oneof_bytes = 114; */ public Builder setOneofBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 114; oneofField_ = value; onChanged(); return this; } /** * optional bytes oneof_bytes = 114; */ public Builder clearOneofBytes() { if (oneofFieldCase_ == 114) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllTypes) } static { defaultInstance = new TestAllTypes(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes) } public interface NestedTestAllTypesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.NestedTestAllTypes) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ boolean hasChild(); /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ protobuf_unittest.UnittestProto.NestedTestAllTypes getChild(); /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder getChildOrBuilder(); /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ boolean hasPayload(); /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ protobuf_unittest.UnittestProto.TestAllTypes getPayload(); /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getPayloadOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.NestedTestAllTypes} * *
   * This proto includes a recusively nested message.
   * 
*/ public static final class NestedTestAllTypes extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.NestedTestAllTypes) NestedTestAllTypesOrBuilder { // Use NestedTestAllTypes.newBuilder() to construct. private NestedTestAllTypes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NestedTestAllTypes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NestedTestAllTypes defaultInstance; public static NestedTestAllTypes getDefaultInstance() { return defaultInstance; } public NestedTestAllTypes getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NestedTestAllTypes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = child_.toBuilder(); } child_ = input.readMessage(protobuf_unittest.UnittestProto.NestedTestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(child_); child_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = payload_.toBuilder(); } payload_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(payload_); payload_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_NestedTestAllTypes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_NestedTestAllTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.NestedTestAllTypes.class, protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NestedTestAllTypes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NestedTestAllTypes(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CHILD_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.NestedTestAllTypes child_; /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public boolean hasChild() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public protobuf_unittest.UnittestProto.NestedTestAllTypes getChild() { return child_; } /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder getChildOrBuilder() { return child_; } public static final int PAYLOAD_FIELD_NUMBER = 2; private protobuf_unittest.UnittestProto.TestAllTypes payload_; /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public boolean hasPayload() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes getPayload() { return payload_; } /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getPayloadOrBuilder() { return payload_; } private void initFields() { child_ = protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance(); payload_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, child_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, payload_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, child_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, payload_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.NestedTestAllTypes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.NestedTestAllTypes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.NestedTestAllTypes} * *
     * This proto includes a recusively nested message.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.NestedTestAllTypes) protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_NestedTestAllTypes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_NestedTestAllTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.NestedTestAllTypes.class, protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder.class); } // Construct using protobuf_unittest.UnittestProto.NestedTestAllTypes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getChildFieldBuilder(); getPayloadFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (childBuilder_ == null) { child_ = protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance(); } else { childBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (payloadBuilder_ == null) { payload_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { payloadBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_NestedTestAllTypes_descriptor; } public protobuf_unittest.UnittestProto.NestedTestAllTypes getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance(); } public protobuf_unittest.UnittestProto.NestedTestAllTypes build() { protobuf_unittest.UnittestProto.NestedTestAllTypes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.NestedTestAllTypes buildPartial() { protobuf_unittest.UnittestProto.NestedTestAllTypes result = new protobuf_unittest.UnittestProto.NestedTestAllTypes(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (childBuilder_ == null) { result.child_ = child_; } else { result.child_ = childBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (payloadBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = payloadBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.NestedTestAllTypes) { return mergeFrom((protobuf_unittest.UnittestProto.NestedTestAllTypes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.NestedTestAllTypes other) { if (other == protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance()) return this; if (other.hasChild()) { mergeChild(other.getChild()); } if (other.hasPayload()) { mergePayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.NestedTestAllTypes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.NestedTestAllTypes) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.NestedTestAllTypes child_ = protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.NestedTestAllTypes, protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder, protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder> childBuilder_; /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public boolean hasChild() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public protobuf_unittest.UnittestProto.NestedTestAllTypes getChild() { if (childBuilder_ == null) { return child_; } else { return childBuilder_.getMessage(); } } /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public Builder setChild(protobuf_unittest.UnittestProto.NestedTestAllTypes value) { if (childBuilder_ == null) { if (value == null) { throw new NullPointerException(); } child_ = value; onChanged(); } else { childBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public Builder setChild( protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); onChanged(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public Builder mergeChild(protobuf_unittest.UnittestProto.NestedTestAllTypes value) { if (childBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && child_ != protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance()) { child_ = protobuf_unittest.UnittestProto.NestedTestAllTypes.newBuilder(child_).mergeFrom(value).buildPartial(); } else { child_ = value; } onChanged(); } else { childBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public Builder clearChild() { if (childBuilder_ == null) { child_ = protobuf_unittest.UnittestProto.NestedTestAllTypes.getDefaultInstance(); onChanged(); } else { childBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder getChildBuilder() { bitField0_ |= 0x00000001; onChanged(); return getChildFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ public protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder getChildOrBuilder() { if (childBuilder_ != null) { return childBuilder_.getMessageOrBuilder(); } else { return child_; } } /** * optional .protobuf_unittest.NestedTestAllTypes child = 1; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.NestedTestAllTypes, protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder, protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder> getChildFieldBuilder() { if (childBuilder_ == null) { childBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.NestedTestAllTypes, protobuf_unittest.UnittestProto.NestedTestAllTypes.Builder, protobuf_unittest.UnittestProto.NestedTestAllTypesOrBuilder>( getChild(), getParentForChildren(), isClean()); child_ = null; } return childBuilder_; } private protobuf_unittest.UnittestProto.TestAllTypes payload_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> payloadBuilder_; /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public boolean hasPayload() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes getPayload() { if (payloadBuilder_ == null) { return payload_; } else { return payloadBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public Builder setPayload(protobuf_unittest.UnittestProto.TestAllTypes value) { if (payloadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { payloadBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public Builder setPayload( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public Builder mergePayload(protobuf_unittest.UnittestProto.TestAllTypes value) { if (payloadBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && payload_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { payload_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(payload_).mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { payloadBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public Builder clearPayload() { if (payloadBuilder_ == null) { payload_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); onChanged(); } else { payloadBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getPayloadBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { return payload_; } } /** * optional .protobuf_unittest.TestAllTypes payload = 2; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.NestedTestAllTypes) } static { defaultInstance = new NestedTestAllTypes(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.NestedTestAllTypes) } public interface TestDeprecatedFieldsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestDeprecatedFields) com.google.protobuf.MessageOrBuilder { /** * optional int32 deprecated_int32 = 1 [deprecated = true]; */ @java.lang.Deprecated boolean hasDeprecatedInt32(); /** * optional int32 deprecated_int32 = 1 [deprecated = true]; */ @java.lang.Deprecated int getDeprecatedInt32(); } /** * Protobuf type {@code protobuf_unittest.TestDeprecatedFields} */ public static final class TestDeprecatedFields extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestDeprecatedFields) TestDeprecatedFieldsOrBuilder { // Use TestDeprecatedFields.newBuilder() to construct. private TestDeprecatedFields(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestDeprecatedFields(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestDeprecatedFields defaultInstance; public static TestDeprecatedFields getDefaultInstance() { return defaultInstance; } public TestDeprecatedFields getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestDeprecatedFields( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; deprecatedInt32_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDeprecatedFields_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDeprecatedFields_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDeprecatedFields.class, protobuf_unittest.UnittestProto.TestDeprecatedFields.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestDeprecatedFields parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestDeprecatedFields(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int DEPRECATED_INT32_FIELD_NUMBER = 1; private int deprecatedInt32_; /** * optional int32 deprecated_int32 = 1 [deprecated = true]; */ @java.lang.Deprecated public boolean hasDeprecatedInt32() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 deprecated_int32 = 1 [deprecated = true]; */ @java.lang.Deprecated public int getDeprecatedInt32() { return deprecatedInt32_; } private void initFields() { deprecatedInt32_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, deprecatedInt32_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, deprecatedInt32_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDeprecatedFields parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestDeprecatedFields prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestDeprecatedFields} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestDeprecatedFields) protobuf_unittest.UnittestProto.TestDeprecatedFieldsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDeprecatedFields_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDeprecatedFields_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDeprecatedFields.class, protobuf_unittest.UnittestProto.TestDeprecatedFields.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestDeprecatedFields.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); deprecatedInt32_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDeprecatedFields_descriptor; } public protobuf_unittest.UnittestProto.TestDeprecatedFields getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestDeprecatedFields.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestDeprecatedFields build() { protobuf_unittest.UnittestProto.TestDeprecatedFields result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestDeprecatedFields buildPartial() { protobuf_unittest.UnittestProto.TestDeprecatedFields result = new protobuf_unittest.UnittestProto.TestDeprecatedFields(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.deprecatedInt32_ = deprecatedInt32_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestDeprecatedFields) { return mergeFrom((protobuf_unittest.UnittestProto.TestDeprecatedFields)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestDeprecatedFields other) { if (other == protobuf_unittest.UnittestProto.TestDeprecatedFields.getDefaultInstance()) return this; if (other.hasDeprecatedInt32()) { setDeprecatedInt32(other.getDeprecatedInt32()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestDeprecatedFields parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestDeprecatedFields) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int deprecatedInt32_ ; /** * optional int32 deprecated_int32 = 1 [deprecated = true]; */ @java.lang.Deprecated public boolean hasDeprecatedInt32() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 deprecated_int32 = 1 [deprecated = true]; */ @java.lang.Deprecated public int getDeprecatedInt32() { return deprecatedInt32_; } /** * optional int32 deprecated_int32 = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder setDeprecatedInt32(int value) { bitField0_ |= 0x00000001; deprecatedInt32_ = value; onChanged(); return this; } /** * optional int32 deprecated_int32 = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder clearDeprecatedInt32() { bitField0_ = (bitField0_ & ~0x00000001); deprecatedInt32_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestDeprecatedFields) } static { defaultInstance = new TestDeprecatedFields(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDeprecatedFields) } public interface ForeignMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.ForeignMessage) com.google.protobuf.MessageOrBuilder { /** * optional int32 c = 1; */ boolean hasC(); /** * optional int32 c = 1; */ int getC(); } /** * Protobuf type {@code protobuf_unittest.ForeignMessage} * *
   * Define these after TestAllTypes to make sure the compiler can handle
   * that.
   * 
*/ public static final class ForeignMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.ForeignMessage) ForeignMessageOrBuilder { // Use ForeignMessage.newBuilder() to construct. private ForeignMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ForeignMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ForeignMessage defaultInstance; public static ForeignMessage getDefaultInstance() { return defaultInstance; } public ForeignMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ForeignMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; c_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_ForeignMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_ForeignMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.ForeignMessage.class, protobuf_unittest.UnittestProto.ForeignMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ForeignMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ForeignMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int C_FIELD_NUMBER = 1; private int c_; /** * optional int32 c = 1; */ public boolean hasC() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 c = 1; */ public int getC() { return c_; } private void initFields() { c_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, c_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, c_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.ForeignMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.ForeignMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.ForeignMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.ForeignMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.ForeignMessage} * *
     * Define these after TestAllTypes to make sure the compiler can handle
     * that.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.ForeignMessage) protobuf_unittest.UnittestProto.ForeignMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_ForeignMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_ForeignMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.ForeignMessage.class, protobuf_unittest.UnittestProto.ForeignMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.ForeignMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); c_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_ForeignMessage_descriptor; } public protobuf_unittest.UnittestProto.ForeignMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.ForeignMessage build() { protobuf_unittest.UnittestProto.ForeignMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.ForeignMessage buildPartial() { protobuf_unittest.UnittestProto.ForeignMessage result = new protobuf_unittest.UnittestProto.ForeignMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.c_ = c_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.ForeignMessage) { return mergeFrom((protobuf_unittest.UnittestProto.ForeignMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.ForeignMessage other) { if (other == protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()) return this; if (other.hasC()) { setC(other.getC()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.ForeignMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.ForeignMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int c_ ; /** * optional int32 c = 1; */ public boolean hasC() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 c = 1; */ public int getC() { return c_; } /** * optional int32 c = 1; */ public Builder setC(int value) { bitField0_ |= 0x00000001; c_ = value; onChanged(); return this; } /** * optional int32 c = 1; */ public Builder clearC() { bitField0_ = (bitField0_ & ~0x00000001); c_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.ForeignMessage) } static { defaultInstance = new ForeignMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.ForeignMessage) } public interface TestAllExtensionsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestAllExtensions) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.TestAllExtensions} */ public static final class TestAllExtensions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< TestAllExtensions> implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestAllExtensions) TestAllExtensionsOrBuilder { // Use TestAllExtensions.newBuilder() to construct. private TestAllExtensions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestAllExtensions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestAllExtensions defaultInstance; public static TestAllExtensions getDefaultInstance() { return defaultInstance; } public TestAllExtensions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestAllExtensions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllExtensions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllExtensions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestAllExtensions.class, protobuf_unittest.UnittestProto.TestAllExtensions.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestAllExtensions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestAllExtensions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllExtensions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestAllExtensions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestAllExtensions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestAllExtensions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestAllExtensions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest.UnittestProto.TestAllExtensions, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestAllExtensions) protobuf_unittest.UnittestProto.TestAllExtensionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllExtensions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllExtensions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestAllExtensions.class, protobuf_unittest.UnittestProto.TestAllExtensions.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestAllExtensions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestAllExtensions_descriptor; } public protobuf_unittest.UnittestProto.TestAllExtensions getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestAllExtensions.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestAllExtensions build() { protobuf_unittest.UnittestProto.TestAllExtensions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestAllExtensions buildPartial() { protobuf_unittest.UnittestProto.TestAllExtensions result = new protobuf_unittest.UnittestProto.TestAllExtensions(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestAllExtensions) { return mergeFrom((protobuf_unittest.UnittestProto.TestAllExtensions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestAllExtensions other) { if (other == protobuf_unittest.UnittestProto.TestAllExtensions.getDefaultInstance()) return this; this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestAllExtensions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestAllExtensions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestAllExtensions) } static { defaultInstance = new TestAllExtensions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllExtensions) } public interface OptionalGroup_extensionOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.OptionalGroup_extension) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 17; */ boolean hasA(); /** * optional int32 a = 17; */ int getA(); } /** * Protobuf type {@code protobuf_unittest.OptionalGroup_extension} */ public static final class OptionalGroup_extension extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.OptionalGroup_extension) OptionalGroup_extensionOrBuilder { // Use OptionalGroup_extension.newBuilder() to construct. private OptionalGroup_extension(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OptionalGroup_extension(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OptionalGroup_extension defaultInstance; public static OptionalGroup_extension getDefaultInstance() { return defaultInstance; } public OptionalGroup_extension getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OptionalGroup_extension( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 136: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OptionalGroup_extension_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OptionalGroup_extension_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.OptionalGroup_extension.class, protobuf_unittest.UnittestProto.OptionalGroup_extension.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OptionalGroup_extension parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionalGroup_extension(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 17; private int a_; /** * optional int32 a = 17; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 17; */ public int getA() { return a_; } private void initFields() { a_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(17, a_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, a_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.OptionalGroup_extension parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.OptionalGroup_extension prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.OptionalGroup_extension} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.OptionalGroup_extension) protobuf_unittest.UnittestProto.OptionalGroup_extensionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OptionalGroup_extension_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OptionalGroup_extension_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.OptionalGroup_extension.class, protobuf_unittest.UnittestProto.OptionalGroup_extension.Builder.class); } // Construct using protobuf_unittest.UnittestProto.OptionalGroup_extension.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OptionalGroup_extension_descriptor; } public protobuf_unittest.UnittestProto.OptionalGroup_extension getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.OptionalGroup_extension.getDefaultInstance(); } public protobuf_unittest.UnittestProto.OptionalGroup_extension build() { protobuf_unittest.UnittestProto.OptionalGroup_extension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.OptionalGroup_extension buildPartial() { protobuf_unittest.UnittestProto.OptionalGroup_extension result = new protobuf_unittest.UnittestProto.OptionalGroup_extension(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.OptionalGroup_extension) { return mergeFrom((protobuf_unittest.UnittestProto.OptionalGroup_extension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.OptionalGroup_extension other) { if (other == protobuf_unittest.UnittestProto.OptionalGroup_extension.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.OptionalGroup_extension parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.OptionalGroup_extension) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 17; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 17; */ public int getA() { return a_; } /** * optional int32 a = 17; */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 17; */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.OptionalGroup_extension) } static { defaultInstance = new OptionalGroup_extension(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.OptionalGroup_extension) } public interface RepeatedGroup_extensionOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.RepeatedGroup_extension) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 47; */ boolean hasA(); /** * optional int32 a = 47; */ int getA(); } /** * Protobuf type {@code protobuf_unittest.RepeatedGroup_extension} */ public static final class RepeatedGroup_extension extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.RepeatedGroup_extension) RepeatedGroup_extensionOrBuilder { // Use RepeatedGroup_extension.newBuilder() to construct. private RepeatedGroup_extension(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RepeatedGroup_extension(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RepeatedGroup_extension defaultInstance; public static RepeatedGroup_extension getDefaultInstance() { return defaultInstance; } public RepeatedGroup_extension getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RepeatedGroup_extension( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 376: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_RepeatedGroup_extension_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_RepeatedGroup_extension_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.RepeatedGroup_extension.class, protobuf_unittest.UnittestProto.RepeatedGroup_extension.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RepeatedGroup_extension parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RepeatedGroup_extension(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 47; private int a_; /** * optional int32 a = 47; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 47; */ public int getA() { return a_; } private void initFields() { a_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(47, a_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(47, a_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.RepeatedGroup_extension parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.RepeatedGroup_extension prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.RepeatedGroup_extension} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.RepeatedGroup_extension) protobuf_unittest.UnittestProto.RepeatedGroup_extensionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_RepeatedGroup_extension_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_RepeatedGroup_extension_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.RepeatedGroup_extension.class, protobuf_unittest.UnittestProto.RepeatedGroup_extension.Builder.class); } // Construct using protobuf_unittest.UnittestProto.RepeatedGroup_extension.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_RepeatedGroup_extension_descriptor; } public protobuf_unittest.UnittestProto.RepeatedGroup_extension getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.RepeatedGroup_extension.getDefaultInstance(); } public protobuf_unittest.UnittestProto.RepeatedGroup_extension build() { protobuf_unittest.UnittestProto.RepeatedGroup_extension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.RepeatedGroup_extension buildPartial() { protobuf_unittest.UnittestProto.RepeatedGroup_extension result = new protobuf_unittest.UnittestProto.RepeatedGroup_extension(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.RepeatedGroup_extension) { return mergeFrom((protobuf_unittest.UnittestProto.RepeatedGroup_extension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.RepeatedGroup_extension other) { if (other == protobuf_unittest.UnittestProto.RepeatedGroup_extension.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.RepeatedGroup_extension parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.RepeatedGroup_extension) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 47; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 47; */ public int getA() { return a_; } /** * optional int32 a = 47; */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 47; */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.RepeatedGroup_extension) } static { defaultInstance = new RepeatedGroup_extension(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.RepeatedGroup_extension) } public interface TestNestedExtensionOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestNestedExtension) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.TestNestedExtension} */ public static final class TestNestedExtension extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestNestedExtension) TestNestedExtensionOrBuilder { // Use TestNestedExtension.newBuilder() to construct. private TestNestedExtension(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestNestedExtension(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestNestedExtension defaultInstance; public static TestNestedExtension getDefaultInstance() { return defaultInstance; } public TestNestedExtension getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestNestedExtension( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedExtension_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedExtension_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestNestedExtension.class, protobuf_unittest.UnittestProto.TestNestedExtension.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestNestedExtension parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestNestedExtension(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedExtension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestNestedExtension parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestNestedExtension parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestNestedExtension prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestNestedExtension} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestNestedExtension) protobuf_unittest.UnittestProto.TestNestedExtensionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedExtension_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedExtension_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestNestedExtension.class, protobuf_unittest.UnittestProto.TestNestedExtension.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestNestedExtension.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedExtension_descriptor; } public protobuf_unittest.UnittestProto.TestNestedExtension getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestNestedExtension.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestNestedExtension build() { protobuf_unittest.UnittestProto.TestNestedExtension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestNestedExtension buildPartial() { protobuf_unittest.UnittestProto.TestNestedExtension result = new protobuf_unittest.UnittestProto.TestNestedExtension(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestNestedExtension) { return mergeFrom((protobuf_unittest.UnittestProto.TestNestedExtension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestNestedExtension other) { if (other == protobuf_unittest.UnittestProto.TestNestedExtension.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestNestedExtension parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestNestedExtension) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestNestedExtension) } static { defaultInstance = new TestNestedExtension(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedExtension) public static final int TEST_FIELD_NUMBER = 1002; /** * extend .protobuf_unittest.TestAllExtensions { ... } * *
     * Check for bug where string extensions declared in tested scope did not
     * compile.
     * 
*/ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.String> test = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestNestedExtension.getDefaultInstance(), 0, java.lang.String.class, null); public static final int NESTED_STRING_EXTENSION_FIELD_NUMBER = 1003; /** * extend .protobuf_unittest.TestAllExtensions { ... } * *
     * Used to test if generated extension name is correct when there are
     * underscores.
     * 
*/ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.String> nestedStringExtension = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestNestedExtension.getDefaultInstance(), 1, java.lang.String.class, null); } public interface TestRequiredOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestRequired) com.google.protobuf.MessageOrBuilder { /** * required int32 a = 1; */ boolean hasA(); /** * required int32 a = 1; */ int getA(); /** * optional int32 dummy2 = 2; */ boolean hasDummy2(); /** * optional int32 dummy2 = 2; */ int getDummy2(); /** * required int32 b = 3; */ boolean hasB(); /** * required int32 b = 3; */ int getB(); /** * optional int32 dummy4 = 4; * *
     * Pad the field count to 32 so that we can test that IsInitialized()
     * properly checks multiple elements of has_bits_.
     * 
*/ boolean hasDummy4(); /** * optional int32 dummy4 = 4; * *
     * Pad the field count to 32 so that we can test that IsInitialized()
     * properly checks multiple elements of has_bits_.
     * 
*/ int getDummy4(); /** * optional int32 dummy5 = 5; */ boolean hasDummy5(); /** * optional int32 dummy5 = 5; */ int getDummy5(); /** * optional int32 dummy6 = 6; */ boolean hasDummy6(); /** * optional int32 dummy6 = 6; */ int getDummy6(); /** * optional int32 dummy7 = 7; */ boolean hasDummy7(); /** * optional int32 dummy7 = 7; */ int getDummy7(); /** * optional int32 dummy8 = 8; */ boolean hasDummy8(); /** * optional int32 dummy8 = 8; */ int getDummy8(); /** * optional int32 dummy9 = 9; */ boolean hasDummy9(); /** * optional int32 dummy9 = 9; */ int getDummy9(); /** * optional int32 dummy10 = 10; */ boolean hasDummy10(); /** * optional int32 dummy10 = 10; */ int getDummy10(); /** * optional int32 dummy11 = 11; */ boolean hasDummy11(); /** * optional int32 dummy11 = 11; */ int getDummy11(); /** * optional int32 dummy12 = 12; */ boolean hasDummy12(); /** * optional int32 dummy12 = 12; */ int getDummy12(); /** * optional int32 dummy13 = 13; */ boolean hasDummy13(); /** * optional int32 dummy13 = 13; */ int getDummy13(); /** * optional int32 dummy14 = 14; */ boolean hasDummy14(); /** * optional int32 dummy14 = 14; */ int getDummy14(); /** * optional int32 dummy15 = 15; */ boolean hasDummy15(); /** * optional int32 dummy15 = 15; */ int getDummy15(); /** * optional int32 dummy16 = 16; */ boolean hasDummy16(); /** * optional int32 dummy16 = 16; */ int getDummy16(); /** * optional int32 dummy17 = 17; */ boolean hasDummy17(); /** * optional int32 dummy17 = 17; */ int getDummy17(); /** * optional int32 dummy18 = 18; */ boolean hasDummy18(); /** * optional int32 dummy18 = 18; */ int getDummy18(); /** * optional int32 dummy19 = 19; */ boolean hasDummy19(); /** * optional int32 dummy19 = 19; */ int getDummy19(); /** * optional int32 dummy20 = 20; */ boolean hasDummy20(); /** * optional int32 dummy20 = 20; */ int getDummy20(); /** * optional int32 dummy21 = 21; */ boolean hasDummy21(); /** * optional int32 dummy21 = 21; */ int getDummy21(); /** * optional int32 dummy22 = 22; */ boolean hasDummy22(); /** * optional int32 dummy22 = 22; */ int getDummy22(); /** * optional int32 dummy23 = 23; */ boolean hasDummy23(); /** * optional int32 dummy23 = 23; */ int getDummy23(); /** * optional int32 dummy24 = 24; */ boolean hasDummy24(); /** * optional int32 dummy24 = 24; */ int getDummy24(); /** * optional int32 dummy25 = 25; */ boolean hasDummy25(); /** * optional int32 dummy25 = 25; */ int getDummy25(); /** * optional int32 dummy26 = 26; */ boolean hasDummy26(); /** * optional int32 dummy26 = 26; */ int getDummy26(); /** * optional int32 dummy27 = 27; */ boolean hasDummy27(); /** * optional int32 dummy27 = 27; */ int getDummy27(); /** * optional int32 dummy28 = 28; */ boolean hasDummy28(); /** * optional int32 dummy28 = 28; */ int getDummy28(); /** * optional int32 dummy29 = 29; */ boolean hasDummy29(); /** * optional int32 dummy29 = 29; */ int getDummy29(); /** * optional int32 dummy30 = 30; */ boolean hasDummy30(); /** * optional int32 dummy30 = 30; */ int getDummy30(); /** * optional int32 dummy31 = 31; */ boolean hasDummy31(); /** * optional int32 dummy31 = 31; */ int getDummy31(); /** * optional int32 dummy32 = 32; */ boolean hasDummy32(); /** * optional int32 dummy32 = 32; */ int getDummy32(); /** * required int32 c = 33; */ boolean hasC(); /** * required int32 c = 33; */ int getC(); } /** * Protobuf type {@code protobuf_unittest.TestRequired} * *
   * We have separate messages for testing required fields because it's
   * annoying to have to fill in required fields in TestProto in order to
   * do anything with it.  Note that we don't need to test every type of
   * required filed because the code output is basically identical to
   * optional fields for all types.
   * 
*/ public static final class TestRequired extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestRequired) TestRequiredOrBuilder { // Use TestRequired.newBuilder() to construct. private TestRequired(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestRequired(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestRequired defaultInstance; public static TestRequired getDefaultInstance() { return defaultInstance; } public TestRequired getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestRequired( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; int mutable_bitField1_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; dummy2_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; b_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; dummy4_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; dummy5_ = input.readInt32(); break; } case 48: { bitField0_ |= 0x00000020; dummy6_ = input.readInt32(); break; } case 56: { bitField0_ |= 0x00000040; dummy7_ = input.readInt32(); break; } case 64: { bitField0_ |= 0x00000080; dummy8_ = input.readInt32(); break; } case 72: { bitField0_ |= 0x00000100; dummy9_ = input.readInt32(); break; } case 80: { bitField0_ |= 0x00000200; dummy10_ = input.readInt32(); break; } case 88: { bitField0_ |= 0x00000400; dummy11_ = input.readInt32(); break; } case 96: { bitField0_ |= 0x00000800; dummy12_ = input.readInt32(); break; } case 104: { bitField0_ |= 0x00001000; dummy13_ = input.readInt32(); break; } case 112: { bitField0_ |= 0x00002000; dummy14_ = input.readInt32(); break; } case 120: { bitField0_ |= 0x00004000; dummy15_ = input.readInt32(); break; } case 128: { bitField0_ |= 0x00008000; dummy16_ = input.readInt32(); break; } case 136: { bitField0_ |= 0x00010000; dummy17_ = input.readInt32(); break; } case 144: { bitField0_ |= 0x00020000; dummy18_ = input.readInt32(); break; } case 152: { bitField0_ |= 0x00040000; dummy19_ = input.readInt32(); break; } case 160: { bitField0_ |= 0x00080000; dummy20_ = input.readInt32(); break; } case 168: { bitField0_ |= 0x00100000; dummy21_ = input.readInt32(); break; } case 176: { bitField0_ |= 0x00200000; dummy22_ = input.readInt32(); break; } case 184: { bitField0_ |= 0x00400000; dummy23_ = input.readInt32(); break; } case 192: { bitField0_ |= 0x00800000; dummy24_ = input.readInt32(); break; } case 200: { bitField0_ |= 0x01000000; dummy25_ = input.readInt32(); break; } case 208: { bitField0_ |= 0x02000000; dummy26_ = input.readInt32(); break; } case 216: { bitField0_ |= 0x04000000; dummy27_ = input.readInt32(); break; } case 224: { bitField0_ |= 0x08000000; dummy28_ = input.readInt32(); break; } case 232: { bitField0_ |= 0x10000000; dummy29_ = input.readInt32(); break; } case 240: { bitField0_ |= 0x20000000; dummy30_ = input.readInt32(); break; } case 248: { bitField0_ |= 0x40000000; dummy31_ = input.readInt32(); break; } case 256: { bitField0_ |= 0x80000000; dummy32_ = input.readInt32(); break; } case 264: { bitField1_ |= 0x00000001; c_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequired_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRequired.class, protobuf_unittest.UnittestProto.TestRequired.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestRequired parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestRequired(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; private int bitField1_; public static final int A_FIELD_NUMBER = 1; private int a_; /** * required int32 a = 1; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 a = 1; */ public int getA() { return a_; } public static final int DUMMY2_FIELD_NUMBER = 2; private int dummy2_; /** * optional int32 dummy2 = 2; */ public boolean hasDummy2() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 dummy2 = 2; */ public int getDummy2() { return dummy2_; } public static final int B_FIELD_NUMBER = 3; private int b_; /** * required int32 b = 3; */ public boolean hasB() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 b = 3; */ public int getB() { return b_; } public static final int DUMMY4_FIELD_NUMBER = 4; private int dummy4_; /** * optional int32 dummy4 = 4; * *
     * Pad the field count to 32 so that we can test that IsInitialized()
     * properly checks multiple elements of has_bits_.
     * 
*/ public boolean hasDummy4() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 dummy4 = 4; * *
     * Pad the field count to 32 so that we can test that IsInitialized()
     * properly checks multiple elements of has_bits_.
     * 
*/ public int getDummy4() { return dummy4_; } public static final int DUMMY5_FIELD_NUMBER = 5; private int dummy5_; /** * optional int32 dummy5 = 5; */ public boolean hasDummy5() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 dummy5 = 5; */ public int getDummy5() { return dummy5_; } public static final int DUMMY6_FIELD_NUMBER = 6; private int dummy6_; /** * optional int32 dummy6 = 6; */ public boolean hasDummy6() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 dummy6 = 6; */ public int getDummy6() { return dummy6_; } public static final int DUMMY7_FIELD_NUMBER = 7; private int dummy7_; /** * optional int32 dummy7 = 7; */ public boolean hasDummy7() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int32 dummy7 = 7; */ public int getDummy7() { return dummy7_; } public static final int DUMMY8_FIELD_NUMBER = 8; private int dummy8_; /** * optional int32 dummy8 = 8; */ public boolean hasDummy8() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int32 dummy8 = 8; */ public int getDummy8() { return dummy8_; } public static final int DUMMY9_FIELD_NUMBER = 9; private int dummy9_; /** * optional int32 dummy9 = 9; */ public boolean hasDummy9() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int32 dummy9 = 9; */ public int getDummy9() { return dummy9_; } public static final int DUMMY10_FIELD_NUMBER = 10; private int dummy10_; /** * optional int32 dummy10 = 10; */ public boolean hasDummy10() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int32 dummy10 = 10; */ public int getDummy10() { return dummy10_; } public static final int DUMMY11_FIELD_NUMBER = 11; private int dummy11_; /** * optional int32 dummy11 = 11; */ public boolean hasDummy11() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int32 dummy11 = 11; */ public int getDummy11() { return dummy11_; } public static final int DUMMY12_FIELD_NUMBER = 12; private int dummy12_; /** * optional int32 dummy12 = 12; */ public boolean hasDummy12() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int32 dummy12 = 12; */ public int getDummy12() { return dummy12_; } public static final int DUMMY13_FIELD_NUMBER = 13; private int dummy13_; /** * optional int32 dummy13 = 13; */ public boolean hasDummy13() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int32 dummy13 = 13; */ public int getDummy13() { return dummy13_; } public static final int DUMMY14_FIELD_NUMBER = 14; private int dummy14_; /** * optional int32 dummy14 = 14; */ public boolean hasDummy14() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int32 dummy14 = 14; */ public int getDummy14() { return dummy14_; } public static final int DUMMY15_FIELD_NUMBER = 15; private int dummy15_; /** * optional int32 dummy15 = 15; */ public boolean hasDummy15() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional int32 dummy15 = 15; */ public int getDummy15() { return dummy15_; } public static final int DUMMY16_FIELD_NUMBER = 16; private int dummy16_; /** * optional int32 dummy16 = 16; */ public boolean hasDummy16() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional int32 dummy16 = 16; */ public int getDummy16() { return dummy16_; } public static final int DUMMY17_FIELD_NUMBER = 17; private int dummy17_; /** * optional int32 dummy17 = 17; */ public boolean hasDummy17() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional int32 dummy17 = 17; */ public int getDummy17() { return dummy17_; } public static final int DUMMY18_FIELD_NUMBER = 18; private int dummy18_; /** * optional int32 dummy18 = 18; */ public boolean hasDummy18() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional int32 dummy18 = 18; */ public int getDummy18() { return dummy18_; } public static final int DUMMY19_FIELD_NUMBER = 19; private int dummy19_; /** * optional int32 dummy19 = 19; */ public boolean hasDummy19() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional int32 dummy19 = 19; */ public int getDummy19() { return dummy19_; } public static final int DUMMY20_FIELD_NUMBER = 20; private int dummy20_; /** * optional int32 dummy20 = 20; */ public boolean hasDummy20() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional int32 dummy20 = 20; */ public int getDummy20() { return dummy20_; } public static final int DUMMY21_FIELD_NUMBER = 21; private int dummy21_; /** * optional int32 dummy21 = 21; */ public boolean hasDummy21() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional int32 dummy21 = 21; */ public int getDummy21() { return dummy21_; } public static final int DUMMY22_FIELD_NUMBER = 22; private int dummy22_; /** * optional int32 dummy22 = 22; */ public boolean hasDummy22() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional int32 dummy22 = 22; */ public int getDummy22() { return dummy22_; } public static final int DUMMY23_FIELD_NUMBER = 23; private int dummy23_; /** * optional int32 dummy23 = 23; */ public boolean hasDummy23() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional int32 dummy23 = 23; */ public int getDummy23() { return dummy23_; } public static final int DUMMY24_FIELD_NUMBER = 24; private int dummy24_; /** * optional int32 dummy24 = 24; */ public boolean hasDummy24() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional int32 dummy24 = 24; */ public int getDummy24() { return dummy24_; } public static final int DUMMY25_FIELD_NUMBER = 25; private int dummy25_; /** * optional int32 dummy25 = 25; */ public boolean hasDummy25() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional int32 dummy25 = 25; */ public int getDummy25() { return dummy25_; } public static final int DUMMY26_FIELD_NUMBER = 26; private int dummy26_; /** * optional int32 dummy26 = 26; */ public boolean hasDummy26() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional int32 dummy26 = 26; */ public int getDummy26() { return dummy26_; } public static final int DUMMY27_FIELD_NUMBER = 27; private int dummy27_; /** * optional int32 dummy27 = 27; */ public boolean hasDummy27() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional int32 dummy27 = 27; */ public int getDummy27() { return dummy27_; } public static final int DUMMY28_FIELD_NUMBER = 28; private int dummy28_; /** * optional int32 dummy28 = 28; */ public boolean hasDummy28() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * optional int32 dummy28 = 28; */ public int getDummy28() { return dummy28_; } public static final int DUMMY29_FIELD_NUMBER = 29; private int dummy29_; /** * optional int32 dummy29 = 29; */ public boolean hasDummy29() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * optional int32 dummy29 = 29; */ public int getDummy29() { return dummy29_; } public static final int DUMMY30_FIELD_NUMBER = 30; private int dummy30_; /** * optional int32 dummy30 = 30; */ public boolean hasDummy30() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * optional int32 dummy30 = 30; */ public int getDummy30() { return dummy30_; } public static final int DUMMY31_FIELD_NUMBER = 31; private int dummy31_; /** * optional int32 dummy31 = 31; */ public boolean hasDummy31() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * optional int32 dummy31 = 31; */ public int getDummy31() { return dummy31_; } public static final int DUMMY32_FIELD_NUMBER = 32; private int dummy32_; /** * optional int32 dummy32 = 32; */ public boolean hasDummy32() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * optional int32 dummy32 = 32; */ public int getDummy32() { return dummy32_; } public static final int C_FIELD_NUMBER = 33; private int c_; /** * required int32 c = 33; */ public boolean hasC() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * required int32 c = 33; */ public int getC() { return c_; } private void initFields() { a_ = 0; dummy2_ = 0; b_ = 0; dummy4_ = 0; dummy5_ = 0; dummy6_ = 0; dummy7_ = 0; dummy8_ = 0; dummy9_ = 0; dummy10_ = 0; dummy11_ = 0; dummy12_ = 0; dummy13_ = 0; dummy14_ = 0; dummy15_ = 0; dummy16_ = 0; dummy17_ = 0; dummy18_ = 0; dummy19_ = 0; dummy20_ = 0; dummy21_ = 0; dummy22_ = 0; dummy23_ = 0; dummy24_ = 0; dummy25_ = 0; dummy26_ = 0; dummy27_ = 0; dummy28_ = 0; dummy29_ = 0; dummy30_ = 0; dummy31_ = 0; dummy32_ = 0; c_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasA()) { memoizedIsInitialized = 0; return false; } if (!hasB()) { memoizedIsInitialized = 0; return false; } if (!hasC()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, dummy2_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, b_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, dummy4_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, dummy5_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(6, dummy6_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(7, dummy7_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(8, dummy8_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(9, dummy9_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt32(10, dummy10_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt32(11, dummy11_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt32(12, dummy12_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt32(13, dummy13_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt32(14, dummy14_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeInt32(15, dummy15_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeInt32(16, dummy16_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeInt32(17, dummy17_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeInt32(18, dummy18_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeInt32(19, dummy19_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeInt32(20, dummy20_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeInt32(21, dummy21_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeInt32(22, dummy22_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeInt32(23, dummy23_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeInt32(24, dummy24_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeInt32(25, dummy25_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeInt32(26, dummy26_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeInt32(27, dummy27_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeInt32(28, dummy28_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { output.writeInt32(29, dummy29_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { output.writeInt32(30, dummy30_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { output.writeInt32(31, dummy31_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { output.writeInt32(32, dummy32_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { output.writeInt32(33, c_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, dummy2_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, b_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, dummy4_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, dummy5_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, dummy6_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, dummy7_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, dummy8_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, dummy9_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, dummy10_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, dummy11_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, dummy12_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, dummy13_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, dummy14_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, dummy15_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, dummy16_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, dummy17_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(18, dummy18_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(19, dummy19_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(20, dummy20_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(21, dummy21_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(22, dummy22_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(23, dummy23_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(24, dummy24_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(25, dummy25_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(26, dummy26_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(27, dummy27_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(28, dummy28_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(29, dummy29_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(30, dummy30_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(31, dummy31_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(32, dummy32_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(33, c_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestRequired parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRequired parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequired parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRequired parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequired parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRequired parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequired parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestRequired parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequired parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRequired parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestRequired prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestRequired} * *
     * We have separate messages for testing required fields because it's
     * annoying to have to fill in required fields in TestProto in order to
     * do anything with it.  Note that we don't need to test every type of
     * required filed because the code output is basically identical to
     * optional fields for all types.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestRequired) protobuf_unittest.UnittestProto.TestRequiredOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequired_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequired_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRequired.class, protobuf_unittest.UnittestProto.TestRequired.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestRequired.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); dummy2_ = 0; bitField0_ = (bitField0_ & ~0x00000002); b_ = 0; bitField0_ = (bitField0_ & ~0x00000004); dummy4_ = 0; bitField0_ = (bitField0_ & ~0x00000008); dummy5_ = 0; bitField0_ = (bitField0_ & ~0x00000010); dummy6_ = 0; bitField0_ = (bitField0_ & ~0x00000020); dummy7_ = 0; bitField0_ = (bitField0_ & ~0x00000040); dummy8_ = 0; bitField0_ = (bitField0_ & ~0x00000080); dummy9_ = 0; bitField0_ = (bitField0_ & ~0x00000100); dummy10_ = 0; bitField0_ = (bitField0_ & ~0x00000200); dummy11_ = 0; bitField0_ = (bitField0_ & ~0x00000400); dummy12_ = 0; bitField0_ = (bitField0_ & ~0x00000800); dummy13_ = 0; bitField0_ = (bitField0_ & ~0x00001000); dummy14_ = 0; bitField0_ = (bitField0_ & ~0x00002000); dummy15_ = 0; bitField0_ = (bitField0_ & ~0x00004000); dummy16_ = 0; bitField0_ = (bitField0_ & ~0x00008000); dummy17_ = 0; bitField0_ = (bitField0_ & ~0x00010000); dummy18_ = 0; bitField0_ = (bitField0_ & ~0x00020000); dummy19_ = 0; bitField0_ = (bitField0_ & ~0x00040000); dummy20_ = 0; bitField0_ = (bitField0_ & ~0x00080000); dummy21_ = 0; bitField0_ = (bitField0_ & ~0x00100000); dummy22_ = 0; bitField0_ = (bitField0_ & ~0x00200000); dummy23_ = 0; bitField0_ = (bitField0_ & ~0x00400000); dummy24_ = 0; bitField0_ = (bitField0_ & ~0x00800000); dummy25_ = 0; bitField0_ = (bitField0_ & ~0x01000000); dummy26_ = 0; bitField0_ = (bitField0_ & ~0x02000000); dummy27_ = 0; bitField0_ = (bitField0_ & ~0x04000000); dummy28_ = 0; bitField0_ = (bitField0_ & ~0x08000000); dummy29_ = 0; bitField0_ = (bitField0_ & ~0x10000000); dummy30_ = 0; bitField0_ = (bitField0_ & ~0x20000000); dummy31_ = 0; bitField0_ = (bitField0_ & ~0x40000000); dummy32_ = 0; bitField0_ = (bitField0_ & ~0x80000000); c_ = 0; bitField1_ = (bitField1_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequired_descriptor; } public protobuf_unittest.UnittestProto.TestRequired getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestRequired build() { protobuf_unittest.UnittestProto.TestRequired result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestRequired buildPartial() { protobuf_unittest.UnittestProto.TestRequired result = new protobuf_unittest.UnittestProto.TestRequired(this); int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_; int to_bitField0_ = 0; int to_bitField1_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.dummy2_ = dummy2_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.b_ = b_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.dummy4_ = dummy4_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.dummy5_ = dummy5_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.dummy6_ = dummy6_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.dummy7_ = dummy7_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.dummy8_ = dummy8_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.dummy9_ = dummy9_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.dummy10_ = dummy10_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.dummy11_ = dummy11_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.dummy12_ = dummy12_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.dummy13_ = dummy13_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.dummy14_ = dummy14_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.dummy15_ = dummy15_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.dummy16_ = dummy16_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.dummy17_ = dummy17_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.dummy18_ = dummy18_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } result.dummy19_ = dummy19_; if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00080000; } result.dummy20_ = dummy20_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00100000; } result.dummy21_ = dummy21_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00200000; } result.dummy22_ = dummy22_; if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00400000; } result.dummy23_ = dummy23_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00800000; } result.dummy24_ = dummy24_; if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x01000000; } result.dummy25_ = dummy25_; if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x02000000; } result.dummy26_ = dummy26_; if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x04000000; } result.dummy27_ = dummy27_; if (((from_bitField0_ & 0x08000000) == 0x08000000)) { to_bitField0_ |= 0x08000000; } result.dummy28_ = dummy28_; if (((from_bitField0_ & 0x10000000) == 0x10000000)) { to_bitField0_ |= 0x10000000; } result.dummy29_ = dummy29_; if (((from_bitField0_ & 0x20000000) == 0x20000000)) { to_bitField0_ |= 0x20000000; } result.dummy30_ = dummy30_; if (((from_bitField0_ & 0x40000000) == 0x40000000)) { to_bitField0_ |= 0x40000000; } result.dummy31_ = dummy31_; if (((from_bitField0_ & 0x80000000) == 0x80000000)) { to_bitField0_ |= 0x80000000; } result.dummy32_ = dummy32_; if (((from_bitField1_ & 0x00000001) == 0x00000001)) { to_bitField1_ |= 0x00000001; } result.c_ = c_; result.bitField0_ = to_bitField0_; result.bitField1_ = to_bitField1_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestRequired) { return mergeFrom((protobuf_unittest.UnittestProto.TestRequired)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestRequired other) { if (other == protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } if (other.hasDummy2()) { setDummy2(other.getDummy2()); } if (other.hasB()) { setB(other.getB()); } if (other.hasDummy4()) { setDummy4(other.getDummy4()); } if (other.hasDummy5()) { setDummy5(other.getDummy5()); } if (other.hasDummy6()) { setDummy6(other.getDummy6()); } if (other.hasDummy7()) { setDummy7(other.getDummy7()); } if (other.hasDummy8()) { setDummy8(other.getDummy8()); } if (other.hasDummy9()) { setDummy9(other.getDummy9()); } if (other.hasDummy10()) { setDummy10(other.getDummy10()); } if (other.hasDummy11()) { setDummy11(other.getDummy11()); } if (other.hasDummy12()) { setDummy12(other.getDummy12()); } if (other.hasDummy13()) { setDummy13(other.getDummy13()); } if (other.hasDummy14()) { setDummy14(other.getDummy14()); } if (other.hasDummy15()) { setDummy15(other.getDummy15()); } if (other.hasDummy16()) { setDummy16(other.getDummy16()); } if (other.hasDummy17()) { setDummy17(other.getDummy17()); } if (other.hasDummy18()) { setDummy18(other.getDummy18()); } if (other.hasDummy19()) { setDummy19(other.getDummy19()); } if (other.hasDummy20()) { setDummy20(other.getDummy20()); } if (other.hasDummy21()) { setDummy21(other.getDummy21()); } if (other.hasDummy22()) { setDummy22(other.getDummy22()); } if (other.hasDummy23()) { setDummy23(other.getDummy23()); } if (other.hasDummy24()) { setDummy24(other.getDummy24()); } if (other.hasDummy25()) { setDummy25(other.getDummy25()); } if (other.hasDummy26()) { setDummy26(other.getDummy26()); } if (other.hasDummy27()) { setDummy27(other.getDummy27()); } if (other.hasDummy28()) { setDummy28(other.getDummy28()); } if (other.hasDummy29()) { setDummy29(other.getDummy29()); } if (other.hasDummy30()) { setDummy30(other.getDummy30()); } if (other.hasDummy31()) { setDummy31(other.getDummy31()); } if (other.hasDummy32()) { setDummy32(other.getDummy32()); } if (other.hasC()) { setC(other.getC()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasA()) { return false; } if (!hasB()) { return false; } if (!hasC()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestRequired parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestRequired) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int bitField1_; private int a_ ; /** * required int32 a = 1; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 a = 1; */ public int getA() { return a_; } /** * required int32 a = 1; */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * required int32 a = 1; */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } private int dummy2_ ; /** * optional int32 dummy2 = 2; */ public boolean hasDummy2() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 dummy2 = 2; */ public int getDummy2() { return dummy2_; } /** * optional int32 dummy2 = 2; */ public Builder setDummy2(int value) { bitField0_ |= 0x00000002; dummy2_ = value; onChanged(); return this; } /** * optional int32 dummy2 = 2; */ public Builder clearDummy2() { bitField0_ = (bitField0_ & ~0x00000002); dummy2_ = 0; onChanged(); return this; } private int b_ ; /** * required int32 b = 3; */ public boolean hasB() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 b = 3; */ public int getB() { return b_; } /** * required int32 b = 3; */ public Builder setB(int value) { bitField0_ |= 0x00000004; b_ = value; onChanged(); return this; } /** * required int32 b = 3; */ public Builder clearB() { bitField0_ = (bitField0_ & ~0x00000004); b_ = 0; onChanged(); return this; } private int dummy4_ ; /** * optional int32 dummy4 = 4; * *
       * Pad the field count to 32 so that we can test that IsInitialized()
       * properly checks multiple elements of has_bits_.
       * 
*/ public boolean hasDummy4() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 dummy4 = 4; * *
       * Pad the field count to 32 so that we can test that IsInitialized()
       * properly checks multiple elements of has_bits_.
       * 
*/ public int getDummy4() { return dummy4_; } /** * optional int32 dummy4 = 4; * *
       * Pad the field count to 32 so that we can test that IsInitialized()
       * properly checks multiple elements of has_bits_.
       * 
*/ public Builder setDummy4(int value) { bitField0_ |= 0x00000008; dummy4_ = value; onChanged(); return this; } /** * optional int32 dummy4 = 4; * *
       * Pad the field count to 32 so that we can test that IsInitialized()
       * properly checks multiple elements of has_bits_.
       * 
*/ public Builder clearDummy4() { bitField0_ = (bitField0_ & ~0x00000008); dummy4_ = 0; onChanged(); return this; } private int dummy5_ ; /** * optional int32 dummy5 = 5; */ public boolean hasDummy5() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 dummy5 = 5; */ public int getDummy5() { return dummy5_; } /** * optional int32 dummy5 = 5; */ public Builder setDummy5(int value) { bitField0_ |= 0x00000010; dummy5_ = value; onChanged(); return this; } /** * optional int32 dummy5 = 5; */ public Builder clearDummy5() { bitField0_ = (bitField0_ & ~0x00000010); dummy5_ = 0; onChanged(); return this; } private int dummy6_ ; /** * optional int32 dummy6 = 6; */ public boolean hasDummy6() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 dummy6 = 6; */ public int getDummy6() { return dummy6_; } /** * optional int32 dummy6 = 6; */ public Builder setDummy6(int value) { bitField0_ |= 0x00000020; dummy6_ = value; onChanged(); return this; } /** * optional int32 dummy6 = 6; */ public Builder clearDummy6() { bitField0_ = (bitField0_ & ~0x00000020); dummy6_ = 0; onChanged(); return this; } private int dummy7_ ; /** * optional int32 dummy7 = 7; */ public boolean hasDummy7() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int32 dummy7 = 7; */ public int getDummy7() { return dummy7_; } /** * optional int32 dummy7 = 7; */ public Builder setDummy7(int value) { bitField0_ |= 0x00000040; dummy7_ = value; onChanged(); return this; } /** * optional int32 dummy7 = 7; */ public Builder clearDummy7() { bitField0_ = (bitField0_ & ~0x00000040); dummy7_ = 0; onChanged(); return this; } private int dummy8_ ; /** * optional int32 dummy8 = 8; */ public boolean hasDummy8() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int32 dummy8 = 8; */ public int getDummy8() { return dummy8_; } /** * optional int32 dummy8 = 8; */ public Builder setDummy8(int value) { bitField0_ |= 0x00000080; dummy8_ = value; onChanged(); return this; } /** * optional int32 dummy8 = 8; */ public Builder clearDummy8() { bitField0_ = (bitField0_ & ~0x00000080); dummy8_ = 0; onChanged(); return this; } private int dummy9_ ; /** * optional int32 dummy9 = 9; */ public boolean hasDummy9() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int32 dummy9 = 9; */ public int getDummy9() { return dummy9_; } /** * optional int32 dummy9 = 9; */ public Builder setDummy9(int value) { bitField0_ |= 0x00000100; dummy9_ = value; onChanged(); return this; } /** * optional int32 dummy9 = 9; */ public Builder clearDummy9() { bitField0_ = (bitField0_ & ~0x00000100); dummy9_ = 0; onChanged(); return this; } private int dummy10_ ; /** * optional int32 dummy10 = 10; */ public boolean hasDummy10() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int32 dummy10 = 10; */ public int getDummy10() { return dummy10_; } /** * optional int32 dummy10 = 10; */ public Builder setDummy10(int value) { bitField0_ |= 0x00000200; dummy10_ = value; onChanged(); return this; } /** * optional int32 dummy10 = 10; */ public Builder clearDummy10() { bitField0_ = (bitField0_ & ~0x00000200); dummy10_ = 0; onChanged(); return this; } private int dummy11_ ; /** * optional int32 dummy11 = 11; */ public boolean hasDummy11() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int32 dummy11 = 11; */ public int getDummy11() { return dummy11_; } /** * optional int32 dummy11 = 11; */ public Builder setDummy11(int value) { bitField0_ |= 0x00000400; dummy11_ = value; onChanged(); return this; } /** * optional int32 dummy11 = 11; */ public Builder clearDummy11() { bitField0_ = (bitField0_ & ~0x00000400); dummy11_ = 0; onChanged(); return this; } private int dummy12_ ; /** * optional int32 dummy12 = 12; */ public boolean hasDummy12() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int32 dummy12 = 12; */ public int getDummy12() { return dummy12_; } /** * optional int32 dummy12 = 12; */ public Builder setDummy12(int value) { bitField0_ |= 0x00000800; dummy12_ = value; onChanged(); return this; } /** * optional int32 dummy12 = 12; */ public Builder clearDummy12() { bitField0_ = (bitField0_ & ~0x00000800); dummy12_ = 0; onChanged(); return this; } private int dummy13_ ; /** * optional int32 dummy13 = 13; */ public boolean hasDummy13() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int32 dummy13 = 13; */ public int getDummy13() { return dummy13_; } /** * optional int32 dummy13 = 13; */ public Builder setDummy13(int value) { bitField0_ |= 0x00001000; dummy13_ = value; onChanged(); return this; } /** * optional int32 dummy13 = 13; */ public Builder clearDummy13() { bitField0_ = (bitField0_ & ~0x00001000); dummy13_ = 0; onChanged(); return this; } private int dummy14_ ; /** * optional int32 dummy14 = 14; */ public boolean hasDummy14() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int32 dummy14 = 14; */ public int getDummy14() { return dummy14_; } /** * optional int32 dummy14 = 14; */ public Builder setDummy14(int value) { bitField0_ |= 0x00002000; dummy14_ = value; onChanged(); return this; } /** * optional int32 dummy14 = 14; */ public Builder clearDummy14() { bitField0_ = (bitField0_ & ~0x00002000); dummy14_ = 0; onChanged(); return this; } private int dummy15_ ; /** * optional int32 dummy15 = 15; */ public boolean hasDummy15() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional int32 dummy15 = 15; */ public int getDummy15() { return dummy15_; } /** * optional int32 dummy15 = 15; */ public Builder setDummy15(int value) { bitField0_ |= 0x00004000; dummy15_ = value; onChanged(); return this; } /** * optional int32 dummy15 = 15; */ public Builder clearDummy15() { bitField0_ = (bitField0_ & ~0x00004000); dummy15_ = 0; onChanged(); return this; } private int dummy16_ ; /** * optional int32 dummy16 = 16; */ public boolean hasDummy16() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional int32 dummy16 = 16; */ public int getDummy16() { return dummy16_; } /** * optional int32 dummy16 = 16; */ public Builder setDummy16(int value) { bitField0_ |= 0x00008000; dummy16_ = value; onChanged(); return this; } /** * optional int32 dummy16 = 16; */ public Builder clearDummy16() { bitField0_ = (bitField0_ & ~0x00008000); dummy16_ = 0; onChanged(); return this; } private int dummy17_ ; /** * optional int32 dummy17 = 17; */ public boolean hasDummy17() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional int32 dummy17 = 17; */ public int getDummy17() { return dummy17_; } /** * optional int32 dummy17 = 17; */ public Builder setDummy17(int value) { bitField0_ |= 0x00010000; dummy17_ = value; onChanged(); return this; } /** * optional int32 dummy17 = 17; */ public Builder clearDummy17() { bitField0_ = (bitField0_ & ~0x00010000); dummy17_ = 0; onChanged(); return this; } private int dummy18_ ; /** * optional int32 dummy18 = 18; */ public boolean hasDummy18() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional int32 dummy18 = 18; */ public int getDummy18() { return dummy18_; } /** * optional int32 dummy18 = 18; */ public Builder setDummy18(int value) { bitField0_ |= 0x00020000; dummy18_ = value; onChanged(); return this; } /** * optional int32 dummy18 = 18; */ public Builder clearDummy18() { bitField0_ = (bitField0_ & ~0x00020000); dummy18_ = 0; onChanged(); return this; } private int dummy19_ ; /** * optional int32 dummy19 = 19; */ public boolean hasDummy19() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional int32 dummy19 = 19; */ public int getDummy19() { return dummy19_; } /** * optional int32 dummy19 = 19; */ public Builder setDummy19(int value) { bitField0_ |= 0x00040000; dummy19_ = value; onChanged(); return this; } /** * optional int32 dummy19 = 19; */ public Builder clearDummy19() { bitField0_ = (bitField0_ & ~0x00040000); dummy19_ = 0; onChanged(); return this; } private int dummy20_ ; /** * optional int32 dummy20 = 20; */ public boolean hasDummy20() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional int32 dummy20 = 20; */ public int getDummy20() { return dummy20_; } /** * optional int32 dummy20 = 20; */ public Builder setDummy20(int value) { bitField0_ |= 0x00080000; dummy20_ = value; onChanged(); return this; } /** * optional int32 dummy20 = 20; */ public Builder clearDummy20() { bitField0_ = (bitField0_ & ~0x00080000); dummy20_ = 0; onChanged(); return this; } private int dummy21_ ; /** * optional int32 dummy21 = 21; */ public boolean hasDummy21() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional int32 dummy21 = 21; */ public int getDummy21() { return dummy21_; } /** * optional int32 dummy21 = 21; */ public Builder setDummy21(int value) { bitField0_ |= 0x00100000; dummy21_ = value; onChanged(); return this; } /** * optional int32 dummy21 = 21; */ public Builder clearDummy21() { bitField0_ = (bitField0_ & ~0x00100000); dummy21_ = 0; onChanged(); return this; } private int dummy22_ ; /** * optional int32 dummy22 = 22; */ public boolean hasDummy22() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional int32 dummy22 = 22; */ public int getDummy22() { return dummy22_; } /** * optional int32 dummy22 = 22; */ public Builder setDummy22(int value) { bitField0_ |= 0x00200000; dummy22_ = value; onChanged(); return this; } /** * optional int32 dummy22 = 22; */ public Builder clearDummy22() { bitField0_ = (bitField0_ & ~0x00200000); dummy22_ = 0; onChanged(); return this; } private int dummy23_ ; /** * optional int32 dummy23 = 23; */ public boolean hasDummy23() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional int32 dummy23 = 23; */ public int getDummy23() { return dummy23_; } /** * optional int32 dummy23 = 23; */ public Builder setDummy23(int value) { bitField0_ |= 0x00400000; dummy23_ = value; onChanged(); return this; } /** * optional int32 dummy23 = 23; */ public Builder clearDummy23() { bitField0_ = (bitField0_ & ~0x00400000); dummy23_ = 0; onChanged(); return this; } private int dummy24_ ; /** * optional int32 dummy24 = 24; */ public boolean hasDummy24() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional int32 dummy24 = 24; */ public int getDummy24() { return dummy24_; } /** * optional int32 dummy24 = 24; */ public Builder setDummy24(int value) { bitField0_ |= 0x00800000; dummy24_ = value; onChanged(); return this; } /** * optional int32 dummy24 = 24; */ public Builder clearDummy24() { bitField0_ = (bitField0_ & ~0x00800000); dummy24_ = 0; onChanged(); return this; } private int dummy25_ ; /** * optional int32 dummy25 = 25; */ public boolean hasDummy25() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional int32 dummy25 = 25; */ public int getDummy25() { return dummy25_; } /** * optional int32 dummy25 = 25; */ public Builder setDummy25(int value) { bitField0_ |= 0x01000000; dummy25_ = value; onChanged(); return this; } /** * optional int32 dummy25 = 25; */ public Builder clearDummy25() { bitField0_ = (bitField0_ & ~0x01000000); dummy25_ = 0; onChanged(); return this; } private int dummy26_ ; /** * optional int32 dummy26 = 26; */ public boolean hasDummy26() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional int32 dummy26 = 26; */ public int getDummy26() { return dummy26_; } /** * optional int32 dummy26 = 26; */ public Builder setDummy26(int value) { bitField0_ |= 0x02000000; dummy26_ = value; onChanged(); return this; } /** * optional int32 dummy26 = 26; */ public Builder clearDummy26() { bitField0_ = (bitField0_ & ~0x02000000); dummy26_ = 0; onChanged(); return this; } private int dummy27_ ; /** * optional int32 dummy27 = 27; */ public boolean hasDummy27() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional int32 dummy27 = 27; */ public int getDummy27() { return dummy27_; } /** * optional int32 dummy27 = 27; */ public Builder setDummy27(int value) { bitField0_ |= 0x04000000; dummy27_ = value; onChanged(); return this; } /** * optional int32 dummy27 = 27; */ public Builder clearDummy27() { bitField0_ = (bitField0_ & ~0x04000000); dummy27_ = 0; onChanged(); return this; } private int dummy28_ ; /** * optional int32 dummy28 = 28; */ public boolean hasDummy28() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * optional int32 dummy28 = 28; */ public int getDummy28() { return dummy28_; } /** * optional int32 dummy28 = 28; */ public Builder setDummy28(int value) { bitField0_ |= 0x08000000; dummy28_ = value; onChanged(); return this; } /** * optional int32 dummy28 = 28; */ public Builder clearDummy28() { bitField0_ = (bitField0_ & ~0x08000000); dummy28_ = 0; onChanged(); return this; } private int dummy29_ ; /** * optional int32 dummy29 = 29; */ public boolean hasDummy29() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * optional int32 dummy29 = 29; */ public int getDummy29() { return dummy29_; } /** * optional int32 dummy29 = 29; */ public Builder setDummy29(int value) { bitField0_ |= 0x10000000; dummy29_ = value; onChanged(); return this; } /** * optional int32 dummy29 = 29; */ public Builder clearDummy29() { bitField0_ = (bitField0_ & ~0x10000000); dummy29_ = 0; onChanged(); return this; } private int dummy30_ ; /** * optional int32 dummy30 = 30; */ public boolean hasDummy30() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * optional int32 dummy30 = 30; */ public int getDummy30() { return dummy30_; } /** * optional int32 dummy30 = 30; */ public Builder setDummy30(int value) { bitField0_ |= 0x20000000; dummy30_ = value; onChanged(); return this; } /** * optional int32 dummy30 = 30; */ public Builder clearDummy30() { bitField0_ = (bitField0_ & ~0x20000000); dummy30_ = 0; onChanged(); return this; } private int dummy31_ ; /** * optional int32 dummy31 = 31; */ public boolean hasDummy31() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * optional int32 dummy31 = 31; */ public int getDummy31() { return dummy31_; } /** * optional int32 dummy31 = 31; */ public Builder setDummy31(int value) { bitField0_ |= 0x40000000; dummy31_ = value; onChanged(); return this; } /** * optional int32 dummy31 = 31; */ public Builder clearDummy31() { bitField0_ = (bitField0_ & ~0x40000000); dummy31_ = 0; onChanged(); return this; } private int dummy32_ ; /** * optional int32 dummy32 = 32; */ public boolean hasDummy32() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * optional int32 dummy32 = 32; */ public int getDummy32() { return dummy32_; } /** * optional int32 dummy32 = 32; */ public Builder setDummy32(int value) { bitField0_ |= 0x80000000; dummy32_ = value; onChanged(); return this; } /** * optional int32 dummy32 = 32; */ public Builder clearDummy32() { bitField0_ = (bitField0_ & ~0x80000000); dummy32_ = 0; onChanged(); return this; } private int c_ ; /** * required int32 c = 33; */ public boolean hasC() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * required int32 c = 33; */ public int getC() { return c_; } /** * required int32 c = 33; */ public Builder setC(int value) { bitField1_ |= 0x00000001; c_ = value; onChanged(); return this; } /** * required int32 c = 33; */ public Builder clearC() { bitField1_ = (bitField1_ & ~0x00000001); c_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestRequired) } static { defaultInstance = new TestRequired(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequired) public static final int SINGLE_FIELD_NUMBER = 1000; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, protobuf_unittest.UnittestProto.TestRequired> single = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance(), 0, protobuf_unittest.UnittestProto.TestRequired.class, protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance()); public static final int MULTI_FIELD_NUMBER = 1001; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> multi = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance(), 1, protobuf_unittest.UnittestProto.TestRequired.class, protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance()); } public interface TestRequiredForeignOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestRequiredForeign) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ boolean hasOptionalMessage(); /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ protobuf_unittest.UnittestProto.TestRequired getOptionalMessage(); /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ protobuf_unittest.UnittestProto.TestRequiredOrBuilder getOptionalMessageOrBuilder(); /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ java.util.List getRepeatedMessageList(); /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ protobuf_unittest.UnittestProto.TestRequired getRepeatedMessage(int index); /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ int getRepeatedMessageCount(); /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ java.util.List getRepeatedMessageOrBuilderList(); /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ protobuf_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedMessageOrBuilder( int index); /** * optional int32 dummy = 3; */ boolean hasDummy(); /** * optional int32 dummy = 3; */ int getDummy(); } /** * Protobuf type {@code protobuf_unittest.TestRequiredForeign} */ public static final class TestRequiredForeign extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestRequiredForeign) TestRequiredForeignOrBuilder { // Use TestRequiredForeign.newBuilder() to construct. private TestRequiredForeign(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestRequiredForeign(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestRequiredForeign defaultInstance; public static TestRequiredForeign getDefaultInstance() { return defaultInstance; } public TestRequiredForeign getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestRequiredForeign( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { protobuf_unittest.UnittestProto.TestRequired.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = optionalMessage_.toBuilder(); } optionalMessage_ = input.readMessage(protobuf_unittest.UnittestProto.TestRequired.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalMessage_); optionalMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { repeatedMessage_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } repeatedMessage_.add(input.readMessage(protobuf_unittest.UnittestProto.TestRequired.PARSER, extensionRegistry)); break; } case 24: { bitField0_ |= 0x00000002; dummy_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { repeatedMessage_ = java.util.Collections.unmodifiableList(repeatedMessage_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredForeign_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredForeign_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRequiredForeign.class, protobuf_unittest.UnittestProto.TestRequiredForeign.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestRequiredForeign parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestRequiredForeign(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int OPTIONAL_MESSAGE_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.TestRequired optionalMessage_; /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public boolean hasOptionalMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public protobuf_unittest.UnittestProto.TestRequired getOptionalMessage() { return optionalMessage_; } /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public protobuf_unittest.UnittestProto.TestRequiredOrBuilder getOptionalMessageOrBuilder() { return optionalMessage_; } public static final int REPEATED_MESSAGE_FIELD_NUMBER = 2; private java.util.List repeatedMessage_; /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public java.util.List getRepeatedMessageList() { return repeatedMessage_; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public java.util.List getRepeatedMessageOrBuilderList() { return repeatedMessage_; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public int getRepeatedMessageCount() { return repeatedMessage_.size(); } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public protobuf_unittest.UnittestProto.TestRequired getRepeatedMessage(int index) { return repeatedMessage_.get(index); } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public protobuf_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedMessageOrBuilder( int index) { return repeatedMessage_.get(index); } public static final int DUMMY_FIELD_NUMBER = 3; private int dummy_; /** * optional int32 dummy = 3; */ public boolean hasDummy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 dummy = 3; */ public int getDummy() { return dummy_; } private void initFields() { optionalMessage_ = protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance(); repeatedMessage_ = java.util.Collections.emptyList(); dummy_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasOptionalMessage()) { if (!getOptionalMessage().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getRepeatedMessageCount(); i++) { if (!getRepeatedMessage(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, optionalMessage_); } for (int i = 0; i < repeatedMessage_.size(); i++) { output.writeMessage(2, repeatedMessage_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(3, dummy_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, optionalMessage_); } for (int i = 0; i < repeatedMessage_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, repeatedMessage_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, dummy_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredForeign parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestRequiredForeign parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRequiredForeign parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestRequiredForeign prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestRequiredForeign} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestRequiredForeign) protobuf_unittest.UnittestProto.TestRequiredForeignOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredForeign_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredForeign_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRequiredForeign.class, protobuf_unittest.UnittestProto.TestRequiredForeign.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestRequiredForeign.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getOptionalMessageFieldBuilder(); getRepeatedMessageFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (optionalMessageBuilder_ == null) { optionalMessage_ = protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance(); } else { optionalMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (repeatedMessageBuilder_ == null) { repeatedMessage_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { repeatedMessageBuilder_.clear(); } dummy_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredForeign_descriptor; } public protobuf_unittest.UnittestProto.TestRequiredForeign getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestRequiredForeign.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestRequiredForeign build() { protobuf_unittest.UnittestProto.TestRequiredForeign result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestRequiredForeign buildPartial() { protobuf_unittest.UnittestProto.TestRequiredForeign result = new protobuf_unittest.UnittestProto.TestRequiredForeign(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (optionalMessageBuilder_ == null) { result.optionalMessage_ = optionalMessage_; } else { result.optionalMessage_ = optionalMessageBuilder_.build(); } if (repeatedMessageBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { repeatedMessage_ = java.util.Collections.unmodifiableList(repeatedMessage_); bitField0_ = (bitField0_ & ~0x00000002); } result.repeatedMessage_ = repeatedMessage_; } else { result.repeatedMessage_ = repeatedMessageBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.dummy_ = dummy_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestRequiredForeign) { return mergeFrom((protobuf_unittest.UnittestProto.TestRequiredForeign)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestRequiredForeign other) { if (other == protobuf_unittest.UnittestProto.TestRequiredForeign.getDefaultInstance()) return this; if (other.hasOptionalMessage()) { mergeOptionalMessage(other.getOptionalMessage()); } if (repeatedMessageBuilder_ == null) { if (!other.repeatedMessage_.isEmpty()) { if (repeatedMessage_.isEmpty()) { repeatedMessage_ = other.repeatedMessage_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRepeatedMessageIsMutable(); repeatedMessage_.addAll(other.repeatedMessage_); } onChanged(); } } else { if (!other.repeatedMessage_.isEmpty()) { if (repeatedMessageBuilder_.isEmpty()) { repeatedMessageBuilder_.dispose(); repeatedMessageBuilder_ = null; repeatedMessage_ = other.repeatedMessage_; bitField0_ = (bitField0_ & ~0x00000002); repeatedMessageBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepeatedMessageFieldBuilder() : null; } else { repeatedMessageBuilder_.addAllMessages(other.repeatedMessage_); } } } if (other.hasDummy()) { setDummy(other.getDummy()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasOptionalMessage()) { if (!getOptionalMessage().isInitialized()) { return false; } } for (int i = 0; i < getRepeatedMessageCount(); i++) { if (!getRepeatedMessage(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestRequiredForeign parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestRequiredForeign) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestRequired optionalMessage_ = protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestRequired, protobuf_unittest.UnittestProto.TestRequired.Builder, protobuf_unittest.UnittestProto.TestRequiredOrBuilder> optionalMessageBuilder_; /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public boolean hasOptionalMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public protobuf_unittest.UnittestProto.TestRequired getOptionalMessage() { if (optionalMessageBuilder_ == null) { return optionalMessage_; } else { return optionalMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public Builder setOptionalMessage(protobuf_unittest.UnittestProto.TestRequired value) { if (optionalMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalMessage_ = value; onChanged(); } else { optionalMessageBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public Builder setOptionalMessage( protobuf_unittest.UnittestProto.TestRequired.Builder builderForValue) { if (optionalMessageBuilder_ == null) { optionalMessage_ = builderForValue.build(); onChanged(); } else { optionalMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public Builder mergeOptionalMessage(protobuf_unittest.UnittestProto.TestRequired value) { if (optionalMessageBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && optionalMessage_ != protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance()) { optionalMessage_ = protobuf_unittest.UnittestProto.TestRequired.newBuilder(optionalMessage_).mergeFrom(value).buildPartial(); } else { optionalMessage_ = value; } onChanged(); } else { optionalMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public Builder clearOptionalMessage() { if (optionalMessageBuilder_ == null) { optionalMessage_ = protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance(); onChanged(); } else { optionalMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public protobuf_unittest.UnittestProto.TestRequired.Builder getOptionalMessageBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOptionalMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ public protobuf_unittest.UnittestProto.TestRequiredOrBuilder getOptionalMessageOrBuilder() { if (optionalMessageBuilder_ != null) { return optionalMessageBuilder_.getMessageOrBuilder(); } else { return optionalMessage_; } } /** * optional .protobuf_unittest.TestRequired optional_message = 1; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestRequired, protobuf_unittest.UnittestProto.TestRequired.Builder, protobuf_unittest.UnittestProto.TestRequiredOrBuilder> getOptionalMessageFieldBuilder() { if (optionalMessageBuilder_ == null) { optionalMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestRequired, protobuf_unittest.UnittestProto.TestRequired.Builder, protobuf_unittest.UnittestProto.TestRequiredOrBuilder>( getOptionalMessage(), getParentForChildren(), isClean()); optionalMessage_ = null; } return optionalMessageBuilder_; } private java.util.List repeatedMessage_ = java.util.Collections.emptyList(); private void ensureRepeatedMessageIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { repeatedMessage_ = new java.util.ArrayList(repeatedMessage_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestRequired, protobuf_unittest.UnittestProto.TestRequired.Builder, protobuf_unittest.UnittestProto.TestRequiredOrBuilder> repeatedMessageBuilder_; /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public java.util.List getRepeatedMessageList() { if (repeatedMessageBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedMessage_); } else { return repeatedMessageBuilder_.getMessageList(); } } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public int getRepeatedMessageCount() { if (repeatedMessageBuilder_ == null) { return repeatedMessage_.size(); } else { return repeatedMessageBuilder_.getCount(); } } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public protobuf_unittest.UnittestProto.TestRequired getRepeatedMessage(int index) { if (repeatedMessageBuilder_ == null) { return repeatedMessage_.get(index); } else { return repeatedMessageBuilder_.getMessage(index); } } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public Builder setRepeatedMessage( int index, protobuf_unittest.UnittestProto.TestRequired value) { if (repeatedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedMessageIsMutable(); repeatedMessage_.set(index, value); onChanged(); } else { repeatedMessageBuilder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public Builder setRepeatedMessage( int index, protobuf_unittest.UnittestProto.TestRequired.Builder builderForValue) { if (repeatedMessageBuilder_ == null) { ensureRepeatedMessageIsMutable(); repeatedMessage_.set(index, builderForValue.build()); onChanged(); } else { repeatedMessageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public Builder addRepeatedMessage(protobuf_unittest.UnittestProto.TestRequired value) { if (repeatedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedMessageIsMutable(); repeatedMessage_.add(value); onChanged(); } else { repeatedMessageBuilder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public Builder addRepeatedMessage( int index, protobuf_unittest.UnittestProto.TestRequired value) { if (repeatedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedMessageIsMutable(); repeatedMessage_.add(index, value); onChanged(); } else { repeatedMessageBuilder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public Builder addRepeatedMessage( protobuf_unittest.UnittestProto.TestRequired.Builder builderForValue) { if (repeatedMessageBuilder_ == null) { ensureRepeatedMessageIsMutable(); repeatedMessage_.add(builderForValue.build()); onChanged(); } else { repeatedMessageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public Builder addRepeatedMessage( int index, protobuf_unittest.UnittestProto.TestRequired.Builder builderForValue) { if (repeatedMessageBuilder_ == null) { ensureRepeatedMessageIsMutable(); repeatedMessage_.add(index, builderForValue.build()); onChanged(); } else { repeatedMessageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public Builder addAllRepeatedMessage( java.lang.Iterable values) { if (repeatedMessageBuilder_ == null) { ensureRepeatedMessageIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedMessage_); onChanged(); } else { repeatedMessageBuilder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public Builder clearRepeatedMessage() { if (repeatedMessageBuilder_ == null) { repeatedMessage_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { repeatedMessageBuilder_.clear(); } return this; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public Builder removeRepeatedMessage(int index) { if (repeatedMessageBuilder_ == null) { ensureRepeatedMessageIsMutable(); repeatedMessage_.remove(index); onChanged(); } else { repeatedMessageBuilder_.remove(index); } return this; } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public protobuf_unittest.UnittestProto.TestRequired.Builder getRepeatedMessageBuilder( int index) { return getRepeatedMessageFieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public protobuf_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedMessageOrBuilder( int index) { if (repeatedMessageBuilder_ == null) { return repeatedMessage_.get(index); } else { return repeatedMessageBuilder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public java.util.List getRepeatedMessageOrBuilderList() { if (repeatedMessageBuilder_ != null) { return repeatedMessageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedMessage_); } } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public protobuf_unittest.UnittestProto.TestRequired.Builder addRepeatedMessageBuilder() { return getRepeatedMessageFieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public protobuf_unittest.UnittestProto.TestRequired.Builder addRepeatedMessageBuilder( int index) { return getRepeatedMessageFieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestRequired.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestRequired repeated_message = 2; */ public java.util.List getRepeatedMessageBuilderList() { return getRepeatedMessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestRequired, protobuf_unittest.UnittestProto.TestRequired.Builder, protobuf_unittest.UnittestProto.TestRequiredOrBuilder> getRepeatedMessageFieldBuilder() { if (repeatedMessageBuilder_ == null) { repeatedMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestRequired, protobuf_unittest.UnittestProto.TestRequired.Builder, protobuf_unittest.UnittestProto.TestRequiredOrBuilder>( repeatedMessage_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); repeatedMessage_ = null; } return repeatedMessageBuilder_; } private int dummy_ ; /** * optional int32 dummy = 3; */ public boolean hasDummy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 dummy = 3; */ public int getDummy() { return dummy_; } /** * optional int32 dummy = 3; */ public Builder setDummy(int value) { bitField0_ |= 0x00000004; dummy_ = value; onChanged(); return this; } /** * optional int32 dummy = 3; */ public Builder clearDummy() { bitField0_ = (bitField0_ & ~0x00000004); dummy_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestRequiredForeign) } static { defaultInstance = new TestRequiredForeign(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredForeign) } public interface TestForeignNestedOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestForeignNested) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ boolean hasForeignNested(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getForeignNested(); /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getForeignNestedOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestForeignNested} * *
   * Test that we can use NestedMessage from outside TestAllTypes.
   * 
*/ public static final class TestForeignNested extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestForeignNested) TestForeignNestedOrBuilder { // Use TestForeignNested.newBuilder() to construct. private TestForeignNested(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestForeignNested(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestForeignNested defaultInstance; public static TestForeignNested getDefaultInstance() { return defaultInstance; } public TestForeignNested getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestForeignNested( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = foreignNested_.toBuilder(); } foreignNested_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(foreignNested_); foreignNested_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestForeignNested_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestForeignNested_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestForeignNested.class, protobuf_unittest.UnittestProto.TestForeignNested.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestForeignNested parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestForeignNested(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int FOREIGN_NESTED_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage foreignNested_; /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public boolean hasForeignNested() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getForeignNested() { return foreignNested_; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getForeignNestedOrBuilder() { return foreignNested_; } private void initFields() { foreignNested_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, foreignNested_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, foreignNested_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestForeignNested parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestForeignNested parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestForeignNested parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestForeignNested parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestForeignNested parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestForeignNested parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestForeignNested parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestForeignNested parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestForeignNested parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestForeignNested parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestForeignNested prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestForeignNested} * *
     * Test that we can use NestedMessage from outside TestAllTypes.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestForeignNested) protobuf_unittest.UnittestProto.TestForeignNestedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestForeignNested_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestForeignNested_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestForeignNested.class, protobuf_unittest.UnittestProto.TestForeignNested.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestForeignNested.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getForeignNestedFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (foreignNestedBuilder_ == null) { foreignNested_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); } else { foreignNestedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestForeignNested_descriptor; } public protobuf_unittest.UnittestProto.TestForeignNested getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestForeignNested.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestForeignNested build() { protobuf_unittest.UnittestProto.TestForeignNested result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestForeignNested buildPartial() { protobuf_unittest.UnittestProto.TestForeignNested result = new protobuf_unittest.UnittestProto.TestForeignNested(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (foreignNestedBuilder_ == null) { result.foreignNested_ = foreignNested_; } else { result.foreignNested_ = foreignNestedBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestForeignNested) { return mergeFrom((protobuf_unittest.UnittestProto.TestForeignNested)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestForeignNested other) { if (other == protobuf_unittest.UnittestProto.TestForeignNested.getDefaultInstance()) return this; if (other.hasForeignNested()) { mergeForeignNested(other.getForeignNested()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestForeignNested parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestForeignNested) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage foreignNested_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> foreignNestedBuilder_; /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public boolean hasForeignNested() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage getForeignNested() { if (foreignNestedBuilder_ == null) { return foreignNested_; } else { return foreignNestedBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public Builder setForeignNested(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (foreignNestedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } foreignNested_ = value; onChanged(); } else { foreignNestedBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public Builder setForeignNested( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder builderForValue) { if (foreignNestedBuilder_ == null) { foreignNested_ = builderForValue.build(); onChanged(); } else { foreignNestedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public Builder mergeForeignNested(protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage value) { if (foreignNestedBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && foreignNested_ != protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()) { foreignNested_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.newBuilder(foreignNested_).mergeFrom(value).buildPartial(); } else { foreignNested_ = value; } onChanged(); } else { foreignNestedBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public Builder clearForeignNested() { if (foreignNestedBuilder_ == null) { foreignNested_ = protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance(); onChanged(); } else { foreignNestedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder getForeignNestedBuilder() { bitField0_ |= 0x00000001; onChanged(); return getForeignNestedFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder getForeignNestedOrBuilder() { if (foreignNestedBuilder_ != null) { return foreignNestedBuilder_.getMessageOrBuilder(); } else { return foreignNested_; } } /** * optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder> getForeignNestedFieldBuilder() { if (foreignNestedBuilder_ == null) { foreignNestedBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessageOrBuilder>( getForeignNested(), getParentForChildren(), isClean()); foreignNested_ = null; } return foreignNestedBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestForeignNested) } static { defaultInstance = new TestForeignNested(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestForeignNested) } public interface TestEmptyMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestEmptyMessage) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.TestEmptyMessage} * *
   * TestEmptyMessage is used to test unknown field support.
   * 
*/ public static final class TestEmptyMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestEmptyMessage) TestEmptyMessageOrBuilder { // Use TestEmptyMessage.newBuilder() to construct. private TestEmptyMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestEmptyMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestEmptyMessage defaultInstance; public static TestEmptyMessage getDefaultInstance() { return defaultInstance; } public TestEmptyMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestEmptyMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEmptyMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEmptyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestEmptyMessage.class, protobuf_unittest.UnittestProto.TestEmptyMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestEmptyMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestEmptyMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestEmptyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestEmptyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEmptyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestEmptyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEmptyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestEmptyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEmptyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestEmptyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEmptyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestEmptyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestEmptyMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestEmptyMessage} * *
     * TestEmptyMessage is used to test unknown field support.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestEmptyMessage) protobuf_unittest.UnittestProto.TestEmptyMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEmptyMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEmptyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestEmptyMessage.class, protobuf_unittest.UnittestProto.TestEmptyMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestEmptyMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEmptyMessage_descriptor; } public protobuf_unittest.UnittestProto.TestEmptyMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestEmptyMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestEmptyMessage build() { protobuf_unittest.UnittestProto.TestEmptyMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestEmptyMessage buildPartial() { protobuf_unittest.UnittestProto.TestEmptyMessage result = new protobuf_unittest.UnittestProto.TestEmptyMessage(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestEmptyMessage) { return mergeFrom((protobuf_unittest.UnittestProto.TestEmptyMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestEmptyMessage other) { if (other == protobuf_unittest.UnittestProto.TestEmptyMessage.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestEmptyMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestEmptyMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestEmptyMessage) } static { defaultInstance = new TestEmptyMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEmptyMessage) } public interface TestEmptyMessageWithExtensionsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestEmptyMessageWithExtensions) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.TestEmptyMessageWithExtensions} * *
   * Like above, but declare all field numbers as potential extensions.  No
   * actual extensions should ever be defined for this type.
   * 
*/ public static final class TestEmptyMessageWithExtensions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< TestEmptyMessageWithExtensions> implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestEmptyMessageWithExtensions) TestEmptyMessageWithExtensionsOrBuilder { // Use TestEmptyMessageWithExtensions.newBuilder() to construct. private TestEmptyMessageWithExtensions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestEmptyMessageWithExtensions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestEmptyMessageWithExtensions defaultInstance; public static TestEmptyMessageWithExtensions getDefaultInstance() { return defaultInstance; } public TestEmptyMessageWithExtensions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestEmptyMessageWithExtensions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEmptyMessageWithExtensions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEmptyMessageWithExtensions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions.class, protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestEmptyMessageWithExtensions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestEmptyMessageWithExtensions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestEmptyMessageWithExtensions} * *
     * Like above, but declare all field numbers as potential extensions.  No
     * actual extensions should ever be defined for this type.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestEmptyMessageWithExtensions) protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEmptyMessageWithExtensions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEmptyMessageWithExtensions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions.class, protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEmptyMessageWithExtensions_descriptor; } public protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions build() { protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions buildPartial() { protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions result = new protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions) { return mergeFrom((protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions other) { if (other == protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions.getDefaultInstance()) return this; this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestEmptyMessageWithExtensions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestEmptyMessageWithExtensions) } static { defaultInstance = new TestEmptyMessageWithExtensions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEmptyMessageWithExtensions) } public interface TestMultipleExtensionRangesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestMultipleExtensionRanges) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.TestMultipleExtensionRanges} */ public static final class TestMultipleExtensionRanges extends com.google.protobuf.GeneratedMessage.ExtendableMessage< TestMultipleExtensionRanges> implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestMultipleExtensionRanges) TestMultipleExtensionRangesOrBuilder { // Use TestMultipleExtensionRanges.newBuilder() to construct. private TestMultipleExtensionRanges(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestMultipleExtensionRanges(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestMultipleExtensionRanges defaultInstance; public static TestMultipleExtensionRanges getDefaultInstance() { return defaultInstance; } public TestMultipleExtensionRanges getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestMultipleExtensionRanges( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMultipleExtensionRanges_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMultipleExtensionRanges_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestMultipleExtensionRanges.class, protobuf_unittest.UnittestProto.TestMultipleExtensionRanges.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestMultipleExtensionRanges parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestMultipleExtensionRanges(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); extensionWriter.writeUntil(43, output); extensionWriter.writeUntil(4244, output); extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestMultipleExtensionRanges prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestMultipleExtensionRanges} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest.UnittestProto.TestMultipleExtensionRanges, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestMultipleExtensionRanges) protobuf_unittest.UnittestProto.TestMultipleExtensionRangesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMultipleExtensionRanges_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMultipleExtensionRanges_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestMultipleExtensionRanges.class, protobuf_unittest.UnittestProto.TestMultipleExtensionRanges.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestMultipleExtensionRanges.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMultipleExtensionRanges_descriptor; } public protobuf_unittest.UnittestProto.TestMultipleExtensionRanges getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestMultipleExtensionRanges.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestMultipleExtensionRanges build() { protobuf_unittest.UnittestProto.TestMultipleExtensionRanges result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestMultipleExtensionRanges buildPartial() { protobuf_unittest.UnittestProto.TestMultipleExtensionRanges result = new protobuf_unittest.UnittestProto.TestMultipleExtensionRanges(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestMultipleExtensionRanges) { return mergeFrom((protobuf_unittest.UnittestProto.TestMultipleExtensionRanges)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestMultipleExtensionRanges other) { if (other == protobuf_unittest.UnittestProto.TestMultipleExtensionRanges.getDefaultInstance()) return this; this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestMultipleExtensionRanges parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestMultipleExtensionRanges) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestMultipleExtensionRanges) } static { defaultInstance = new TestMultipleExtensionRanges(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMultipleExtensionRanges) } public interface TestReallyLargeTagNumberOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestReallyLargeTagNumber) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 1; * *
     * The largest possible tag number is 2^28 - 1, since the wire format uses
     * three bits to communicate wire type.
     * 
*/ boolean hasA(); /** * optional int32 a = 1; * *
     * The largest possible tag number is 2^28 - 1, since the wire format uses
     * three bits to communicate wire type.
     * 
*/ int getA(); /** * optional int32 bb = 268435455; */ boolean hasBb(); /** * optional int32 bb = 268435455; */ int getBb(); } /** * Protobuf type {@code protobuf_unittest.TestReallyLargeTagNumber} * *
   * Test that really large tag numbers don't break anything.
   * 
*/ public static final class TestReallyLargeTagNumber extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestReallyLargeTagNumber) TestReallyLargeTagNumberOrBuilder { // Use TestReallyLargeTagNumber.newBuilder() to construct. private TestReallyLargeTagNumber(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestReallyLargeTagNumber(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestReallyLargeTagNumber defaultInstance; public static TestReallyLargeTagNumber getDefaultInstance() { return defaultInstance; } public TestReallyLargeTagNumber getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestReallyLargeTagNumber( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } case 2147483640: { bitField0_ |= 0x00000002; bb_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestReallyLargeTagNumber_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestReallyLargeTagNumber_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestReallyLargeTagNumber.class, protobuf_unittest.UnittestProto.TestReallyLargeTagNumber.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestReallyLargeTagNumber parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestReallyLargeTagNumber(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 1; private int a_; /** * optional int32 a = 1; * *
     * The largest possible tag number is 2^28 - 1, since the wire format uses
     * three bits to communicate wire type.
     * 
*/ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 1; * *
     * The largest possible tag number is 2^28 - 1, since the wire format uses
     * three bits to communicate wire type.
     * 
*/ public int getA() { return a_; } public static final int BB_FIELD_NUMBER = 268435455; private int bb_; /** * optional int32 bb = 268435455; */ public boolean hasBb() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 bb = 268435455; */ public int getBb() { return bb_; } private void initFields() { a_ = 0; bb_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(268435455, bb_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(268435455, bb_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestReallyLargeTagNumber prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestReallyLargeTagNumber} * *
     * Test that really large tag numbers don't break anything.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestReallyLargeTagNumber) protobuf_unittest.UnittestProto.TestReallyLargeTagNumberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestReallyLargeTagNumber_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestReallyLargeTagNumber_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestReallyLargeTagNumber.class, protobuf_unittest.UnittestProto.TestReallyLargeTagNumber.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestReallyLargeTagNumber.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); bb_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestReallyLargeTagNumber_descriptor; } public protobuf_unittest.UnittestProto.TestReallyLargeTagNumber getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestReallyLargeTagNumber.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestReallyLargeTagNumber build() { protobuf_unittest.UnittestProto.TestReallyLargeTagNumber result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestReallyLargeTagNumber buildPartial() { protobuf_unittest.UnittestProto.TestReallyLargeTagNumber result = new protobuf_unittest.UnittestProto.TestReallyLargeTagNumber(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.bb_ = bb_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestReallyLargeTagNumber) { return mergeFrom((protobuf_unittest.UnittestProto.TestReallyLargeTagNumber)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestReallyLargeTagNumber other) { if (other == protobuf_unittest.UnittestProto.TestReallyLargeTagNumber.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } if (other.hasBb()) { setBb(other.getBb()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestReallyLargeTagNumber parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestReallyLargeTagNumber) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 1; * *
       * The largest possible tag number is 2^28 - 1, since the wire format uses
       * three bits to communicate wire type.
       * 
*/ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 1; * *
       * The largest possible tag number is 2^28 - 1, since the wire format uses
       * three bits to communicate wire type.
       * 
*/ public int getA() { return a_; } /** * optional int32 a = 1; * *
       * The largest possible tag number is 2^28 - 1, since the wire format uses
       * three bits to communicate wire type.
       * 
*/ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 1; * *
       * The largest possible tag number is 2^28 - 1, since the wire format uses
       * three bits to communicate wire type.
       * 
*/ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } private int bb_ ; /** * optional int32 bb = 268435455; */ public boolean hasBb() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 bb = 268435455; */ public int getBb() { return bb_; } /** * optional int32 bb = 268435455; */ public Builder setBb(int value) { bitField0_ |= 0x00000002; bb_ = value; onChanged(); return this; } /** * optional int32 bb = 268435455; */ public Builder clearBb() { bitField0_ = (bitField0_ & ~0x00000002); bb_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestReallyLargeTagNumber) } static { defaultInstance = new TestReallyLargeTagNumber(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestReallyLargeTagNumber) } public interface TestRecursiveMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestRecursiveMessage) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ boolean hasA(); /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ protobuf_unittest.UnittestProto.TestRecursiveMessage getA(); /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ protobuf_unittest.UnittestProto.TestRecursiveMessageOrBuilder getAOrBuilder(); /** * optional int32 i = 2; */ boolean hasI(); /** * optional int32 i = 2; */ int getI(); } /** * Protobuf type {@code protobuf_unittest.TestRecursiveMessage} */ public static final class TestRecursiveMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestRecursiveMessage) TestRecursiveMessageOrBuilder { // Use TestRecursiveMessage.newBuilder() to construct. private TestRecursiveMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestRecursiveMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestRecursiveMessage defaultInstance; public static TestRecursiveMessage getDefaultInstance() { return defaultInstance; } public TestRecursiveMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestRecursiveMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { protobuf_unittest.UnittestProto.TestRecursiveMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = a_.toBuilder(); } a_ = input.readMessage(protobuf_unittest.UnittestProto.TestRecursiveMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(a_); a_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; i_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRecursiveMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRecursiveMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRecursiveMessage.class, protobuf_unittest.UnittestProto.TestRecursiveMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestRecursiveMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestRecursiveMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.TestRecursiveMessage a_; /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public protobuf_unittest.UnittestProto.TestRecursiveMessage getA() { return a_; } /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public protobuf_unittest.UnittestProto.TestRecursiveMessageOrBuilder getAOrBuilder() { return a_; } public static final int I_FIELD_NUMBER = 2; private int i_; /** * optional int32 i = 2; */ public boolean hasI() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 i = 2; */ public int getI() { return i_; } private void initFields() { a_ = protobuf_unittest.UnittestProto.TestRecursiveMessage.getDefaultInstance(); i_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, i_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, i_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestRecursiveMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRecursiveMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRecursiveMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRecursiveMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRecursiveMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRecursiveMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRecursiveMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestRecursiveMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRecursiveMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRecursiveMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestRecursiveMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestRecursiveMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestRecursiveMessage) protobuf_unittest.UnittestProto.TestRecursiveMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRecursiveMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRecursiveMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRecursiveMessage.class, protobuf_unittest.UnittestProto.TestRecursiveMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestRecursiveMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (aBuilder_ == null) { a_ = protobuf_unittest.UnittestProto.TestRecursiveMessage.getDefaultInstance(); } else { aBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); i_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRecursiveMessage_descriptor; } public protobuf_unittest.UnittestProto.TestRecursiveMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestRecursiveMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestRecursiveMessage build() { protobuf_unittest.UnittestProto.TestRecursiveMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestRecursiveMessage buildPartial() { protobuf_unittest.UnittestProto.TestRecursiveMessage result = new protobuf_unittest.UnittestProto.TestRecursiveMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (aBuilder_ == null) { result.a_ = a_; } else { result.a_ = aBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.i_ = i_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestRecursiveMessage) { return mergeFrom((protobuf_unittest.UnittestProto.TestRecursiveMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestRecursiveMessage other) { if (other == protobuf_unittest.UnittestProto.TestRecursiveMessage.getDefaultInstance()) return this; if (other.hasA()) { mergeA(other.getA()); } if (other.hasI()) { setI(other.getI()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestRecursiveMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestRecursiveMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestRecursiveMessage a_ = protobuf_unittest.UnittestProto.TestRecursiveMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestRecursiveMessage, protobuf_unittest.UnittestProto.TestRecursiveMessage.Builder, protobuf_unittest.UnittestProto.TestRecursiveMessageOrBuilder> aBuilder_; /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public protobuf_unittest.UnittestProto.TestRecursiveMessage getA() { if (aBuilder_ == null) { return a_; } else { return aBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public Builder setA(protobuf_unittest.UnittestProto.TestRecursiveMessage value) { if (aBuilder_ == null) { if (value == null) { throw new NullPointerException(); } a_ = value; onChanged(); } else { aBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public Builder setA( protobuf_unittest.UnittestProto.TestRecursiveMessage.Builder builderForValue) { if (aBuilder_ == null) { a_ = builderForValue.build(); onChanged(); } else { aBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public Builder mergeA(protobuf_unittest.UnittestProto.TestRecursiveMessage value) { if (aBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && a_ != protobuf_unittest.UnittestProto.TestRecursiveMessage.getDefaultInstance()) { a_ = protobuf_unittest.UnittestProto.TestRecursiveMessage.newBuilder(a_).mergeFrom(value).buildPartial(); } else { a_ = value; } onChanged(); } else { aBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public Builder clearA() { if (aBuilder_ == null) { a_ = protobuf_unittest.UnittestProto.TestRecursiveMessage.getDefaultInstance(); onChanged(); } else { aBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public protobuf_unittest.UnittestProto.TestRecursiveMessage.Builder getABuilder() { bitField0_ |= 0x00000001; onChanged(); return getAFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ public protobuf_unittest.UnittestProto.TestRecursiveMessageOrBuilder getAOrBuilder() { if (aBuilder_ != null) { return aBuilder_.getMessageOrBuilder(); } else { return a_; } } /** * optional .protobuf_unittest.TestRecursiveMessage a = 1; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestRecursiveMessage, protobuf_unittest.UnittestProto.TestRecursiveMessage.Builder, protobuf_unittest.UnittestProto.TestRecursiveMessageOrBuilder> getAFieldBuilder() { if (aBuilder_ == null) { aBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestRecursiveMessage, protobuf_unittest.UnittestProto.TestRecursiveMessage.Builder, protobuf_unittest.UnittestProto.TestRecursiveMessageOrBuilder>( getA(), getParentForChildren(), isClean()); a_ = null; } return aBuilder_; } private int i_ ; /** * optional int32 i = 2; */ public boolean hasI() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 i = 2; */ public int getI() { return i_; } /** * optional int32 i = 2; */ public Builder setI(int value) { bitField0_ |= 0x00000002; i_ = value; onChanged(); return this; } /** * optional int32 i = 2; */ public Builder clearI() { bitField0_ = (bitField0_ & ~0x00000002); i_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestRecursiveMessage) } static { defaultInstance = new TestRecursiveMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRecursiveMessage) } public interface TestMutualRecursionAOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestMutualRecursionA) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ boolean hasBb(); /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ protobuf_unittest.UnittestProto.TestMutualRecursionB getBb(); /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ protobuf_unittest.UnittestProto.TestMutualRecursionBOrBuilder getBbOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestMutualRecursionA} * *
   * Test that mutual recursion works.
   * 
*/ public static final class TestMutualRecursionA extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestMutualRecursionA) TestMutualRecursionAOrBuilder { // Use TestMutualRecursionA.newBuilder() to construct. private TestMutualRecursionA(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestMutualRecursionA(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestMutualRecursionA defaultInstance; public static TestMutualRecursionA getDefaultInstance() { return defaultInstance; } public TestMutualRecursionA getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestMutualRecursionA( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { protobuf_unittest.UnittestProto.TestMutualRecursionB.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = bb_.toBuilder(); } bb_ = input.readMessage(protobuf_unittest.UnittestProto.TestMutualRecursionB.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bb_); bb_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMutualRecursionA_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMutualRecursionA_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestMutualRecursionA.class, protobuf_unittest.UnittestProto.TestMutualRecursionA.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestMutualRecursionA parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestMutualRecursionA(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BB_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.TestMutualRecursionB bb_; /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public boolean hasBb() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public protobuf_unittest.UnittestProto.TestMutualRecursionB getBb() { return bb_; } /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public protobuf_unittest.UnittestProto.TestMutualRecursionBOrBuilder getBbOrBuilder() { return bb_; } private void initFields() { bb_ = protobuf_unittest.UnittestProto.TestMutualRecursionB.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, bb_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, bb_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestMutualRecursionA parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestMutualRecursionA parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMutualRecursionA parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestMutualRecursionA parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMutualRecursionA parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestMutualRecursionA parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMutualRecursionA parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestMutualRecursionA parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMutualRecursionA parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestMutualRecursionA parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestMutualRecursionA prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestMutualRecursionA} * *
     * Test that mutual recursion works.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestMutualRecursionA) protobuf_unittest.UnittestProto.TestMutualRecursionAOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMutualRecursionA_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMutualRecursionA_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestMutualRecursionA.class, protobuf_unittest.UnittestProto.TestMutualRecursionA.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestMutualRecursionA.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBbFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (bbBuilder_ == null) { bb_ = protobuf_unittest.UnittestProto.TestMutualRecursionB.getDefaultInstance(); } else { bbBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMutualRecursionA_descriptor; } public protobuf_unittest.UnittestProto.TestMutualRecursionA getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestMutualRecursionA.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestMutualRecursionA build() { protobuf_unittest.UnittestProto.TestMutualRecursionA result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestMutualRecursionA buildPartial() { protobuf_unittest.UnittestProto.TestMutualRecursionA result = new protobuf_unittest.UnittestProto.TestMutualRecursionA(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (bbBuilder_ == null) { result.bb_ = bb_; } else { result.bb_ = bbBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestMutualRecursionA) { return mergeFrom((protobuf_unittest.UnittestProto.TestMutualRecursionA)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestMutualRecursionA other) { if (other == protobuf_unittest.UnittestProto.TestMutualRecursionA.getDefaultInstance()) return this; if (other.hasBb()) { mergeBb(other.getBb()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestMutualRecursionA parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestMutualRecursionA) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestMutualRecursionB bb_ = protobuf_unittest.UnittestProto.TestMutualRecursionB.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestMutualRecursionB, protobuf_unittest.UnittestProto.TestMutualRecursionB.Builder, protobuf_unittest.UnittestProto.TestMutualRecursionBOrBuilder> bbBuilder_; /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public boolean hasBb() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public protobuf_unittest.UnittestProto.TestMutualRecursionB getBb() { if (bbBuilder_ == null) { return bb_; } else { return bbBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public Builder setBb(protobuf_unittest.UnittestProto.TestMutualRecursionB value) { if (bbBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bb_ = value; onChanged(); } else { bbBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public Builder setBb( protobuf_unittest.UnittestProto.TestMutualRecursionB.Builder builderForValue) { if (bbBuilder_ == null) { bb_ = builderForValue.build(); onChanged(); } else { bbBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public Builder mergeBb(protobuf_unittest.UnittestProto.TestMutualRecursionB value) { if (bbBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && bb_ != protobuf_unittest.UnittestProto.TestMutualRecursionB.getDefaultInstance()) { bb_ = protobuf_unittest.UnittestProto.TestMutualRecursionB.newBuilder(bb_).mergeFrom(value).buildPartial(); } else { bb_ = value; } onChanged(); } else { bbBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public Builder clearBb() { if (bbBuilder_ == null) { bb_ = protobuf_unittest.UnittestProto.TestMutualRecursionB.getDefaultInstance(); onChanged(); } else { bbBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public protobuf_unittest.UnittestProto.TestMutualRecursionB.Builder getBbBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBbFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ public protobuf_unittest.UnittestProto.TestMutualRecursionBOrBuilder getBbOrBuilder() { if (bbBuilder_ != null) { return bbBuilder_.getMessageOrBuilder(); } else { return bb_; } } /** * optional .protobuf_unittest.TestMutualRecursionB bb = 1; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestMutualRecursionB, protobuf_unittest.UnittestProto.TestMutualRecursionB.Builder, protobuf_unittest.UnittestProto.TestMutualRecursionBOrBuilder> getBbFieldBuilder() { if (bbBuilder_ == null) { bbBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestMutualRecursionB, protobuf_unittest.UnittestProto.TestMutualRecursionB.Builder, protobuf_unittest.UnittestProto.TestMutualRecursionBOrBuilder>( getBb(), getParentForChildren(), isClean()); bb_ = null; } return bbBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestMutualRecursionA) } static { defaultInstance = new TestMutualRecursionA(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMutualRecursionA) } public interface TestMutualRecursionBOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestMutualRecursionB) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ boolean hasA(); /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ protobuf_unittest.UnittestProto.TestMutualRecursionA getA(); /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ protobuf_unittest.UnittestProto.TestMutualRecursionAOrBuilder getAOrBuilder(); /** * optional int32 optional_int32 = 2; */ boolean hasOptionalInt32(); /** * optional int32 optional_int32 = 2; */ int getOptionalInt32(); } /** * Protobuf type {@code protobuf_unittest.TestMutualRecursionB} */ public static final class TestMutualRecursionB extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestMutualRecursionB) TestMutualRecursionBOrBuilder { // Use TestMutualRecursionB.newBuilder() to construct. private TestMutualRecursionB(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestMutualRecursionB(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestMutualRecursionB defaultInstance; public static TestMutualRecursionB getDefaultInstance() { return defaultInstance; } public TestMutualRecursionB getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestMutualRecursionB( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { protobuf_unittest.UnittestProto.TestMutualRecursionA.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = a_.toBuilder(); } a_ = input.readMessage(protobuf_unittest.UnittestProto.TestMutualRecursionA.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(a_); a_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; optionalInt32_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMutualRecursionB_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMutualRecursionB_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestMutualRecursionB.class, protobuf_unittest.UnittestProto.TestMutualRecursionB.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestMutualRecursionB parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestMutualRecursionB(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.TestMutualRecursionA a_; /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public protobuf_unittest.UnittestProto.TestMutualRecursionA getA() { return a_; } /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public protobuf_unittest.UnittestProto.TestMutualRecursionAOrBuilder getAOrBuilder() { return a_; } public static final int OPTIONAL_INT32_FIELD_NUMBER = 2; private int optionalInt32_; /** * optional int32 optional_int32 = 2; */ public boolean hasOptionalInt32() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 optional_int32 = 2; */ public int getOptionalInt32() { return optionalInt32_; } private void initFields() { a_ = protobuf_unittest.UnittestProto.TestMutualRecursionA.getDefaultInstance(); optionalInt32_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, optionalInt32_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, optionalInt32_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestMutualRecursionB parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestMutualRecursionB parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMutualRecursionB parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestMutualRecursionB parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMutualRecursionB parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestMutualRecursionB parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMutualRecursionB parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestMutualRecursionB parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestMutualRecursionB parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestMutualRecursionB parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestMutualRecursionB prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestMutualRecursionB} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestMutualRecursionB) protobuf_unittest.UnittestProto.TestMutualRecursionBOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMutualRecursionB_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMutualRecursionB_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestMutualRecursionB.class, protobuf_unittest.UnittestProto.TestMutualRecursionB.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestMutualRecursionB.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (aBuilder_ == null) { a_ = protobuf_unittest.UnittestProto.TestMutualRecursionA.getDefaultInstance(); } else { aBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); optionalInt32_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestMutualRecursionB_descriptor; } public protobuf_unittest.UnittestProto.TestMutualRecursionB getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestMutualRecursionB.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestMutualRecursionB build() { protobuf_unittest.UnittestProto.TestMutualRecursionB result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestMutualRecursionB buildPartial() { protobuf_unittest.UnittestProto.TestMutualRecursionB result = new protobuf_unittest.UnittestProto.TestMutualRecursionB(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (aBuilder_ == null) { result.a_ = a_; } else { result.a_ = aBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.optionalInt32_ = optionalInt32_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestMutualRecursionB) { return mergeFrom((protobuf_unittest.UnittestProto.TestMutualRecursionB)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestMutualRecursionB other) { if (other == protobuf_unittest.UnittestProto.TestMutualRecursionB.getDefaultInstance()) return this; if (other.hasA()) { mergeA(other.getA()); } if (other.hasOptionalInt32()) { setOptionalInt32(other.getOptionalInt32()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestMutualRecursionB parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestMutualRecursionB) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestMutualRecursionA a_ = protobuf_unittest.UnittestProto.TestMutualRecursionA.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestMutualRecursionA, protobuf_unittest.UnittestProto.TestMutualRecursionA.Builder, protobuf_unittest.UnittestProto.TestMutualRecursionAOrBuilder> aBuilder_; /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public protobuf_unittest.UnittestProto.TestMutualRecursionA getA() { if (aBuilder_ == null) { return a_; } else { return aBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public Builder setA(protobuf_unittest.UnittestProto.TestMutualRecursionA value) { if (aBuilder_ == null) { if (value == null) { throw new NullPointerException(); } a_ = value; onChanged(); } else { aBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public Builder setA( protobuf_unittest.UnittestProto.TestMutualRecursionA.Builder builderForValue) { if (aBuilder_ == null) { a_ = builderForValue.build(); onChanged(); } else { aBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public Builder mergeA(protobuf_unittest.UnittestProto.TestMutualRecursionA value) { if (aBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && a_ != protobuf_unittest.UnittestProto.TestMutualRecursionA.getDefaultInstance()) { a_ = protobuf_unittest.UnittestProto.TestMutualRecursionA.newBuilder(a_).mergeFrom(value).buildPartial(); } else { a_ = value; } onChanged(); } else { aBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public Builder clearA() { if (aBuilder_ == null) { a_ = protobuf_unittest.UnittestProto.TestMutualRecursionA.getDefaultInstance(); onChanged(); } else { aBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public protobuf_unittest.UnittestProto.TestMutualRecursionA.Builder getABuilder() { bitField0_ |= 0x00000001; onChanged(); return getAFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ public protobuf_unittest.UnittestProto.TestMutualRecursionAOrBuilder getAOrBuilder() { if (aBuilder_ != null) { return aBuilder_.getMessageOrBuilder(); } else { return a_; } } /** * optional .protobuf_unittest.TestMutualRecursionA a = 1; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestMutualRecursionA, protobuf_unittest.UnittestProto.TestMutualRecursionA.Builder, protobuf_unittest.UnittestProto.TestMutualRecursionAOrBuilder> getAFieldBuilder() { if (aBuilder_ == null) { aBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestMutualRecursionA, protobuf_unittest.UnittestProto.TestMutualRecursionA.Builder, protobuf_unittest.UnittestProto.TestMutualRecursionAOrBuilder>( getA(), getParentForChildren(), isClean()); a_ = null; } return aBuilder_; } private int optionalInt32_ ; /** * optional int32 optional_int32 = 2; */ public boolean hasOptionalInt32() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 optional_int32 = 2; */ public int getOptionalInt32() { return optionalInt32_; } /** * optional int32 optional_int32 = 2; */ public Builder setOptionalInt32(int value) { bitField0_ |= 0x00000002; optionalInt32_ = value; onChanged(); return this; } /** * optional int32 optional_int32 = 2; */ public Builder clearOptionalInt32() { bitField0_ = (bitField0_ & ~0x00000002); optionalInt32_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestMutualRecursionB) } static { defaultInstance = new TestMutualRecursionB(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMutualRecursionB) } public interface TestDupFieldNumberOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestDupFieldNumber) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 1; * *
     * NO_PROTO1
     * 
*/ boolean hasA(); /** * optional int32 a = 1; * *
     * NO_PROTO1
     * 
*/ int getA(); /** * optional group Foo = 2 { ... } */ boolean hasFoo(); /** * optional group Foo = 2 { ... } */ protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo getFoo(); /** * optional group Foo = 2 { ... } */ protobuf_unittest.UnittestProto.TestDupFieldNumber.FooOrBuilder getFooOrBuilder(); /** * optional group Bar = 3 { ... } */ boolean hasBar(); /** * optional group Bar = 3 { ... } */ protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar getBar(); /** * optional group Bar = 3 { ... } */ protobuf_unittest.UnittestProto.TestDupFieldNumber.BarOrBuilder getBarOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestDupFieldNumber} * *
   * Test that groups have disjoint field numbers from their siblings and
   * parents.  This is NOT possible in proto1; only proto2.  When attempting
   * to compile with proto1, this will emit an error; so we only include it
   * in protobuf_unittest_proto.
   * 
*/ public static final class TestDupFieldNumber extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestDupFieldNumber) TestDupFieldNumberOrBuilder { // Use TestDupFieldNumber.newBuilder() to construct. private TestDupFieldNumber(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestDupFieldNumber(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestDupFieldNumber defaultInstance; public static TestDupFieldNumber getDefaultInstance() { return defaultInstance; } public TestDupFieldNumber getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestDupFieldNumber( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } case 19: { protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = foo_.toBuilder(); } foo_ = input.readGroup(2, protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(foo_); foo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 27: { protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = bar_.toBuilder(); } bar_ = input.readGroup(3, protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bar_); bar_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDupFieldNumber.class, protobuf_unittest.UnittestProto.TestDupFieldNumber.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestDupFieldNumber parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestDupFieldNumber(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface FooOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestDupFieldNumber.Foo) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 1; */ boolean hasA(); /** * optional int32 a = 1; */ int getA(); } /** * Protobuf type {@code protobuf_unittest.TestDupFieldNumber.Foo} */ public static final class Foo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestDupFieldNumber.Foo) FooOrBuilder { // Use Foo.newBuilder() to construct. private Foo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Foo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Foo defaultInstance; public static Foo getDefaultInstance() { return defaultInstance; } public Foo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Foo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_Foo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_Foo_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.class, protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Foo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Foo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 1; private int a_; /** * optional int32 a = 1; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 1; */ public int getA() { return a_; } private void initFields() { a_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, a_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, a_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestDupFieldNumber.Foo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestDupFieldNumber.Foo) protobuf_unittest.UnittestProto.TestDupFieldNumber.FooOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_Foo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_Foo_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.class, protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_Foo_descriptor; } public protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo build() { protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo buildPartial() { protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo result = new protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo) { return mergeFrom((protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo other) { if (other == protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 1; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 1; */ public int getA() { return a_; } /** * optional int32 a = 1; */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 1; */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestDupFieldNumber.Foo) } static { defaultInstance = new Foo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDupFieldNumber.Foo) } public interface BarOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestDupFieldNumber.Bar) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 1; */ boolean hasA(); /** * optional int32 a = 1; */ int getA(); } /** * Protobuf type {@code protobuf_unittest.TestDupFieldNumber.Bar} */ public static final class Bar extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestDupFieldNumber.Bar) BarOrBuilder { // Use Bar.newBuilder() to construct. private Bar(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Bar(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Bar defaultInstance; public static Bar getDefaultInstance() { return defaultInstance; } public Bar getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Bar( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_Bar_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_Bar_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.class, protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Bar parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Bar(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 1; private int a_; /** * optional int32 a = 1; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 1; */ public int getA() { return a_; } private void initFields() { a_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, a_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, a_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestDupFieldNumber.Bar} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestDupFieldNumber.Bar) protobuf_unittest.UnittestProto.TestDupFieldNumber.BarOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_Bar_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_Bar_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.class, protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_Bar_descriptor; } public protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar build() { protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar buildPartial() { protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar result = new protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar) { return mergeFrom((protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar other) { if (other == protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 1; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 1; */ public int getA() { return a_; } /** * optional int32 a = 1; */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 1; */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestDupFieldNumber.Bar) } static { defaultInstance = new Bar(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDupFieldNumber.Bar) } private int bitField0_; public static final int A_FIELD_NUMBER = 1; private int a_; /** * optional int32 a = 1; * *
     * NO_PROTO1
     * 
*/ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 1; * *
     * NO_PROTO1
     * 
*/ public int getA() { return a_; } public static final int FOO_FIELD_NUMBER = 2; private protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo foo_; /** * optional group Foo = 2 { ... } */ public boolean hasFoo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional group Foo = 2 { ... } */ public protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo getFoo() { return foo_; } /** * optional group Foo = 2 { ... } */ public protobuf_unittest.UnittestProto.TestDupFieldNumber.FooOrBuilder getFooOrBuilder() { return foo_; } public static final int BAR_FIELD_NUMBER = 3; private protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar bar_; /** * optional group Bar = 3 { ... } */ public boolean hasBar() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional group Bar = 3 { ... } */ public protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar getBar() { return bar_; } /** * optional group Bar = 3 { ... } */ public protobuf_unittest.UnittestProto.TestDupFieldNumber.BarOrBuilder getBarOrBuilder() { return bar_; } private void initFields() { a_ = 0; foo_ = protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.getDefaultInstance(); bar_ = protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeGroup(2, foo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeGroup(3, bar_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(2, foo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(3, bar_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDupFieldNumber parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestDupFieldNumber prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestDupFieldNumber} * *
     * Test that groups have disjoint field numbers from their siblings and
     * parents.  This is NOT possible in proto1; only proto2.  When attempting
     * to compile with proto1, this will emit an error; so we only include it
     * in protobuf_unittest_proto.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestDupFieldNumber) protobuf_unittest.UnittestProto.TestDupFieldNumberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDupFieldNumber.class, protobuf_unittest.UnittestProto.TestDupFieldNumber.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestDupFieldNumber.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFooFieldBuilder(); getBarFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (fooBuilder_ == null) { foo_ = protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.getDefaultInstance(); } else { fooBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (barBuilder_ == null) { bar_ = protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.getDefaultInstance(); } else { barBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDupFieldNumber_descriptor; } public protobuf_unittest.UnittestProto.TestDupFieldNumber getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestDupFieldNumber.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestDupFieldNumber build() { protobuf_unittest.UnittestProto.TestDupFieldNumber result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestDupFieldNumber buildPartial() { protobuf_unittest.UnittestProto.TestDupFieldNumber result = new protobuf_unittest.UnittestProto.TestDupFieldNumber(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (fooBuilder_ == null) { result.foo_ = foo_; } else { result.foo_ = fooBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (barBuilder_ == null) { result.bar_ = bar_; } else { result.bar_ = barBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestDupFieldNumber) { return mergeFrom((protobuf_unittest.UnittestProto.TestDupFieldNumber)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestDupFieldNumber other) { if (other == protobuf_unittest.UnittestProto.TestDupFieldNumber.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } if (other.hasFoo()) { mergeFoo(other.getFoo()); } if (other.hasBar()) { mergeBar(other.getBar()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestDupFieldNumber parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestDupFieldNumber) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 1; * *
       * NO_PROTO1
       * 
*/ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 1; * *
       * NO_PROTO1
       * 
*/ public int getA() { return a_; } /** * optional int32 a = 1; * *
       * NO_PROTO1
       * 
*/ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 1; * *
       * NO_PROTO1
       * 
*/ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } private protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo foo_ = protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo, protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.Builder, protobuf_unittest.UnittestProto.TestDupFieldNumber.FooOrBuilder> fooBuilder_; /** * optional group Foo = 2 { ... } */ public boolean hasFoo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional group Foo = 2 { ... } */ public protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo getFoo() { if (fooBuilder_ == null) { return foo_; } else { return fooBuilder_.getMessage(); } } /** * optional group Foo = 2 { ... } */ public Builder setFoo(protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo value) { if (fooBuilder_ == null) { if (value == null) { throw new NullPointerException(); } foo_ = value; onChanged(); } else { fooBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional group Foo = 2 { ... } */ public Builder setFoo( protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.Builder builderForValue) { if (fooBuilder_ == null) { foo_ = builderForValue.build(); onChanged(); } else { fooBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional group Foo = 2 { ... } */ public Builder mergeFoo(protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo value) { if (fooBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && foo_ != protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.getDefaultInstance()) { foo_ = protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.newBuilder(foo_).mergeFrom(value).buildPartial(); } else { foo_ = value; } onChanged(); } else { fooBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional group Foo = 2 { ... } */ public Builder clearFoo() { if (fooBuilder_ == null) { foo_ = protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.getDefaultInstance(); onChanged(); } else { fooBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional group Foo = 2 { ... } */ public protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.Builder getFooBuilder() { bitField0_ |= 0x00000002; onChanged(); return getFooFieldBuilder().getBuilder(); } /** * optional group Foo = 2 { ... } */ public protobuf_unittest.UnittestProto.TestDupFieldNumber.FooOrBuilder getFooOrBuilder() { if (fooBuilder_ != null) { return fooBuilder_.getMessageOrBuilder(); } else { return foo_; } } /** * optional group Foo = 2 { ... } */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo, protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.Builder, protobuf_unittest.UnittestProto.TestDupFieldNumber.FooOrBuilder> getFooFieldBuilder() { if (fooBuilder_ == null) { fooBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo, protobuf_unittest.UnittestProto.TestDupFieldNumber.Foo.Builder, protobuf_unittest.UnittestProto.TestDupFieldNumber.FooOrBuilder>( getFoo(), getParentForChildren(), isClean()); foo_ = null; } return fooBuilder_; } private protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar bar_ = protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar, protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.Builder, protobuf_unittest.UnittestProto.TestDupFieldNumber.BarOrBuilder> barBuilder_; /** * optional group Bar = 3 { ... } */ public boolean hasBar() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional group Bar = 3 { ... } */ public protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar getBar() { if (barBuilder_ == null) { return bar_; } else { return barBuilder_.getMessage(); } } /** * optional group Bar = 3 { ... } */ public Builder setBar(protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar value) { if (barBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bar_ = value; onChanged(); } else { barBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional group Bar = 3 { ... } */ public Builder setBar( protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.Builder builderForValue) { if (barBuilder_ == null) { bar_ = builderForValue.build(); onChanged(); } else { barBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional group Bar = 3 { ... } */ public Builder mergeBar(protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar value) { if (barBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && bar_ != protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.getDefaultInstance()) { bar_ = protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.newBuilder(bar_).mergeFrom(value).buildPartial(); } else { bar_ = value; } onChanged(); } else { barBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional group Bar = 3 { ... } */ public Builder clearBar() { if (barBuilder_ == null) { bar_ = protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.getDefaultInstance(); onChanged(); } else { barBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional group Bar = 3 { ... } */ public protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.Builder getBarBuilder() { bitField0_ |= 0x00000004; onChanged(); return getBarFieldBuilder().getBuilder(); } /** * optional group Bar = 3 { ... } */ public protobuf_unittest.UnittestProto.TestDupFieldNumber.BarOrBuilder getBarOrBuilder() { if (barBuilder_ != null) { return barBuilder_.getMessageOrBuilder(); } else { return bar_; } } /** * optional group Bar = 3 { ... } */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar, protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.Builder, protobuf_unittest.UnittestProto.TestDupFieldNumber.BarOrBuilder> getBarFieldBuilder() { if (barBuilder_ == null) { barBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar, protobuf_unittest.UnittestProto.TestDupFieldNumber.Bar.Builder, protobuf_unittest.UnittestProto.TestDupFieldNumber.BarOrBuilder>( getBar(), getParentForChildren(), isClean()); bar_ = null; } return barBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestDupFieldNumber) } static { defaultInstance = new TestDupFieldNumber(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDupFieldNumber) } public interface TestEagerMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestEagerMessage) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ boolean hasSubMessage(); /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ protobuf_unittest.UnittestProto.TestAllTypes getSubMessage(); /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getSubMessageOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestEagerMessage} * *
   * Additional messages for testing lazy fields.
   * 
*/ public static final class TestEagerMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestEagerMessage) TestEagerMessageOrBuilder { // Use TestEagerMessage.newBuilder() to construct. private TestEagerMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestEagerMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestEagerMessage defaultInstance; public static TestEagerMessage getDefaultInstance() { return defaultInstance; } public TestEagerMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestEagerMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = subMessage_.toBuilder(); } subMessage_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(subMessage_); subMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEagerMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEagerMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestEagerMessage.class, protobuf_unittest.UnittestProto.TestEagerMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestEagerMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestEagerMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int SUB_MESSAGE_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.TestAllTypes subMessage_; /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public boolean hasSubMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public protobuf_unittest.UnittestProto.TestAllTypes getSubMessage() { return subMessage_; } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getSubMessageOrBuilder() { return subMessage_; } private void initFields() { subMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, subMessage_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, subMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestEagerMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestEagerMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEagerMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestEagerMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEagerMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestEagerMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEagerMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestEagerMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestEagerMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestEagerMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestEagerMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestEagerMessage} * *
     * Additional messages for testing lazy fields.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestEagerMessage) protobuf_unittest.UnittestProto.TestEagerMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEagerMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEagerMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestEagerMessage.class, protobuf_unittest.UnittestProto.TestEagerMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestEagerMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSubMessageFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (subMessageBuilder_ == null) { subMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { subMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestEagerMessage_descriptor; } public protobuf_unittest.UnittestProto.TestEagerMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestEagerMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestEagerMessage build() { protobuf_unittest.UnittestProto.TestEagerMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestEagerMessage buildPartial() { protobuf_unittest.UnittestProto.TestEagerMessage result = new protobuf_unittest.UnittestProto.TestEagerMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (subMessageBuilder_ == null) { result.subMessage_ = subMessage_; } else { result.subMessage_ = subMessageBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestEagerMessage) { return mergeFrom((protobuf_unittest.UnittestProto.TestEagerMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestEagerMessage other) { if (other == protobuf_unittest.UnittestProto.TestEagerMessage.getDefaultInstance()) return this; if (other.hasSubMessage()) { mergeSubMessage(other.getSubMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestEagerMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestEagerMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestAllTypes subMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> subMessageBuilder_; /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public boolean hasSubMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public protobuf_unittest.UnittestProto.TestAllTypes getSubMessage() { if (subMessageBuilder_ == null) { return subMessage_; } else { return subMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public Builder setSubMessage(protobuf_unittest.UnittestProto.TestAllTypes value) { if (subMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subMessage_ = value; onChanged(); } else { subMessageBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public Builder setSubMessage( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (subMessageBuilder_ == null) { subMessage_ = builderForValue.build(); onChanged(); } else { subMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public Builder mergeSubMessage(protobuf_unittest.UnittestProto.TestAllTypes value) { if (subMessageBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && subMessage_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { subMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(subMessage_).mergeFrom(value).buildPartial(); } else { subMessage_ = value; } onChanged(); } else { subMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public Builder clearSubMessage() { if (subMessageBuilder_ == null) { subMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); onChanged(); } else { subMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getSubMessageBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSubMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getSubMessageOrBuilder() { if (subMessageBuilder_ != null) { return subMessageBuilder_.getMessageOrBuilder(); } else { return subMessage_; } } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false]; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getSubMessageFieldBuilder() { if (subMessageBuilder_ == null) { subMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( getSubMessage(), getParentForChildren(), isClean()); subMessage_ = null; } return subMessageBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestEagerMessage) } static { defaultInstance = new TestEagerMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEagerMessage) } public interface TestLazyMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestLazyMessage) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ boolean hasSubMessage(); /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ protobuf_unittest.UnittestProto.TestAllTypes getSubMessage(); /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getSubMessageOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestLazyMessage} */ public static final class TestLazyMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestLazyMessage) TestLazyMessageOrBuilder { // Use TestLazyMessage.newBuilder() to construct. private TestLazyMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestLazyMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestLazyMessage defaultInstance; public static TestLazyMessage getDefaultInstance() { return defaultInstance; } public TestLazyMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestLazyMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = subMessage_.toBuilder(); } subMessage_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(subMessage_); subMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestLazyMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestLazyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestLazyMessage.class, protobuf_unittest.UnittestProto.TestLazyMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestLazyMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestLazyMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int SUB_MESSAGE_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.TestAllTypes subMessage_; /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public boolean hasSubMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes getSubMessage() { return subMessage_; } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getSubMessageOrBuilder() { return subMessage_; } private void initFields() { subMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, subMessage_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, subMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestLazyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestLazyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestLazyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestLazyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestLazyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestLazyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestLazyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestLazyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestLazyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestLazyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestLazyMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestLazyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestLazyMessage) protobuf_unittest.UnittestProto.TestLazyMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestLazyMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestLazyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestLazyMessage.class, protobuf_unittest.UnittestProto.TestLazyMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestLazyMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSubMessageFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (subMessageBuilder_ == null) { subMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { subMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestLazyMessage_descriptor; } public protobuf_unittest.UnittestProto.TestLazyMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestLazyMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestLazyMessage build() { protobuf_unittest.UnittestProto.TestLazyMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestLazyMessage buildPartial() { protobuf_unittest.UnittestProto.TestLazyMessage result = new protobuf_unittest.UnittestProto.TestLazyMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (subMessageBuilder_ == null) { result.subMessage_ = subMessage_; } else { result.subMessage_ = subMessageBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestLazyMessage) { return mergeFrom((protobuf_unittest.UnittestProto.TestLazyMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestLazyMessage other) { if (other == protobuf_unittest.UnittestProto.TestLazyMessage.getDefaultInstance()) return this; if (other.hasSubMessage()) { mergeSubMessage(other.getSubMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestLazyMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestLazyMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestAllTypes subMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> subMessageBuilder_; /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public boolean hasSubMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes getSubMessage() { if (subMessageBuilder_ == null) { return subMessage_; } else { return subMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public Builder setSubMessage(protobuf_unittest.UnittestProto.TestAllTypes value) { if (subMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subMessage_ = value; onChanged(); } else { subMessageBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public Builder setSubMessage( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (subMessageBuilder_ == null) { subMessage_ = builderForValue.build(); onChanged(); } else { subMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public Builder mergeSubMessage(protobuf_unittest.UnittestProto.TestAllTypes value) { if (subMessageBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && subMessage_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { subMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(subMessage_).mergeFrom(value).buildPartial(); } else { subMessage_ = value; } onChanged(); } else { subMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public Builder clearSubMessage() { if (subMessageBuilder_ == null) { subMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); onChanged(); } else { subMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getSubMessageBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSubMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getSubMessageOrBuilder() { if (subMessageBuilder_ != null) { return subMessageBuilder_.getMessageOrBuilder(); } else { return subMessage_; } } /** * optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true]; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getSubMessageFieldBuilder() { if (subMessageBuilder_ == null) { subMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( getSubMessage(), getParentForChildren(), isClean()); subMessage_ = null; } return subMessageBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestLazyMessage) } static { defaultInstance = new TestLazyMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestLazyMessage) } public interface TestNestedMessageHasBitsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestNestedMessageHasBits) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ boolean hasOptionalNestedMessage(); /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage getOptionalNestedMessage(); /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestNestedMessageHasBits} * *
   * Needed for a Python test.
   * 
*/ public static final class TestNestedMessageHasBits extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestNestedMessageHasBits) TestNestedMessageHasBitsOrBuilder { // Use TestNestedMessageHasBits.newBuilder() to construct. private TestNestedMessageHasBits(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestNestedMessageHasBits(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestNestedMessageHasBits defaultInstance; public static TestNestedMessageHasBits getDefaultInstance() { return defaultInstance; } public TestNestedMessageHasBits getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestNestedMessageHasBits( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = optionalNestedMessage_.toBuilder(); } optionalNestedMessage_ = input.readMessage(protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalNestedMessage_); optionalNestedMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedMessageHasBits_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedMessageHasBits_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestNestedMessageHasBits.class, protobuf_unittest.UnittestProto.TestNestedMessageHasBits.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestNestedMessageHasBits parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestNestedMessageHasBits(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface NestedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestNestedMessageHasBits.NestedMessage) com.google.protobuf.MessageOrBuilder { /** * repeated int32 nestedmessage_repeated_int32 = 1; */ java.util.List getNestedmessageRepeatedInt32List(); /** * repeated int32 nestedmessage_repeated_int32 = 1; */ int getNestedmessageRepeatedInt32Count(); /** * repeated int32 nestedmessage_repeated_int32 = 1; */ int getNestedmessageRepeatedInt32(int index); /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ java.util.List getNestedmessageRepeatedForeignmessageList(); /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ protobuf_unittest.UnittestProto.ForeignMessage getNestedmessageRepeatedForeignmessage(int index); /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ int getNestedmessageRepeatedForeignmessageCount(); /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ java.util.List getNestedmessageRepeatedForeignmessageOrBuilderList(); /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getNestedmessageRepeatedForeignmessageOrBuilder( int index); } /** * Protobuf type {@code protobuf_unittest.TestNestedMessageHasBits.NestedMessage} */ public static final class NestedMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestNestedMessageHasBits.NestedMessage) NestedMessageOrBuilder { // Use NestedMessage.newBuilder() to construct. private NestedMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NestedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NestedMessage defaultInstance; public static NestedMessage getDefaultInstance() { return defaultInstance; } public NestedMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NestedMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { nestedmessageRepeatedInt32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } nestedmessageRepeatedInt32_.add(input.readInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { nestedmessageRepeatedInt32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { nestedmessageRepeatedInt32_.add(input.readInt32()); } input.popLimit(limit); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { nestedmessageRepeatedForeignmessage_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } nestedmessageRepeatedForeignmessage_.add(input.readMessage(protobuf_unittest.UnittestProto.ForeignMessage.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { nestedmessageRepeatedInt32_ = java.util.Collections.unmodifiableList(nestedmessageRepeatedInt32_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { nestedmessageRepeatedForeignmessage_ = java.util.Collections.unmodifiableList(nestedmessageRepeatedForeignmessage_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.class, protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NestedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NestedMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int NESTEDMESSAGE_REPEATED_INT32_FIELD_NUMBER = 1; private java.util.List nestedmessageRepeatedInt32_; /** * repeated int32 nestedmessage_repeated_int32 = 1; */ public java.util.List getNestedmessageRepeatedInt32List() { return nestedmessageRepeatedInt32_; } /** * repeated int32 nestedmessage_repeated_int32 = 1; */ public int getNestedmessageRepeatedInt32Count() { return nestedmessageRepeatedInt32_.size(); } /** * repeated int32 nestedmessage_repeated_int32 = 1; */ public int getNestedmessageRepeatedInt32(int index) { return nestedmessageRepeatedInt32_.get(index); } public static final int NESTEDMESSAGE_REPEATED_FOREIGNMESSAGE_FIELD_NUMBER = 2; private java.util.List nestedmessageRepeatedForeignmessage_; /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public java.util.List getNestedmessageRepeatedForeignmessageList() { return nestedmessageRepeatedForeignmessage_; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public java.util.List getNestedmessageRepeatedForeignmessageOrBuilderList() { return nestedmessageRepeatedForeignmessage_; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public int getNestedmessageRepeatedForeignmessageCount() { return nestedmessageRepeatedForeignmessage_.size(); } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public protobuf_unittest.UnittestProto.ForeignMessage getNestedmessageRepeatedForeignmessage(int index) { return nestedmessageRepeatedForeignmessage_.get(index); } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getNestedmessageRepeatedForeignmessageOrBuilder( int index) { return nestedmessageRepeatedForeignmessage_.get(index); } private void initFields() { nestedmessageRepeatedInt32_ = java.util.Collections.emptyList(); nestedmessageRepeatedForeignmessage_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < nestedmessageRepeatedInt32_.size(); i++) { output.writeInt32(1, nestedmessageRepeatedInt32_.get(i)); } for (int i = 0; i < nestedmessageRepeatedForeignmessage_.size(); i++) { output.writeMessage(2, nestedmessageRepeatedForeignmessage_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < nestedmessageRepeatedInt32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(nestedmessageRepeatedInt32_.get(i)); } size += dataSize; size += 1 * getNestedmessageRepeatedInt32List().size(); } for (int i = 0; i < nestedmessageRepeatedForeignmessage_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, nestedmessageRepeatedForeignmessage_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestNestedMessageHasBits.NestedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestNestedMessageHasBits.NestedMessage) protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.class, protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNestedmessageRepeatedForeignmessageFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); nestedmessageRepeatedInt32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (nestedmessageRepeatedForeignmessageBuilder_ == null) { nestedmessageRepeatedForeignmessage_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { nestedmessageRepeatedForeignmessageBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage_descriptor; } public protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage build() { protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage buildPartial() { protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage result = new protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { nestedmessageRepeatedInt32_ = java.util.Collections.unmodifiableList(nestedmessageRepeatedInt32_); bitField0_ = (bitField0_ & ~0x00000001); } result.nestedmessageRepeatedInt32_ = nestedmessageRepeatedInt32_; if (nestedmessageRepeatedForeignmessageBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { nestedmessageRepeatedForeignmessage_ = java.util.Collections.unmodifiableList(nestedmessageRepeatedForeignmessage_); bitField0_ = (bitField0_ & ~0x00000002); } result.nestedmessageRepeatedForeignmessage_ = nestedmessageRepeatedForeignmessage_; } else { result.nestedmessageRepeatedForeignmessage_ = nestedmessageRepeatedForeignmessageBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage) { return mergeFrom((protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage other) { if (other == protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.getDefaultInstance()) return this; if (!other.nestedmessageRepeatedInt32_.isEmpty()) { if (nestedmessageRepeatedInt32_.isEmpty()) { nestedmessageRepeatedInt32_ = other.nestedmessageRepeatedInt32_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNestedmessageRepeatedInt32IsMutable(); nestedmessageRepeatedInt32_.addAll(other.nestedmessageRepeatedInt32_); } onChanged(); } if (nestedmessageRepeatedForeignmessageBuilder_ == null) { if (!other.nestedmessageRepeatedForeignmessage_.isEmpty()) { if (nestedmessageRepeatedForeignmessage_.isEmpty()) { nestedmessageRepeatedForeignmessage_ = other.nestedmessageRepeatedForeignmessage_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNestedmessageRepeatedForeignmessageIsMutable(); nestedmessageRepeatedForeignmessage_.addAll(other.nestedmessageRepeatedForeignmessage_); } onChanged(); } } else { if (!other.nestedmessageRepeatedForeignmessage_.isEmpty()) { if (nestedmessageRepeatedForeignmessageBuilder_.isEmpty()) { nestedmessageRepeatedForeignmessageBuilder_.dispose(); nestedmessageRepeatedForeignmessageBuilder_ = null; nestedmessageRepeatedForeignmessage_ = other.nestedmessageRepeatedForeignmessage_; bitField0_ = (bitField0_ & ~0x00000002); nestedmessageRepeatedForeignmessageBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getNestedmessageRepeatedForeignmessageFieldBuilder() : null; } else { nestedmessageRepeatedForeignmessageBuilder_.addAllMessages(other.nestedmessageRepeatedForeignmessage_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List nestedmessageRepeatedInt32_ = java.util.Collections.emptyList(); private void ensureNestedmessageRepeatedInt32IsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { nestedmessageRepeatedInt32_ = new java.util.ArrayList(nestedmessageRepeatedInt32_); bitField0_ |= 0x00000001; } } /** * repeated int32 nestedmessage_repeated_int32 = 1; */ public java.util.List getNestedmessageRepeatedInt32List() { return java.util.Collections.unmodifiableList(nestedmessageRepeatedInt32_); } /** * repeated int32 nestedmessage_repeated_int32 = 1; */ public int getNestedmessageRepeatedInt32Count() { return nestedmessageRepeatedInt32_.size(); } /** * repeated int32 nestedmessage_repeated_int32 = 1; */ public int getNestedmessageRepeatedInt32(int index) { return nestedmessageRepeatedInt32_.get(index); } /** * repeated int32 nestedmessage_repeated_int32 = 1; */ public Builder setNestedmessageRepeatedInt32( int index, int value) { ensureNestedmessageRepeatedInt32IsMutable(); nestedmessageRepeatedInt32_.set(index, value); onChanged(); return this; } /** * repeated int32 nestedmessage_repeated_int32 = 1; */ public Builder addNestedmessageRepeatedInt32(int value) { ensureNestedmessageRepeatedInt32IsMutable(); nestedmessageRepeatedInt32_.add(value); onChanged(); return this; } /** * repeated int32 nestedmessage_repeated_int32 = 1; */ public Builder addAllNestedmessageRepeatedInt32( java.lang.Iterable values) { ensureNestedmessageRepeatedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nestedmessageRepeatedInt32_); onChanged(); return this; } /** * repeated int32 nestedmessage_repeated_int32 = 1; */ public Builder clearNestedmessageRepeatedInt32() { nestedmessageRepeatedInt32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.util.List nestedmessageRepeatedForeignmessage_ = java.util.Collections.emptyList(); private void ensureNestedmessageRepeatedForeignmessageIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { nestedmessageRepeatedForeignmessage_ = new java.util.ArrayList(nestedmessageRepeatedForeignmessage_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> nestedmessageRepeatedForeignmessageBuilder_; /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public java.util.List getNestedmessageRepeatedForeignmessageList() { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { return java.util.Collections.unmodifiableList(nestedmessageRepeatedForeignmessage_); } else { return nestedmessageRepeatedForeignmessageBuilder_.getMessageList(); } } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public int getNestedmessageRepeatedForeignmessageCount() { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { return nestedmessageRepeatedForeignmessage_.size(); } else { return nestedmessageRepeatedForeignmessageBuilder_.getCount(); } } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public protobuf_unittest.UnittestProto.ForeignMessage getNestedmessageRepeatedForeignmessage(int index) { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { return nestedmessageRepeatedForeignmessage_.get(index); } else { return nestedmessageRepeatedForeignmessageBuilder_.getMessage(index); } } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public Builder setNestedmessageRepeatedForeignmessage( int index, protobuf_unittest.UnittestProto.ForeignMessage value) { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedmessageRepeatedForeignmessageIsMutable(); nestedmessageRepeatedForeignmessage_.set(index, value); onChanged(); } else { nestedmessageRepeatedForeignmessageBuilder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public Builder setNestedmessageRepeatedForeignmessage( int index, protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { ensureNestedmessageRepeatedForeignmessageIsMutable(); nestedmessageRepeatedForeignmessage_.set(index, builderForValue.build()); onChanged(); } else { nestedmessageRepeatedForeignmessageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public Builder addNestedmessageRepeatedForeignmessage(protobuf_unittest.UnittestProto.ForeignMessage value) { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedmessageRepeatedForeignmessageIsMutable(); nestedmessageRepeatedForeignmessage_.add(value); onChanged(); } else { nestedmessageRepeatedForeignmessageBuilder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public Builder addNestedmessageRepeatedForeignmessage( int index, protobuf_unittest.UnittestProto.ForeignMessage value) { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedmessageRepeatedForeignmessageIsMutable(); nestedmessageRepeatedForeignmessage_.add(index, value); onChanged(); } else { nestedmessageRepeatedForeignmessageBuilder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public Builder addNestedmessageRepeatedForeignmessage( protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { ensureNestedmessageRepeatedForeignmessageIsMutable(); nestedmessageRepeatedForeignmessage_.add(builderForValue.build()); onChanged(); } else { nestedmessageRepeatedForeignmessageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public Builder addNestedmessageRepeatedForeignmessage( int index, protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { ensureNestedmessageRepeatedForeignmessageIsMutable(); nestedmessageRepeatedForeignmessage_.add(index, builderForValue.build()); onChanged(); } else { nestedmessageRepeatedForeignmessageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public Builder addAllNestedmessageRepeatedForeignmessage( java.lang.Iterable values) { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { ensureNestedmessageRepeatedForeignmessageIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nestedmessageRepeatedForeignmessage_); onChanged(); } else { nestedmessageRepeatedForeignmessageBuilder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public Builder clearNestedmessageRepeatedForeignmessage() { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { nestedmessageRepeatedForeignmessage_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { nestedmessageRepeatedForeignmessageBuilder_.clear(); } return this; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public Builder removeNestedmessageRepeatedForeignmessage(int index) { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { ensureNestedmessageRepeatedForeignmessageIsMutable(); nestedmessageRepeatedForeignmessage_.remove(index); onChanged(); } else { nestedmessageRepeatedForeignmessageBuilder_.remove(index); } return this; } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder getNestedmessageRepeatedForeignmessageBuilder( int index) { return getNestedmessageRepeatedForeignmessageFieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getNestedmessageRepeatedForeignmessageOrBuilder( int index) { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { return nestedmessageRepeatedForeignmessage_.get(index); } else { return nestedmessageRepeatedForeignmessageBuilder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public java.util.List getNestedmessageRepeatedForeignmessageOrBuilderList() { if (nestedmessageRepeatedForeignmessageBuilder_ != null) { return nestedmessageRepeatedForeignmessageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nestedmessageRepeatedForeignmessage_); } } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder addNestedmessageRepeatedForeignmessageBuilder() { return getNestedmessageRepeatedForeignmessageFieldBuilder().addBuilder( protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder addNestedmessageRepeatedForeignmessageBuilder( int index) { return getNestedmessageRepeatedForeignmessageFieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2; */ public java.util.List getNestedmessageRepeatedForeignmessageBuilderList() { return getNestedmessageRepeatedForeignmessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> getNestedmessageRepeatedForeignmessageFieldBuilder() { if (nestedmessageRepeatedForeignmessageBuilder_ == null) { nestedmessageRepeatedForeignmessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>( nestedmessageRepeatedForeignmessage_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); nestedmessageRepeatedForeignmessage_ = null; } return nestedmessageRepeatedForeignmessageBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestNestedMessageHasBits.NestedMessage) } static { defaultInstance = new NestedMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedMessageHasBits.NestedMessage) } private int bitField0_; public static final int OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage optionalNestedMessage_; /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public boolean hasOptionalNestedMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage getOptionalNestedMessage() { return optionalNestedMessage_; } /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() { return optionalNestedMessage_; } private void initFields() { optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, optionalNestedMessage_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, optionalNestedMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestNestedMessageHasBits parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestNestedMessageHasBits prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestNestedMessageHasBits} * *
     * Needed for a Python test.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestNestedMessageHasBits) protobuf_unittest.UnittestProto.TestNestedMessageHasBitsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedMessageHasBits_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedMessageHasBits_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestNestedMessageHasBits.class, protobuf_unittest.UnittestProto.TestNestedMessageHasBits.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestNestedMessageHasBits.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getOptionalNestedMessageFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (optionalNestedMessageBuilder_ == null) { optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.getDefaultInstance(); } else { optionalNestedMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestNestedMessageHasBits_descriptor; } public protobuf_unittest.UnittestProto.TestNestedMessageHasBits getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestNestedMessageHasBits.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestNestedMessageHasBits build() { protobuf_unittest.UnittestProto.TestNestedMessageHasBits result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestNestedMessageHasBits buildPartial() { protobuf_unittest.UnittestProto.TestNestedMessageHasBits result = new protobuf_unittest.UnittestProto.TestNestedMessageHasBits(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (optionalNestedMessageBuilder_ == null) { result.optionalNestedMessage_ = optionalNestedMessage_; } else { result.optionalNestedMessage_ = optionalNestedMessageBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestNestedMessageHasBits) { return mergeFrom((protobuf_unittest.UnittestProto.TestNestedMessageHasBits)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestNestedMessageHasBits other) { if (other == protobuf_unittest.UnittestProto.TestNestedMessageHasBits.getDefaultInstance()) return this; if (other.hasOptionalNestedMessage()) { mergeOptionalNestedMessage(other.getOptionalNestedMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestNestedMessageHasBits parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestNestedMessageHasBits) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage, protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessageOrBuilder> optionalNestedMessageBuilder_; /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public boolean hasOptionalNestedMessage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage getOptionalNestedMessage() { if (optionalNestedMessageBuilder_ == null) { return optionalNestedMessage_; } else { return optionalNestedMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public Builder setOptionalNestedMessage(protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage value) { if (optionalNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalNestedMessage_ = value; onChanged(); } else { optionalNestedMessageBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public Builder setOptionalNestedMessage( protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.Builder builderForValue) { if (optionalNestedMessageBuilder_ == null) { optionalNestedMessage_ = builderForValue.build(); onChanged(); } else { optionalNestedMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public Builder mergeOptionalNestedMessage(protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage value) { if (optionalNestedMessageBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && optionalNestedMessage_ != protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.getDefaultInstance()) { optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.newBuilder(optionalNestedMessage_).mergeFrom(value).buildPartial(); } else { optionalNestedMessage_ = value; } onChanged(); } else { optionalNestedMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public Builder clearOptionalNestedMessage() { if (optionalNestedMessageBuilder_ == null) { optionalNestedMessage_ = protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.getDefaultInstance(); onChanged(); } else { optionalNestedMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.Builder getOptionalNestedMessageBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOptionalNestedMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ public protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() { if (optionalNestedMessageBuilder_ != null) { return optionalNestedMessageBuilder_.getMessageOrBuilder(); } else { return optionalNestedMessage_; } } /** * optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage, protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessageOrBuilder> getOptionalNestedMessageFieldBuilder() { if (optionalNestedMessageBuilder_ == null) { optionalNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage, protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestNestedMessageHasBits.NestedMessageOrBuilder>( getOptionalNestedMessage(), getParentForChildren(), isClean()); optionalNestedMessage_ = null; } return optionalNestedMessageBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestNestedMessageHasBits) } static { defaultInstance = new TestNestedMessageHasBits(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedMessageHasBits) } public interface TestCamelCaseFieldNamesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestCamelCaseFieldNames) com.google.protobuf.MessageOrBuilder { /** * optional int32 PrimitiveField = 1; */ boolean hasPrimitiveField(); /** * optional int32 PrimitiveField = 1; */ int getPrimitiveField(); /** * optional string StringField = 2; */ boolean hasStringField(); /** * optional string StringField = 2; */ java.lang.String getStringField(); /** * optional string StringField = 2; */ com.google.protobuf.ByteString getStringFieldBytes(); /** * optional .protobuf_unittest.ForeignEnum EnumField = 3; */ boolean hasEnumField(); /** * optional .protobuf_unittest.ForeignEnum EnumField = 3; */ protobuf_unittest.UnittestProto.ForeignEnum getEnumField(); /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ boolean hasMessageField(); /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ protobuf_unittest.UnittestProto.ForeignMessage getMessageField(); /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getMessageFieldOrBuilder(); /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ boolean hasStringPieceField(); /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ java.lang.String getStringPieceField(); /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ com.google.protobuf.ByteString getStringPieceFieldBytes(); /** * optional string CordField = 6 [ctype = CORD]; */ boolean hasCordField(); /** * optional string CordField = 6 [ctype = CORD]; */ java.lang.String getCordField(); /** * optional string CordField = 6 [ctype = CORD]; */ com.google.protobuf.ByteString getCordFieldBytes(); /** * repeated int32 RepeatedPrimitiveField = 7; */ java.util.List getRepeatedPrimitiveFieldList(); /** * repeated int32 RepeatedPrimitiveField = 7; */ int getRepeatedPrimitiveFieldCount(); /** * repeated int32 RepeatedPrimitiveField = 7; */ int getRepeatedPrimitiveField(int index); /** * repeated string RepeatedStringField = 8; */ com.google.protobuf.ProtocolStringList getRepeatedStringFieldList(); /** * repeated string RepeatedStringField = 8; */ int getRepeatedStringFieldCount(); /** * repeated string RepeatedStringField = 8; */ java.lang.String getRepeatedStringField(int index); /** * repeated string RepeatedStringField = 8; */ com.google.protobuf.ByteString getRepeatedStringFieldBytes(int index); /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ java.util.List getRepeatedEnumFieldList(); /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ int getRepeatedEnumFieldCount(); /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ protobuf_unittest.UnittestProto.ForeignEnum getRepeatedEnumField(int index); /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ java.util.List getRepeatedMessageFieldList(); /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ protobuf_unittest.UnittestProto.ForeignMessage getRepeatedMessageField(int index); /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ int getRepeatedMessageFieldCount(); /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ java.util.List getRepeatedMessageFieldOrBuilderList(); /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getRepeatedMessageFieldOrBuilder( int index); /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ com.google.protobuf.ProtocolStringList getRepeatedStringPieceFieldList(); /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ int getRepeatedStringPieceFieldCount(); /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ java.lang.String getRepeatedStringPieceField(int index); /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ com.google.protobuf.ByteString getRepeatedStringPieceFieldBytes(int index); /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ com.google.protobuf.ProtocolStringList getRepeatedCordFieldList(); /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ int getRepeatedCordFieldCount(); /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ java.lang.String getRepeatedCordField(int index); /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ com.google.protobuf.ByteString getRepeatedCordFieldBytes(int index); } /** * Protobuf type {@code protobuf_unittest.TestCamelCaseFieldNames} * *
   * Test message with CamelCase field names.  This violates Protocol Buffer
   * standard style.
   * 
*/ public static final class TestCamelCaseFieldNames extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestCamelCaseFieldNames) TestCamelCaseFieldNamesOrBuilder { // Use TestCamelCaseFieldNames.newBuilder() to construct. private TestCamelCaseFieldNames(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestCamelCaseFieldNames(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestCamelCaseFieldNames defaultInstance; public static TestCamelCaseFieldNames getDefaultInstance() { return defaultInstance; } public TestCamelCaseFieldNames getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestCamelCaseFieldNames( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; primitiveField_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; stringField_ = bs; break; } case 24: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; enumField_ = value; } break; } case 34: { protobuf_unittest.UnittestProto.ForeignMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = messageField_.toBuilder(); } messageField_ = input.readMessage(protobuf_unittest.UnittestProto.ForeignMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(messageField_); messageField_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; stringPieceField_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; cordField_ = bs; break; } case 56: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { repeatedPrimitiveField_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } repeatedPrimitiveField_.add(input.readInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { repeatedPrimitiveField_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { repeatedPrimitiveField_.add(input.readInt32()); } input.popLimit(limit); break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { repeatedStringField_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000080; } repeatedStringField_.add(bs); break; } case 72: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(9, rawValue); } else { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { repeatedEnumField_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } repeatedEnumField_.add(value); } break; } case 74: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(9, rawValue); } else { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { repeatedEnumField_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } repeatedEnumField_.add(value); } } input.popLimit(oldLimit); break; } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { repeatedMessageField_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } repeatedMessageField_.add(input.readMessage(protobuf_unittest.UnittestProto.ForeignMessage.PARSER, extensionRegistry)); break; } case 90: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { repeatedStringPieceField_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000400; } repeatedStringPieceField_.add(bs); break; } case 98: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { repeatedCordField_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000800; } repeatedCordField_.add(bs); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { repeatedPrimitiveField_ = java.util.Collections.unmodifiableList(repeatedPrimitiveField_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { repeatedStringField_ = repeatedStringField_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { repeatedEnumField_ = java.util.Collections.unmodifiableList(repeatedEnumField_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { repeatedMessageField_ = java.util.Collections.unmodifiableList(repeatedMessageField_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { repeatedStringPieceField_ = repeatedStringPieceField_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { repeatedCordField_ = repeatedCordField_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestCamelCaseFieldNames_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestCamelCaseFieldNames_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestCamelCaseFieldNames.class, protobuf_unittest.UnittestProto.TestCamelCaseFieldNames.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestCamelCaseFieldNames parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestCamelCaseFieldNames(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int PRIMITIVEFIELD_FIELD_NUMBER = 1; private int primitiveField_; /** * optional int32 PrimitiveField = 1; */ public boolean hasPrimitiveField() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 PrimitiveField = 1; */ public int getPrimitiveField() { return primitiveField_; } public static final int STRINGFIELD_FIELD_NUMBER = 2; private java.lang.Object stringField_; /** * optional string StringField = 2; */ public boolean hasStringField() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string StringField = 2; */ public java.lang.String getStringField() { java.lang.Object ref = stringField_; 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()) { stringField_ = s; } return s; } } /** * optional string StringField = 2; */ public com.google.protobuf.ByteString getStringFieldBytes() { java.lang.Object ref = stringField_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENUMFIELD_FIELD_NUMBER = 3; private protobuf_unittest.UnittestProto.ForeignEnum enumField_; /** * optional .protobuf_unittest.ForeignEnum EnumField = 3; */ public boolean hasEnumField() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.ForeignEnum EnumField = 3; */ public protobuf_unittest.UnittestProto.ForeignEnum getEnumField() { return enumField_; } public static final int MESSAGEFIELD_FIELD_NUMBER = 4; private protobuf_unittest.UnittestProto.ForeignMessage messageField_; /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public boolean hasMessageField() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public protobuf_unittest.UnittestProto.ForeignMessage getMessageField() { return messageField_; } /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getMessageFieldOrBuilder() { return messageField_; } public static final int STRINGPIECEFIELD_FIELD_NUMBER = 5; private java.lang.Object stringPieceField_; /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ public boolean hasStringPieceField() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ public java.lang.String getStringPieceField() { java.lang.Object ref = stringPieceField_; 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()) { stringPieceField_ = s; } return s; } } /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getStringPieceFieldBytes() { java.lang.Object ref = stringPieceField_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringPieceField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CORDFIELD_FIELD_NUMBER = 6; private java.lang.Object cordField_; /** * optional string CordField = 6 [ctype = CORD]; */ public boolean hasCordField() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string CordField = 6 [ctype = CORD]; */ public java.lang.String getCordField() { java.lang.Object ref = cordField_; 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()) { cordField_ = s; } return s; } } /** * optional string CordField = 6 [ctype = CORD]; */ public com.google.protobuf.ByteString getCordFieldBytes() { java.lang.Object ref = cordField_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cordField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPEATEDPRIMITIVEFIELD_FIELD_NUMBER = 7; private java.util.List repeatedPrimitiveField_; /** * repeated int32 RepeatedPrimitiveField = 7; */ public java.util.List getRepeatedPrimitiveFieldList() { return repeatedPrimitiveField_; } /** * repeated int32 RepeatedPrimitiveField = 7; */ public int getRepeatedPrimitiveFieldCount() { return repeatedPrimitiveField_.size(); } /** * repeated int32 RepeatedPrimitiveField = 7; */ public int getRepeatedPrimitiveField(int index) { return repeatedPrimitiveField_.get(index); } public static final int REPEATEDSTRINGFIELD_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList repeatedStringField_; /** * repeated string RepeatedStringField = 8; */ public com.google.protobuf.ProtocolStringList getRepeatedStringFieldList() { return repeatedStringField_; } /** * repeated string RepeatedStringField = 8; */ public int getRepeatedStringFieldCount() { return repeatedStringField_.size(); } /** * repeated string RepeatedStringField = 8; */ public java.lang.String getRepeatedStringField(int index) { return repeatedStringField_.get(index); } /** * repeated string RepeatedStringField = 8; */ public com.google.protobuf.ByteString getRepeatedStringFieldBytes(int index) { return repeatedStringField_.getByteString(index); } public static final int REPEATEDENUMFIELD_FIELD_NUMBER = 9; private java.util.List repeatedEnumField_; /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ public java.util.List getRepeatedEnumFieldList() { return repeatedEnumField_; } /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ public int getRepeatedEnumFieldCount() { return repeatedEnumField_.size(); } /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ public protobuf_unittest.UnittestProto.ForeignEnum getRepeatedEnumField(int index) { return repeatedEnumField_.get(index); } public static final int REPEATEDMESSAGEFIELD_FIELD_NUMBER = 10; private java.util.List repeatedMessageField_; /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public java.util.List getRepeatedMessageFieldList() { return repeatedMessageField_; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public java.util.List getRepeatedMessageFieldOrBuilderList() { return repeatedMessageField_; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public int getRepeatedMessageFieldCount() { return repeatedMessageField_.size(); } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public protobuf_unittest.UnittestProto.ForeignMessage getRepeatedMessageField(int index) { return repeatedMessageField_.get(index); } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getRepeatedMessageFieldOrBuilder( int index) { return repeatedMessageField_.get(index); } public static final int REPEATEDSTRINGPIECEFIELD_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList repeatedStringPieceField_; /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public com.google.protobuf.ProtocolStringList getRepeatedStringPieceFieldList() { return repeatedStringPieceField_; } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public int getRepeatedStringPieceFieldCount() { return repeatedStringPieceField_.size(); } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public java.lang.String getRepeatedStringPieceField(int index) { return repeatedStringPieceField_.get(index); } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getRepeatedStringPieceFieldBytes(int index) { return repeatedStringPieceField_.getByteString(index); } public static final int REPEATEDCORDFIELD_FIELD_NUMBER = 12; private com.google.protobuf.LazyStringList repeatedCordField_; /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public com.google.protobuf.ProtocolStringList getRepeatedCordFieldList() { return repeatedCordField_; } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public int getRepeatedCordFieldCount() { return repeatedCordField_.size(); } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public java.lang.String getRepeatedCordField(int index) { return repeatedCordField_.get(index); } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public com.google.protobuf.ByteString getRepeatedCordFieldBytes(int index) { return repeatedCordField_.getByteString(index); } private void initFields() { primitiveField_ = 0; stringField_ = ""; enumField_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; messageField_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); stringPieceField_ = ""; cordField_ = ""; repeatedPrimitiveField_ = java.util.Collections.emptyList(); repeatedStringField_ = com.google.protobuf.LazyStringArrayList.EMPTY; repeatedEnumField_ = java.util.Collections.emptyList(); repeatedMessageField_ = java.util.Collections.emptyList(); repeatedStringPieceField_ = com.google.protobuf.LazyStringArrayList.EMPTY; repeatedCordField_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, primitiveField_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getStringFieldBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, enumField_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, messageField_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getStringPieceFieldBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getCordFieldBytes()); } for (int i = 0; i < repeatedPrimitiveField_.size(); i++) { output.writeInt32(7, repeatedPrimitiveField_.get(i)); } for (int i = 0; i < repeatedStringField_.size(); i++) { output.writeBytes(8, repeatedStringField_.getByteString(i)); } for (int i = 0; i < repeatedEnumField_.size(); i++) { output.writeEnum(9, repeatedEnumField_.get(i).getNumber()); } for (int i = 0; i < repeatedMessageField_.size(); i++) { output.writeMessage(10, repeatedMessageField_.get(i)); } for (int i = 0; i < repeatedStringPieceField_.size(); i++) { output.writeBytes(11, repeatedStringPieceField_.getByteString(i)); } for (int i = 0; i < repeatedCordField_.size(); i++) { output.writeBytes(12, repeatedCordField_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, primitiveField_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getStringFieldBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, enumField_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, messageField_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getStringPieceFieldBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getCordFieldBytes()); } { int dataSize = 0; for (int i = 0; i < repeatedPrimitiveField_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(repeatedPrimitiveField_.get(i)); } size += dataSize; size += 1 * getRepeatedPrimitiveFieldList().size(); } { int dataSize = 0; for (int i = 0; i < repeatedStringField_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(repeatedStringField_.getByteString(i)); } size += dataSize; size += 1 * getRepeatedStringFieldList().size(); } { int dataSize = 0; for (int i = 0; i < repeatedEnumField_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(repeatedEnumField_.get(i).getNumber()); } size += dataSize; size += 1 * repeatedEnumField_.size(); } for (int i = 0; i < repeatedMessageField_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, repeatedMessageField_.get(i)); } { int dataSize = 0; for (int i = 0; i < repeatedStringPieceField_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(repeatedStringPieceField_.getByteString(i)); } size += dataSize; size += 1 * getRepeatedStringPieceFieldList().size(); } { int dataSize = 0; for (int i = 0; i < repeatedCordField_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(repeatedCordField_.getByteString(i)); } size += dataSize; size += 1 * getRepeatedCordFieldList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestCamelCaseFieldNames prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestCamelCaseFieldNames} * *
     * Test message with CamelCase field names.  This violates Protocol Buffer
     * standard style.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestCamelCaseFieldNames) protobuf_unittest.UnittestProto.TestCamelCaseFieldNamesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestCamelCaseFieldNames_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestCamelCaseFieldNames_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestCamelCaseFieldNames.class, protobuf_unittest.UnittestProto.TestCamelCaseFieldNames.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestCamelCaseFieldNames.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMessageFieldFieldBuilder(); getRepeatedMessageFieldFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); primitiveField_ = 0; bitField0_ = (bitField0_ & ~0x00000001); stringField_ = ""; bitField0_ = (bitField0_ & ~0x00000002); enumField_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; bitField0_ = (bitField0_ & ~0x00000004); if (messageFieldBuilder_ == null) { messageField_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); } else { messageFieldBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); stringPieceField_ = ""; bitField0_ = (bitField0_ & ~0x00000010); cordField_ = ""; bitField0_ = (bitField0_ & ~0x00000020); repeatedPrimitiveField_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); repeatedStringField_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); repeatedEnumField_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); if (repeatedMessageFieldBuilder_ == null) { repeatedMessageField_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { repeatedMessageFieldBuilder_.clear(); } repeatedStringPieceField_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000400); repeatedCordField_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000800); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestCamelCaseFieldNames_descriptor; } public protobuf_unittest.UnittestProto.TestCamelCaseFieldNames getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestCamelCaseFieldNames.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestCamelCaseFieldNames build() { protobuf_unittest.UnittestProto.TestCamelCaseFieldNames result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestCamelCaseFieldNames buildPartial() { protobuf_unittest.UnittestProto.TestCamelCaseFieldNames result = new protobuf_unittest.UnittestProto.TestCamelCaseFieldNames(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.primitiveField_ = primitiveField_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.stringField_ = stringField_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.enumField_ = enumField_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (messageFieldBuilder_ == null) { result.messageField_ = messageField_; } else { result.messageField_ = messageFieldBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.stringPieceField_ = stringPieceField_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.cordField_ = cordField_; if (((bitField0_ & 0x00000040) == 0x00000040)) { repeatedPrimitiveField_ = java.util.Collections.unmodifiableList(repeatedPrimitiveField_); bitField0_ = (bitField0_ & ~0x00000040); } result.repeatedPrimitiveField_ = repeatedPrimitiveField_; if (((bitField0_ & 0x00000080) == 0x00000080)) { repeatedStringField_ = repeatedStringField_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000080); } result.repeatedStringField_ = repeatedStringField_; if (((bitField0_ & 0x00000100) == 0x00000100)) { repeatedEnumField_ = java.util.Collections.unmodifiableList(repeatedEnumField_); bitField0_ = (bitField0_ & ~0x00000100); } result.repeatedEnumField_ = repeatedEnumField_; if (repeatedMessageFieldBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { repeatedMessageField_ = java.util.Collections.unmodifiableList(repeatedMessageField_); bitField0_ = (bitField0_ & ~0x00000200); } result.repeatedMessageField_ = repeatedMessageField_; } else { result.repeatedMessageField_ = repeatedMessageFieldBuilder_.build(); } if (((bitField0_ & 0x00000400) == 0x00000400)) { repeatedStringPieceField_ = repeatedStringPieceField_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000400); } result.repeatedStringPieceField_ = repeatedStringPieceField_; if (((bitField0_ & 0x00000800) == 0x00000800)) { repeatedCordField_ = repeatedCordField_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000800); } result.repeatedCordField_ = repeatedCordField_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestCamelCaseFieldNames) { return mergeFrom((protobuf_unittest.UnittestProto.TestCamelCaseFieldNames)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestCamelCaseFieldNames other) { if (other == protobuf_unittest.UnittestProto.TestCamelCaseFieldNames.getDefaultInstance()) return this; if (other.hasPrimitiveField()) { setPrimitiveField(other.getPrimitiveField()); } if (other.hasStringField()) { bitField0_ |= 0x00000002; stringField_ = other.stringField_; onChanged(); } if (other.hasEnumField()) { setEnumField(other.getEnumField()); } if (other.hasMessageField()) { mergeMessageField(other.getMessageField()); } if (other.hasStringPieceField()) { bitField0_ |= 0x00000010; stringPieceField_ = other.stringPieceField_; onChanged(); } if (other.hasCordField()) { bitField0_ |= 0x00000020; cordField_ = other.cordField_; onChanged(); } if (!other.repeatedPrimitiveField_.isEmpty()) { if (repeatedPrimitiveField_.isEmpty()) { repeatedPrimitiveField_ = other.repeatedPrimitiveField_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureRepeatedPrimitiveFieldIsMutable(); repeatedPrimitiveField_.addAll(other.repeatedPrimitiveField_); } onChanged(); } if (!other.repeatedStringField_.isEmpty()) { if (repeatedStringField_.isEmpty()) { repeatedStringField_ = other.repeatedStringField_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureRepeatedStringFieldIsMutable(); repeatedStringField_.addAll(other.repeatedStringField_); } onChanged(); } if (!other.repeatedEnumField_.isEmpty()) { if (repeatedEnumField_.isEmpty()) { repeatedEnumField_ = other.repeatedEnumField_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureRepeatedEnumFieldIsMutable(); repeatedEnumField_.addAll(other.repeatedEnumField_); } onChanged(); } if (repeatedMessageFieldBuilder_ == null) { if (!other.repeatedMessageField_.isEmpty()) { if (repeatedMessageField_.isEmpty()) { repeatedMessageField_ = other.repeatedMessageField_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureRepeatedMessageFieldIsMutable(); repeatedMessageField_.addAll(other.repeatedMessageField_); } onChanged(); } } else { if (!other.repeatedMessageField_.isEmpty()) { if (repeatedMessageFieldBuilder_.isEmpty()) { repeatedMessageFieldBuilder_.dispose(); repeatedMessageFieldBuilder_ = null; repeatedMessageField_ = other.repeatedMessageField_; bitField0_ = (bitField0_ & ~0x00000200); repeatedMessageFieldBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepeatedMessageFieldFieldBuilder() : null; } else { repeatedMessageFieldBuilder_.addAllMessages(other.repeatedMessageField_); } } } if (!other.repeatedStringPieceField_.isEmpty()) { if (repeatedStringPieceField_.isEmpty()) { repeatedStringPieceField_ = other.repeatedStringPieceField_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureRepeatedStringPieceFieldIsMutable(); repeatedStringPieceField_.addAll(other.repeatedStringPieceField_); } onChanged(); } if (!other.repeatedCordField_.isEmpty()) { if (repeatedCordField_.isEmpty()) { repeatedCordField_ = other.repeatedCordField_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureRepeatedCordFieldIsMutable(); repeatedCordField_.addAll(other.repeatedCordField_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestCamelCaseFieldNames parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestCamelCaseFieldNames) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int primitiveField_ ; /** * optional int32 PrimitiveField = 1; */ public boolean hasPrimitiveField() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 PrimitiveField = 1; */ public int getPrimitiveField() { return primitiveField_; } /** * optional int32 PrimitiveField = 1; */ public Builder setPrimitiveField(int value) { bitField0_ |= 0x00000001; primitiveField_ = value; onChanged(); return this; } /** * optional int32 PrimitiveField = 1; */ public Builder clearPrimitiveField() { bitField0_ = (bitField0_ & ~0x00000001); primitiveField_ = 0; onChanged(); return this; } private java.lang.Object stringField_ = ""; /** * optional string StringField = 2; */ public boolean hasStringField() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string StringField = 2; */ public java.lang.String getStringField() { java.lang.Object ref = stringField_; 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()) { stringField_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string StringField = 2; */ public com.google.protobuf.ByteString getStringFieldBytes() { java.lang.Object ref = stringField_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string StringField = 2; */ public Builder setStringField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; stringField_ = value; onChanged(); return this; } /** * optional string StringField = 2; */ public Builder clearStringField() { bitField0_ = (bitField0_ & ~0x00000002); stringField_ = getDefaultInstance().getStringField(); onChanged(); return this; } /** * optional string StringField = 2; */ public Builder setStringFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; stringField_ = value; onChanged(); return this; } private protobuf_unittest.UnittestProto.ForeignEnum enumField_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; /** * optional .protobuf_unittest.ForeignEnum EnumField = 3; */ public boolean hasEnumField() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.ForeignEnum EnumField = 3; */ public protobuf_unittest.UnittestProto.ForeignEnum getEnumField() { return enumField_; } /** * optional .protobuf_unittest.ForeignEnum EnumField = 3; */ public Builder setEnumField(protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; enumField_ = value; onChanged(); return this; } /** * optional .protobuf_unittest.ForeignEnum EnumField = 3; */ public Builder clearEnumField() { bitField0_ = (bitField0_ & ~0x00000004); enumField_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; onChanged(); return this; } private protobuf_unittest.UnittestProto.ForeignMessage messageField_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> messageFieldBuilder_; /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public boolean hasMessageField() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public protobuf_unittest.UnittestProto.ForeignMessage getMessageField() { if (messageFieldBuilder_ == null) { return messageField_; } else { return messageFieldBuilder_.getMessage(); } } /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public Builder setMessageField(protobuf_unittest.UnittestProto.ForeignMessage value) { if (messageFieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } messageField_ = value; onChanged(); } else { messageFieldBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public Builder setMessageField( protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (messageFieldBuilder_ == null) { messageField_ = builderForValue.build(); onChanged(); } else { messageFieldBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public Builder mergeMessageField(protobuf_unittest.UnittestProto.ForeignMessage value) { if (messageFieldBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && messageField_ != protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()) { messageField_ = protobuf_unittest.UnittestProto.ForeignMessage.newBuilder(messageField_).mergeFrom(value).buildPartial(); } else { messageField_ = value; } onChanged(); } else { messageFieldBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public Builder clearMessageField() { if (messageFieldBuilder_ == null) { messageField_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); onChanged(); } else { messageFieldBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder getMessageFieldBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMessageFieldFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getMessageFieldOrBuilder() { if (messageFieldBuilder_ != null) { return messageFieldBuilder_.getMessageOrBuilder(); } else { return messageField_; } } /** * optional .protobuf_unittest.ForeignMessage MessageField = 4; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> getMessageFieldFieldBuilder() { if (messageFieldBuilder_ == null) { messageFieldBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>( getMessageField(), getParentForChildren(), isClean()); messageField_ = null; } return messageFieldBuilder_; } private java.lang.Object stringPieceField_ = ""; /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ public boolean hasStringPieceField() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ public java.lang.String getStringPieceField() { java.lang.Object ref = stringPieceField_; 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()) { stringPieceField_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getStringPieceFieldBytes() { java.lang.Object ref = stringPieceField_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringPieceField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ public Builder setStringPieceField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; stringPieceField_ = value; onChanged(); return this; } /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ public Builder clearStringPieceField() { bitField0_ = (bitField0_ & ~0x00000010); stringPieceField_ = getDefaultInstance().getStringPieceField(); onChanged(); return this; } /** * optional string StringPieceField = 5 [ctype = STRING_PIECE]; */ public Builder setStringPieceFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; stringPieceField_ = value; onChanged(); return this; } private java.lang.Object cordField_ = ""; /** * optional string CordField = 6 [ctype = CORD]; */ public boolean hasCordField() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string CordField = 6 [ctype = CORD]; */ public java.lang.String getCordField() { java.lang.Object ref = cordField_; 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()) { cordField_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string CordField = 6 [ctype = CORD]; */ public com.google.protobuf.ByteString getCordFieldBytes() { java.lang.Object ref = cordField_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cordField_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string CordField = 6 [ctype = CORD]; */ public Builder setCordField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; cordField_ = value; onChanged(); return this; } /** * optional string CordField = 6 [ctype = CORD]; */ public Builder clearCordField() { bitField0_ = (bitField0_ & ~0x00000020); cordField_ = getDefaultInstance().getCordField(); onChanged(); return this; } /** * optional string CordField = 6 [ctype = CORD]; */ public Builder setCordFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; cordField_ = value; onChanged(); return this; } private java.util.List repeatedPrimitiveField_ = java.util.Collections.emptyList(); private void ensureRepeatedPrimitiveFieldIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { repeatedPrimitiveField_ = new java.util.ArrayList(repeatedPrimitiveField_); bitField0_ |= 0x00000040; } } /** * repeated int32 RepeatedPrimitiveField = 7; */ public java.util.List getRepeatedPrimitiveFieldList() { return java.util.Collections.unmodifiableList(repeatedPrimitiveField_); } /** * repeated int32 RepeatedPrimitiveField = 7; */ public int getRepeatedPrimitiveFieldCount() { return repeatedPrimitiveField_.size(); } /** * repeated int32 RepeatedPrimitiveField = 7; */ public int getRepeatedPrimitiveField(int index) { return repeatedPrimitiveField_.get(index); } /** * repeated int32 RepeatedPrimitiveField = 7; */ public Builder setRepeatedPrimitiveField( int index, int value) { ensureRepeatedPrimitiveFieldIsMutable(); repeatedPrimitiveField_.set(index, value); onChanged(); return this; } /** * repeated int32 RepeatedPrimitiveField = 7; */ public Builder addRepeatedPrimitiveField(int value) { ensureRepeatedPrimitiveFieldIsMutable(); repeatedPrimitiveField_.add(value); onChanged(); return this; } /** * repeated int32 RepeatedPrimitiveField = 7; */ public Builder addAllRepeatedPrimitiveField( java.lang.Iterable values) { ensureRepeatedPrimitiveFieldIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedPrimitiveField_); onChanged(); return this; } /** * repeated int32 RepeatedPrimitiveField = 7; */ public Builder clearRepeatedPrimitiveField() { repeatedPrimitiveField_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private com.google.protobuf.LazyStringList repeatedStringField_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRepeatedStringFieldIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { repeatedStringField_ = new com.google.protobuf.LazyStringArrayList(repeatedStringField_); bitField0_ |= 0x00000080; } } /** * repeated string RepeatedStringField = 8; */ public com.google.protobuf.ProtocolStringList getRepeatedStringFieldList() { return repeatedStringField_.getUnmodifiableView(); } /** * repeated string RepeatedStringField = 8; */ public int getRepeatedStringFieldCount() { return repeatedStringField_.size(); } /** * repeated string RepeatedStringField = 8; */ public java.lang.String getRepeatedStringField(int index) { return repeatedStringField_.get(index); } /** * repeated string RepeatedStringField = 8; */ public com.google.protobuf.ByteString getRepeatedStringFieldBytes(int index) { return repeatedStringField_.getByteString(index); } /** * repeated string RepeatedStringField = 8; */ public Builder setRepeatedStringField( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringFieldIsMutable(); repeatedStringField_.set(index, value); onChanged(); return this; } /** * repeated string RepeatedStringField = 8; */ public Builder addRepeatedStringField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringFieldIsMutable(); repeatedStringField_.add(value); onChanged(); return this; } /** * repeated string RepeatedStringField = 8; */ public Builder addAllRepeatedStringField( java.lang.Iterable values) { ensureRepeatedStringFieldIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedStringField_); onChanged(); return this; } /** * repeated string RepeatedStringField = 8; */ public Builder clearRepeatedStringField() { repeatedStringField_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * repeated string RepeatedStringField = 8; */ public Builder addRepeatedStringFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringFieldIsMutable(); repeatedStringField_.add(value); onChanged(); return this; } private java.util.List repeatedEnumField_ = java.util.Collections.emptyList(); private void ensureRepeatedEnumFieldIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { repeatedEnumField_ = new java.util.ArrayList(repeatedEnumField_); bitField0_ |= 0x00000100; } } /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ public java.util.List getRepeatedEnumFieldList() { return java.util.Collections.unmodifiableList(repeatedEnumField_); } /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ public int getRepeatedEnumFieldCount() { return repeatedEnumField_.size(); } /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ public protobuf_unittest.UnittestProto.ForeignEnum getRepeatedEnumField(int index) { return repeatedEnumField_.get(index); } /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ public Builder setRepeatedEnumField( int index, protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedEnumFieldIsMutable(); repeatedEnumField_.set(index, value); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ public Builder addRepeatedEnumField(protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedEnumFieldIsMutable(); repeatedEnumField_.add(value); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ public Builder addAllRepeatedEnumField( java.lang.Iterable values) { ensureRepeatedEnumFieldIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedEnumField_); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9; */ public Builder clearRepeatedEnumField() { repeatedEnumField_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } private java.util.List repeatedMessageField_ = java.util.Collections.emptyList(); private void ensureRepeatedMessageFieldIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { repeatedMessageField_ = new java.util.ArrayList(repeatedMessageField_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> repeatedMessageFieldBuilder_; /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public java.util.List getRepeatedMessageFieldList() { if (repeatedMessageFieldBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedMessageField_); } else { return repeatedMessageFieldBuilder_.getMessageList(); } } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public int getRepeatedMessageFieldCount() { if (repeatedMessageFieldBuilder_ == null) { return repeatedMessageField_.size(); } else { return repeatedMessageFieldBuilder_.getCount(); } } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public protobuf_unittest.UnittestProto.ForeignMessage getRepeatedMessageField(int index) { if (repeatedMessageFieldBuilder_ == null) { return repeatedMessageField_.get(index); } else { return repeatedMessageFieldBuilder_.getMessage(index); } } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public Builder setRepeatedMessageField( int index, protobuf_unittest.UnittestProto.ForeignMessage value) { if (repeatedMessageFieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedMessageFieldIsMutable(); repeatedMessageField_.set(index, value); onChanged(); } else { repeatedMessageFieldBuilder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public Builder setRepeatedMessageField( int index, protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (repeatedMessageFieldBuilder_ == null) { ensureRepeatedMessageFieldIsMutable(); repeatedMessageField_.set(index, builderForValue.build()); onChanged(); } else { repeatedMessageFieldBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public Builder addRepeatedMessageField(protobuf_unittest.UnittestProto.ForeignMessage value) { if (repeatedMessageFieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedMessageFieldIsMutable(); repeatedMessageField_.add(value); onChanged(); } else { repeatedMessageFieldBuilder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public Builder addRepeatedMessageField( int index, protobuf_unittest.UnittestProto.ForeignMessage value) { if (repeatedMessageFieldBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedMessageFieldIsMutable(); repeatedMessageField_.add(index, value); onChanged(); } else { repeatedMessageFieldBuilder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public Builder addRepeatedMessageField( protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (repeatedMessageFieldBuilder_ == null) { ensureRepeatedMessageFieldIsMutable(); repeatedMessageField_.add(builderForValue.build()); onChanged(); } else { repeatedMessageFieldBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public Builder addRepeatedMessageField( int index, protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (repeatedMessageFieldBuilder_ == null) { ensureRepeatedMessageFieldIsMutable(); repeatedMessageField_.add(index, builderForValue.build()); onChanged(); } else { repeatedMessageFieldBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public Builder addAllRepeatedMessageField( java.lang.Iterable values) { if (repeatedMessageFieldBuilder_ == null) { ensureRepeatedMessageFieldIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedMessageField_); onChanged(); } else { repeatedMessageFieldBuilder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public Builder clearRepeatedMessageField() { if (repeatedMessageFieldBuilder_ == null) { repeatedMessageField_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { repeatedMessageFieldBuilder_.clear(); } return this; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public Builder removeRepeatedMessageField(int index) { if (repeatedMessageFieldBuilder_ == null) { ensureRepeatedMessageFieldIsMutable(); repeatedMessageField_.remove(index); onChanged(); } else { repeatedMessageFieldBuilder_.remove(index); } return this; } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder getRepeatedMessageFieldBuilder( int index) { return getRepeatedMessageFieldFieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getRepeatedMessageFieldOrBuilder( int index) { if (repeatedMessageFieldBuilder_ == null) { return repeatedMessageField_.get(index); } else { return repeatedMessageFieldBuilder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public java.util.List getRepeatedMessageFieldOrBuilderList() { if (repeatedMessageFieldBuilder_ != null) { return repeatedMessageFieldBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedMessageField_); } } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder addRepeatedMessageFieldBuilder() { return getRepeatedMessageFieldFieldBuilder().addBuilder( protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder addRepeatedMessageFieldBuilder( int index) { return getRepeatedMessageFieldFieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()); } /** * repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10; */ public java.util.List getRepeatedMessageFieldBuilderList() { return getRepeatedMessageFieldFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> getRepeatedMessageFieldFieldBuilder() { if (repeatedMessageFieldBuilder_ == null) { repeatedMessageFieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>( repeatedMessageField_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); repeatedMessageField_ = null; } return repeatedMessageFieldBuilder_; } private com.google.protobuf.LazyStringList repeatedStringPieceField_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRepeatedStringPieceFieldIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { repeatedStringPieceField_ = new com.google.protobuf.LazyStringArrayList(repeatedStringPieceField_); bitField0_ |= 0x00000400; } } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public com.google.protobuf.ProtocolStringList getRepeatedStringPieceFieldList() { return repeatedStringPieceField_.getUnmodifiableView(); } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public int getRepeatedStringPieceFieldCount() { return repeatedStringPieceField_.size(); } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public java.lang.String getRepeatedStringPieceField(int index) { return repeatedStringPieceField_.get(index); } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getRepeatedStringPieceFieldBytes(int index) { return repeatedStringPieceField_.getByteString(index); } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public Builder setRepeatedStringPieceField( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringPieceFieldIsMutable(); repeatedStringPieceField_.set(index, value); onChanged(); return this; } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public Builder addRepeatedStringPieceField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringPieceFieldIsMutable(); repeatedStringPieceField_.add(value); onChanged(); return this; } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public Builder addAllRepeatedStringPieceField( java.lang.Iterable values) { ensureRepeatedStringPieceFieldIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedStringPieceField_); onChanged(); return this; } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public Builder clearRepeatedStringPieceField() { repeatedStringPieceField_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE]; */ public Builder addRepeatedStringPieceFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringPieceFieldIsMutable(); repeatedStringPieceField_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList repeatedCordField_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRepeatedCordFieldIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { repeatedCordField_ = new com.google.protobuf.LazyStringArrayList(repeatedCordField_); bitField0_ |= 0x00000800; } } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public com.google.protobuf.ProtocolStringList getRepeatedCordFieldList() { return repeatedCordField_.getUnmodifiableView(); } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public int getRepeatedCordFieldCount() { return repeatedCordField_.size(); } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public java.lang.String getRepeatedCordField(int index) { return repeatedCordField_.get(index); } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public com.google.protobuf.ByteString getRepeatedCordFieldBytes(int index) { return repeatedCordField_.getByteString(index); } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public Builder setRepeatedCordField( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedCordFieldIsMutable(); repeatedCordField_.set(index, value); onChanged(); return this; } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public Builder addRepeatedCordField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedCordFieldIsMutable(); repeatedCordField_.add(value); onChanged(); return this; } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public Builder addAllRepeatedCordField( java.lang.Iterable values) { ensureRepeatedCordFieldIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedCordField_); onChanged(); return this; } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public Builder clearRepeatedCordField() { repeatedCordField_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * repeated string RepeatedCordField = 12 [ctype = CORD]; */ public Builder addRepeatedCordFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedCordFieldIsMutable(); repeatedCordField_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestCamelCaseFieldNames) } static { defaultInstance = new TestCamelCaseFieldNames(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestCamelCaseFieldNames) } public interface TestFieldOrderingsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestFieldOrderings) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { /** * optional string my_string = 11; */ boolean hasMyString(); /** * optional string my_string = 11; */ java.lang.String getMyString(); /** * optional string my_string = 11; */ com.google.protobuf.ByteString getMyStringBytes(); /** * optional int64 my_int = 1; */ boolean hasMyInt(); /** * optional int64 my_int = 1; */ long getMyInt(); /** * optional float my_float = 101; */ boolean hasMyFloat(); /** * optional float my_float = 101; */ float getMyFloat(); } /** * Protobuf type {@code protobuf_unittest.TestFieldOrderings} * *
   * We list fields out of order, to ensure that we're using field number and not
   * field index to determine serialization order.
   * 
*/ public static final class TestFieldOrderings extends com.google.protobuf.GeneratedMessage.ExtendableMessage< TestFieldOrderings> implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestFieldOrderings) TestFieldOrderingsOrBuilder { // Use TestFieldOrderings.newBuilder() to construct. private TestFieldOrderings(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestFieldOrderings(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestFieldOrderings defaultInstance; public static TestFieldOrderings getDefaultInstance() { return defaultInstance; } public TestFieldOrderings getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestFieldOrderings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000002; myInt_ = input.readInt64(); break; } case 90: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; myString_ = bs; break; } case 813: { bitField0_ |= 0x00000004; myFloat_ = input.readFloat(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestFieldOrderings_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestFieldOrderings_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestFieldOrderings.class, protobuf_unittest.UnittestProto.TestFieldOrderings.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestFieldOrderings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestFieldOrderings(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int MY_STRING_FIELD_NUMBER = 11; private java.lang.Object myString_; /** * optional string my_string = 11; */ public boolean hasMyString() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string my_string = 11; */ public java.lang.String getMyString() { java.lang.Object ref = myString_; 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()) { myString_ = s; } return s; } } /** * optional string my_string = 11; */ public com.google.protobuf.ByteString getMyStringBytes() { java.lang.Object ref = myString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); myString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MY_INT_FIELD_NUMBER = 1; private long myInt_; /** * optional int64 my_int = 1; */ public boolean hasMyInt() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 my_int = 1; */ public long getMyInt() { return myInt_; } public static final int MY_FLOAT_FIELD_NUMBER = 101; private float myFloat_; /** * optional float my_float = 101; */ public boolean hasMyFloat() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional float my_float = 101; */ public float getMyFloat() { return myFloat_; } private void initFields() { myString_ = ""; myInt_ = 0L; myFloat_ = 0F; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(1, myInt_); } extensionWriter.writeUntil(11, output); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(11, getMyStringBytes()); } extensionWriter.writeUntil(101, output); if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeFloat(101, myFloat_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, myInt_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, getMyStringBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(101, myFloat_); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestFieldOrderings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestFieldOrderings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestFieldOrderings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestFieldOrderings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestFieldOrderings parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestFieldOrderings parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestFieldOrderings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestFieldOrderings parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestFieldOrderings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestFieldOrderings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestFieldOrderings prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestFieldOrderings} * *
     * We list fields out of order, to ensure that we're using field number and not
     * field index to determine serialization order.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest.UnittestProto.TestFieldOrderings, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestFieldOrderings) protobuf_unittest.UnittestProto.TestFieldOrderingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestFieldOrderings_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestFieldOrderings_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestFieldOrderings.class, protobuf_unittest.UnittestProto.TestFieldOrderings.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestFieldOrderings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); myString_ = ""; bitField0_ = (bitField0_ & ~0x00000001); myInt_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); myFloat_ = 0F; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestFieldOrderings_descriptor; } public protobuf_unittest.UnittestProto.TestFieldOrderings getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestFieldOrderings.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestFieldOrderings build() { protobuf_unittest.UnittestProto.TestFieldOrderings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestFieldOrderings buildPartial() { protobuf_unittest.UnittestProto.TestFieldOrderings result = new protobuf_unittest.UnittestProto.TestFieldOrderings(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.myString_ = myString_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.myInt_ = myInt_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.myFloat_ = myFloat_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestFieldOrderings) { return mergeFrom((protobuf_unittest.UnittestProto.TestFieldOrderings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestFieldOrderings other) { if (other == protobuf_unittest.UnittestProto.TestFieldOrderings.getDefaultInstance()) return this; if (other.hasMyString()) { bitField0_ |= 0x00000001; myString_ = other.myString_; onChanged(); } if (other.hasMyInt()) { setMyInt(other.getMyInt()); } if (other.hasMyFloat()) { setMyFloat(other.getMyFloat()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestFieldOrderings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestFieldOrderings) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object myString_ = ""; /** * optional string my_string = 11; */ public boolean hasMyString() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string my_string = 11; */ public java.lang.String getMyString() { java.lang.Object ref = myString_; 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()) { myString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string my_string = 11; */ public com.google.protobuf.ByteString getMyStringBytes() { java.lang.Object ref = myString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); myString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string my_string = 11; */ public Builder setMyString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; myString_ = value; onChanged(); return this; } /** * optional string my_string = 11; */ public Builder clearMyString() { bitField0_ = (bitField0_ & ~0x00000001); myString_ = getDefaultInstance().getMyString(); onChanged(); return this; } /** * optional string my_string = 11; */ public Builder setMyStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; myString_ = value; onChanged(); return this; } private long myInt_ ; /** * optional int64 my_int = 1; */ public boolean hasMyInt() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 my_int = 1; */ public long getMyInt() { return myInt_; } /** * optional int64 my_int = 1; */ public Builder setMyInt(long value) { bitField0_ |= 0x00000002; myInt_ = value; onChanged(); return this; } /** * optional int64 my_int = 1; */ public Builder clearMyInt() { bitField0_ = (bitField0_ & ~0x00000002); myInt_ = 0L; onChanged(); return this; } private float myFloat_ ; /** * optional float my_float = 101; */ public boolean hasMyFloat() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional float my_float = 101; */ public float getMyFloat() { return myFloat_; } /** * optional float my_float = 101; */ public Builder setMyFloat(float value) { bitField0_ |= 0x00000004; myFloat_ = value; onChanged(); return this; } /** * optional float my_float = 101; */ public Builder clearMyFloat() { bitField0_ = (bitField0_ & ~0x00000004); myFloat_ = 0F; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestFieldOrderings) } static { defaultInstance = new TestFieldOrderings(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestFieldOrderings) } public interface TestExtremeDefaultValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestExtremeDefaultValues) com.google.protobuf.MessageOrBuilder { /** * optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"]; */ boolean hasEscapedBytes(); /** * optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"]; */ com.google.protobuf.ByteString getEscapedBytes(); /** * optional uint32 large_uint32 = 2 [default = 4294967295]; */ boolean hasLargeUint32(); /** * optional uint32 large_uint32 = 2 [default = 4294967295]; */ int getLargeUint32(); /** * optional uint64 large_uint64 = 3 [default = 18446744073709551615]; */ boolean hasLargeUint64(); /** * optional uint64 large_uint64 = 3 [default = 18446744073709551615]; */ long getLargeUint64(); /** * optional int32 small_int32 = 4 [default = -2147483647]; */ boolean hasSmallInt32(); /** * optional int32 small_int32 = 4 [default = -2147483647]; */ int getSmallInt32(); /** * optional int64 small_int64 = 5 [default = -9223372036854775807]; */ boolean hasSmallInt64(); /** * optional int64 small_int64 = 5 [default = -9223372036854775807]; */ long getSmallInt64(); /** * optional int32 really_small_int32 = 21 [default = -2147483648]; */ boolean hasReallySmallInt32(); /** * optional int32 really_small_int32 = 21 [default = -2147483648]; */ int getReallySmallInt32(); /** * optional int64 really_small_int64 = 22 [default = -9223372036854775808]; */ boolean hasReallySmallInt64(); /** * optional int64 really_small_int64 = 22 [default = -9223372036854775808]; */ long getReallySmallInt64(); /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
     * The default value here is UTF-8 for "\u1234".  (We could also just type
     * the UTF-8 text directly into this text file rather than escape it, but
     * lots of people use editors that would be confused by this.)
     * 
*/ boolean hasUtf8String(); /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
     * The default value here is UTF-8 for "\u1234".  (We could also just type
     * the UTF-8 text directly into this text file rather than escape it, but
     * lots of people use editors that would be confused by this.)
     * 
*/ java.lang.String getUtf8String(); /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
     * The default value here is UTF-8 for "\u1234".  (We could also just type
     * the UTF-8 text directly into this text file rather than escape it, but
     * lots of people use editors that would be confused by this.)
     * 
*/ com.google.protobuf.ByteString getUtf8StringBytes(); /** * optional float zero_float = 7 [default = 0]; * *
     * Tests for single-precision floating-point values.
     * 
*/ boolean hasZeroFloat(); /** * optional float zero_float = 7 [default = 0]; * *
     * Tests for single-precision floating-point values.
     * 
*/ float getZeroFloat(); /** * optional float one_float = 8 [default = 1]; */ boolean hasOneFloat(); /** * optional float one_float = 8 [default = 1]; */ float getOneFloat(); /** * optional float small_float = 9 [default = 1.5]; */ boolean hasSmallFloat(); /** * optional float small_float = 9 [default = 1.5]; */ float getSmallFloat(); /** * optional float negative_one_float = 10 [default = -1]; */ boolean hasNegativeOneFloat(); /** * optional float negative_one_float = 10 [default = -1]; */ float getNegativeOneFloat(); /** * optional float negative_float = 11 [default = -1.5]; */ boolean hasNegativeFloat(); /** * optional float negative_float = 11 [default = -1.5]; */ float getNegativeFloat(); /** * optional float large_float = 12 [default = 2e+008]; * *
     * Using exponents
     * 
*/ boolean hasLargeFloat(); /** * optional float large_float = 12 [default = 2e+008]; * *
     * Using exponents
     * 
*/ float getLargeFloat(); /** * optional float small_negative_float = 13 [default = -8e-028]; */ boolean hasSmallNegativeFloat(); /** * optional float small_negative_float = 13 [default = -8e-028]; */ float getSmallNegativeFloat(); /** * optional double inf_double = 14 [default = inf]; * *
     * Text for nonfinite floating-point values.
     * 
*/ boolean hasInfDouble(); /** * optional double inf_double = 14 [default = inf]; * *
     * Text for nonfinite floating-point values.
     * 
*/ double getInfDouble(); /** * optional double neg_inf_double = 15 [default = -inf]; */ boolean hasNegInfDouble(); /** * optional double neg_inf_double = 15 [default = -inf]; */ double getNegInfDouble(); /** * optional double nan_double = 16 [default = nan]; */ boolean hasNanDouble(); /** * optional double nan_double = 16 [default = nan]; */ double getNanDouble(); /** * optional float inf_float = 17 [default = inf]; */ boolean hasInfFloat(); /** * optional float inf_float = 17 [default = inf]; */ float getInfFloat(); /** * optional float neg_inf_float = 18 [default = -inf]; */ boolean hasNegInfFloat(); /** * optional float neg_inf_float = 18 [default = -inf]; */ float getNegInfFloat(); /** * optional float nan_float = 19 [default = nan]; */ boolean hasNanFloat(); /** * optional float nan_float = 19 [default = nan]; */ float getNanFloat(); /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
     * Tests for C++ trigraphs.
     * Trigraphs should be escaped in C++ generated files, but they should not be
     * escaped for other languages.
     * Note that in .proto file, "\?" is a valid way to escape ? in string
     * literals.
     * 
*/ boolean hasCppTrigraph(); /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
     * Tests for C++ trigraphs.
     * Trigraphs should be escaped in C++ generated files, but they should not be
     * escaped for other languages.
     * Note that in .proto file, "\?" is a valid way to escape ? in string
     * literals.
     * 
*/ java.lang.String getCppTrigraph(); /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
     * Tests for C++ trigraphs.
     * Trigraphs should be escaped in C++ generated files, but they should not be
     * escaped for other languages.
     * Note that in .proto file, "\?" is a valid way to escape ? in string
     * literals.
     * 
*/ com.google.protobuf.ByteString getCppTrigraphBytes(); /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
     * String defaults containing the character '\000'
     * 
*/ boolean hasStringWithZero(); /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
     * String defaults containing the character '\000'
     * 
*/ java.lang.String getStringWithZero(); /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
     * String defaults containing the character '\000'
     * 
*/ com.google.protobuf.ByteString getStringWithZeroBytes(); /** * optional bytes bytes_with_zero = 24 [default = "wor\000ld"]; */ boolean hasBytesWithZero(); /** * optional bytes bytes_with_zero = 24 [default = "wor\000ld"]; */ com.google.protobuf.ByteString getBytesWithZero(); /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ boolean hasStringPieceWithZero(); /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ java.lang.String getStringPieceWithZero(); /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ com.google.protobuf.ByteString getStringPieceWithZeroBytes(); /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ boolean hasCordWithZero(); /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ java.lang.String getCordWithZero(); /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ com.google.protobuf.ByteString getCordWithZeroBytes(); /** * optional string replacement_string = 27 [default = "${unknown}"]; */ boolean hasReplacementString(); /** * optional string replacement_string = 27 [default = "${unknown}"]; */ java.lang.String getReplacementString(); /** * optional string replacement_string = 27 [default = "${unknown}"]; */ com.google.protobuf.ByteString getReplacementStringBytes(); } /** * Protobuf type {@code protobuf_unittest.TestExtremeDefaultValues} */ public static final class TestExtremeDefaultValues extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestExtremeDefaultValues) TestExtremeDefaultValuesOrBuilder { // Use TestExtremeDefaultValues.newBuilder() to construct. private TestExtremeDefaultValues(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestExtremeDefaultValues(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestExtremeDefaultValues defaultInstance; public static TestExtremeDefaultValues getDefaultInstance() { return defaultInstance; } public TestExtremeDefaultValues getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestExtremeDefaultValues( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; escapedBytes_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; largeUint32_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; largeUint64_ = input.readUInt64(); break; } case 32: { bitField0_ |= 0x00000008; smallInt32_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; smallInt64_ = input.readInt64(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; utf8String_ = bs; break; } case 61: { bitField0_ |= 0x00000100; zeroFloat_ = input.readFloat(); break; } case 69: { bitField0_ |= 0x00000200; oneFloat_ = input.readFloat(); break; } case 77: { bitField0_ |= 0x00000400; smallFloat_ = input.readFloat(); break; } case 85: { bitField0_ |= 0x00000800; negativeOneFloat_ = input.readFloat(); break; } case 93: { bitField0_ |= 0x00001000; negativeFloat_ = input.readFloat(); break; } case 101: { bitField0_ |= 0x00002000; largeFloat_ = input.readFloat(); break; } case 109: { bitField0_ |= 0x00004000; smallNegativeFloat_ = input.readFloat(); break; } case 113: { bitField0_ |= 0x00008000; infDouble_ = input.readDouble(); break; } case 121: { bitField0_ |= 0x00010000; negInfDouble_ = input.readDouble(); break; } case 129: { bitField0_ |= 0x00020000; nanDouble_ = input.readDouble(); break; } case 141: { bitField0_ |= 0x00040000; infFloat_ = input.readFloat(); break; } case 149: { bitField0_ |= 0x00080000; negInfFloat_ = input.readFloat(); break; } case 157: { bitField0_ |= 0x00100000; nanFloat_ = input.readFloat(); break; } case 162: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00200000; cppTrigraph_ = bs; break; } case 168: { bitField0_ |= 0x00000020; reallySmallInt32_ = input.readInt32(); break; } case 176: { bitField0_ |= 0x00000040; reallySmallInt64_ = input.readInt64(); break; } case 186: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00400000; stringWithZero_ = bs; break; } case 194: { bitField0_ |= 0x00800000; bytesWithZero_ = input.readBytes(); break; } case 202: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x01000000; stringPieceWithZero_ = bs; break; } case 210: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x02000000; cordWithZero_ = bs; break; } case 218: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x04000000; replacementString_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestExtremeDefaultValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestExtremeDefaultValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestExtremeDefaultValues.class, protobuf_unittest.UnittestProto.TestExtremeDefaultValues.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestExtremeDefaultValues parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestExtremeDefaultValues(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int ESCAPED_BYTES_FIELD_NUMBER = 1; private com.google.protobuf.ByteString escapedBytes_; /** * optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"]; */ public boolean hasEscapedBytes() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"]; */ public com.google.protobuf.ByteString getEscapedBytes() { return escapedBytes_; } public static final int LARGE_UINT32_FIELD_NUMBER = 2; private int largeUint32_; /** * optional uint32 large_uint32 = 2 [default = 4294967295]; */ public boolean hasLargeUint32() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 large_uint32 = 2 [default = 4294967295]; */ public int getLargeUint32() { return largeUint32_; } public static final int LARGE_UINT64_FIELD_NUMBER = 3; private long largeUint64_; /** * optional uint64 large_uint64 = 3 [default = 18446744073709551615]; */ public boolean hasLargeUint64() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 large_uint64 = 3 [default = 18446744073709551615]; */ public long getLargeUint64() { return largeUint64_; } public static final int SMALL_INT32_FIELD_NUMBER = 4; private int smallInt32_; /** * optional int32 small_int32 = 4 [default = -2147483647]; */ public boolean hasSmallInt32() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 small_int32 = 4 [default = -2147483647]; */ public int getSmallInt32() { return smallInt32_; } public static final int SMALL_INT64_FIELD_NUMBER = 5; private long smallInt64_; /** * optional int64 small_int64 = 5 [default = -9223372036854775807]; */ public boolean hasSmallInt64() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 small_int64 = 5 [default = -9223372036854775807]; */ public long getSmallInt64() { return smallInt64_; } public static final int REALLY_SMALL_INT32_FIELD_NUMBER = 21; private int reallySmallInt32_; /** * optional int32 really_small_int32 = 21 [default = -2147483648]; */ public boolean hasReallySmallInt32() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 really_small_int32 = 21 [default = -2147483648]; */ public int getReallySmallInt32() { return reallySmallInt32_; } public static final int REALLY_SMALL_INT64_FIELD_NUMBER = 22; private long reallySmallInt64_; /** * optional int64 really_small_int64 = 22 [default = -9223372036854775808]; */ public boolean hasReallySmallInt64() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 really_small_int64 = 22 [default = -9223372036854775808]; */ public long getReallySmallInt64() { return reallySmallInt64_; } public static final int UTF8_STRING_FIELD_NUMBER = 6; private java.lang.Object utf8String_; /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
     * The default value here is UTF-8 for "\u1234".  (We could also just type
     * the UTF-8 text directly into this text file rather than escape it, but
     * lots of people use editors that would be confused by this.)
     * 
*/ public boolean hasUtf8String() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
     * The default value here is UTF-8 for "\u1234".  (We could also just type
     * the UTF-8 text directly into this text file rather than escape it, but
     * lots of people use editors that would be confused by this.)
     * 
*/ public java.lang.String getUtf8String() { java.lang.Object ref = utf8String_; 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()) { utf8String_ = s; } return s; } } /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
     * The default value here is UTF-8 for "\u1234".  (We could also just type
     * the UTF-8 text directly into this text file rather than escape it, but
     * lots of people use editors that would be confused by this.)
     * 
*/ public com.google.protobuf.ByteString getUtf8StringBytes() { java.lang.Object ref = utf8String_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); utf8String_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ZERO_FLOAT_FIELD_NUMBER = 7; private float zeroFloat_; /** * optional float zero_float = 7 [default = 0]; * *
     * Tests for single-precision floating-point values.
     * 
*/ public boolean hasZeroFloat() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional float zero_float = 7 [default = 0]; * *
     * Tests for single-precision floating-point values.
     * 
*/ public float getZeroFloat() { return zeroFloat_; } public static final int ONE_FLOAT_FIELD_NUMBER = 8; private float oneFloat_; /** * optional float one_float = 8 [default = 1]; */ public boolean hasOneFloat() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional float one_float = 8 [default = 1]; */ public float getOneFloat() { return oneFloat_; } public static final int SMALL_FLOAT_FIELD_NUMBER = 9; private float smallFloat_; /** * optional float small_float = 9 [default = 1.5]; */ public boolean hasSmallFloat() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional float small_float = 9 [default = 1.5]; */ public float getSmallFloat() { return smallFloat_; } public static final int NEGATIVE_ONE_FLOAT_FIELD_NUMBER = 10; private float negativeOneFloat_; /** * optional float negative_one_float = 10 [default = -1]; */ public boolean hasNegativeOneFloat() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional float negative_one_float = 10 [default = -1]; */ public float getNegativeOneFloat() { return negativeOneFloat_; } public static final int NEGATIVE_FLOAT_FIELD_NUMBER = 11; private float negativeFloat_; /** * optional float negative_float = 11 [default = -1.5]; */ public boolean hasNegativeFloat() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional float negative_float = 11 [default = -1.5]; */ public float getNegativeFloat() { return negativeFloat_; } public static final int LARGE_FLOAT_FIELD_NUMBER = 12; private float largeFloat_; /** * optional float large_float = 12 [default = 2e+008]; * *
     * Using exponents
     * 
*/ public boolean hasLargeFloat() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional float large_float = 12 [default = 2e+008]; * *
     * Using exponents
     * 
*/ public float getLargeFloat() { return largeFloat_; } public static final int SMALL_NEGATIVE_FLOAT_FIELD_NUMBER = 13; private float smallNegativeFloat_; /** * optional float small_negative_float = 13 [default = -8e-028]; */ public boolean hasSmallNegativeFloat() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional float small_negative_float = 13 [default = -8e-028]; */ public float getSmallNegativeFloat() { return smallNegativeFloat_; } public static final int INF_DOUBLE_FIELD_NUMBER = 14; private double infDouble_; /** * optional double inf_double = 14 [default = inf]; * *
     * Text for nonfinite floating-point values.
     * 
*/ public boolean hasInfDouble() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional double inf_double = 14 [default = inf]; * *
     * Text for nonfinite floating-point values.
     * 
*/ public double getInfDouble() { return infDouble_; } public static final int NEG_INF_DOUBLE_FIELD_NUMBER = 15; private double negInfDouble_; /** * optional double neg_inf_double = 15 [default = -inf]; */ public boolean hasNegInfDouble() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional double neg_inf_double = 15 [default = -inf]; */ public double getNegInfDouble() { return negInfDouble_; } public static final int NAN_DOUBLE_FIELD_NUMBER = 16; private double nanDouble_; /** * optional double nan_double = 16 [default = nan]; */ public boolean hasNanDouble() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional double nan_double = 16 [default = nan]; */ public double getNanDouble() { return nanDouble_; } public static final int INF_FLOAT_FIELD_NUMBER = 17; private float infFloat_; /** * optional float inf_float = 17 [default = inf]; */ public boolean hasInfFloat() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional float inf_float = 17 [default = inf]; */ public float getInfFloat() { return infFloat_; } public static final int NEG_INF_FLOAT_FIELD_NUMBER = 18; private float negInfFloat_; /** * optional float neg_inf_float = 18 [default = -inf]; */ public boolean hasNegInfFloat() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional float neg_inf_float = 18 [default = -inf]; */ public float getNegInfFloat() { return negInfFloat_; } public static final int NAN_FLOAT_FIELD_NUMBER = 19; private float nanFloat_; /** * optional float nan_float = 19 [default = nan]; */ public boolean hasNanFloat() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional float nan_float = 19 [default = nan]; */ public float getNanFloat() { return nanFloat_; } public static final int CPP_TRIGRAPH_FIELD_NUMBER = 20; private java.lang.Object cppTrigraph_; /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
     * Tests for C++ trigraphs.
     * Trigraphs should be escaped in C++ generated files, but they should not be
     * escaped for other languages.
     * Note that in .proto file, "\?" is a valid way to escape ? in string
     * literals.
     * 
*/ public boolean hasCppTrigraph() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
     * Tests for C++ trigraphs.
     * Trigraphs should be escaped in C++ generated files, but they should not be
     * escaped for other languages.
     * Note that in .proto file, "\?" is a valid way to escape ? in string
     * literals.
     * 
*/ public java.lang.String getCppTrigraph() { java.lang.Object ref = cppTrigraph_; 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()) { cppTrigraph_ = s; } return s; } } /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
     * Tests for C++ trigraphs.
     * Trigraphs should be escaped in C++ generated files, but they should not be
     * escaped for other languages.
     * Note that in .proto file, "\?" is a valid way to escape ? in string
     * literals.
     * 
*/ public com.google.protobuf.ByteString getCppTrigraphBytes() { java.lang.Object ref = cppTrigraph_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cppTrigraph_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STRING_WITH_ZERO_FIELD_NUMBER = 23; private java.lang.Object stringWithZero_; /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
     * String defaults containing the character '\000'
     * 
*/ public boolean hasStringWithZero() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
     * String defaults containing the character '\000'
     * 
*/ public java.lang.String getStringWithZero() { java.lang.Object ref = stringWithZero_; 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()) { stringWithZero_ = s; } return s; } } /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
     * String defaults containing the character '\000'
     * 
*/ public com.google.protobuf.ByteString getStringWithZeroBytes() { java.lang.Object ref = stringWithZero_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringWithZero_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BYTES_WITH_ZERO_FIELD_NUMBER = 24; private com.google.protobuf.ByteString bytesWithZero_; /** * optional bytes bytes_with_zero = 24 [default = "wor\000ld"]; */ public boolean hasBytesWithZero() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional bytes bytes_with_zero = 24 [default = "wor\000ld"]; */ public com.google.protobuf.ByteString getBytesWithZero() { return bytesWithZero_; } public static final int STRING_PIECE_WITH_ZERO_FIELD_NUMBER = 25; private java.lang.Object stringPieceWithZero_; /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ public boolean hasStringPieceWithZero() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ public java.lang.String getStringPieceWithZero() { java.lang.Object ref = stringPieceWithZero_; 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()) { stringPieceWithZero_ = s; } return s; } } /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getStringPieceWithZeroBytes() { java.lang.Object ref = stringPieceWithZero_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringPieceWithZero_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CORD_WITH_ZERO_FIELD_NUMBER = 26; private java.lang.Object cordWithZero_; /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ public boolean hasCordWithZero() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ public java.lang.String getCordWithZero() { java.lang.Object ref = cordWithZero_; 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()) { cordWithZero_ = s; } return s; } } /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ public com.google.protobuf.ByteString getCordWithZeroBytes() { java.lang.Object ref = cordWithZero_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cordWithZero_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPLACEMENT_STRING_FIELD_NUMBER = 27; private java.lang.Object replacementString_; /** * optional string replacement_string = 27 [default = "${unknown}"]; */ public boolean hasReplacementString() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional string replacement_string = 27 [default = "${unknown}"]; */ public java.lang.String getReplacementString() { java.lang.Object ref = replacementString_; 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()) { replacementString_ = s; } return s; } } /** * optional string replacement_string = 27 [default = "${unknown}"]; */ public com.google.protobuf.ByteString getReplacementStringBytes() { java.lang.Object ref = replacementString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); replacementString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { escapedBytes_ = com.google.protobuf.Internal.bytesDefaultValue("\000\001\007\010\014\n\r\t\013\\\'\"\376"); largeUint32_ = -1; largeUint64_ = -1L; smallInt32_ = -2147483647; smallInt64_ = -9223372036854775807L; reallySmallInt32_ = -2147483648; reallySmallInt64_ = -9223372036854775808L; utf8String_ = com.google.protobuf.Internal.stringDefaultValue("\341\210\264"); zeroFloat_ = 0F; oneFloat_ = 1F; smallFloat_ = 1.5F; negativeOneFloat_ = -1F; negativeFloat_ = -1.5F; largeFloat_ = 2e+008F; smallNegativeFloat_ = -8e-028F; infDouble_ = Double.POSITIVE_INFINITY; negInfDouble_ = Double.NEGATIVE_INFINITY; nanDouble_ = Double.NaN; infFloat_ = Float.POSITIVE_INFINITY; negInfFloat_ = Float.NEGATIVE_INFINITY; nanFloat_ = Float.NaN; cppTrigraph_ = "? ? ?? ?? ??? ??/ ??-"; stringWithZero_ = "hel\000lo"; bytesWithZero_ = com.google.protobuf.Internal.bytesDefaultValue("wor\000ld"); stringPieceWithZero_ = "ab\000c"; cordWithZero_ = "12\0003"; replacementString_ = "${unknown}"; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, escapedBytes_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, largeUint32_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, largeUint64_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, smallInt32_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, smallInt64_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(6, getUtf8StringBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeFloat(7, zeroFloat_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeFloat(8, oneFloat_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeFloat(9, smallFloat_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeFloat(10, negativeOneFloat_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeFloat(11, negativeFloat_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeFloat(12, largeFloat_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeFloat(13, smallNegativeFloat_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeDouble(14, infDouble_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeDouble(15, negInfDouble_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeDouble(16, nanDouble_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeFloat(17, infFloat_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeFloat(18, negInfFloat_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeFloat(19, nanFloat_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeBytes(20, getCppTrigraphBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(21, reallySmallInt32_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(22, reallySmallInt64_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeBytes(23, getStringWithZeroBytes()); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeBytes(24, bytesWithZero_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeBytes(25, getStringPieceWithZeroBytes()); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeBytes(26, getCordWithZeroBytes()); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeBytes(27, getReplacementStringBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, escapedBytes_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, largeUint32_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, largeUint64_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, smallInt32_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, smallInt64_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getUtf8StringBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(7, zeroFloat_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(8, oneFloat_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(9, smallFloat_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(10, negativeOneFloat_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(11, negativeFloat_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(12, largeFloat_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(13, smallNegativeFloat_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(14, infDouble_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(15, negInfDouble_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(16, nanDouble_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(17, infFloat_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(18, negInfFloat_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(19, nanFloat_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(20, getCppTrigraphBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(21, reallySmallInt32_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, reallySmallInt64_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(23, getStringWithZeroBytes()); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(24, bytesWithZero_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(25, getStringPieceWithZeroBytes()); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(26, getCordWithZeroBytes()); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(27, getReplacementStringBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestExtremeDefaultValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestExtremeDefaultValues parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestExtremeDefaultValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestExtremeDefaultValues parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestExtremeDefaultValues parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestExtremeDefaultValues parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestExtremeDefaultValues parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestExtremeDefaultValues parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestExtremeDefaultValues parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestExtremeDefaultValues parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestExtremeDefaultValues prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestExtremeDefaultValues} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestExtremeDefaultValues) protobuf_unittest.UnittestProto.TestExtremeDefaultValuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestExtremeDefaultValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestExtremeDefaultValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestExtremeDefaultValues.class, protobuf_unittest.UnittestProto.TestExtremeDefaultValues.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestExtremeDefaultValues.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); escapedBytes_ = com.google.protobuf.Internal.bytesDefaultValue("\000\001\007\010\014\n\r\t\013\\\'\"\376"); bitField0_ = (bitField0_ & ~0x00000001); largeUint32_ = -1; bitField0_ = (bitField0_ & ~0x00000002); largeUint64_ = -1L; bitField0_ = (bitField0_ & ~0x00000004); smallInt32_ = -2147483647; bitField0_ = (bitField0_ & ~0x00000008); smallInt64_ = -9223372036854775807L; bitField0_ = (bitField0_ & ~0x00000010); reallySmallInt32_ = -2147483648; bitField0_ = (bitField0_ & ~0x00000020); reallySmallInt64_ = -9223372036854775808L; bitField0_ = (bitField0_ & ~0x00000040); utf8String_ = com.google.protobuf.Internal.stringDefaultValue("\341\210\264"); bitField0_ = (bitField0_ & ~0x00000080); zeroFloat_ = 0F; bitField0_ = (bitField0_ & ~0x00000100); oneFloat_ = 1F; bitField0_ = (bitField0_ & ~0x00000200); smallFloat_ = 1.5F; bitField0_ = (bitField0_ & ~0x00000400); negativeOneFloat_ = -1F; bitField0_ = (bitField0_ & ~0x00000800); negativeFloat_ = -1.5F; bitField0_ = (bitField0_ & ~0x00001000); largeFloat_ = 2e+008F; bitField0_ = (bitField0_ & ~0x00002000); smallNegativeFloat_ = -8e-028F; bitField0_ = (bitField0_ & ~0x00004000); infDouble_ = Double.POSITIVE_INFINITY; bitField0_ = (bitField0_ & ~0x00008000); negInfDouble_ = Double.NEGATIVE_INFINITY; bitField0_ = (bitField0_ & ~0x00010000); nanDouble_ = Double.NaN; bitField0_ = (bitField0_ & ~0x00020000); infFloat_ = Float.POSITIVE_INFINITY; bitField0_ = (bitField0_ & ~0x00040000); negInfFloat_ = Float.NEGATIVE_INFINITY; bitField0_ = (bitField0_ & ~0x00080000); nanFloat_ = Float.NaN; bitField0_ = (bitField0_ & ~0x00100000); cppTrigraph_ = "? ? ?? ?? ??? ??/ ??-"; bitField0_ = (bitField0_ & ~0x00200000); stringWithZero_ = "hel\000lo"; bitField0_ = (bitField0_ & ~0x00400000); bytesWithZero_ = com.google.protobuf.Internal.bytesDefaultValue("wor\000ld"); bitField0_ = (bitField0_ & ~0x00800000); stringPieceWithZero_ = "ab\000c"; bitField0_ = (bitField0_ & ~0x01000000); cordWithZero_ = "12\0003"; bitField0_ = (bitField0_ & ~0x02000000); replacementString_ = "${unknown}"; bitField0_ = (bitField0_ & ~0x04000000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestExtremeDefaultValues_descriptor; } public protobuf_unittest.UnittestProto.TestExtremeDefaultValues getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestExtremeDefaultValues.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestExtremeDefaultValues build() { protobuf_unittest.UnittestProto.TestExtremeDefaultValues result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestExtremeDefaultValues buildPartial() { protobuf_unittest.UnittestProto.TestExtremeDefaultValues result = new protobuf_unittest.UnittestProto.TestExtremeDefaultValues(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.escapedBytes_ = escapedBytes_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.largeUint32_ = largeUint32_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.largeUint64_ = largeUint64_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.smallInt32_ = smallInt32_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.smallInt64_ = smallInt64_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.reallySmallInt32_ = reallySmallInt32_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.reallySmallInt64_ = reallySmallInt64_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.utf8String_ = utf8String_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.zeroFloat_ = zeroFloat_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.oneFloat_ = oneFloat_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.smallFloat_ = smallFloat_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.negativeOneFloat_ = negativeOneFloat_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.negativeFloat_ = negativeFloat_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.largeFloat_ = largeFloat_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.smallNegativeFloat_ = smallNegativeFloat_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.infDouble_ = infDouble_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.negInfDouble_ = negInfDouble_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.nanDouble_ = nanDouble_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } result.infFloat_ = infFloat_; if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00080000; } result.negInfFloat_ = negInfFloat_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00100000; } result.nanFloat_ = nanFloat_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00200000; } result.cppTrigraph_ = cppTrigraph_; if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00400000; } result.stringWithZero_ = stringWithZero_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00800000; } result.bytesWithZero_ = bytesWithZero_; if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x01000000; } result.stringPieceWithZero_ = stringPieceWithZero_; if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x02000000; } result.cordWithZero_ = cordWithZero_; if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x04000000; } result.replacementString_ = replacementString_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestExtremeDefaultValues) { return mergeFrom((protobuf_unittest.UnittestProto.TestExtremeDefaultValues)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestExtremeDefaultValues other) { if (other == protobuf_unittest.UnittestProto.TestExtremeDefaultValues.getDefaultInstance()) return this; if (other.hasEscapedBytes()) { setEscapedBytes(other.getEscapedBytes()); } if (other.hasLargeUint32()) { setLargeUint32(other.getLargeUint32()); } if (other.hasLargeUint64()) { setLargeUint64(other.getLargeUint64()); } if (other.hasSmallInt32()) { setSmallInt32(other.getSmallInt32()); } if (other.hasSmallInt64()) { setSmallInt64(other.getSmallInt64()); } if (other.hasReallySmallInt32()) { setReallySmallInt32(other.getReallySmallInt32()); } if (other.hasReallySmallInt64()) { setReallySmallInt64(other.getReallySmallInt64()); } if (other.hasUtf8String()) { bitField0_ |= 0x00000080; utf8String_ = other.utf8String_; onChanged(); } if (other.hasZeroFloat()) { setZeroFloat(other.getZeroFloat()); } if (other.hasOneFloat()) { setOneFloat(other.getOneFloat()); } if (other.hasSmallFloat()) { setSmallFloat(other.getSmallFloat()); } if (other.hasNegativeOneFloat()) { setNegativeOneFloat(other.getNegativeOneFloat()); } if (other.hasNegativeFloat()) { setNegativeFloat(other.getNegativeFloat()); } if (other.hasLargeFloat()) { setLargeFloat(other.getLargeFloat()); } if (other.hasSmallNegativeFloat()) { setSmallNegativeFloat(other.getSmallNegativeFloat()); } if (other.hasInfDouble()) { setInfDouble(other.getInfDouble()); } if (other.hasNegInfDouble()) { setNegInfDouble(other.getNegInfDouble()); } if (other.hasNanDouble()) { setNanDouble(other.getNanDouble()); } if (other.hasInfFloat()) { setInfFloat(other.getInfFloat()); } if (other.hasNegInfFloat()) { setNegInfFloat(other.getNegInfFloat()); } if (other.hasNanFloat()) { setNanFloat(other.getNanFloat()); } if (other.hasCppTrigraph()) { bitField0_ |= 0x00200000; cppTrigraph_ = other.cppTrigraph_; onChanged(); } if (other.hasStringWithZero()) { bitField0_ |= 0x00400000; stringWithZero_ = other.stringWithZero_; onChanged(); } if (other.hasBytesWithZero()) { setBytesWithZero(other.getBytesWithZero()); } if (other.hasStringPieceWithZero()) { bitField0_ |= 0x01000000; stringPieceWithZero_ = other.stringPieceWithZero_; onChanged(); } if (other.hasCordWithZero()) { bitField0_ |= 0x02000000; cordWithZero_ = other.cordWithZero_; onChanged(); } if (other.hasReplacementString()) { bitField0_ |= 0x04000000; replacementString_ = other.replacementString_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestExtremeDefaultValues parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestExtremeDefaultValues) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString escapedBytes_ = com.google.protobuf.Internal.bytesDefaultValue("\000\001\007\010\014\n\r\t\013\\\'\"\376"); /** * optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"]; */ public boolean hasEscapedBytes() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"]; */ public com.google.protobuf.ByteString getEscapedBytes() { return escapedBytes_; } /** * optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"]; */ public Builder setEscapedBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; escapedBytes_ = value; onChanged(); return this; } /** * optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"]; */ public Builder clearEscapedBytes() { bitField0_ = (bitField0_ & ~0x00000001); escapedBytes_ = getDefaultInstance().getEscapedBytes(); onChanged(); return this; } private int largeUint32_ = -1; /** * optional uint32 large_uint32 = 2 [default = 4294967295]; */ public boolean hasLargeUint32() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 large_uint32 = 2 [default = 4294967295]; */ public int getLargeUint32() { return largeUint32_; } /** * optional uint32 large_uint32 = 2 [default = 4294967295]; */ public Builder setLargeUint32(int value) { bitField0_ |= 0x00000002; largeUint32_ = value; onChanged(); return this; } /** * optional uint32 large_uint32 = 2 [default = 4294967295]; */ public Builder clearLargeUint32() { bitField0_ = (bitField0_ & ~0x00000002); largeUint32_ = -1; onChanged(); return this; } private long largeUint64_ = -1L; /** * optional uint64 large_uint64 = 3 [default = 18446744073709551615]; */ public boolean hasLargeUint64() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 large_uint64 = 3 [default = 18446744073709551615]; */ public long getLargeUint64() { return largeUint64_; } /** * optional uint64 large_uint64 = 3 [default = 18446744073709551615]; */ public Builder setLargeUint64(long value) { bitField0_ |= 0x00000004; largeUint64_ = value; onChanged(); return this; } /** * optional uint64 large_uint64 = 3 [default = 18446744073709551615]; */ public Builder clearLargeUint64() { bitField0_ = (bitField0_ & ~0x00000004); largeUint64_ = -1L; onChanged(); return this; } private int smallInt32_ = -2147483647; /** * optional int32 small_int32 = 4 [default = -2147483647]; */ public boolean hasSmallInt32() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 small_int32 = 4 [default = -2147483647]; */ public int getSmallInt32() { return smallInt32_; } /** * optional int32 small_int32 = 4 [default = -2147483647]; */ public Builder setSmallInt32(int value) { bitField0_ |= 0x00000008; smallInt32_ = value; onChanged(); return this; } /** * optional int32 small_int32 = 4 [default = -2147483647]; */ public Builder clearSmallInt32() { bitField0_ = (bitField0_ & ~0x00000008); smallInt32_ = -2147483647; onChanged(); return this; } private long smallInt64_ = -9223372036854775807L; /** * optional int64 small_int64 = 5 [default = -9223372036854775807]; */ public boolean hasSmallInt64() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 small_int64 = 5 [default = -9223372036854775807]; */ public long getSmallInt64() { return smallInt64_; } /** * optional int64 small_int64 = 5 [default = -9223372036854775807]; */ public Builder setSmallInt64(long value) { bitField0_ |= 0x00000010; smallInt64_ = value; onChanged(); return this; } /** * optional int64 small_int64 = 5 [default = -9223372036854775807]; */ public Builder clearSmallInt64() { bitField0_ = (bitField0_ & ~0x00000010); smallInt64_ = -9223372036854775807L; onChanged(); return this; } private int reallySmallInt32_ = -2147483648; /** * optional int32 really_small_int32 = 21 [default = -2147483648]; */ public boolean hasReallySmallInt32() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 really_small_int32 = 21 [default = -2147483648]; */ public int getReallySmallInt32() { return reallySmallInt32_; } /** * optional int32 really_small_int32 = 21 [default = -2147483648]; */ public Builder setReallySmallInt32(int value) { bitField0_ |= 0x00000020; reallySmallInt32_ = value; onChanged(); return this; } /** * optional int32 really_small_int32 = 21 [default = -2147483648]; */ public Builder clearReallySmallInt32() { bitField0_ = (bitField0_ & ~0x00000020); reallySmallInt32_ = -2147483648; onChanged(); return this; } private long reallySmallInt64_ = -9223372036854775808L; /** * optional int64 really_small_int64 = 22 [default = -9223372036854775808]; */ public boolean hasReallySmallInt64() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 really_small_int64 = 22 [default = -9223372036854775808]; */ public long getReallySmallInt64() { return reallySmallInt64_; } /** * optional int64 really_small_int64 = 22 [default = -9223372036854775808]; */ public Builder setReallySmallInt64(long value) { bitField0_ |= 0x00000040; reallySmallInt64_ = value; onChanged(); return this; } /** * optional int64 really_small_int64 = 22 [default = -9223372036854775808]; */ public Builder clearReallySmallInt64() { bitField0_ = (bitField0_ & ~0x00000040); reallySmallInt64_ = -9223372036854775808L; onChanged(); return this; } private java.lang.Object utf8String_ = com.google.protobuf.Internal.stringDefaultValue("\341\210\264"); /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
       * The default value here is UTF-8 for "\u1234".  (We could also just type
       * the UTF-8 text directly into this text file rather than escape it, but
       * lots of people use editors that would be confused by this.)
       * 
*/ public boolean hasUtf8String() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
       * The default value here is UTF-8 for "\u1234".  (We could also just type
       * the UTF-8 text directly into this text file rather than escape it, but
       * lots of people use editors that would be confused by this.)
       * 
*/ public java.lang.String getUtf8String() { java.lang.Object ref = utf8String_; 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()) { utf8String_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
       * The default value here is UTF-8 for "\u1234".  (We could also just type
       * the UTF-8 text directly into this text file rather than escape it, but
       * lots of people use editors that would be confused by this.)
       * 
*/ public com.google.protobuf.ByteString getUtf8StringBytes() { java.lang.Object ref = utf8String_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); utf8String_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
       * The default value here is UTF-8 for "\u1234".  (We could also just type
       * the UTF-8 text directly into this text file rather than escape it, but
       * lots of people use editors that would be confused by this.)
       * 
*/ public Builder setUtf8String( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; utf8String_ = value; onChanged(); return this; } /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
       * The default value here is UTF-8 for "\u1234".  (We could also just type
       * the UTF-8 text directly into this text file rather than escape it, but
       * lots of people use editors that would be confused by this.)
       * 
*/ public Builder clearUtf8String() { bitField0_ = (bitField0_ & ~0x00000080); utf8String_ = getDefaultInstance().getUtf8String(); onChanged(); return this; } /** * optional string utf8_string = 6 [default = "\341\210\264"]; * *
       * The default value here is UTF-8 for "\u1234".  (We could also just type
       * the UTF-8 text directly into this text file rather than escape it, but
       * lots of people use editors that would be confused by this.)
       * 
*/ public Builder setUtf8StringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; utf8String_ = value; onChanged(); return this; } private float zeroFloat_ ; /** * optional float zero_float = 7 [default = 0]; * *
       * Tests for single-precision floating-point values.
       * 
*/ public boolean hasZeroFloat() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional float zero_float = 7 [default = 0]; * *
       * Tests for single-precision floating-point values.
       * 
*/ public float getZeroFloat() { return zeroFloat_; } /** * optional float zero_float = 7 [default = 0]; * *
       * Tests for single-precision floating-point values.
       * 
*/ public Builder setZeroFloat(float value) { bitField0_ |= 0x00000100; zeroFloat_ = value; onChanged(); return this; } /** * optional float zero_float = 7 [default = 0]; * *
       * Tests for single-precision floating-point values.
       * 
*/ public Builder clearZeroFloat() { bitField0_ = (bitField0_ & ~0x00000100); zeroFloat_ = 0F; onChanged(); return this; } private float oneFloat_ = 1F; /** * optional float one_float = 8 [default = 1]; */ public boolean hasOneFloat() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional float one_float = 8 [default = 1]; */ public float getOneFloat() { return oneFloat_; } /** * optional float one_float = 8 [default = 1]; */ public Builder setOneFloat(float value) { bitField0_ |= 0x00000200; oneFloat_ = value; onChanged(); return this; } /** * optional float one_float = 8 [default = 1]; */ public Builder clearOneFloat() { bitField0_ = (bitField0_ & ~0x00000200); oneFloat_ = 1F; onChanged(); return this; } private float smallFloat_ = 1.5F; /** * optional float small_float = 9 [default = 1.5]; */ public boolean hasSmallFloat() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional float small_float = 9 [default = 1.5]; */ public float getSmallFloat() { return smallFloat_; } /** * optional float small_float = 9 [default = 1.5]; */ public Builder setSmallFloat(float value) { bitField0_ |= 0x00000400; smallFloat_ = value; onChanged(); return this; } /** * optional float small_float = 9 [default = 1.5]; */ public Builder clearSmallFloat() { bitField0_ = (bitField0_ & ~0x00000400); smallFloat_ = 1.5F; onChanged(); return this; } private float negativeOneFloat_ = -1F; /** * optional float negative_one_float = 10 [default = -1]; */ public boolean hasNegativeOneFloat() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional float negative_one_float = 10 [default = -1]; */ public float getNegativeOneFloat() { return negativeOneFloat_; } /** * optional float negative_one_float = 10 [default = -1]; */ public Builder setNegativeOneFloat(float value) { bitField0_ |= 0x00000800; negativeOneFloat_ = value; onChanged(); return this; } /** * optional float negative_one_float = 10 [default = -1]; */ public Builder clearNegativeOneFloat() { bitField0_ = (bitField0_ & ~0x00000800); negativeOneFloat_ = -1F; onChanged(); return this; } private float negativeFloat_ = -1.5F; /** * optional float negative_float = 11 [default = -1.5]; */ public boolean hasNegativeFloat() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional float negative_float = 11 [default = -1.5]; */ public float getNegativeFloat() { return negativeFloat_; } /** * optional float negative_float = 11 [default = -1.5]; */ public Builder setNegativeFloat(float value) { bitField0_ |= 0x00001000; negativeFloat_ = value; onChanged(); return this; } /** * optional float negative_float = 11 [default = -1.5]; */ public Builder clearNegativeFloat() { bitField0_ = (bitField0_ & ~0x00001000); negativeFloat_ = -1.5F; onChanged(); return this; } private float largeFloat_ = 2e+008F; /** * optional float large_float = 12 [default = 2e+008]; * *
       * Using exponents
       * 
*/ public boolean hasLargeFloat() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional float large_float = 12 [default = 2e+008]; * *
       * Using exponents
       * 
*/ public float getLargeFloat() { return largeFloat_; } /** * optional float large_float = 12 [default = 2e+008]; * *
       * Using exponents
       * 
*/ public Builder setLargeFloat(float value) { bitField0_ |= 0x00002000; largeFloat_ = value; onChanged(); return this; } /** * optional float large_float = 12 [default = 2e+008]; * *
       * Using exponents
       * 
*/ public Builder clearLargeFloat() { bitField0_ = (bitField0_ & ~0x00002000); largeFloat_ = 2e+008F; onChanged(); return this; } private float smallNegativeFloat_ = -8e-028F; /** * optional float small_negative_float = 13 [default = -8e-028]; */ public boolean hasSmallNegativeFloat() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional float small_negative_float = 13 [default = -8e-028]; */ public float getSmallNegativeFloat() { return smallNegativeFloat_; } /** * optional float small_negative_float = 13 [default = -8e-028]; */ public Builder setSmallNegativeFloat(float value) { bitField0_ |= 0x00004000; smallNegativeFloat_ = value; onChanged(); return this; } /** * optional float small_negative_float = 13 [default = -8e-028]; */ public Builder clearSmallNegativeFloat() { bitField0_ = (bitField0_ & ~0x00004000); smallNegativeFloat_ = -8e-028F; onChanged(); return this; } private double infDouble_ = Double.POSITIVE_INFINITY; /** * optional double inf_double = 14 [default = inf]; * *
       * Text for nonfinite floating-point values.
       * 
*/ public boolean hasInfDouble() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional double inf_double = 14 [default = inf]; * *
       * Text for nonfinite floating-point values.
       * 
*/ public double getInfDouble() { return infDouble_; } /** * optional double inf_double = 14 [default = inf]; * *
       * Text for nonfinite floating-point values.
       * 
*/ public Builder setInfDouble(double value) { bitField0_ |= 0x00008000; infDouble_ = value; onChanged(); return this; } /** * optional double inf_double = 14 [default = inf]; * *
       * Text for nonfinite floating-point values.
       * 
*/ public Builder clearInfDouble() { bitField0_ = (bitField0_ & ~0x00008000); infDouble_ = Double.POSITIVE_INFINITY; onChanged(); return this; } private double negInfDouble_ = Double.NEGATIVE_INFINITY; /** * optional double neg_inf_double = 15 [default = -inf]; */ public boolean hasNegInfDouble() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional double neg_inf_double = 15 [default = -inf]; */ public double getNegInfDouble() { return negInfDouble_; } /** * optional double neg_inf_double = 15 [default = -inf]; */ public Builder setNegInfDouble(double value) { bitField0_ |= 0x00010000; negInfDouble_ = value; onChanged(); return this; } /** * optional double neg_inf_double = 15 [default = -inf]; */ public Builder clearNegInfDouble() { bitField0_ = (bitField0_ & ~0x00010000); negInfDouble_ = Double.NEGATIVE_INFINITY; onChanged(); return this; } private double nanDouble_ = Double.NaN; /** * optional double nan_double = 16 [default = nan]; */ public boolean hasNanDouble() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional double nan_double = 16 [default = nan]; */ public double getNanDouble() { return nanDouble_; } /** * optional double nan_double = 16 [default = nan]; */ public Builder setNanDouble(double value) { bitField0_ |= 0x00020000; nanDouble_ = value; onChanged(); return this; } /** * optional double nan_double = 16 [default = nan]; */ public Builder clearNanDouble() { bitField0_ = (bitField0_ & ~0x00020000); nanDouble_ = Double.NaN; onChanged(); return this; } private float infFloat_ = Float.POSITIVE_INFINITY; /** * optional float inf_float = 17 [default = inf]; */ public boolean hasInfFloat() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional float inf_float = 17 [default = inf]; */ public float getInfFloat() { return infFloat_; } /** * optional float inf_float = 17 [default = inf]; */ public Builder setInfFloat(float value) { bitField0_ |= 0x00040000; infFloat_ = value; onChanged(); return this; } /** * optional float inf_float = 17 [default = inf]; */ public Builder clearInfFloat() { bitField0_ = (bitField0_ & ~0x00040000); infFloat_ = Float.POSITIVE_INFINITY; onChanged(); return this; } private float negInfFloat_ = Float.NEGATIVE_INFINITY; /** * optional float neg_inf_float = 18 [default = -inf]; */ public boolean hasNegInfFloat() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional float neg_inf_float = 18 [default = -inf]; */ public float getNegInfFloat() { return negInfFloat_; } /** * optional float neg_inf_float = 18 [default = -inf]; */ public Builder setNegInfFloat(float value) { bitField0_ |= 0x00080000; negInfFloat_ = value; onChanged(); return this; } /** * optional float neg_inf_float = 18 [default = -inf]; */ public Builder clearNegInfFloat() { bitField0_ = (bitField0_ & ~0x00080000); negInfFloat_ = Float.NEGATIVE_INFINITY; onChanged(); return this; } private float nanFloat_ = Float.NaN; /** * optional float nan_float = 19 [default = nan]; */ public boolean hasNanFloat() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional float nan_float = 19 [default = nan]; */ public float getNanFloat() { return nanFloat_; } /** * optional float nan_float = 19 [default = nan]; */ public Builder setNanFloat(float value) { bitField0_ |= 0x00100000; nanFloat_ = value; onChanged(); return this; } /** * optional float nan_float = 19 [default = nan]; */ public Builder clearNanFloat() { bitField0_ = (bitField0_ & ~0x00100000); nanFloat_ = Float.NaN; onChanged(); return this; } private java.lang.Object cppTrigraph_ = "? ? ?? ?? ??? ??/ ??-"; /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
       * Tests for C++ trigraphs.
       * Trigraphs should be escaped in C++ generated files, but they should not be
       * escaped for other languages.
       * Note that in .proto file, "\?" is a valid way to escape ? in string
       * literals.
       * 
*/ public boolean hasCppTrigraph() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
       * Tests for C++ trigraphs.
       * Trigraphs should be escaped in C++ generated files, but they should not be
       * escaped for other languages.
       * Note that in .proto file, "\?" is a valid way to escape ? in string
       * literals.
       * 
*/ public java.lang.String getCppTrigraph() { java.lang.Object ref = cppTrigraph_; 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()) { cppTrigraph_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
       * Tests for C++ trigraphs.
       * Trigraphs should be escaped in C++ generated files, but they should not be
       * escaped for other languages.
       * Note that in .proto file, "\?" is a valid way to escape ? in string
       * literals.
       * 
*/ public com.google.protobuf.ByteString getCppTrigraphBytes() { java.lang.Object ref = cppTrigraph_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cppTrigraph_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
       * Tests for C++ trigraphs.
       * Trigraphs should be escaped in C++ generated files, but they should not be
       * escaped for other languages.
       * Note that in .proto file, "\?" is a valid way to escape ? in string
       * literals.
       * 
*/ public Builder setCppTrigraph( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00200000; cppTrigraph_ = value; onChanged(); return this; } /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
       * Tests for C++ trigraphs.
       * Trigraphs should be escaped in C++ generated files, but they should not be
       * escaped for other languages.
       * Note that in .proto file, "\?" is a valid way to escape ? in string
       * literals.
       * 
*/ public Builder clearCppTrigraph() { bitField0_ = (bitField0_ & ~0x00200000); cppTrigraph_ = getDefaultInstance().getCppTrigraph(); onChanged(); return this; } /** * optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"]; * *
       * Tests for C++ trigraphs.
       * Trigraphs should be escaped in C++ generated files, but they should not be
       * escaped for other languages.
       * Note that in .proto file, "\?" is a valid way to escape ? in string
       * literals.
       * 
*/ public Builder setCppTrigraphBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00200000; cppTrigraph_ = value; onChanged(); return this; } private java.lang.Object stringWithZero_ = "hel\000lo"; /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
       * String defaults containing the character '\000'
       * 
*/ public boolean hasStringWithZero() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
       * String defaults containing the character '\000'
       * 
*/ public java.lang.String getStringWithZero() { java.lang.Object ref = stringWithZero_; 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()) { stringWithZero_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
       * String defaults containing the character '\000'
       * 
*/ public com.google.protobuf.ByteString getStringWithZeroBytes() { java.lang.Object ref = stringWithZero_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringWithZero_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
       * String defaults containing the character '\000'
       * 
*/ public Builder setStringWithZero( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00400000; stringWithZero_ = value; onChanged(); return this; } /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
       * String defaults containing the character '\000'
       * 
*/ public Builder clearStringWithZero() { bitField0_ = (bitField0_ & ~0x00400000); stringWithZero_ = getDefaultInstance().getStringWithZero(); onChanged(); return this; } /** * optional string string_with_zero = 23 [default = "hel\000lo"]; * *
       * String defaults containing the character '\000'
       * 
*/ public Builder setStringWithZeroBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00400000; stringWithZero_ = value; onChanged(); return this; } private com.google.protobuf.ByteString bytesWithZero_ = com.google.protobuf.Internal.bytesDefaultValue("wor\000ld"); /** * optional bytes bytes_with_zero = 24 [default = "wor\000ld"]; */ public boolean hasBytesWithZero() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional bytes bytes_with_zero = 24 [default = "wor\000ld"]; */ public com.google.protobuf.ByteString getBytesWithZero() { return bytesWithZero_; } /** * optional bytes bytes_with_zero = 24 [default = "wor\000ld"]; */ public Builder setBytesWithZero(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00800000; bytesWithZero_ = value; onChanged(); return this; } /** * optional bytes bytes_with_zero = 24 [default = "wor\000ld"]; */ public Builder clearBytesWithZero() { bitField0_ = (bitField0_ & ~0x00800000); bytesWithZero_ = getDefaultInstance().getBytesWithZero(); onChanged(); return this; } private java.lang.Object stringPieceWithZero_ = "ab\000c"; /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ public boolean hasStringPieceWithZero() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ public java.lang.String getStringPieceWithZero() { java.lang.Object ref = stringPieceWithZero_; 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()) { stringPieceWithZero_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getStringPieceWithZeroBytes() { java.lang.Object ref = stringPieceWithZero_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringPieceWithZero_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ public Builder setStringPieceWithZero( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x01000000; stringPieceWithZero_ = value; onChanged(); return this; } /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ public Builder clearStringPieceWithZero() { bitField0_ = (bitField0_ & ~0x01000000); stringPieceWithZero_ = getDefaultInstance().getStringPieceWithZero(); onChanged(); return this; } /** * optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE]; */ public Builder setStringPieceWithZeroBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x01000000; stringPieceWithZero_ = value; onChanged(); return this; } private java.lang.Object cordWithZero_ = "12\0003"; /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ public boolean hasCordWithZero() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ public java.lang.String getCordWithZero() { java.lang.Object ref = cordWithZero_; 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()) { cordWithZero_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ public com.google.protobuf.ByteString getCordWithZeroBytes() { java.lang.Object ref = cordWithZero_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cordWithZero_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ public Builder setCordWithZero( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x02000000; cordWithZero_ = value; onChanged(); return this; } /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ public Builder clearCordWithZero() { bitField0_ = (bitField0_ & ~0x02000000); cordWithZero_ = getDefaultInstance().getCordWithZero(); onChanged(); return this; } /** * optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD]; */ public Builder setCordWithZeroBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x02000000; cordWithZero_ = value; onChanged(); return this; } private java.lang.Object replacementString_ = "${unknown}"; /** * optional string replacement_string = 27 [default = "${unknown}"]; */ public boolean hasReplacementString() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional string replacement_string = 27 [default = "${unknown}"]; */ public java.lang.String getReplacementString() { java.lang.Object ref = replacementString_; 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()) { replacementString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string replacement_string = 27 [default = "${unknown}"]; */ public com.google.protobuf.ByteString getReplacementStringBytes() { java.lang.Object ref = replacementString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); replacementString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string replacement_string = 27 [default = "${unknown}"]; */ public Builder setReplacementString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x04000000; replacementString_ = value; onChanged(); return this; } /** * optional string replacement_string = 27 [default = "${unknown}"]; */ public Builder clearReplacementString() { bitField0_ = (bitField0_ & ~0x04000000); replacementString_ = getDefaultInstance().getReplacementString(); onChanged(); return this; } /** * optional string replacement_string = 27 [default = "${unknown}"]; */ public Builder setReplacementStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x04000000; replacementString_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestExtremeDefaultValues) } static { defaultInstance = new TestExtremeDefaultValues(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtremeDefaultValues) } public interface SparseEnumMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.SparseEnumMessage) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestSparseEnum sparse_enum = 1; */ boolean hasSparseEnum(); /** * optional .protobuf_unittest.TestSparseEnum sparse_enum = 1; */ protobuf_unittest.UnittestProto.TestSparseEnum getSparseEnum(); } /** * Protobuf type {@code protobuf_unittest.SparseEnumMessage} */ public static final class SparseEnumMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.SparseEnumMessage) SparseEnumMessageOrBuilder { // Use SparseEnumMessage.newBuilder() to construct. private SparseEnumMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SparseEnumMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SparseEnumMessage defaultInstance; public static SparseEnumMessage getDefaultInstance() { return defaultInstance; } public SparseEnumMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SparseEnumMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.TestSparseEnum value = protobuf_unittest.UnittestProto.TestSparseEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; sparseEnum_ = value; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_SparseEnumMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_SparseEnumMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.SparseEnumMessage.class, protobuf_unittest.UnittestProto.SparseEnumMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SparseEnumMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SparseEnumMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int SPARSE_ENUM_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.TestSparseEnum sparseEnum_; /** * optional .protobuf_unittest.TestSparseEnum sparse_enum = 1; */ public boolean hasSparseEnum() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestSparseEnum sparse_enum = 1; */ public protobuf_unittest.UnittestProto.TestSparseEnum getSparseEnum() { return sparseEnum_; } private void initFields() { sparseEnum_ = protobuf_unittest.UnittestProto.TestSparseEnum.SPARSE_A; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, sparseEnum_.getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, sparseEnum_.getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.SparseEnumMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.SparseEnumMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.SparseEnumMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.SparseEnumMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.SparseEnumMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.SparseEnumMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.SparseEnumMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.SparseEnumMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.SparseEnumMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.SparseEnumMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.SparseEnumMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.SparseEnumMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.SparseEnumMessage) protobuf_unittest.UnittestProto.SparseEnumMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_SparseEnumMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_SparseEnumMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.SparseEnumMessage.class, protobuf_unittest.UnittestProto.SparseEnumMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.SparseEnumMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); sparseEnum_ = protobuf_unittest.UnittestProto.TestSparseEnum.SPARSE_A; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_SparseEnumMessage_descriptor; } public protobuf_unittest.UnittestProto.SparseEnumMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.SparseEnumMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.SparseEnumMessage build() { protobuf_unittest.UnittestProto.SparseEnumMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.SparseEnumMessage buildPartial() { protobuf_unittest.UnittestProto.SparseEnumMessage result = new protobuf_unittest.UnittestProto.SparseEnumMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.sparseEnum_ = sparseEnum_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.SparseEnumMessage) { return mergeFrom((protobuf_unittest.UnittestProto.SparseEnumMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.SparseEnumMessage other) { if (other == protobuf_unittest.UnittestProto.SparseEnumMessage.getDefaultInstance()) return this; if (other.hasSparseEnum()) { setSparseEnum(other.getSparseEnum()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.SparseEnumMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.SparseEnumMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestSparseEnum sparseEnum_ = protobuf_unittest.UnittestProto.TestSparseEnum.SPARSE_A; /** * optional .protobuf_unittest.TestSparseEnum sparse_enum = 1; */ public boolean hasSparseEnum() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestSparseEnum sparse_enum = 1; */ public protobuf_unittest.UnittestProto.TestSparseEnum getSparseEnum() { return sparseEnum_; } /** * optional .protobuf_unittest.TestSparseEnum sparse_enum = 1; */ public Builder setSparseEnum(protobuf_unittest.UnittestProto.TestSparseEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; sparseEnum_ = value; onChanged(); return this; } /** * optional .protobuf_unittest.TestSparseEnum sparse_enum = 1; */ public Builder clearSparseEnum() { bitField0_ = (bitField0_ & ~0x00000001); sparseEnum_ = protobuf_unittest.UnittestProto.TestSparseEnum.SPARSE_A; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.SparseEnumMessage) } static { defaultInstance = new SparseEnumMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.SparseEnumMessage) } public interface OneStringOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.OneString) com.google.protobuf.MessageOrBuilder { /** * optional string data = 1; */ boolean hasData(); /** * optional string data = 1; */ java.lang.String getData(); /** * optional string data = 1; */ com.google.protobuf.ByteString getDataBytes(); } /** * Protobuf type {@code protobuf_unittest.OneString} * *
   * Test String and Bytes: string is for valid UTF-8 strings
   * 
*/ public static final class OneString extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.OneString) OneStringOrBuilder { // Use OneString.newBuilder() to construct. private OneString(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OneString(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OneString defaultInstance; public static OneString getDefaultInstance() { return defaultInstance; } public OneString getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OneString( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; data_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OneString_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OneString_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.OneString.class, protobuf_unittest.UnittestProto.OneString.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OneString parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OneString(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private java.lang.Object data_; /** * optional string data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string data = 1; */ public java.lang.String getData() { java.lang.Object ref = data_; 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()) { data_ = s; } return s; } } /** * optional string data = 1; */ public com.google.protobuf.ByteString getDataBytes() { java.lang.Object ref = data_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); data_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { data_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getDataBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getDataBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.OneString parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.OneString parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.OneString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.OneString parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.OneString parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.OneString parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.OneString parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.OneString parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.OneString parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.OneString parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.OneString prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.OneString} * *
     * Test String and Bytes: string is for valid UTF-8 strings
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.OneString) protobuf_unittest.UnittestProto.OneStringOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OneString_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OneString_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.OneString.class, protobuf_unittest.UnittestProto.OneString.Builder.class); } // Construct using protobuf_unittest.UnittestProto.OneString.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OneString_descriptor; } public protobuf_unittest.UnittestProto.OneString getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.OneString.getDefaultInstance(); } public protobuf_unittest.UnittestProto.OneString build() { protobuf_unittest.UnittestProto.OneString result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.OneString buildPartial() { protobuf_unittest.UnittestProto.OneString result = new protobuf_unittest.UnittestProto.OneString(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.OneString) { return mergeFrom((protobuf_unittest.UnittestProto.OneString)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.OneString other) { if (other == protobuf_unittest.UnittestProto.OneString.getDefaultInstance()) return this; if (other.hasData()) { bitField0_ |= 0x00000001; data_ = other.data_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.OneString parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.OneString) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object data_ = ""; /** * optional string data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string data = 1; */ public java.lang.String getData() { java.lang.Object ref = data_; 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()) { data_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string data = 1; */ public com.google.protobuf.ByteString getDataBytes() { java.lang.Object ref = data_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); data_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string data = 1; */ public Builder setData( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; data_ = value; onChanged(); return this; } /** * optional string data = 1; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = getDefaultInstance().getData(); onChanged(); return this; } /** * optional string data = 1; */ public Builder setDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; data_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.OneString) } static { defaultInstance = new OneString(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.OneString) } public interface MoreStringOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.MoreString) com.google.protobuf.MessageOrBuilder { /** * repeated string data = 1; */ com.google.protobuf.ProtocolStringList getDataList(); /** * repeated string data = 1; */ int getDataCount(); /** * repeated string data = 1; */ java.lang.String getData(int index); /** * repeated string data = 1; */ com.google.protobuf.ByteString getDataBytes(int index); } /** * Protobuf type {@code protobuf_unittest.MoreString} */ public static final class MoreString extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.MoreString) MoreStringOrBuilder { // Use MoreString.newBuilder() to construct. private MoreString(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private MoreString(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MoreString defaultInstance; public static MoreString getDefaultInstance() { return defaultInstance; } public MoreString getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MoreString( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } data_.add(bs); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = data_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_MoreString_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_MoreString_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.MoreString.class, protobuf_unittest.UnittestProto.MoreString.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MoreString parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MoreString(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList data_; /** * repeated string data = 1; */ public com.google.protobuf.ProtocolStringList getDataList() { return data_; } /** * repeated string data = 1; */ public int getDataCount() { return data_.size(); } /** * repeated string data = 1; */ public java.lang.String getData(int index) { return data_.get(index); } /** * repeated string data = 1; */ public com.google.protobuf.ByteString getDataBytes(int index) { return data_.getByteString(index); } private void initFields() { data_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < data_.size(); i++) { output.writeBytes(1, data_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < data_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(data_.getByteString(i)); } size += dataSize; size += 1 * getDataList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.MoreString parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.MoreString parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.MoreString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.MoreString parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.MoreString parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.MoreString parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.MoreString parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.MoreString parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.MoreString parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.MoreString parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.MoreString prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.MoreString} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.MoreString) protobuf_unittest.UnittestProto.MoreStringOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_MoreString_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_MoreString_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.MoreString.class, protobuf_unittest.UnittestProto.MoreString.Builder.class); } // Construct using protobuf_unittest.UnittestProto.MoreString.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_MoreString_descriptor; } public protobuf_unittest.UnittestProto.MoreString getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.MoreString.getDefaultInstance(); } public protobuf_unittest.UnittestProto.MoreString build() { protobuf_unittest.UnittestProto.MoreString result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.MoreString buildPartial() { protobuf_unittest.UnittestProto.MoreString result = new protobuf_unittest.UnittestProto.MoreString(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { data_ = data_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.MoreString) { return mergeFrom((protobuf_unittest.UnittestProto.MoreString)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.MoreString other) { if (other == protobuf_unittest.UnittestProto.MoreString.getDefaultInstance()) return this; if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.MoreString parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.MoreString) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList data_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { data_ = new com.google.protobuf.LazyStringArrayList(data_); bitField0_ |= 0x00000001; } } /** * repeated string data = 1; */ public com.google.protobuf.ProtocolStringList getDataList() { return data_.getUnmodifiableView(); } /** * repeated string data = 1; */ public int getDataCount() { return data_.size(); } /** * repeated string data = 1; */ public java.lang.String getData(int index) { return data_.get(index); } /** * repeated string data = 1; */ public com.google.protobuf.ByteString getDataBytes(int index) { return data_.getByteString(index); } /** * repeated string data = 1; */ public Builder setData( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); return this; } /** * repeated string data = 1; */ public Builder addData( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); return this; } /** * repeated string data = 1; */ public Builder addAllData( java.lang.Iterable values) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); return this; } /** * repeated string data = 1; */ public Builder clearData() { data_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string data = 1; */ public Builder addDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.MoreString) } static { defaultInstance = new MoreString(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.MoreString) } public interface OneBytesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.OneBytes) com.google.protobuf.MessageOrBuilder { /** * optional bytes data = 1; */ boolean hasData(); /** * optional bytes data = 1; */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code protobuf_unittest.OneBytes} */ public static final class OneBytes extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.OneBytes) OneBytesOrBuilder { // Use OneBytes.newBuilder() to construct. private OneBytes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OneBytes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OneBytes defaultInstance; public static OneBytes getDefaultInstance() { return defaultInstance; } public OneBytes getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OneBytes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; data_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OneBytes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OneBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.OneBytes.class, protobuf_unittest.UnittestProto.OneBytes.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OneBytes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OneBytes(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_; /** * optional bytes data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes data = 1; */ public com.google.protobuf.ByteString getData() { return data_; } private void initFields() { data_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, data_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.OneBytes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.OneBytes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.OneBytes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.OneBytes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.OneBytes parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.OneBytes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.OneBytes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.OneBytes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.OneBytes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.OneBytes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.OneBytes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.OneBytes} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.OneBytes) protobuf_unittest.UnittestProto.OneBytesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OneBytes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OneBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.OneBytes.class, protobuf_unittest.UnittestProto.OneBytes.Builder.class); } // Construct using protobuf_unittest.UnittestProto.OneBytes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_OneBytes_descriptor; } public protobuf_unittest.UnittestProto.OneBytes getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.OneBytes.getDefaultInstance(); } public protobuf_unittest.UnittestProto.OneBytes build() { protobuf_unittest.UnittestProto.OneBytes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.OneBytes buildPartial() { protobuf_unittest.UnittestProto.OneBytes result = new protobuf_unittest.UnittestProto.OneBytes(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.OneBytes) { return mergeFrom((protobuf_unittest.UnittestProto.OneBytes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.OneBytes other) { if (other == protobuf_unittest.UnittestProto.OneBytes.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.OneBytes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.OneBytes) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes data = 1; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 1; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; data_ = value; onChanged(); return this; } /** * optional bytes data = 1; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = getDefaultInstance().getData(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.OneBytes) } static { defaultInstance = new OneBytes(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.OneBytes) } public interface MoreBytesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.MoreBytes) com.google.protobuf.MessageOrBuilder { /** * repeated bytes data = 1; */ java.util.List getDataList(); /** * repeated bytes data = 1; */ int getDataCount(); /** * repeated bytes data = 1; */ com.google.protobuf.ByteString getData(int index); } /** * Protobuf type {@code protobuf_unittest.MoreBytes} */ public static final class MoreBytes extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.MoreBytes) MoreBytesOrBuilder { // Use MoreBytes.newBuilder() to construct. private MoreBytes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private MoreBytes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MoreBytes defaultInstance; public static MoreBytes getDefaultInstance() { return defaultInstance; } public MoreBytes getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MoreBytes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } data_.add(input.readBytes()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_MoreBytes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_MoreBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.MoreBytes.class, protobuf_unittest.UnittestProto.MoreBytes.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MoreBytes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MoreBytes(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int DATA_FIELD_NUMBER = 1; private java.util.List data_; /** * repeated bytes data = 1; */ public java.util.List getDataList() { return data_; } /** * repeated bytes data = 1; */ public int getDataCount() { return data_.size(); } /** * repeated bytes data = 1; */ public com.google.protobuf.ByteString getData(int index) { return data_.get(index); } private void initFields() { data_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < data_.size(); i++) { output.writeBytes(1, data_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < data_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(data_.get(i)); } size += dataSize; size += 1 * getDataList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.MoreBytes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.MoreBytes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.MoreBytes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.MoreBytes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.MoreBytes parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.MoreBytes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.MoreBytes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.MoreBytes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.MoreBytes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.MoreBytes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.MoreBytes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.MoreBytes} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.MoreBytes) protobuf_unittest.UnittestProto.MoreBytesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_MoreBytes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_MoreBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.MoreBytes.class, protobuf_unittest.UnittestProto.MoreBytes.Builder.class); } // Construct using protobuf_unittest.UnittestProto.MoreBytes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_MoreBytes_descriptor; } public protobuf_unittest.UnittestProto.MoreBytes getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.MoreBytes.getDefaultInstance(); } public protobuf_unittest.UnittestProto.MoreBytes build() { protobuf_unittest.UnittestProto.MoreBytes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.MoreBytes buildPartial() { protobuf_unittest.UnittestProto.MoreBytes result = new protobuf_unittest.UnittestProto.MoreBytes(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.MoreBytes) { return mergeFrom((protobuf_unittest.UnittestProto.MoreBytes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.MoreBytes other) { if (other == protobuf_unittest.UnittestProto.MoreBytes.getDefaultInstance()) return this; if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.MoreBytes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.MoreBytes) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { data_ = new java.util.ArrayList(data_); bitField0_ |= 0x00000001; } } /** * repeated bytes data = 1; */ public java.util.List getDataList() { return java.util.Collections.unmodifiableList(data_); } /** * repeated bytes data = 1; */ public int getDataCount() { return data_.size(); } /** * repeated bytes data = 1; */ public com.google.protobuf.ByteString getData(int index) { return data_.get(index); } /** * repeated bytes data = 1; */ public Builder setData( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); return this; } /** * repeated bytes data = 1; */ public Builder addData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); return this; } /** * repeated bytes data = 1; */ public Builder addAllData( java.lang.Iterable values) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); return this; } /** * repeated bytes data = 1; */ public Builder clearData() { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.MoreBytes) } static { defaultInstance = new MoreBytes(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.MoreBytes) } public interface Int32MessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.Int32Message) com.google.protobuf.MessageOrBuilder { /** * optional int32 data = 1; */ boolean hasData(); /** * optional int32 data = 1; */ int getData(); } /** * Protobuf type {@code protobuf_unittest.Int32Message} * *
   * Test int32, uint32, int64, uint64, and bool are all compatible
   * 
*/ public static final class Int32Message extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.Int32Message) Int32MessageOrBuilder { // Use Int32Message.newBuilder() to construct. private Int32Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Int32Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Int32Message defaultInstance; public static Int32Message getDefaultInstance() { return defaultInstance; } public Int32Message getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Int32Message( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; data_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Int32Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Int32Message_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.Int32Message.class, protobuf_unittest.UnittestProto.Int32Message.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Int32Message parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Int32Message(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private int data_; /** * optional int32 data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 data = 1; */ public int getData() { return data_; } private void initFields() { data_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, data_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, data_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.Int32Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.Int32Message parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.Int32Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.Int32Message parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.Int32Message parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.Int32Message parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.Int32Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.Int32Message parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.Int32Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.Int32Message parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.Int32Message prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.Int32Message} * *
     * Test int32, uint32, int64, uint64, and bool are all compatible
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.Int32Message) protobuf_unittest.UnittestProto.Int32MessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Int32Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Int32Message_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.Int32Message.class, protobuf_unittest.UnittestProto.Int32Message.Builder.class); } // Construct using protobuf_unittest.UnittestProto.Int32Message.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Int32Message_descriptor; } public protobuf_unittest.UnittestProto.Int32Message getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.Int32Message.getDefaultInstance(); } public protobuf_unittest.UnittestProto.Int32Message build() { protobuf_unittest.UnittestProto.Int32Message result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.Int32Message buildPartial() { protobuf_unittest.UnittestProto.Int32Message result = new protobuf_unittest.UnittestProto.Int32Message(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.Int32Message) { return mergeFrom((protobuf_unittest.UnittestProto.Int32Message)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.Int32Message other) { if (other == protobuf_unittest.UnittestProto.Int32Message.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.Int32Message parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.Int32Message) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int data_ ; /** * optional int32 data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 data = 1; */ public int getData() { return data_; } /** * optional int32 data = 1; */ public Builder setData(int value) { bitField0_ |= 0x00000001; data_ = value; onChanged(); return this; } /** * optional int32 data = 1; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.Int32Message) } static { defaultInstance = new Int32Message(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.Int32Message) } public interface Uint32MessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.Uint32Message) com.google.protobuf.MessageOrBuilder { /** * optional uint32 data = 1; */ boolean hasData(); /** * optional uint32 data = 1; */ int getData(); } /** * Protobuf type {@code protobuf_unittest.Uint32Message} */ public static final class Uint32Message extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.Uint32Message) Uint32MessageOrBuilder { // Use Uint32Message.newBuilder() to construct. private Uint32Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Uint32Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Uint32Message defaultInstance; public static Uint32Message getDefaultInstance() { return defaultInstance; } public Uint32Message getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Uint32Message( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; data_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Uint32Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Uint32Message_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.Uint32Message.class, protobuf_unittest.UnittestProto.Uint32Message.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Uint32Message parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Uint32Message(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private int data_; /** * optional uint32 data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 data = 1; */ public int getData() { return data_; } private void initFields() { data_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, data_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, data_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.Uint32Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.Uint32Message parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.Uint32Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.Uint32Message parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.Uint32Message parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.Uint32Message parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.Uint32Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.Uint32Message parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.Uint32Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.Uint32Message parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.Uint32Message prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.Uint32Message} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.Uint32Message) protobuf_unittest.UnittestProto.Uint32MessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Uint32Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Uint32Message_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.Uint32Message.class, protobuf_unittest.UnittestProto.Uint32Message.Builder.class); } // Construct using protobuf_unittest.UnittestProto.Uint32Message.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Uint32Message_descriptor; } public protobuf_unittest.UnittestProto.Uint32Message getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.Uint32Message.getDefaultInstance(); } public protobuf_unittest.UnittestProto.Uint32Message build() { protobuf_unittest.UnittestProto.Uint32Message result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.Uint32Message buildPartial() { protobuf_unittest.UnittestProto.Uint32Message result = new protobuf_unittest.UnittestProto.Uint32Message(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.Uint32Message) { return mergeFrom((protobuf_unittest.UnittestProto.Uint32Message)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.Uint32Message other) { if (other == protobuf_unittest.UnittestProto.Uint32Message.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.Uint32Message parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.Uint32Message) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int data_ ; /** * optional uint32 data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 data = 1; */ public int getData() { return data_; } /** * optional uint32 data = 1; */ public Builder setData(int value) { bitField0_ |= 0x00000001; data_ = value; onChanged(); return this; } /** * optional uint32 data = 1; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.Uint32Message) } static { defaultInstance = new Uint32Message(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.Uint32Message) } public interface Int64MessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.Int64Message) com.google.protobuf.MessageOrBuilder { /** * optional int64 data = 1; */ boolean hasData(); /** * optional int64 data = 1; */ long getData(); } /** * Protobuf type {@code protobuf_unittest.Int64Message} */ public static final class Int64Message extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.Int64Message) Int64MessageOrBuilder { // Use Int64Message.newBuilder() to construct. private Int64Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Int64Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Int64Message defaultInstance; public static Int64Message getDefaultInstance() { return defaultInstance; } public Int64Message getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Int64Message( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; data_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Int64Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Int64Message_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.Int64Message.class, protobuf_unittest.UnittestProto.Int64Message.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Int64Message parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Int64Message(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private long data_; /** * optional int64 data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 data = 1; */ public long getData() { return data_; } private void initFields() { data_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, data_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, data_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.Int64Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.Int64Message parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.Int64Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.Int64Message parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.Int64Message parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.Int64Message parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.Int64Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.Int64Message parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.Int64Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.Int64Message parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.Int64Message prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.Int64Message} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.Int64Message) protobuf_unittest.UnittestProto.Int64MessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Int64Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Int64Message_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.Int64Message.class, protobuf_unittest.UnittestProto.Int64Message.Builder.class); } // Construct using protobuf_unittest.UnittestProto.Int64Message.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Int64Message_descriptor; } public protobuf_unittest.UnittestProto.Int64Message getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.Int64Message.getDefaultInstance(); } public protobuf_unittest.UnittestProto.Int64Message build() { protobuf_unittest.UnittestProto.Int64Message result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.Int64Message buildPartial() { protobuf_unittest.UnittestProto.Int64Message result = new protobuf_unittest.UnittestProto.Int64Message(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.Int64Message) { return mergeFrom((protobuf_unittest.UnittestProto.Int64Message)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.Int64Message other) { if (other == protobuf_unittest.UnittestProto.Int64Message.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.Int64Message parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.Int64Message) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long data_ ; /** * optional int64 data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 data = 1; */ public long getData() { return data_; } /** * optional int64 data = 1; */ public Builder setData(long value) { bitField0_ |= 0x00000001; data_ = value; onChanged(); return this; } /** * optional int64 data = 1; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.Int64Message) } static { defaultInstance = new Int64Message(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.Int64Message) } public interface Uint64MessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.Uint64Message) com.google.protobuf.MessageOrBuilder { /** * optional uint64 data = 1; */ boolean hasData(); /** * optional uint64 data = 1; */ long getData(); } /** * Protobuf type {@code protobuf_unittest.Uint64Message} */ public static final class Uint64Message extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.Uint64Message) Uint64MessageOrBuilder { // Use Uint64Message.newBuilder() to construct. private Uint64Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Uint64Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Uint64Message defaultInstance; public static Uint64Message getDefaultInstance() { return defaultInstance; } public Uint64Message getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Uint64Message( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; data_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Uint64Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Uint64Message_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.Uint64Message.class, protobuf_unittest.UnittestProto.Uint64Message.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Uint64Message parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Uint64Message(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private long data_; /** * optional uint64 data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint64 data = 1; */ public long getData() { return data_; } private void initFields() { data_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt64(1, data_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, data_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.Uint64Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.Uint64Message parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.Uint64Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.Uint64Message parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.Uint64Message parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.Uint64Message parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.Uint64Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.Uint64Message parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.Uint64Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.Uint64Message parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.Uint64Message prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.Uint64Message} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.Uint64Message) protobuf_unittest.UnittestProto.Uint64MessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Uint64Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Uint64Message_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.Uint64Message.class, protobuf_unittest.UnittestProto.Uint64Message.Builder.class); } // Construct using protobuf_unittest.UnittestProto.Uint64Message.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_Uint64Message_descriptor; } public protobuf_unittest.UnittestProto.Uint64Message getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.Uint64Message.getDefaultInstance(); } public protobuf_unittest.UnittestProto.Uint64Message build() { protobuf_unittest.UnittestProto.Uint64Message result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.Uint64Message buildPartial() { protobuf_unittest.UnittestProto.Uint64Message result = new protobuf_unittest.UnittestProto.Uint64Message(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.Uint64Message) { return mergeFrom((protobuf_unittest.UnittestProto.Uint64Message)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.Uint64Message other) { if (other == protobuf_unittest.UnittestProto.Uint64Message.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.Uint64Message parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.Uint64Message) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long data_ ; /** * optional uint64 data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint64 data = 1; */ public long getData() { return data_; } /** * optional uint64 data = 1; */ public Builder setData(long value) { bitField0_ |= 0x00000001; data_ = value; onChanged(); return this; } /** * optional uint64 data = 1; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.Uint64Message) } static { defaultInstance = new Uint64Message(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.Uint64Message) } public interface BoolMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.BoolMessage) com.google.protobuf.MessageOrBuilder { /** * optional bool data = 1; */ boolean hasData(); /** * optional bool data = 1; */ boolean getData(); } /** * Protobuf type {@code protobuf_unittest.BoolMessage} */ public static final class BoolMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.BoolMessage) BoolMessageOrBuilder { // Use BoolMessage.newBuilder() to construct. private BoolMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private BoolMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final BoolMessage defaultInstance; public static BoolMessage getDefaultInstance() { return defaultInstance; } public BoolMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BoolMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; data_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BoolMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BoolMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.BoolMessage.class, protobuf_unittest.UnittestProto.BoolMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BoolMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoolMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private boolean data_; /** * optional bool data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool data = 1; */ public boolean getData() { return data_; } private void initFields() { data_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, data_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, data_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.BoolMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.BoolMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.BoolMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.BoolMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.BoolMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.BoolMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.BoolMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.BoolMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.BoolMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.BoolMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.BoolMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.BoolMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.BoolMessage) protobuf_unittest.UnittestProto.BoolMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BoolMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BoolMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.BoolMessage.class, protobuf_unittest.UnittestProto.BoolMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.BoolMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = false; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BoolMessage_descriptor; } public protobuf_unittest.UnittestProto.BoolMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.BoolMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.BoolMessage build() { protobuf_unittest.UnittestProto.BoolMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.BoolMessage buildPartial() { protobuf_unittest.UnittestProto.BoolMessage result = new protobuf_unittest.UnittestProto.BoolMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.BoolMessage) { return mergeFrom((protobuf_unittest.UnittestProto.BoolMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.BoolMessage other) { if (other == protobuf_unittest.UnittestProto.BoolMessage.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.BoolMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.BoolMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean data_ ; /** * optional bool data = 1; */ public boolean hasData() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool data = 1; */ public boolean getData() { return data_; } /** * optional bool data = 1; */ public Builder setData(boolean value) { bitField0_ |= 0x00000001; data_ = value; onChanged(); return this; } /** * optional bool data = 1; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.BoolMessage) } static { defaultInstance = new BoolMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.BoolMessage) } public interface TestOneofOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestOneof) com.google.protobuf.MessageOrBuilder { /** * optional int32 foo_int = 1; */ boolean hasFooInt(); /** * optional int32 foo_int = 1; */ int getFooInt(); /** * optional string foo_string = 2; */ boolean hasFooString(); /** * optional string foo_string = 2; */ java.lang.String getFooString(); /** * optional string foo_string = 2; */ com.google.protobuf.ByteString getFooStringBytes(); /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ boolean hasFooMessage(); /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ protobuf_unittest.UnittestProto.TestAllTypes getFooMessage(); /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getFooMessageOrBuilder(); /** * optional group FooGroup = 4 { ... } */ boolean hasFooGroup(); /** * optional group FooGroup = 4 { ... } */ protobuf_unittest.UnittestProto.TestOneof.FooGroup getFooGroup(); /** * optional group FooGroup = 4 { ... } */ protobuf_unittest.UnittestProto.TestOneof.FooGroupOrBuilder getFooGroupOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestOneof} * *
   * Test oneofs.
   * 
*/ public static final class TestOneof extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestOneof) TestOneofOrBuilder { // Use TestOneof.newBuilder() to construct. private TestOneof(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestOneof(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestOneof defaultInstance; public static TestOneof getDefaultInstance() { return defaultInstance; } public TestOneof getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestOneof( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { fooCase_ = 1; foo_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); fooCase_ = 2; foo_ = bs; break; } case 26: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (fooCase_ == 3) { subBuilder = ((protobuf_unittest.UnittestProto.TestAllTypes) foo_).toBuilder(); } foo_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((protobuf_unittest.UnittestProto.TestAllTypes) foo_); foo_ = subBuilder.buildPartial(); } fooCase_ = 3; break; } case 35: { protobuf_unittest.UnittestProto.TestOneof.FooGroup.Builder subBuilder = null; if (fooCase_ == 4) { subBuilder = ((protobuf_unittest.UnittestProto.TestOneof.FooGroup) foo_).toBuilder(); } foo_ = input.readGroup(4, protobuf_unittest.UnittestProto.TestOneof.FooGroup.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((protobuf_unittest.UnittestProto.TestOneof.FooGroup) foo_); foo_ = subBuilder.buildPartial(); } fooCase_ = 4; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneof.class, protobuf_unittest.UnittestProto.TestOneof.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestOneof parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestOneof(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface FooGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestOneof.FooGroup) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 5; */ boolean hasA(); /** * optional int32 a = 5; */ int getA(); /** * optional string b = 6; */ boolean hasB(); /** * optional string b = 6; */ java.lang.String getB(); /** * optional string b = 6; */ com.google.protobuf.ByteString getBBytes(); } /** * Protobuf type {@code protobuf_unittest.TestOneof.FooGroup} */ public static final class FooGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestOneof.FooGroup) FooGroupOrBuilder { // Use FooGroup.newBuilder() to construct. private FooGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FooGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FooGroup defaultInstance; public static FooGroup getDefaultInstance() { return defaultInstance; } public FooGroup getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FooGroup( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 40: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; b_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof_FooGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof_FooGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneof.FooGroup.class, protobuf_unittest.UnittestProto.TestOneof.FooGroup.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FooGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FooGroup(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 5; private int a_; /** * optional int32 a = 5; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 5; */ public int getA() { return a_; } public static final int B_FIELD_NUMBER = 6; private java.lang.Object b_; /** * optional string b = 6; */ public boolean hasB() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string b = 6; */ public java.lang.String getB() { java.lang.Object ref = b_; 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()) { b_ = s; } return s; } } /** * optional string b = 6; */ public com.google.protobuf.ByteString getBBytes() { java.lang.Object ref = b_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); b_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { a_ = 0; b_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(5, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(6, getBBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getBBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestOneof.FooGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneof.FooGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof.FooGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneof.FooGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof.FooGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof.FooGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof.FooGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof.FooGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof.FooGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof.FooGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestOneof.FooGroup prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestOneof.FooGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestOneof.FooGroup) protobuf_unittest.UnittestProto.TestOneof.FooGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof_FooGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof_FooGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneof.FooGroup.class, protobuf_unittest.UnittestProto.TestOneof.FooGroup.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestOneof.FooGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); b_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof_FooGroup_descriptor; } public protobuf_unittest.UnittestProto.TestOneof.FooGroup getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestOneof.FooGroup.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestOneof.FooGroup build() { protobuf_unittest.UnittestProto.TestOneof.FooGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestOneof.FooGroup buildPartial() { protobuf_unittest.UnittestProto.TestOneof.FooGroup result = new protobuf_unittest.UnittestProto.TestOneof.FooGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.b_ = b_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestOneof.FooGroup) { return mergeFrom((protobuf_unittest.UnittestProto.TestOneof.FooGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestOneof.FooGroup other) { if (other == protobuf_unittest.UnittestProto.TestOneof.FooGroup.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } if (other.hasB()) { bitField0_ |= 0x00000002; b_ = other.b_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestOneof.FooGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestOneof.FooGroup) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 5; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 5; */ public int getA() { return a_; } /** * optional int32 a = 5; */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 5; */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } private java.lang.Object b_ = ""; /** * optional string b = 6; */ public boolean hasB() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string b = 6; */ public java.lang.String getB() { java.lang.Object ref = b_; 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()) { b_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string b = 6; */ public com.google.protobuf.ByteString getBBytes() { java.lang.Object ref = b_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); b_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string b = 6; */ public Builder setB( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; b_ = value; onChanged(); return this; } /** * optional string b = 6; */ public Builder clearB() { bitField0_ = (bitField0_ & ~0x00000002); b_ = getDefaultInstance().getB(); onChanged(); return this; } /** * optional string b = 6; */ public Builder setBBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; b_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestOneof.FooGroup) } static { defaultInstance = new FooGroup(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof.FooGroup) } private int bitField0_; private int fooCase_ = 0; private java.lang.Object foo_; public enum FooCase implements com.google.protobuf.Internal.EnumLite { FOO_INT(1), FOO_STRING(2), FOO_MESSAGE(3), FOOGROUP(4), FOO_NOT_SET(0); private int value = 0; private FooCase(int value) { this.value = value; } public static FooCase valueOf(int value) { switch (value) { case 1: return FOO_INT; case 2: return FOO_STRING; case 3: return FOO_MESSAGE; case 4: return FOOGROUP; case 0: return FOO_NOT_SET; default: throw new java.lang.IllegalArgumentException( "Value is undefined for this oneof enum."); } } public int getNumber() { return this.value; } }; public FooCase getFooCase() { return FooCase.valueOf( fooCase_); } public static final int FOO_INT_FIELD_NUMBER = 1; /** * optional int32 foo_int = 1; */ public boolean hasFooInt() { return fooCase_ == 1; } /** * optional int32 foo_int = 1; */ public int getFooInt() { if (fooCase_ == 1) { return (java.lang.Integer) foo_; } return 0; } public static final int FOO_STRING_FIELD_NUMBER = 2; /** * optional string foo_string = 2; */ public boolean hasFooString() { return fooCase_ == 2; } /** * optional string foo_string = 2; */ public java.lang.String getFooString() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } 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() && (fooCase_ == 2)) { foo_ = s; } return s; } } /** * optional string foo_string = 2; */ public com.google.protobuf.ByteString getFooStringBytes() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fooCase_ == 2) { foo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOO_MESSAGE_FIELD_NUMBER = 3; /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public boolean hasFooMessage() { return fooCase_ == 3; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes getFooMessage() { if (fooCase_ == 3) { return (protobuf_unittest.UnittestProto.TestAllTypes) foo_; } return protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getFooMessageOrBuilder() { if (fooCase_ == 3) { return (protobuf_unittest.UnittestProto.TestAllTypes) foo_; } return protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } public static final int FOOGROUP_FIELD_NUMBER = 4; /** * optional group FooGroup = 4 { ... } */ public boolean hasFooGroup() { return fooCase_ == 4; } /** * optional group FooGroup = 4 { ... } */ public protobuf_unittest.UnittestProto.TestOneof.FooGroup getFooGroup() { if (fooCase_ == 4) { return (protobuf_unittest.UnittestProto.TestOneof.FooGroup) foo_; } return protobuf_unittest.UnittestProto.TestOneof.FooGroup.getDefaultInstance(); } /** * optional group FooGroup = 4 { ... } */ public protobuf_unittest.UnittestProto.TestOneof.FooGroupOrBuilder getFooGroupOrBuilder() { if (fooCase_ == 4) { return (protobuf_unittest.UnittestProto.TestOneof.FooGroup) foo_; } return protobuf_unittest.UnittestProto.TestOneof.FooGroup.getDefaultInstance(); } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (fooCase_ == 1) { output.writeInt32( 1, (int)((java.lang.Integer) foo_)); } if (fooCase_ == 2) { output.writeBytes(2, getFooStringBytes()); } if (fooCase_ == 3) { output.writeMessage(3, (protobuf_unittest.UnittestProto.TestAllTypes) foo_); } if (fooCase_ == 4) { output.writeGroup(4, (protobuf_unittest.UnittestProto.TestOneof.FooGroup) foo_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (fooCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 1, (int)((java.lang.Integer) foo_)); } if (fooCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFooStringBytes()); } if (fooCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (protobuf_unittest.UnittestProto.TestAllTypes) foo_); } if (fooCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(4, (protobuf_unittest.UnittestProto.TestOneof.FooGroup) foo_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestOneof parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneof parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneof parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestOneof prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestOneof} * *
     * Test oneofs.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestOneof) protobuf_unittest.UnittestProto.TestOneofOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneof.class, protobuf_unittest.UnittestProto.TestOneof.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestOneof.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); fooCase_ = 0; foo_ = null; return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof_descriptor; } public protobuf_unittest.UnittestProto.TestOneof getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestOneof.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestOneof build() { protobuf_unittest.UnittestProto.TestOneof result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestOneof buildPartial() { protobuf_unittest.UnittestProto.TestOneof result = new protobuf_unittest.UnittestProto.TestOneof(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (fooCase_ == 1) { result.foo_ = foo_; } if (fooCase_ == 2) { result.foo_ = foo_; } if (fooCase_ == 3) { if (fooMessageBuilder_ == null) { result.foo_ = foo_; } else { result.foo_ = fooMessageBuilder_.build(); } } if (fooCase_ == 4) { if (fooGroupBuilder_ == null) { result.foo_ = foo_; } else { result.foo_ = fooGroupBuilder_.build(); } } result.bitField0_ = to_bitField0_; result.fooCase_ = fooCase_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestOneof) { return mergeFrom((protobuf_unittest.UnittestProto.TestOneof)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestOneof other) { if (other == protobuf_unittest.UnittestProto.TestOneof.getDefaultInstance()) return this; switch (other.getFooCase()) { case FOO_INT: { setFooInt(other.getFooInt()); break; } case FOO_STRING: { fooCase_ = 2; foo_ = other.foo_; onChanged(); break; } case FOO_MESSAGE: { mergeFooMessage(other.getFooMessage()); break; } case FOOGROUP: { mergeFooGroup(other.getFooGroup()); break; } case FOO_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestOneof parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestOneof) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fooCase_ = 0; private java.lang.Object foo_; public FooCase getFooCase() { return FooCase.valueOf( fooCase_); } public Builder clearFoo() { fooCase_ = 0; foo_ = null; onChanged(); return this; } private int bitField0_; /** * optional int32 foo_int = 1; */ public boolean hasFooInt() { return fooCase_ == 1; } /** * optional int32 foo_int = 1; */ public int getFooInt() { if (fooCase_ == 1) { return (java.lang.Integer) foo_; } return 0; } /** * optional int32 foo_int = 1; */ public Builder setFooInt(int value) { fooCase_ = 1; foo_ = value; onChanged(); return this; } /** * optional int32 foo_int = 1; */ public Builder clearFooInt() { if (fooCase_ == 1) { fooCase_ = 0; foo_ = null; onChanged(); } return this; } /** * optional string foo_string = 2; */ public boolean hasFooString() { return fooCase_ == 2; } /** * optional string foo_string = 2; */ public java.lang.String getFooString() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fooCase_ == 2) { if (bs.isValidUtf8()) { foo_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * optional string foo_string = 2; */ public com.google.protobuf.ByteString getFooStringBytes() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fooCase_ == 2) { foo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string foo_string = 2; */ public Builder setFooString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 2; foo_ = value; onChanged(); return this; } /** * optional string foo_string = 2; */ public Builder clearFooString() { if (fooCase_ == 2) { fooCase_ = 0; foo_ = null; onChanged(); } return this; } /** * optional string foo_string = 2; */ public Builder setFooStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 2; foo_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> fooMessageBuilder_; /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public boolean hasFooMessage() { return fooCase_ == 3; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes getFooMessage() { if (fooMessageBuilder_ == null) { if (fooCase_ == 3) { return (protobuf_unittest.UnittestProto.TestAllTypes) foo_; } return protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { if (fooCase_ == 3) { return fooMessageBuilder_.getMessage(); } return protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public Builder setFooMessage(protobuf_unittest.UnittestProto.TestAllTypes value) { if (fooMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } foo_ = value; onChanged(); } else { fooMessageBuilder_.setMessage(value); } fooCase_ = 3; return this; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public Builder setFooMessage( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (fooMessageBuilder_ == null) { foo_ = builderForValue.build(); onChanged(); } else { fooMessageBuilder_.setMessage(builderForValue.build()); } fooCase_ = 3; return this; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public Builder mergeFooMessage(protobuf_unittest.UnittestProto.TestAllTypes value) { if (fooMessageBuilder_ == null) { if (fooCase_ == 3 && foo_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { foo_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder((protobuf_unittest.UnittestProto.TestAllTypes) foo_) .mergeFrom(value).buildPartial(); } else { foo_ = value; } onChanged(); } else { if (fooCase_ == 3) { fooMessageBuilder_.mergeFrom(value); } fooMessageBuilder_.setMessage(value); } fooCase_ = 3; return this; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public Builder clearFooMessage() { if (fooMessageBuilder_ == null) { if (fooCase_ == 3) { fooCase_ = 0; foo_ = null; onChanged(); } } else { if (fooCase_ == 3) { fooCase_ = 0; foo_ = null; } fooMessageBuilder_.clear(); } return this; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getFooMessageBuilder() { return getFooMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getFooMessageOrBuilder() { if ((fooCase_ == 3) && (fooMessageBuilder_ != null)) { return fooMessageBuilder_.getMessageOrBuilder(); } else { if (fooCase_ == 3) { return (protobuf_unittest.UnittestProto.TestAllTypes) foo_; } return protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getFooMessageFieldBuilder() { if (fooMessageBuilder_ == null) { if (!(fooCase_ == 3)) { foo_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } fooMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( (protobuf_unittest.UnittestProto.TestAllTypes) foo_, getParentForChildren(), isClean()); foo_ = null; } fooCase_ = 3; return fooMessageBuilder_; } private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof.FooGroup, protobuf_unittest.UnittestProto.TestOneof.FooGroup.Builder, protobuf_unittest.UnittestProto.TestOneof.FooGroupOrBuilder> fooGroupBuilder_; /** * optional group FooGroup = 4 { ... } */ public boolean hasFooGroup() { return fooCase_ == 4; } /** * optional group FooGroup = 4 { ... } */ public protobuf_unittest.UnittestProto.TestOneof.FooGroup getFooGroup() { if (fooGroupBuilder_ == null) { if (fooCase_ == 4) { return (protobuf_unittest.UnittestProto.TestOneof.FooGroup) foo_; } return protobuf_unittest.UnittestProto.TestOneof.FooGroup.getDefaultInstance(); } else { if (fooCase_ == 4) { return fooGroupBuilder_.getMessage(); } return protobuf_unittest.UnittestProto.TestOneof.FooGroup.getDefaultInstance(); } } /** * optional group FooGroup = 4 { ... } */ public Builder setFooGroup(protobuf_unittest.UnittestProto.TestOneof.FooGroup value) { if (fooGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } foo_ = value; onChanged(); } else { fooGroupBuilder_.setMessage(value); } fooCase_ = 4; return this; } /** * optional group FooGroup = 4 { ... } */ public Builder setFooGroup( protobuf_unittest.UnittestProto.TestOneof.FooGroup.Builder builderForValue) { if (fooGroupBuilder_ == null) { foo_ = builderForValue.build(); onChanged(); } else { fooGroupBuilder_.setMessage(builderForValue.build()); } fooCase_ = 4; return this; } /** * optional group FooGroup = 4 { ... } */ public Builder mergeFooGroup(protobuf_unittest.UnittestProto.TestOneof.FooGroup value) { if (fooGroupBuilder_ == null) { if (fooCase_ == 4 && foo_ != protobuf_unittest.UnittestProto.TestOneof.FooGroup.getDefaultInstance()) { foo_ = protobuf_unittest.UnittestProto.TestOneof.FooGroup.newBuilder((protobuf_unittest.UnittestProto.TestOneof.FooGroup) foo_) .mergeFrom(value).buildPartial(); } else { foo_ = value; } onChanged(); } else { if (fooCase_ == 4) { fooGroupBuilder_.mergeFrom(value); } fooGroupBuilder_.setMessage(value); } fooCase_ = 4; return this; } /** * optional group FooGroup = 4 { ... } */ public Builder clearFooGroup() { if (fooGroupBuilder_ == null) { if (fooCase_ == 4) { fooCase_ = 0; foo_ = null; onChanged(); } } else { if (fooCase_ == 4) { fooCase_ = 0; foo_ = null; } fooGroupBuilder_.clear(); } return this; } /** * optional group FooGroup = 4 { ... } */ public protobuf_unittest.UnittestProto.TestOneof.FooGroup.Builder getFooGroupBuilder() { return getFooGroupFieldBuilder().getBuilder(); } /** * optional group FooGroup = 4 { ... } */ public protobuf_unittest.UnittestProto.TestOneof.FooGroupOrBuilder getFooGroupOrBuilder() { if ((fooCase_ == 4) && (fooGroupBuilder_ != null)) { return fooGroupBuilder_.getMessageOrBuilder(); } else { if (fooCase_ == 4) { return (protobuf_unittest.UnittestProto.TestOneof.FooGroup) foo_; } return protobuf_unittest.UnittestProto.TestOneof.FooGroup.getDefaultInstance(); } } /** * optional group FooGroup = 4 { ... } */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof.FooGroup, protobuf_unittest.UnittestProto.TestOneof.FooGroup.Builder, protobuf_unittest.UnittestProto.TestOneof.FooGroupOrBuilder> getFooGroupFieldBuilder() { if (fooGroupBuilder_ == null) { if (!(fooCase_ == 4)) { foo_ = protobuf_unittest.UnittestProto.TestOneof.FooGroup.getDefaultInstance(); } fooGroupBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof.FooGroup, protobuf_unittest.UnittestProto.TestOneof.FooGroup.Builder, protobuf_unittest.UnittestProto.TestOneof.FooGroupOrBuilder>( (protobuf_unittest.UnittestProto.TestOneof.FooGroup) foo_, getParentForChildren(), isClean()); foo_ = null; } fooCase_ = 4; return fooGroupBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestOneof) } static { defaultInstance = new TestOneof(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof) } public interface TestOneofBackwardsCompatibleOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestOneofBackwardsCompatible) com.google.protobuf.MessageOrBuilder { /** * optional int32 foo_int = 1; */ boolean hasFooInt(); /** * optional int32 foo_int = 1; */ int getFooInt(); /** * optional string foo_string = 2; */ boolean hasFooString(); /** * optional string foo_string = 2; */ java.lang.String getFooString(); /** * optional string foo_string = 2; */ com.google.protobuf.ByteString getFooStringBytes(); /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ boolean hasFooMessage(); /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ protobuf_unittest.UnittestProto.TestAllTypes getFooMessage(); /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getFooMessageOrBuilder(); /** * optional group FooGroup = 4 { ... } */ boolean hasFooGroup(); /** * optional group FooGroup = 4 { ... } */ protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup getFooGroup(); /** * optional group FooGroup = 4 { ... } */ protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroupOrBuilder getFooGroupOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestOneofBackwardsCompatible} */ public static final class TestOneofBackwardsCompatible extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestOneofBackwardsCompatible) TestOneofBackwardsCompatibleOrBuilder { // Use TestOneofBackwardsCompatible.newBuilder() to construct. private TestOneofBackwardsCompatible(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestOneofBackwardsCompatible(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestOneofBackwardsCompatible defaultInstance; public static TestOneofBackwardsCompatible getDefaultInstance() { return defaultInstance; } public TestOneofBackwardsCompatible getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestOneofBackwardsCompatible( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; fooInt_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fooString_ = bs; break; } case 26: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = fooMessage_.toBuilder(); } fooMessage_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fooMessage_); fooMessage_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 35: { protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = fooGroup_.toBuilder(); } fooGroup_ = input.readGroup(4, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fooGroup_); fooGroup_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneofBackwardsCompatible_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneofBackwardsCompatible_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.class, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestOneofBackwardsCompatible parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestOneofBackwardsCompatible(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface FooGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 5; */ boolean hasA(); /** * optional int32 a = 5; */ int getA(); /** * optional string b = 6; */ boolean hasB(); /** * optional string b = 6; */ java.lang.String getB(); /** * optional string b = 6; */ com.google.protobuf.ByteString getBBytes(); } /** * Protobuf type {@code protobuf_unittest.TestOneofBackwardsCompatible.FooGroup} */ public static final class FooGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup) FooGroupOrBuilder { // Use FooGroup.newBuilder() to construct. private FooGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FooGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FooGroup defaultInstance; public static FooGroup getDefaultInstance() { return defaultInstance; } public FooGroup getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FooGroup( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 40: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; b_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.class, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FooGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FooGroup(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 5; private int a_; /** * optional int32 a = 5; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 5; */ public int getA() { return a_; } public static final int B_FIELD_NUMBER = 6; private java.lang.Object b_; /** * optional string b = 6; */ public boolean hasB() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string b = 6; */ public java.lang.String getB() { java.lang.Object ref = b_; 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()) { b_ = s; } return s; } } /** * optional string b = 6; */ public com.google.protobuf.ByteString getBBytes() { java.lang.Object ref = b_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); b_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { a_ = 0; b_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(5, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(6, getBBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getBBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestOneofBackwardsCompatible.FooGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup) protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.class, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); b_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup_descriptor; } public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup build() { protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup buildPartial() { protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup result = new protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.b_ = b_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup) { return mergeFrom((protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup other) { if (other == protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } if (other.hasB()) { bitField0_ |= 0x00000002; b_ = other.b_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 5; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 5; */ public int getA() { return a_; } /** * optional int32 a = 5; */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 5; */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } private java.lang.Object b_ = ""; /** * optional string b = 6; */ public boolean hasB() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string b = 6; */ public java.lang.String getB() { java.lang.Object ref = b_; 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()) { b_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string b = 6; */ public com.google.protobuf.ByteString getBBytes() { java.lang.Object ref = b_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); b_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string b = 6; */ public Builder setB( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; b_ = value; onChanged(); return this; } /** * optional string b = 6; */ public Builder clearB() { bitField0_ = (bitField0_ & ~0x00000002); b_ = getDefaultInstance().getB(); onChanged(); return this; } /** * optional string b = 6; */ public Builder setBBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; b_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup) } static { defaultInstance = new FooGroup(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup) } private int bitField0_; public static final int FOO_INT_FIELD_NUMBER = 1; private int fooInt_; /** * optional int32 foo_int = 1; */ public boolean hasFooInt() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 foo_int = 1; */ public int getFooInt() { return fooInt_; } public static final int FOO_STRING_FIELD_NUMBER = 2; private java.lang.Object fooString_; /** * optional string foo_string = 2; */ public boolean hasFooString() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string foo_string = 2; */ public java.lang.String getFooString() { java.lang.Object ref = fooString_; 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()) { fooString_ = s; } return s; } } /** * optional string foo_string = 2; */ public com.google.protobuf.ByteString getFooStringBytes() { java.lang.Object ref = fooString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fooString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOO_MESSAGE_FIELD_NUMBER = 3; private protobuf_unittest.UnittestProto.TestAllTypes fooMessage_; /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public boolean hasFooMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes getFooMessage() { return fooMessage_; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getFooMessageOrBuilder() { return fooMessage_; } public static final int FOOGROUP_FIELD_NUMBER = 4; private protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup fooGroup_; /** * optional group FooGroup = 4 { ... } */ public boolean hasFooGroup() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional group FooGroup = 4 { ... } */ public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup getFooGroup() { return fooGroup_; } /** * optional group FooGroup = 4 { ... } */ public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroupOrBuilder getFooGroupOrBuilder() { return fooGroup_; } private void initFields() { fooInt_ = 0; fooString_ = ""; fooMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); fooGroup_ = protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, fooInt_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getFooStringBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, fooMessage_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeGroup(4, fooGroup_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, fooInt_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFooStringBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, fooMessage_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(4, fooGroup_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestOneofBackwardsCompatible} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestOneofBackwardsCompatible) protobuf_unittest.UnittestProto.TestOneofBackwardsCompatibleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneofBackwardsCompatible_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneofBackwardsCompatible_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.class, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFooMessageFieldBuilder(); getFooGroupFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); fooInt_ = 0; bitField0_ = (bitField0_ & ~0x00000001); fooString_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (fooMessageBuilder_ == null) { fooMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { fooMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (fooGroupBuilder_ == null) { fooGroup_ = protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.getDefaultInstance(); } else { fooGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneofBackwardsCompatible_descriptor; } public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible build() { protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible buildPartial() { protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible result = new protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.fooInt_ = fooInt_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fooString_ = fooString_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (fooMessageBuilder_ == null) { result.fooMessage_ = fooMessage_; } else { result.fooMessage_ = fooMessageBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (fooGroupBuilder_ == null) { result.fooGroup_ = fooGroup_; } else { result.fooGroup_ = fooGroupBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible) { return mergeFrom((protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible other) { if (other == protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.getDefaultInstance()) return this; if (other.hasFooInt()) { setFooInt(other.getFooInt()); } if (other.hasFooString()) { bitField0_ |= 0x00000002; fooString_ = other.fooString_; onChanged(); } if (other.hasFooMessage()) { mergeFooMessage(other.getFooMessage()); } if (other.hasFooGroup()) { mergeFooGroup(other.getFooGroup()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int fooInt_ ; /** * optional int32 foo_int = 1; */ public boolean hasFooInt() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 foo_int = 1; */ public int getFooInt() { return fooInt_; } /** * optional int32 foo_int = 1; */ public Builder setFooInt(int value) { bitField0_ |= 0x00000001; fooInt_ = value; onChanged(); return this; } /** * optional int32 foo_int = 1; */ public Builder clearFooInt() { bitField0_ = (bitField0_ & ~0x00000001); fooInt_ = 0; onChanged(); return this; } private java.lang.Object fooString_ = ""; /** * optional string foo_string = 2; */ public boolean hasFooString() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string foo_string = 2; */ public java.lang.String getFooString() { java.lang.Object ref = fooString_; 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()) { fooString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string foo_string = 2; */ public com.google.protobuf.ByteString getFooStringBytes() { java.lang.Object ref = fooString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fooString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string foo_string = 2; */ public Builder setFooString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fooString_ = value; onChanged(); return this; } /** * optional string foo_string = 2; */ public Builder clearFooString() { bitField0_ = (bitField0_ & ~0x00000002); fooString_ = getDefaultInstance().getFooString(); onChanged(); return this; } /** * optional string foo_string = 2; */ public Builder setFooStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fooString_ = value; onChanged(); return this; } private protobuf_unittest.UnittestProto.TestAllTypes fooMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> fooMessageBuilder_; /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public boolean hasFooMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes getFooMessage() { if (fooMessageBuilder_ == null) { return fooMessage_; } else { return fooMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public Builder setFooMessage(protobuf_unittest.UnittestProto.TestAllTypes value) { if (fooMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fooMessage_ = value; onChanged(); } else { fooMessageBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public Builder setFooMessage( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (fooMessageBuilder_ == null) { fooMessage_ = builderForValue.build(); onChanged(); } else { fooMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public Builder mergeFooMessage(protobuf_unittest.UnittestProto.TestAllTypes value) { if (fooMessageBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && fooMessage_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { fooMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(fooMessage_).mergeFrom(value).buildPartial(); } else { fooMessage_ = value; } onChanged(); } else { fooMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public Builder clearFooMessage() { if (fooMessageBuilder_ == null) { fooMessage_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); onChanged(); } else { fooMessageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getFooMessageBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFooMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getFooMessageOrBuilder() { if (fooMessageBuilder_ != null) { return fooMessageBuilder_.getMessageOrBuilder(); } else { return fooMessage_; } } /** * optional .protobuf_unittest.TestAllTypes foo_message = 3; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getFooMessageFieldBuilder() { if (fooMessageBuilder_ == null) { fooMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( getFooMessage(), getParentForChildren(), isClean()); fooMessage_ = null; } return fooMessageBuilder_; } private protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup fooGroup_ = protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.Builder, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroupOrBuilder> fooGroupBuilder_; /** * optional group FooGroup = 4 { ... } */ public boolean hasFooGroup() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional group FooGroup = 4 { ... } */ public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup getFooGroup() { if (fooGroupBuilder_ == null) { return fooGroup_; } else { return fooGroupBuilder_.getMessage(); } } /** * optional group FooGroup = 4 { ... } */ public Builder setFooGroup(protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup value) { if (fooGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fooGroup_ = value; onChanged(); } else { fooGroupBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional group FooGroup = 4 { ... } */ public Builder setFooGroup( protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.Builder builderForValue) { if (fooGroupBuilder_ == null) { fooGroup_ = builderForValue.build(); onChanged(); } else { fooGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional group FooGroup = 4 { ... } */ public Builder mergeFooGroup(protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup value) { if (fooGroupBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && fooGroup_ != protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.getDefaultInstance()) { fooGroup_ = protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.newBuilder(fooGroup_).mergeFrom(value).buildPartial(); } else { fooGroup_ = value; } onChanged(); } else { fooGroupBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional group FooGroup = 4 { ... } */ public Builder clearFooGroup() { if (fooGroupBuilder_ == null) { fooGroup_ = protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.getDefaultInstance(); onChanged(); } else { fooGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional group FooGroup = 4 { ... } */ public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.Builder getFooGroupBuilder() { bitField0_ |= 0x00000008; onChanged(); return getFooGroupFieldBuilder().getBuilder(); } /** * optional group FooGroup = 4 { ... } */ public protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroupOrBuilder getFooGroupOrBuilder() { if (fooGroupBuilder_ != null) { return fooGroupBuilder_.getMessageOrBuilder(); } else { return fooGroup_; } } /** * optional group FooGroup = 4 { ... } */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.Builder, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroupOrBuilder> getFooGroupFieldBuilder() { if (fooGroupBuilder_ == null) { fooGroupBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroup.Builder, protobuf_unittest.UnittestProto.TestOneofBackwardsCompatible.FooGroupOrBuilder>( getFooGroup(), getParentForChildren(), isClean()); fooGroup_ = null; } return fooGroupBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestOneofBackwardsCompatible) } static { defaultInstance = new TestOneofBackwardsCompatible(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneofBackwardsCompatible) } public interface TestOneof2OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestOneof2) com.google.protobuf.MessageOrBuilder { /** * optional int32 foo_int = 1; */ boolean hasFooInt(); /** * optional int32 foo_int = 1; */ int getFooInt(); /** * optional string foo_string = 2; */ boolean hasFooString(); /** * optional string foo_string = 2; */ java.lang.String getFooString(); /** * optional string foo_string = 2; */ com.google.protobuf.ByteString getFooStringBytes(); /** * optional string foo_cord = 3 [ctype = CORD]; */ boolean hasFooCord(); /** * optional string foo_cord = 3 [ctype = CORD]; */ java.lang.String getFooCord(); /** * optional string foo_cord = 3 [ctype = CORD]; */ com.google.protobuf.ByteString getFooCordBytes(); /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ boolean hasFooStringPiece(); /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ java.lang.String getFooStringPiece(); /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ com.google.protobuf.ByteString getFooStringPieceBytes(); /** * optional bytes foo_bytes = 5; */ boolean hasFooBytes(); /** * optional bytes foo_bytes = 5; */ com.google.protobuf.ByteString getFooBytes(); /** * optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6; */ boolean hasFooEnum(); /** * optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6; */ protobuf_unittest.UnittestProto.TestOneof2.NestedEnum getFooEnum(); /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ boolean hasFooMessage(); /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ protobuf_unittest.UnittestProto.TestOneof2.NestedMessage getFooMessage(); /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder getFooMessageOrBuilder(); /** * optional group FooGroup = 8 { ... } */ boolean hasFooGroup(); /** * optional group FooGroup = 8 { ... } */ protobuf_unittest.UnittestProto.TestOneof2.FooGroup getFooGroup(); /** * optional group FooGroup = 8 { ... } */ protobuf_unittest.UnittestProto.TestOneof2.FooGroupOrBuilder getFooGroupOrBuilder(); /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ boolean hasFooLazyMessage(); /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ protobuf_unittest.UnittestProto.TestOneof2.NestedMessage getFooLazyMessage(); /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder getFooLazyMessageOrBuilder(); /** * optional int32 bar_int = 12 [default = 5]; */ boolean hasBarInt(); /** * optional int32 bar_int = 12 [default = 5]; */ int getBarInt(); /** * optional string bar_string = 13 [default = "STRING"]; */ boolean hasBarString(); /** * optional string bar_string = 13 [default = "STRING"]; */ java.lang.String getBarString(); /** * optional string bar_string = 13 [default = "STRING"]; */ com.google.protobuf.ByteString getBarStringBytes(); /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ boolean hasBarCord(); /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ java.lang.String getBarCord(); /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ com.google.protobuf.ByteString getBarCordBytes(); /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ boolean hasBarStringPiece(); /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ java.lang.String getBarStringPiece(); /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ com.google.protobuf.ByteString getBarStringPieceBytes(); /** * optional bytes bar_bytes = 16 [default = "BYTES"]; */ boolean hasBarBytes(); /** * optional bytes bar_bytes = 16 [default = "BYTES"]; */ com.google.protobuf.ByteString getBarBytes(); /** * optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR]; */ boolean hasBarEnum(); /** * optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR]; */ protobuf_unittest.UnittestProto.TestOneof2.NestedEnum getBarEnum(); /** * optional int32 baz_int = 18; */ boolean hasBazInt(); /** * optional int32 baz_int = 18; */ int getBazInt(); /** * optional string baz_string = 19 [default = "BAZ"]; */ boolean hasBazString(); /** * optional string baz_string = 19 [default = "BAZ"]; */ java.lang.String getBazString(); /** * optional string baz_string = 19 [default = "BAZ"]; */ com.google.protobuf.ByteString getBazStringBytes(); } /** * Protobuf type {@code protobuf_unittest.TestOneof2} */ public static final class TestOneof2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestOneof2) TestOneof2OrBuilder { // Use TestOneof2.newBuilder() to construct. private TestOneof2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestOneof2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestOneof2 defaultInstance; public static TestOneof2 getDefaultInstance() { return defaultInstance; } public TestOneof2 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestOneof2( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { fooCase_ = 1; foo_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); fooCase_ = 2; foo_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); fooCase_ = 3; foo_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); fooCase_ = 4; foo_ = bs; break; } case 42: { fooCase_ = 5; foo_ = input.readBytes(); break; } case 48: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.TestOneof2.NestedEnum value = protobuf_unittest.UnittestProto.TestOneof2.NestedEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue); } else { fooCase_ = 6; foo_ = value; } break; } case 58: { protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder subBuilder = null; if (fooCase_ == 7) { subBuilder = ((protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_).toBuilder(); } foo_ = input.readMessage(protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_); foo_ = subBuilder.buildPartial(); } fooCase_ = 7; break; } case 67: { protobuf_unittest.UnittestProto.TestOneof2.FooGroup.Builder subBuilder = null; if (fooCase_ == 8) { subBuilder = ((protobuf_unittest.UnittestProto.TestOneof2.FooGroup) foo_).toBuilder(); } foo_ = input.readGroup(8, protobuf_unittest.UnittestProto.TestOneof2.FooGroup.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((protobuf_unittest.UnittestProto.TestOneof2.FooGroup) foo_); foo_ = subBuilder.buildPartial(); } fooCase_ = 8; break; } case 90: { protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder subBuilder = null; if (fooCase_ == 11) { subBuilder = ((protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_).toBuilder(); } foo_ = input.readMessage(protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_); foo_ = subBuilder.buildPartial(); } fooCase_ = 11; break; } case 96: { barCase_ = 12; bar_ = input.readInt32(); break; } case 106: { com.google.protobuf.ByteString bs = input.readBytes(); barCase_ = 13; bar_ = bs; break; } case 114: { com.google.protobuf.ByteString bs = input.readBytes(); barCase_ = 14; bar_ = bs; break; } case 122: { com.google.protobuf.ByteString bs = input.readBytes(); barCase_ = 15; bar_ = bs; break; } case 130: { barCase_ = 16; bar_ = input.readBytes(); break; } case 136: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.TestOneof2.NestedEnum value = protobuf_unittest.UnittestProto.TestOneof2.NestedEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(17, rawValue); } else { barCase_ = 17; bar_ = value; } break; } case 144: { bitField0_ |= 0x00008000; bazInt_ = input.readInt32(); break; } case 154: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00010000; bazString_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneof2.class, protobuf_unittest.UnittestProto.TestOneof2.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestOneof2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestOneof2(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code protobuf_unittest.TestOneof2.NestedEnum} */ public enum NestedEnum implements com.google.protobuf.ProtocolMessageEnum { /** * FOO = 1; */ FOO(0, 1), /** * BAR = 2; */ BAR(1, 2), /** * BAZ = 3; */ BAZ(2, 3), ; /** * FOO = 1; */ public static final int FOO_VALUE = 1; /** * BAR = 2; */ public static final int BAR_VALUE = 2; /** * BAZ = 3; */ public static final int BAZ_VALUE = 3; public final int getNumber() { return value; } public static NestedEnum valueOf(int value) { switch (value) { case 1: return FOO; case 2: return BAR; case 3: return BAZ; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public NestedEnum findValueByNumber(int number) { return NestedEnum.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return protobuf_unittest.UnittestProto.TestOneof2.getDescriptor().getEnumTypes().get(0); } private static final NestedEnum[] VALUES = values(); public static NestedEnum valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private NestedEnum(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protobuf_unittest.TestOneof2.NestedEnum) } public interface FooGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestOneof2.FooGroup) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 9; */ boolean hasA(); /** * optional int32 a = 9; */ int getA(); /** * optional string b = 10; */ boolean hasB(); /** * optional string b = 10; */ java.lang.String getB(); /** * optional string b = 10; */ com.google.protobuf.ByteString getBBytes(); } /** * Protobuf type {@code protobuf_unittest.TestOneof2.FooGroup} */ public static final class FooGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestOneof2.FooGroup) FooGroupOrBuilder { // Use FooGroup.newBuilder() to construct. private FooGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FooGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FooGroup defaultInstance; public static FooGroup getDefaultInstance() { return defaultInstance; } public FooGroup getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FooGroup( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 72: { bitField0_ |= 0x00000001; a_ = input.readInt32(); break; } case 82: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; b_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_FooGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_FooGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneof2.FooGroup.class, protobuf_unittest.UnittestProto.TestOneof2.FooGroup.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FooGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FooGroup(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 9; private int a_; /** * optional int32 a = 9; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 9; */ public int getA() { return a_; } public static final int B_FIELD_NUMBER = 10; private java.lang.Object b_; /** * optional string b = 10; */ public boolean hasB() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string b = 10; */ public java.lang.String getB() { java.lang.Object ref = b_; 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()) { b_ = s; } return s; } } /** * optional string b = 10; */ public com.google.protobuf.ByteString getBBytes() { java.lang.Object ref = b_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); b_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { a_ = 0; b_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(9, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(10, getBBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, a_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, getBBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestOneof2.FooGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneof2.FooGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2.FooGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneof2.FooGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2.FooGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof2.FooGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2.FooGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof2.FooGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2.FooGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof2.FooGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestOneof2.FooGroup prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestOneof2.FooGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestOneof2.FooGroup) protobuf_unittest.UnittestProto.TestOneof2.FooGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_FooGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_FooGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneof2.FooGroup.class, protobuf_unittest.UnittestProto.TestOneof2.FooGroup.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestOneof2.FooGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = 0; bitField0_ = (bitField0_ & ~0x00000001); b_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_FooGroup_descriptor; } public protobuf_unittest.UnittestProto.TestOneof2.FooGroup getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestOneof2.FooGroup.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestOneof2.FooGroup build() { protobuf_unittest.UnittestProto.TestOneof2.FooGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestOneof2.FooGroup buildPartial() { protobuf_unittest.UnittestProto.TestOneof2.FooGroup result = new protobuf_unittest.UnittestProto.TestOneof2.FooGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.b_ = b_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestOneof2.FooGroup) { return mergeFrom((protobuf_unittest.UnittestProto.TestOneof2.FooGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestOneof2.FooGroup other) { if (other == protobuf_unittest.UnittestProto.TestOneof2.FooGroup.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } if (other.hasB()) { bitField0_ |= 0x00000002; b_ = other.b_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestOneof2.FooGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestOneof2.FooGroup) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 9; */ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 a = 9; */ public int getA() { return a_; } /** * optional int32 a = 9; */ public Builder setA(int value) { bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional int32 a = 9; */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } private java.lang.Object b_ = ""; /** * optional string b = 10; */ public boolean hasB() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string b = 10; */ public java.lang.String getB() { java.lang.Object ref = b_; 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()) { b_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string b = 10; */ public com.google.protobuf.ByteString getBBytes() { java.lang.Object ref = b_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); b_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string b = 10; */ public Builder setB( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; b_ = value; onChanged(); return this; } /** * optional string b = 10; */ public Builder clearB() { bitField0_ = (bitField0_ & ~0x00000002); b_ = getDefaultInstance().getB(); onChanged(); return this; } /** * optional string b = 10; */ public Builder setBBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; b_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestOneof2.FooGroup) } static { defaultInstance = new FooGroup(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof2.FooGroup) } public interface NestedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestOneof2.NestedMessage) com.google.protobuf.MessageOrBuilder { /** * optional int64 qux_int = 1; */ boolean hasQuxInt(); /** * optional int64 qux_int = 1; */ long getQuxInt(); /** * repeated int32 corge_int = 2; */ java.util.List getCorgeIntList(); /** * repeated int32 corge_int = 2; */ int getCorgeIntCount(); /** * repeated int32 corge_int = 2; */ int getCorgeInt(int index); } /** * Protobuf type {@code protobuf_unittest.TestOneof2.NestedMessage} */ public static final class NestedMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestOneof2.NestedMessage) NestedMessageOrBuilder { // Use NestedMessage.newBuilder() to construct. private NestedMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NestedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NestedMessage defaultInstance; public static NestedMessage getDefaultInstance() { return defaultInstance; } public NestedMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NestedMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; quxInt_ = input.readInt64(); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { corgeInt_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } corgeInt_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { corgeInt_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { corgeInt_.add(input.readInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { corgeInt_ = java.util.Collections.unmodifiableList(corgeInt_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.class, protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NestedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NestedMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int QUX_INT_FIELD_NUMBER = 1; private long quxInt_; /** * optional int64 qux_int = 1; */ public boolean hasQuxInt() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 qux_int = 1; */ public long getQuxInt() { return quxInt_; } public static final int CORGE_INT_FIELD_NUMBER = 2; private java.util.List corgeInt_; /** * repeated int32 corge_int = 2; */ public java.util.List getCorgeIntList() { return corgeInt_; } /** * repeated int32 corge_int = 2; */ public int getCorgeIntCount() { return corgeInt_.size(); } /** * repeated int32 corge_int = 2; */ public int getCorgeInt(int index) { return corgeInt_.get(index); } private void initFields() { quxInt_ = 0L; corgeInt_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, quxInt_); } for (int i = 0; i < corgeInt_.size(); i++) { output.writeInt32(2, corgeInt_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, quxInt_); } { int dataSize = 0; for (int i = 0; i < corgeInt_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(corgeInt_.get(i)); } size += dataSize; size += 1 * getCorgeIntList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestOneof2.NestedMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestOneof2.NestedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestOneof2.NestedMessage) protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.class, protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); quxInt_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); corgeInt_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_NestedMessage_descriptor; } public protobuf_unittest.UnittestProto.TestOneof2.NestedMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestOneof2.NestedMessage build() { protobuf_unittest.UnittestProto.TestOneof2.NestedMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestOneof2.NestedMessage buildPartial() { protobuf_unittest.UnittestProto.TestOneof2.NestedMessage result = new protobuf_unittest.UnittestProto.TestOneof2.NestedMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.quxInt_ = quxInt_; if (((bitField0_ & 0x00000002) == 0x00000002)) { corgeInt_ = java.util.Collections.unmodifiableList(corgeInt_); bitField0_ = (bitField0_ & ~0x00000002); } result.corgeInt_ = corgeInt_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) { return mergeFrom((protobuf_unittest.UnittestProto.TestOneof2.NestedMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestOneof2.NestedMessage other) { if (other == protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance()) return this; if (other.hasQuxInt()) { setQuxInt(other.getQuxInt()); } if (!other.corgeInt_.isEmpty()) { if (corgeInt_.isEmpty()) { corgeInt_ = other.corgeInt_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCorgeIntIsMutable(); corgeInt_.addAll(other.corgeInt_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestOneof2.NestedMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long quxInt_ ; /** * optional int64 qux_int = 1; */ public boolean hasQuxInt() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 qux_int = 1; */ public long getQuxInt() { return quxInt_; } /** * optional int64 qux_int = 1; */ public Builder setQuxInt(long value) { bitField0_ |= 0x00000001; quxInt_ = value; onChanged(); return this; } /** * optional int64 qux_int = 1; */ public Builder clearQuxInt() { bitField0_ = (bitField0_ & ~0x00000001); quxInt_ = 0L; onChanged(); return this; } private java.util.List corgeInt_ = java.util.Collections.emptyList(); private void ensureCorgeIntIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { corgeInt_ = new java.util.ArrayList(corgeInt_); bitField0_ |= 0x00000002; } } /** * repeated int32 corge_int = 2; */ public java.util.List getCorgeIntList() { return java.util.Collections.unmodifiableList(corgeInt_); } /** * repeated int32 corge_int = 2; */ public int getCorgeIntCount() { return corgeInt_.size(); } /** * repeated int32 corge_int = 2; */ public int getCorgeInt(int index) { return corgeInt_.get(index); } /** * repeated int32 corge_int = 2; */ public Builder setCorgeInt( int index, int value) { ensureCorgeIntIsMutable(); corgeInt_.set(index, value); onChanged(); return this; } /** * repeated int32 corge_int = 2; */ public Builder addCorgeInt(int value) { ensureCorgeIntIsMutable(); corgeInt_.add(value); onChanged(); return this; } /** * repeated int32 corge_int = 2; */ public Builder addAllCorgeInt( java.lang.Iterable values) { ensureCorgeIntIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, corgeInt_); onChanged(); return this; } /** * repeated int32 corge_int = 2; */ public Builder clearCorgeInt() { corgeInt_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestOneof2.NestedMessage) } static { defaultInstance = new NestedMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof2.NestedMessage) } private int bitField0_; private int fooCase_ = 0; private java.lang.Object foo_; public enum FooCase implements com.google.protobuf.Internal.EnumLite { FOO_INT(1), FOO_STRING(2), FOO_CORD(3), FOO_STRING_PIECE(4), FOO_BYTES(5), FOO_ENUM(6), FOO_MESSAGE(7), FOOGROUP(8), FOO_LAZY_MESSAGE(11), FOO_NOT_SET(0); private int value = 0; private FooCase(int value) { this.value = value; } public static FooCase valueOf(int value) { switch (value) { case 1: return FOO_INT; case 2: return FOO_STRING; case 3: return FOO_CORD; case 4: return FOO_STRING_PIECE; case 5: return FOO_BYTES; case 6: return FOO_ENUM; case 7: return FOO_MESSAGE; case 8: return FOOGROUP; case 11: return FOO_LAZY_MESSAGE; case 0: return FOO_NOT_SET; default: throw new java.lang.IllegalArgumentException( "Value is undefined for this oneof enum."); } } public int getNumber() { return this.value; } }; public FooCase getFooCase() { return FooCase.valueOf( fooCase_); } private int barCase_ = 0; private java.lang.Object bar_; public enum BarCase implements com.google.protobuf.Internal.EnumLite { BAR_INT(12), BAR_STRING(13), BAR_CORD(14), BAR_STRING_PIECE(15), BAR_BYTES(16), BAR_ENUM(17), BAR_NOT_SET(0); private int value = 0; private BarCase(int value) { this.value = value; } public static BarCase valueOf(int value) { switch (value) { case 12: return BAR_INT; case 13: return BAR_STRING; case 14: return BAR_CORD; case 15: return BAR_STRING_PIECE; case 16: return BAR_BYTES; case 17: return BAR_ENUM; case 0: return BAR_NOT_SET; default: throw new java.lang.IllegalArgumentException( "Value is undefined for this oneof enum."); } } public int getNumber() { return this.value; } }; public BarCase getBarCase() { return BarCase.valueOf( barCase_); } public static final int FOO_INT_FIELD_NUMBER = 1; /** * optional int32 foo_int = 1; */ public boolean hasFooInt() { return fooCase_ == 1; } /** * optional int32 foo_int = 1; */ public int getFooInt() { if (fooCase_ == 1) { return (java.lang.Integer) foo_; } return 0; } public static final int FOO_STRING_FIELD_NUMBER = 2; /** * optional string foo_string = 2; */ public boolean hasFooString() { return fooCase_ == 2; } /** * optional string foo_string = 2; */ public java.lang.String getFooString() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } 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() && (fooCase_ == 2)) { foo_ = s; } return s; } } /** * optional string foo_string = 2; */ public com.google.protobuf.ByteString getFooStringBytes() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fooCase_ == 2) { foo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOO_CORD_FIELD_NUMBER = 3; /** * optional string foo_cord = 3 [ctype = CORD]; */ public boolean hasFooCord() { return fooCase_ == 3; } /** * optional string foo_cord = 3 [ctype = CORD]; */ public java.lang.String getFooCord() { java.lang.Object ref = ""; if (fooCase_ == 3) { ref = foo_; } 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() && (fooCase_ == 3)) { foo_ = s; } return s; } } /** * optional string foo_cord = 3 [ctype = CORD]; */ public com.google.protobuf.ByteString getFooCordBytes() { java.lang.Object ref = ""; if (fooCase_ == 3) { ref = foo_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fooCase_ == 3) { foo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOO_STRING_PIECE_FIELD_NUMBER = 4; /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ public boolean hasFooStringPiece() { return fooCase_ == 4; } /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ public java.lang.String getFooStringPiece() { java.lang.Object ref = ""; if (fooCase_ == 4) { ref = foo_; } 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() && (fooCase_ == 4)) { foo_ = s; } return s; } } /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getFooStringPieceBytes() { java.lang.Object ref = ""; if (fooCase_ == 4) { ref = foo_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fooCase_ == 4) { foo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOO_BYTES_FIELD_NUMBER = 5; /** * optional bytes foo_bytes = 5; */ public boolean hasFooBytes() { return fooCase_ == 5; } /** * optional bytes foo_bytes = 5; */ public com.google.protobuf.ByteString getFooBytes() { if (fooCase_ == 5) { return (com.google.protobuf.ByteString) foo_; } return com.google.protobuf.ByteString.EMPTY; } public static final int FOO_ENUM_FIELD_NUMBER = 6; /** * optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6; */ public boolean hasFooEnum() { return fooCase_ == 6; } /** * optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedEnum getFooEnum() { if (fooCase_ == 6) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedEnum) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedEnum.FOO; } public static final int FOO_MESSAGE_FIELD_NUMBER = 7; /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public boolean hasFooMessage() { return fooCase_ == 7; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedMessage getFooMessage() { if (fooCase_ == 7) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder getFooMessageOrBuilder() { if (fooCase_ == 7) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } public static final int FOOGROUP_FIELD_NUMBER = 8; /** * optional group FooGroup = 8 { ... } */ public boolean hasFooGroup() { return fooCase_ == 8; } /** * optional group FooGroup = 8 { ... } */ public protobuf_unittest.UnittestProto.TestOneof2.FooGroup getFooGroup() { if (fooCase_ == 8) { return (protobuf_unittest.UnittestProto.TestOneof2.FooGroup) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.FooGroup.getDefaultInstance(); } /** * optional group FooGroup = 8 { ... } */ public protobuf_unittest.UnittestProto.TestOneof2.FooGroupOrBuilder getFooGroupOrBuilder() { if (fooCase_ == 8) { return (protobuf_unittest.UnittestProto.TestOneof2.FooGroup) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.FooGroup.getDefaultInstance(); } public static final int FOO_LAZY_MESSAGE_FIELD_NUMBER = 11; /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public boolean hasFooLazyMessage() { return fooCase_ == 11; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedMessage getFooLazyMessage() { if (fooCase_ == 11) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder getFooLazyMessageOrBuilder() { if (fooCase_ == 11) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } public static final int BAR_INT_FIELD_NUMBER = 12; /** * optional int32 bar_int = 12 [default = 5]; */ public boolean hasBarInt() { return barCase_ == 12; } /** * optional int32 bar_int = 12 [default = 5]; */ public int getBarInt() { if (barCase_ == 12) { return (java.lang.Integer) bar_; } return 5; } public static final int BAR_STRING_FIELD_NUMBER = 13; /** * optional string bar_string = 13 [default = "STRING"]; */ public boolean hasBarString() { return barCase_ == 13; } /** * optional string bar_string = 13 [default = "STRING"]; */ public java.lang.String getBarString() { java.lang.Object ref = "STRING"; if (barCase_ == 13) { ref = bar_; } 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() && (barCase_ == 13)) { bar_ = s; } return s; } } /** * optional string bar_string = 13 [default = "STRING"]; */ public com.google.protobuf.ByteString getBarStringBytes() { java.lang.Object ref = "STRING"; if (barCase_ == 13) { ref = bar_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (barCase_ == 13) { bar_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BAR_CORD_FIELD_NUMBER = 14; /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ public boolean hasBarCord() { return barCase_ == 14; } /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ public java.lang.String getBarCord() { java.lang.Object ref = "CORD"; if (barCase_ == 14) { ref = bar_; } 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() && (barCase_ == 14)) { bar_ = s; } return s; } } /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ public com.google.protobuf.ByteString getBarCordBytes() { java.lang.Object ref = "CORD"; if (barCase_ == 14) { ref = bar_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (barCase_ == 14) { bar_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BAR_STRING_PIECE_FIELD_NUMBER = 15; /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ public boolean hasBarStringPiece() { return barCase_ == 15; } /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ public java.lang.String getBarStringPiece() { java.lang.Object ref = "SPIECE"; if (barCase_ == 15) { ref = bar_; } 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() && (barCase_ == 15)) { bar_ = s; } return s; } } /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getBarStringPieceBytes() { java.lang.Object ref = "SPIECE"; if (barCase_ == 15) { ref = bar_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (barCase_ == 15) { bar_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BAR_BYTES_FIELD_NUMBER = 16; /** * optional bytes bar_bytes = 16 [default = "BYTES"]; */ public boolean hasBarBytes() { return barCase_ == 16; } /** * optional bytes bar_bytes = 16 [default = "BYTES"]; */ public com.google.protobuf.ByteString getBarBytes() { if (barCase_ == 16) { return (com.google.protobuf.ByteString) bar_; } return com.google.protobuf.Internal.bytesDefaultValue("BYTES"); } public static final int BAR_ENUM_FIELD_NUMBER = 17; /** * optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR]; */ public boolean hasBarEnum() { return barCase_ == 17; } /** * optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR]; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedEnum getBarEnum() { if (barCase_ == 17) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedEnum) bar_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedEnum.BAR; } public static final int BAZ_INT_FIELD_NUMBER = 18; private int bazInt_; /** * optional int32 baz_int = 18; */ public boolean hasBazInt() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional int32 baz_int = 18; */ public int getBazInt() { return bazInt_; } public static final int BAZ_STRING_FIELD_NUMBER = 19; private java.lang.Object bazString_; /** * optional string baz_string = 19 [default = "BAZ"]; */ public boolean hasBazString() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional string baz_string = 19 [default = "BAZ"]; */ public java.lang.String getBazString() { java.lang.Object ref = bazString_; 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()) { bazString_ = s; } return s; } } /** * optional string baz_string = 19 [default = "BAZ"]; */ public com.google.protobuf.ByteString getBazStringBytes() { java.lang.Object ref = bazString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bazString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { bazInt_ = 0; bazString_ = "BAZ"; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (fooCase_ == 1) { output.writeInt32( 1, (int)((java.lang.Integer) foo_)); } if (fooCase_ == 2) { output.writeBytes(2, getFooStringBytes()); } if (fooCase_ == 3) { output.writeBytes(3, getFooCordBytes()); } if (fooCase_ == 4) { output.writeBytes(4, getFooStringPieceBytes()); } if (fooCase_ == 5) { output.writeBytes( 5, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) foo_)); } if (fooCase_ == 6) { output.writeEnum(6, ((protobuf_unittest.UnittestProto.TestOneof2.NestedEnum) foo_).getNumber()); } if (fooCase_ == 7) { output.writeMessage(7, (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_); } if (fooCase_ == 8) { output.writeGroup(8, (protobuf_unittest.UnittestProto.TestOneof2.FooGroup) foo_); } if (fooCase_ == 11) { output.writeMessage(11, (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_); } if (barCase_ == 12) { output.writeInt32( 12, (int)((java.lang.Integer) bar_)); } if (barCase_ == 13) { output.writeBytes(13, getBarStringBytes()); } if (barCase_ == 14) { output.writeBytes(14, getBarCordBytes()); } if (barCase_ == 15) { output.writeBytes(15, getBarStringPieceBytes()); } if (barCase_ == 16) { output.writeBytes( 16, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) bar_)); } if (barCase_ == 17) { output.writeEnum(17, ((protobuf_unittest.UnittestProto.TestOneof2.NestedEnum) bar_).getNumber()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeInt32(18, bazInt_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeBytes(19, getBazStringBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (fooCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 1, (int)((java.lang.Integer) foo_)); } if (fooCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFooStringBytes()); } if (fooCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getFooCordBytes()); } if (fooCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getFooStringPieceBytes()); } if (fooCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 5, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) foo_)); } if (fooCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, ((protobuf_unittest.UnittestProto.TestOneof2.NestedEnum) foo_).getNumber()); } if (fooCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_); } if (fooCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(8, (protobuf_unittest.UnittestProto.TestOneof2.FooGroup) foo_); } if (fooCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_); } if (barCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 12, (int)((java.lang.Integer) bar_)); } if (barCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, getBarStringBytes()); } if (barCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(14, getBarCordBytes()); } if (barCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, getBarStringPieceBytes()); } if (barCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 16, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) bar_)); } if (barCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(17, ((protobuf_unittest.UnittestProto.TestOneof2.NestedEnum) bar_).getNumber()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(18, bazInt_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(19, getBazStringBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestOneof2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneof2 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestOneof2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestOneof2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestOneof2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestOneof2 prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestOneof2} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestOneof2) protobuf_unittest.UnittestProto.TestOneof2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestOneof2.class, protobuf_unittest.UnittestProto.TestOneof2.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestOneof2.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); bazInt_ = 0; bitField0_ = (bitField0_ & ~0x00008000); bazString_ = "BAZ"; bitField0_ = (bitField0_ & ~0x00010000); fooCase_ = 0; foo_ = null; barCase_ = 0; bar_ = null; return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestOneof2_descriptor; } public protobuf_unittest.UnittestProto.TestOneof2 getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestOneof2.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestOneof2 build() { protobuf_unittest.UnittestProto.TestOneof2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestOneof2 buildPartial() { protobuf_unittest.UnittestProto.TestOneof2 result = new protobuf_unittest.UnittestProto.TestOneof2(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (fooCase_ == 1) { result.foo_ = foo_; } if (fooCase_ == 2) { result.foo_ = foo_; } if (fooCase_ == 3) { result.foo_ = foo_; } if (fooCase_ == 4) { result.foo_ = foo_; } if (fooCase_ == 5) { result.foo_ = foo_; } if (fooCase_ == 6) { result.foo_ = foo_; } if (fooCase_ == 7) { if (fooMessageBuilder_ == null) { result.foo_ = foo_; } else { result.foo_ = fooMessageBuilder_.build(); } } if (fooCase_ == 8) { if (fooGroupBuilder_ == null) { result.foo_ = foo_; } else { result.foo_ = fooGroupBuilder_.build(); } } if (fooCase_ == 11) { if (fooLazyMessageBuilder_ == null) { result.foo_ = foo_; } else { result.foo_ = fooLazyMessageBuilder_.build(); } } if (barCase_ == 12) { result.bar_ = bar_; } if (barCase_ == 13) { result.bar_ = bar_; } if (barCase_ == 14) { result.bar_ = bar_; } if (barCase_ == 15) { result.bar_ = bar_; } if (barCase_ == 16) { result.bar_ = bar_; } if (barCase_ == 17) { result.bar_ = bar_; } if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.bazInt_ = bazInt_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.bazString_ = bazString_; result.bitField0_ = to_bitField0_; result.fooCase_ = fooCase_; result.barCase_ = barCase_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestOneof2) { return mergeFrom((protobuf_unittest.UnittestProto.TestOneof2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestOneof2 other) { if (other == protobuf_unittest.UnittestProto.TestOneof2.getDefaultInstance()) return this; if (other.hasBazInt()) { setBazInt(other.getBazInt()); } if (other.hasBazString()) { bitField0_ |= 0x00010000; bazString_ = other.bazString_; onChanged(); } switch (other.getFooCase()) { case FOO_INT: { setFooInt(other.getFooInt()); break; } case FOO_STRING: { fooCase_ = 2; foo_ = other.foo_; onChanged(); break; } case FOO_CORD: { fooCase_ = 3; foo_ = other.foo_; onChanged(); break; } case FOO_STRING_PIECE: { fooCase_ = 4; foo_ = other.foo_; onChanged(); break; } case FOO_BYTES: { setFooBytes(other.getFooBytes()); break; } case FOO_ENUM: { setFooEnum(other.getFooEnum()); break; } case FOO_MESSAGE: { mergeFooMessage(other.getFooMessage()); break; } case FOOGROUP: { mergeFooGroup(other.getFooGroup()); break; } case FOO_LAZY_MESSAGE: { mergeFooLazyMessage(other.getFooLazyMessage()); break; } case FOO_NOT_SET: { break; } } switch (other.getBarCase()) { case BAR_INT: { setBarInt(other.getBarInt()); break; } case BAR_STRING: { barCase_ = 13; bar_ = other.bar_; onChanged(); break; } case BAR_CORD: { barCase_ = 14; bar_ = other.bar_; onChanged(); break; } case BAR_STRING_PIECE: { barCase_ = 15; bar_ = other.bar_; onChanged(); break; } case BAR_BYTES: { setBarBytes(other.getBarBytes()); break; } case BAR_ENUM: { setBarEnum(other.getBarEnum()); break; } case BAR_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestOneof2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestOneof2) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fooCase_ = 0; private java.lang.Object foo_; public FooCase getFooCase() { return FooCase.valueOf( fooCase_); } public Builder clearFoo() { fooCase_ = 0; foo_ = null; onChanged(); return this; } private int barCase_ = 0; private java.lang.Object bar_; public BarCase getBarCase() { return BarCase.valueOf( barCase_); } public Builder clearBar() { barCase_ = 0; bar_ = null; onChanged(); return this; } private int bitField0_; /** * optional int32 foo_int = 1; */ public boolean hasFooInt() { return fooCase_ == 1; } /** * optional int32 foo_int = 1; */ public int getFooInt() { if (fooCase_ == 1) { return (java.lang.Integer) foo_; } return 0; } /** * optional int32 foo_int = 1; */ public Builder setFooInt(int value) { fooCase_ = 1; foo_ = value; onChanged(); return this; } /** * optional int32 foo_int = 1; */ public Builder clearFooInt() { if (fooCase_ == 1) { fooCase_ = 0; foo_ = null; onChanged(); } return this; } /** * optional string foo_string = 2; */ public boolean hasFooString() { return fooCase_ == 2; } /** * optional string foo_string = 2; */ public java.lang.String getFooString() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fooCase_ == 2) { if (bs.isValidUtf8()) { foo_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * optional string foo_string = 2; */ public com.google.protobuf.ByteString getFooStringBytes() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fooCase_ == 2) { foo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string foo_string = 2; */ public Builder setFooString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 2; foo_ = value; onChanged(); return this; } /** * optional string foo_string = 2; */ public Builder clearFooString() { if (fooCase_ == 2) { fooCase_ = 0; foo_ = null; onChanged(); } return this; } /** * optional string foo_string = 2; */ public Builder setFooStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 2; foo_ = value; onChanged(); return this; } /** * optional string foo_cord = 3 [ctype = CORD]; */ public boolean hasFooCord() { return fooCase_ == 3; } /** * optional string foo_cord = 3 [ctype = CORD]; */ public java.lang.String getFooCord() { java.lang.Object ref = ""; if (fooCase_ == 3) { ref = foo_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fooCase_ == 3) { if (bs.isValidUtf8()) { foo_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * optional string foo_cord = 3 [ctype = CORD]; */ public com.google.protobuf.ByteString getFooCordBytes() { java.lang.Object ref = ""; if (fooCase_ == 3) { ref = foo_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fooCase_ == 3) { foo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string foo_cord = 3 [ctype = CORD]; */ public Builder setFooCord( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 3; foo_ = value; onChanged(); return this; } /** * optional string foo_cord = 3 [ctype = CORD]; */ public Builder clearFooCord() { if (fooCase_ == 3) { fooCase_ = 0; foo_ = null; onChanged(); } return this; } /** * optional string foo_cord = 3 [ctype = CORD]; */ public Builder setFooCordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 3; foo_ = value; onChanged(); return this; } /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ public boolean hasFooStringPiece() { return fooCase_ == 4; } /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ public java.lang.String getFooStringPiece() { java.lang.Object ref = ""; if (fooCase_ == 4) { ref = foo_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fooCase_ == 4) { if (bs.isValidUtf8()) { foo_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getFooStringPieceBytes() { java.lang.Object ref = ""; if (fooCase_ == 4) { ref = foo_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fooCase_ == 4) { foo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ public Builder setFooStringPiece( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 4; foo_ = value; onChanged(); return this; } /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ public Builder clearFooStringPiece() { if (fooCase_ == 4) { fooCase_ = 0; foo_ = null; onChanged(); } return this; } /** * optional string foo_string_piece = 4 [ctype = STRING_PIECE]; */ public Builder setFooStringPieceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 4; foo_ = value; onChanged(); return this; } /** * optional bytes foo_bytes = 5; */ public boolean hasFooBytes() { return fooCase_ == 5; } /** * optional bytes foo_bytes = 5; */ public com.google.protobuf.ByteString getFooBytes() { if (fooCase_ == 5) { return (com.google.protobuf.ByteString) foo_; } return com.google.protobuf.ByteString.EMPTY; } /** * optional bytes foo_bytes = 5; */ public Builder setFooBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 5; foo_ = value; onChanged(); return this; } /** * optional bytes foo_bytes = 5; */ public Builder clearFooBytes() { if (fooCase_ == 5) { fooCase_ = 0; foo_ = null; onChanged(); } return this; } /** * optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6; */ public boolean hasFooEnum() { return fooCase_ == 6; } /** * optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedEnum getFooEnum() { if (fooCase_ == 6) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedEnum) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedEnum.FOO; } /** * optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6; */ public Builder setFooEnum(protobuf_unittest.UnittestProto.TestOneof2.NestedEnum value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 6; foo_ = value; onChanged(); return this; } /** * optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6; */ public Builder clearFooEnum() { if (fooCase_ == 6) { fooCase_ = 0; foo_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof2.NestedMessage, protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder> fooMessageBuilder_; /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public boolean hasFooMessage() { return fooCase_ == 7; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedMessage getFooMessage() { if (fooMessageBuilder_ == null) { if (fooCase_ == 7) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } else { if (fooCase_ == 7) { return fooMessageBuilder_.getMessage(); } return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public Builder setFooMessage(protobuf_unittest.UnittestProto.TestOneof2.NestedMessage value) { if (fooMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } foo_ = value; onChanged(); } else { fooMessageBuilder_.setMessage(value); } fooCase_ = 7; return this; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public Builder setFooMessage( protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder builderForValue) { if (fooMessageBuilder_ == null) { foo_ = builderForValue.build(); onChanged(); } else { fooMessageBuilder_.setMessage(builderForValue.build()); } fooCase_ = 7; return this; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public Builder mergeFooMessage(protobuf_unittest.UnittestProto.TestOneof2.NestedMessage value) { if (fooMessageBuilder_ == null) { if (fooCase_ == 7 && foo_ != protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance()) { foo_ = protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.newBuilder((protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_) .mergeFrom(value).buildPartial(); } else { foo_ = value; } onChanged(); } else { if (fooCase_ == 7) { fooMessageBuilder_.mergeFrom(value); } fooMessageBuilder_.setMessage(value); } fooCase_ = 7; return this; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public Builder clearFooMessage() { if (fooMessageBuilder_ == null) { if (fooCase_ == 7) { fooCase_ = 0; foo_ = null; onChanged(); } } else { if (fooCase_ == 7) { fooCase_ = 0; foo_ = null; } fooMessageBuilder_.clear(); } return this; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder getFooMessageBuilder() { return getFooMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder getFooMessageOrBuilder() { if ((fooCase_ == 7) && (fooMessageBuilder_ != null)) { return fooMessageBuilder_.getMessageOrBuilder(); } else { if (fooCase_ == 7) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof2.NestedMessage, protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder> getFooMessageFieldBuilder() { if (fooMessageBuilder_ == null) { if (!(fooCase_ == 7)) { foo_ = protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } fooMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof2.NestedMessage, protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder>( (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_, getParentForChildren(), isClean()); foo_ = null; } fooCase_ = 7; return fooMessageBuilder_; } private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof2.FooGroup, protobuf_unittest.UnittestProto.TestOneof2.FooGroup.Builder, protobuf_unittest.UnittestProto.TestOneof2.FooGroupOrBuilder> fooGroupBuilder_; /** * optional group FooGroup = 8 { ... } */ public boolean hasFooGroup() { return fooCase_ == 8; } /** * optional group FooGroup = 8 { ... } */ public protobuf_unittest.UnittestProto.TestOneof2.FooGroup getFooGroup() { if (fooGroupBuilder_ == null) { if (fooCase_ == 8) { return (protobuf_unittest.UnittestProto.TestOneof2.FooGroup) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.FooGroup.getDefaultInstance(); } else { if (fooCase_ == 8) { return fooGroupBuilder_.getMessage(); } return protobuf_unittest.UnittestProto.TestOneof2.FooGroup.getDefaultInstance(); } } /** * optional group FooGroup = 8 { ... } */ public Builder setFooGroup(protobuf_unittest.UnittestProto.TestOneof2.FooGroup value) { if (fooGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } foo_ = value; onChanged(); } else { fooGroupBuilder_.setMessage(value); } fooCase_ = 8; return this; } /** * optional group FooGroup = 8 { ... } */ public Builder setFooGroup( protobuf_unittest.UnittestProto.TestOneof2.FooGroup.Builder builderForValue) { if (fooGroupBuilder_ == null) { foo_ = builderForValue.build(); onChanged(); } else { fooGroupBuilder_.setMessage(builderForValue.build()); } fooCase_ = 8; return this; } /** * optional group FooGroup = 8 { ... } */ public Builder mergeFooGroup(protobuf_unittest.UnittestProto.TestOneof2.FooGroup value) { if (fooGroupBuilder_ == null) { if (fooCase_ == 8 && foo_ != protobuf_unittest.UnittestProto.TestOneof2.FooGroup.getDefaultInstance()) { foo_ = protobuf_unittest.UnittestProto.TestOneof2.FooGroup.newBuilder((protobuf_unittest.UnittestProto.TestOneof2.FooGroup) foo_) .mergeFrom(value).buildPartial(); } else { foo_ = value; } onChanged(); } else { if (fooCase_ == 8) { fooGroupBuilder_.mergeFrom(value); } fooGroupBuilder_.setMessage(value); } fooCase_ = 8; return this; } /** * optional group FooGroup = 8 { ... } */ public Builder clearFooGroup() { if (fooGroupBuilder_ == null) { if (fooCase_ == 8) { fooCase_ = 0; foo_ = null; onChanged(); } } else { if (fooCase_ == 8) { fooCase_ = 0; foo_ = null; } fooGroupBuilder_.clear(); } return this; } /** * optional group FooGroup = 8 { ... } */ public protobuf_unittest.UnittestProto.TestOneof2.FooGroup.Builder getFooGroupBuilder() { return getFooGroupFieldBuilder().getBuilder(); } /** * optional group FooGroup = 8 { ... } */ public protobuf_unittest.UnittestProto.TestOneof2.FooGroupOrBuilder getFooGroupOrBuilder() { if ((fooCase_ == 8) && (fooGroupBuilder_ != null)) { return fooGroupBuilder_.getMessageOrBuilder(); } else { if (fooCase_ == 8) { return (protobuf_unittest.UnittestProto.TestOneof2.FooGroup) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.FooGroup.getDefaultInstance(); } } /** * optional group FooGroup = 8 { ... } */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof2.FooGroup, protobuf_unittest.UnittestProto.TestOneof2.FooGroup.Builder, protobuf_unittest.UnittestProto.TestOneof2.FooGroupOrBuilder> getFooGroupFieldBuilder() { if (fooGroupBuilder_ == null) { if (!(fooCase_ == 8)) { foo_ = protobuf_unittest.UnittestProto.TestOneof2.FooGroup.getDefaultInstance(); } fooGroupBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof2.FooGroup, protobuf_unittest.UnittestProto.TestOneof2.FooGroup.Builder, protobuf_unittest.UnittestProto.TestOneof2.FooGroupOrBuilder>( (protobuf_unittest.UnittestProto.TestOneof2.FooGroup) foo_, getParentForChildren(), isClean()); foo_ = null; } fooCase_ = 8; return fooGroupBuilder_; } private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof2.NestedMessage, protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder> fooLazyMessageBuilder_; /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public boolean hasFooLazyMessage() { return fooCase_ == 11; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedMessage getFooLazyMessage() { if (fooLazyMessageBuilder_ == null) { if (fooCase_ == 11) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } else { if (fooCase_ == 11) { return fooLazyMessageBuilder_.getMessage(); } return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public Builder setFooLazyMessage(protobuf_unittest.UnittestProto.TestOneof2.NestedMessage value) { if (fooLazyMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } foo_ = value; onChanged(); } else { fooLazyMessageBuilder_.setMessage(value); } fooCase_ = 11; return this; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public Builder setFooLazyMessage( protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder builderForValue) { if (fooLazyMessageBuilder_ == null) { foo_ = builderForValue.build(); onChanged(); } else { fooLazyMessageBuilder_.setMessage(builderForValue.build()); } fooCase_ = 11; return this; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public Builder mergeFooLazyMessage(protobuf_unittest.UnittestProto.TestOneof2.NestedMessage value) { if (fooLazyMessageBuilder_ == null) { if (fooCase_ == 11 && foo_ != protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance()) { foo_ = protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.newBuilder((protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_) .mergeFrom(value).buildPartial(); } else { foo_ = value; } onChanged(); } else { if (fooCase_ == 11) { fooLazyMessageBuilder_.mergeFrom(value); } fooLazyMessageBuilder_.setMessage(value); } fooCase_ = 11; return this; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public Builder clearFooLazyMessage() { if (fooLazyMessageBuilder_ == null) { if (fooCase_ == 11) { fooCase_ = 0; foo_ = null; onChanged(); } } else { if (fooCase_ == 11) { fooCase_ = 0; foo_ = null; } fooLazyMessageBuilder_.clear(); } return this; } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder getFooLazyMessageBuilder() { return getFooLazyMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder getFooLazyMessageOrBuilder() { if ((fooCase_ == 11) && (fooLazyMessageBuilder_ != null)) { return fooLazyMessageBuilder_.getMessageOrBuilder(); } else { if (fooCase_ == 11) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } } /** * optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true]; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof2.NestedMessage, protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder> getFooLazyMessageFieldBuilder() { if (fooLazyMessageBuilder_ == null) { if (!(fooCase_ == 11)) { foo_ = protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.getDefaultInstance(); } fooLazyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestOneof2.NestedMessage, protobuf_unittest.UnittestProto.TestOneof2.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestOneof2.NestedMessageOrBuilder>( (protobuf_unittest.UnittestProto.TestOneof2.NestedMessage) foo_, getParentForChildren(), isClean()); foo_ = null; } fooCase_ = 11; return fooLazyMessageBuilder_; } /** * optional int32 bar_int = 12 [default = 5]; */ public boolean hasBarInt() { return barCase_ == 12; } /** * optional int32 bar_int = 12 [default = 5]; */ public int getBarInt() { if (barCase_ == 12) { return (java.lang.Integer) bar_; } return 5; } /** * optional int32 bar_int = 12 [default = 5]; */ public Builder setBarInt(int value) { barCase_ = 12; bar_ = value; onChanged(); return this; } /** * optional int32 bar_int = 12 [default = 5]; */ public Builder clearBarInt() { if (barCase_ == 12) { barCase_ = 0; bar_ = null; onChanged(); } return this; } /** * optional string bar_string = 13 [default = "STRING"]; */ public boolean hasBarString() { return barCase_ == 13; } /** * optional string bar_string = 13 [default = "STRING"]; */ public java.lang.String getBarString() { java.lang.Object ref = "STRING"; if (barCase_ == 13) { ref = bar_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (barCase_ == 13) { if (bs.isValidUtf8()) { bar_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * optional string bar_string = 13 [default = "STRING"]; */ public com.google.protobuf.ByteString getBarStringBytes() { java.lang.Object ref = "STRING"; if (barCase_ == 13) { ref = bar_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (barCase_ == 13) { bar_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string bar_string = 13 [default = "STRING"]; */ public Builder setBarString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } barCase_ = 13; bar_ = value; onChanged(); return this; } /** * optional string bar_string = 13 [default = "STRING"]; */ public Builder clearBarString() { if (barCase_ == 13) { barCase_ = 0; bar_ = null; onChanged(); } return this; } /** * optional string bar_string = 13 [default = "STRING"]; */ public Builder setBarStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } barCase_ = 13; bar_ = value; onChanged(); return this; } /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ public boolean hasBarCord() { return barCase_ == 14; } /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ public java.lang.String getBarCord() { java.lang.Object ref = "CORD"; if (barCase_ == 14) { ref = bar_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (barCase_ == 14) { if (bs.isValidUtf8()) { bar_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ public com.google.protobuf.ByteString getBarCordBytes() { java.lang.Object ref = "CORD"; if (barCase_ == 14) { ref = bar_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (barCase_ == 14) { bar_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ public Builder setBarCord( java.lang.String value) { if (value == null) { throw new NullPointerException(); } barCase_ = 14; bar_ = value; onChanged(); return this; } /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ public Builder clearBarCord() { if (barCase_ == 14) { barCase_ = 0; bar_ = null; onChanged(); } return this; } /** * optional string bar_cord = 14 [default = "CORD", ctype = CORD]; */ public Builder setBarCordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } barCase_ = 14; bar_ = value; onChanged(); return this; } /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ public boolean hasBarStringPiece() { return barCase_ == 15; } /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ public java.lang.String getBarStringPiece() { java.lang.Object ref = "SPIECE"; if (barCase_ == 15) { ref = bar_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (barCase_ == 15) { if (bs.isValidUtf8()) { bar_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ public com.google.protobuf.ByteString getBarStringPieceBytes() { java.lang.Object ref = "SPIECE"; if (barCase_ == 15) { ref = bar_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (barCase_ == 15) { bar_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ public Builder setBarStringPiece( java.lang.String value) { if (value == null) { throw new NullPointerException(); } barCase_ = 15; bar_ = value; onChanged(); return this; } /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ public Builder clearBarStringPiece() { if (barCase_ == 15) { barCase_ = 0; bar_ = null; onChanged(); } return this; } /** * optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE]; */ public Builder setBarStringPieceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } barCase_ = 15; bar_ = value; onChanged(); return this; } /** * optional bytes bar_bytes = 16 [default = "BYTES"]; */ public boolean hasBarBytes() { return barCase_ == 16; } /** * optional bytes bar_bytes = 16 [default = "BYTES"]; */ public com.google.protobuf.ByteString getBarBytes() { if (barCase_ == 16) { return (com.google.protobuf.ByteString) bar_; } return com.google.protobuf.Internal.bytesDefaultValue("BYTES"); } /** * optional bytes bar_bytes = 16 [default = "BYTES"]; */ public Builder setBarBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } barCase_ = 16; bar_ = value; onChanged(); return this; } /** * optional bytes bar_bytes = 16 [default = "BYTES"]; */ public Builder clearBarBytes() { if (barCase_ == 16) { barCase_ = 0; bar_ = null; onChanged(); } return this; } /** * optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR]; */ public boolean hasBarEnum() { return barCase_ == 17; } /** * optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR]; */ public protobuf_unittest.UnittestProto.TestOneof2.NestedEnum getBarEnum() { if (barCase_ == 17) { return (protobuf_unittest.UnittestProto.TestOneof2.NestedEnum) bar_; } return protobuf_unittest.UnittestProto.TestOneof2.NestedEnum.BAR; } /** * optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR]; */ public Builder setBarEnum(protobuf_unittest.UnittestProto.TestOneof2.NestedEnum value) { if (value == null) { throw new NullPointerException(); } barCase_ = 17; bar_ = value; onChanged(); return this; } /** * optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR]; */ public Builder clearBarEnum() { if (barCase_ == 17) { barCase_ = 0; bar_ = null; onChanged(); } return this; } private int bazInt_ ; /** * optional int32 baz_int = 18; */ public boolean hasBazInt() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional int32 baz_int = 18; */ public int getBazInt() { return bazInt_; } /** * optional int32 baz_int = 18; */ public Builder setBazInt(int value) { bitField0_ |= 0x00008000; bazInt_ = value; onChanged(); return this; } /** * optional int32 baz_int = 18; */ public Builder clearBazInt() { bitField0_ = (bitField0_ & ~0x00008000); bazInt_ = 0; onChanged(); return this; } private java.lang.Object bazString_ = "BAZ"; /** * optional string baz_string = 19 [default = "BAZ"]; */ public boolean hasBazString() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional string baz_string = 19 [default = "BAZ"]; */ public java.lang.String getBazString() { java.lang.Object ref = bazString_; 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()) { bazString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string baz_string = 19 [default = "BAZ"]; */ public com.google.protobuf.ByteString getBazStringBytes() { java.lang.Object ref = bazString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bazString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string baz_string = 19 [default = "BAZ"]; */ public Builder setBazString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; bazString_ = value; onChanged(); return this; } /** * optional string baz_string = 19 [default = "BAZ"]; */ public Builder clearBazString() { bitField0_ = (bitField0_ & ~0x00010000); bazString_ = getDefaultInstance().getBazString(); onChanged(); return this; } /** * optional string baz_string = 19 [default = "BAZ"]; */ public Builder setBazStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; bazString_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestOneof2) } static { defaultInstance = new TestOneof2(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof2) } public interface TestRequiredOneofOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestRequiredOneof) com.google.protobuf.MessageOrBuilder { /** * optional int32 foo_int = 1; */ boolean hasFooInt(); /** * optional int32 foo_int = 1; */ int getFooInt(); /** * optional string foo_string = 2; */ boolean hasFooString(); /** * optional string foo_string = 2; */ java.lang.String getFooString(); /** * optional string foo_string = 2; */ com.google.protobuf.ByteString getFooStringBytes(); /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ boolean hasFooMessage(); /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage getFooMessage(); /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessageOrBuilder getFooMessageOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestRequiredOneof} */ public static final class TestRequiredOneof extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestRequiredOneof) TestRequiredOneofOrBuilder { // Use TestRequiredOneof.newBuilder() to construct. private TestRequiredOneof(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestRequiredOneof(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestRequiredOneof defaultInstance; public static TestRequiredOneof getDefaultInstance() { return defaultInstance; } public TestRequiredOneof getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestRequiredOneof( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { fooCase_ = 1; foo_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); fooCase_ = 2; foo_ = bs; break; } case 26: { protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.Builder subBuilder = null; if (fooCase_ == 3) { subBuilder = ((protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) foo_).toBuilder(); } foo_ = input.readMessage(protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) foo_); foo_ = subBuilder.buildPartial(); } fooCase_ = 3; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredOneof_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredOneof_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRequiredOneof.class, protobuf_unittest.UnittestProto.TestRequiredOneof.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestRequiredOneof parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestRequiredOneof(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface NestedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestRequiredOneof.NestedMessage) com.google.protobuf.MessageOrBuilder { /** * required double required_double = 1; */ boolean hasRequiredDouble(); /** * required double required_double = 1; */ double getRequiredDouble(); } /** * Protobuf type {@code protobuf_unittest.TestRequiredOneof.NestedMessage} */ public static final class NestedMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestRequiredOneof.NestedMessage) NestedMessageOrBuilder { // Use NestedMessage.newBuilder() to construct. private NestedMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NestedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NestedMessage defaultInstance; public static NestedMessage getDefaultInstance() { return defaultInstance; } public NestedMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NestedMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 9: { bitField0_ |= 0x00000001; requiredDouble_ = input.readDouble(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredOneof_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredOneof_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.class, protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NestedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NestedMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int REQUIRED_DOUBLE_FIELD_NUMBER = 1; private double requiredDouble_; /** * required double required_double = 1; */ public boolean hasRequiredDouble() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required double required_double = 1; */ public double getRequiredDouble() { return requiredDouble_; } private void initFields() { requiredDouble_ = 0D; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasRequiredDouble()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeDouble(1, requiredDouble_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, requiredDouble_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestRequiredOneof.NestedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestRequiredOneof.NestedMessage) protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredOneof_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredOneof_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.class, protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); requiredDouble_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredOneof_NestedMessage_descriptor; } public protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage build() { protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage buildPartial() { protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage result = new protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.requiredDouble_ = requiredDouble_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) { return mergeFrom((protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage other) { if (other == protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.getDefaultInstance()) return this; if (other.hasRequiredDouble()) { setRequiredDouble(other.getRequiredDouble()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasRequiredDouble()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private double requiredDouble_ ; /** * required double required_double = 1; */ public boolean hasRequiredDouble() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required double required_double = 1; */ public double getRequiredDouble() { return requiredDouble_; } /** * required double required_double = 1; */ public Builder setRequiredDouble(double value) { bitField0_ |= 0x00000001; requiredDouble_ = value; onChanged(); return this; } /** * required double required_double = 1; */ public Builder clearRequiredDouble() { bitField0_ = (bitField0_ & ~0x00000001); requiredDouble_ = 0D; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestRequiredOneof.NestedMessage) } static { defaultInstance = new NestedMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredOneof.NestedMessage) } private int bitField0_; private int fooCase_ = 0; private java.lang.Object foo_; public enum FooCase implements com.google.protobuf.Internal.EnumLite { FOO_INT(1), FOO_STRING(2), FOO_MESSAGE(3), FOO_NOT_SET(0); private int value = 0; private FooCase(int value) { this.value = value; } public static FooCase valueOf(int value) { switch (value) { case 1: return FOO_INT; case 2: return FOO_STRING; case 3: return FOO_MESSAGE; case 0: return FOO_NOT_SET; default: throw new java.lang.IllegalArgumentException( "Value is undefined for this oneof enum."); } } public int getNumber() { return this.value; } }; public FooCase getFooCase() { return FooCase.valueOf( fooCase_); } public static final int FOO_INT_FIELD_NUMBER = 1; /** * optional int32 foo_int = 1; */ public boolean hasFooInt() { return fooCase_ == 1; } /** * optional int32 foo_int = 1; */ public int getFooInt() { if (fooCase_ == 1) { return (java.lang.Integer) foo_; } return 0; } public static final int FOO_STRING_FIELD_NUMBER = 2; /** * optional string foo_string = 2; */ public boolean hasFooString() { return fooCase_ == 2; } /** * optional string foo_string = 2; */ public java.lang.String getFooString() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } 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() && (fooCase_ == 2)) { foo_ = s; } return s; } } /** * optional string foo_string = 2; */ public com.google.protobuf.ByteString getFooStringBytes() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fooCase_ == 2) { foo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOO_MESSAGE_FIELD_NUMBER = 3; /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public boolean hasFooMessage() { return fooCase_ == 3; } /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage getFooMessage() { if (fooCase_ == 3) { return (protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.getDefaultInstance(); } /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessageOrBuilder getFooMessageOrBuilder() { if (fooCase_ == 3) { return (protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.getDefaultInstance(); } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasFooMessage()) { if (!getFooMessage().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (fooCase_ == 1) { output.writeInt32( 1, (int)((java.lang.Integer) foo_)); } if (fooCase_ == 2) { output.writeBytes(2, getFooStringBytes()); } if (fooCase_ == 3) { output.writeMessage(3, (protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) foo_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (fooCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 1, (int)((java.lang.Integer) foo_)); } if (fooCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFooStringBytes()); } if (fooCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) foo_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestRequiredOneof parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRequiredOneof parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredOneof parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRequiredOneof parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredOneof parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRequiredOneof parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredOneof parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestRequiredOneof parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRequiredOneof parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRequiredOneof parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestRequiredOneof prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestRequiredOneof} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestRequiredOneof) protobuf_unittest.UnittestProto.TestRequiredOneofOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredOneof_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredOneof_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRequiredOneof.class, protobuf_unittest.UnittestProto.TestRequiredOneof.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestRequiredOneof.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); fooCase_ = 0; foo_ = null; return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRequiredOneof_descriptor; } public protobuf_unittest.UnittestProto.TestRequiredOneof getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestRequiredOneof.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestRequiredOneof build() { protobuf_unittest.UnittestProto.TestRequiredOneof result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestRequiredOneof buildPartial() { protobuf_unittest.UnittestProto.TestRequiredOneof result = new protobuf_unittest.UnittestProto.TestRequiredOneof(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (fooCase_ == 1) { result.foo_ = foo_; } if (fooCase_ == 2) { result.foo_ = foo_; } if (fooCase_ == 3) { if (fooMessageBuilder_ == null) { result.foo_ = foo_; } else { result.foo_ = fooMessageBuilder_.build(); } } result.bitField0_ = to_bitField0_; result.fooCase_ = fooCase_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestRequiredOneof) { return mergeFrom((protobuf_unittest.UnittestProto.TestRequiredOneof)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestRequiredOneof other) { if (other == protobuf_unittest.UnittestProto.TestRequiredOneof.getDefaultInstance()) return this; switch (other.getFooCase()) { case FOO_INT: { setFooInt(other.getFooInt()); break; } case FOO_STRING: { fooCase_ = 2; foo_ = other.foo_; onChanged(); break; } case FOO_MESSAGE: { mergeFooMessage(other.getFooMessage()); break; } case FOO_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasFooMessage()) { if (!getFooMessage().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestRequiredOneof parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestRequiredOneof) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fooCase_ = 0; private java.lang.Object foo_; public FooCase getFooCase() { return FooCase.valueOf( fooCase_); } public Builder clearFoo() { fooCase_ = 0; foo_ = null; onChanged(); return this; } private int bitField0_; /** * optional int32 foo_int = 1; */ public boolean hasFooInt() { return fooCase_ == 1; } /** * optional int32 foo_int = 1; */ public int getFooInt() { if (fooCase_ == 1) { return (java.lang.Integer) foo_; } return 0; } /** * optional int32 foo_int = 1; */ public Builder setFooInt(int value) { fooCase_ = 1; foo_ = value; onChanged(); return this; } /** * optional int32 foo_int = 1; */ public Builder clearFooInt() { if (fooCase_ == 1) { fooCase_ = 0; foo_ = null; onChanged(); } return this; } /** * optional string foo_string = 2; */ public boolean hasFooString() { return fooCase_ == 2; } /** * optional string foo_string = 2; */ public java.lang.String getFooString() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fooCase_ == 2) { if (bs.isValidUtf8()) { foo_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * optional string foo_string = 2; */ public com.google.protobuf.ByteString getFooStringBytes() { java.lang.Object ref = ""; if (fooCase_ == 2) { ref = foo_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fooCase_ == 2) { foo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string foo_string = 2; */ public Builder setFooString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 2; foo_ = value; onChanged(); return this; } /** * optional string foo_string = 2; */ public Builder clearFooString() { if (fooCase_ == 2) { fooCase_ = 0; foo_ = null; onChanged(); } return this; } /** * optional string foo_string = 2; */ public Builder setFooStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } fooCase_ = 2; foo_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage, protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessageOrBuilder> fooMessageBuilder_; /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public boolean hasFooMessage() { return fooCase_ == 3; } /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage getFooMessage() { if (fooMessageBuilder_ == null) { if (fooCase_ == 3) { return (protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.getDefaultInstance(); } else { if (fooCase_ == 3) { return fooMessageBuilder_.getMessage(); } return protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.getDefaultInstance(); } } /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public Builder setFooMessage(protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage value) { if (fooMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } foo_ = value; onChanged(); } else { fooMessageBuilder_.setMessage(value); } fooCase_ = 3; return this; } /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public Builder setFooMessage( protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.Builder builderForValue) { if (fooMessageBuilder_ == null) { foo_ = builderForValue.build(); onChanged(); } else { fooMessageBuilder_.setMessage(builderForValue.build()); } fooCase_ = 3; return this; } /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public Builder mergeFooMessage(protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage value) { if (fooMessageBuilder_ == null) { if (fooCase_ == 3 && foo_ != protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.getDefaultInstance()) { foo_ = protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.newBuilder((protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) foo_) .mergeFrom(value).buildPartial(); } else { foo_ = value; } onChanged(); } else { if (fooCase_ == 3) { fooMessageBuilder_.mergeFrom(value); } fooMessageBuilder_.setMessage(value); } fooCase_ = 3; return this; } /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public Builder clearFooMessage() { if (fooMessageBuilder_ == null) { if (fooCase_ == 3) { fooCase_ = 0; foo_ = null; onChanged(); } } else { if (fooCase_ == 3) { fooCase_ = 0; foo_ = null; } fooMessageBuilder_.clear(); } return this; } /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.Builder getFooMessageBuilder() { return getFooMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ public protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessageOrBuilder getFooMessageOrBuilder() { if ((fooCase_ == 3) && (fooMessageBuilder_ != null)) { return fooMessageBuilder_.getMessageOrBuilder(); } else { if (fooCase_ == 3) { return (protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) foo_; } return protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.getDefaultInstance(); } } /** * optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage, protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessageOrBuilder> getFooMessageFieldBuilder() { if (fooMessageBuilder_ == null) { if (!(fooCase_ == 3)) { foo_ = protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.getDefaultInstance(); } fooMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage, protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage.Builder, protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessageOrBuilder>( (protobuf_unittest.UnittestProto.TestRequiredOneof.NestedMessage) foo_, getParentForChildren(), isClean()); foo_ = null; } fooCase_ = 3; return fooMessageBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestRequiredOneof) } static { defaultInstance = new TestRequiredOneof(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredOneof) } public interface TestPackedTypesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestPackedTypes) com.google.protobuf.MessageOrBuilder { /** * repeated int32 packed_int32 = 90 [packed = true]; */ java.util.List getPackedInt32List(); /** * repeated int32 packed_int32 = 90 [packed = true]; */ int getPackedInt32Count(); /** * repeated int32 packed_int32 = 90 [packed = true]; */ int getPackedInt32(int index); /** * repeated int64 packed_int64 = 91 [packed = true]; */ java.util.List getPackedInt64List(); /** * repeated int64 packed_int64 = 91 [packed = true]; */ int getPackedInt64Count(); /** * repeated int64 packed_int64 = 91 [packed = true]; */ long getPackedInt64(int index); /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ java.util.List getPackedUint32List(); /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ int getPackedUint32Count(); /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ int getPackedUint32(int index); /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ java.util.List getPackedUint64List(); /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ int getPackedUint64Count(); /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ long getPackedUint64(int index); /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ java.util.List getPackedSint32List(); /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ int getPackedSint32Count(); /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ int getPackedSint32(int index); /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ java.util.List getPackedSint64List(); /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ int getPackedSint64Count(); /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ long getPackedSint64(int index); /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ java.util.List getPackedFixed32List(); /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ int getPackedFixed32Count(); /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ int getPackedFixed32(int index); /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ java.util.List getPackedFixed64List(); /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ int getPackedFixed64Count(); /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ long getPackedFixed64(int index); /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ java.util.List getPackedSfixed32List(); /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ int getPackedSfixed32Count(); /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ int getPackedSfixed32(int index); /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ java.util.List getPackedSfixed64List(); /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ int getPackedSfixed64Count(); /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ long getPackedSfixed64(int index); /** * repeated float packed_float = 100 [packed = true]; */ java.util.List getPackedFloatList(); /** * repeated float packed_float = 100 [packed = true]; */ int getPackedFloatCount(); /** * repeated float packed_float = 100 [packed = true]; */ float getPackedFloat(int index); /** * repeated double packed_double = 101 [packed = true]; */ java.util.List getPackedDoubleList(); /** * repeated double packed_double = 101 [packed = true]; */ int getPackedDoubleCount(); /** * repeated double packed_double = 101 [packed = true]; */ double getPackedDouble(int index); /** * repeated bool packed_bool = 102 [packed = true]; */ java.util.List getPackedBoolList(); /** * repeated bool packed_bool = 102 [packed = true]; */ int getPackedBoolCount(); /** * repeated bool packed_bool = 102 [packed = true]; */ boolean getPackedBool(int index); /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ java.util.List getPackedEnumList(); /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ int getPackedEnumCount(); /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ protobuf_unittest.UnittestProto.ForeignEnum getPackedEnum(int index); } /** * Protobuf type {@code protobuf_unittest.TestPackedTypes} */ public static final class TestPackedTypes extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestPackedTypes) TestPackedTypesOrBuilder { // Use TestPackedTypes.newBuilder() to construct. private TestPackedTypes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestPackedTypes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestPackedTypes defaultInstance; public static TestPackedTypes getDefaultInstance() { return defaultInstance; } public TestPackedTypes getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestPackedTypes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 720: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { packedInt32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } packedInt32_.add(input.readInt32()); break; } case 722: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { packedInt32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { packedInt32_.add(input.readInt32()); } input.popLimit(limit); break; } case 728: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { packedInt64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } packedInt64_.add(input.readInt64()); break; } case 730: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { packedInt64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { packedInt64_.add(input.readInt64()); } input.popLimit(limit); break; } case 736: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { packedUint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } packedUint32_.add(input.readUInt32()); break; } case 738: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { packedUint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { packedUint32_.add(input.readUInt32()); } input.popLimit(limit); break; } case 744: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { packedUint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } packedUint64_.add(input.readUInt64()); break; } case 746: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { packedUint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { packedUint64_.add(input.readUInt64()); } input.popLimit(limit); break; } case 752: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { packedSint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } packedSint32_.add(input.readSInt32()); break; } case 754: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { packedSint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { packedSint32_.add(input.readSInt32()); } input.popLimit(limit); break; } case 760: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { packedSint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } packedSint64_.add(input.readSInt64()); break; } case 762: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { packedSint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { packedSint64_.add(input.readSInt64()); } input.popLimit(limit); break; } case 773: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { packedFixed32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } packedFixed32_.add(input.readFixed32()); break; } case 770: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { packedFixed32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { packedFixed32_.add(input.readFixed32()); } input.popLimit(limit); break; } case 777: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { packedFixed64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } packedFixed64_.add(input.readFixed64()); break; } case 778: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) { packedFixed64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } while (input.getBytesUntilLimit() > 0) { packedFixed64_.add(input.readFixed64()); } input.popLimit(limit); break; } case 789: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { packedSfixed32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } packedSfixed32_.add(input.readSFixed32()); break; } case 786: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { packedSfixed32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } while (input.getBytesUntilLimit() > 0) { packedSfixed32_.add(input.readSFixed32()); } input.popLimit(limit); break; } case 793: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { packedSfixed64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } packedSfixed64_.add(input.readSFixed64()); break; } case 794: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) { packedSfixed64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } while (input.getBytesUntilLimit() > 0) { packedSfixed64_.add(input.readSFixed64()); } input.popLimit(limit); break; } case 805: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { packedFloat_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } packedFloat_.add(input.readFloat()); break; } case 802: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) { packedFloat_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } while (input.getBytesUntilLimit() > 0) { packedFloat_.add(input.readFloat()); } input.popLimit(limit); break; } case 809: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { packedDouble_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } packedDouble_.add(input.readDouble()); break; } case 810: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) { packedDouble_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } while (input.getBytesUntilLimit() > 0) { packedDouble_.add(input.readDouble()); } input.popLimit(limit); break; } case 816: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { packedBool_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00001000; } packedBool_.add(input.readBool()); break; } case 818: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00001000) == 0x00001000) && input.getBytesUntilLimit() > 0) { packedBool_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00001000; } while (input.getBytesUntilLimit() > 0) { packedBool_.add(input.readBool()); } input.popLimit(limit); break; } case 824: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(103, rawValue); } else { if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { packedEnum_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00002000; } packedEnum_.add(value); } break; } case 826: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(103, rawValue); } else { if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { packedEnum_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00002000; } packedEnum_.add(value); } } input.popLimit(oldLimit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { packedInt32_ = java.util.Collections.unmodifiableList(packedInt32_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { packedInt64_ = java.util.Collections.unmodifiableList(packedInt64_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { packedUint32_ = java.util.Collections.unmodifiableList(packedUint32_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { packedUint64_ = java.util.Collections.unmodifiableList(packedUint64_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { packedSint32_ = java.util.Collections.unmodifiableList(packedSint32_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { packedSint64_ = java.util.Collections.unmodifiableList(packedSint64_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { packedFixed32_ = java.util.Collections.unmodifiableList(packedFixed32_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { packedFixed64_ = java.util.Collections.unmodifiableList(packedFixed64_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { packedSfixed32_ = java.util.Collections.unmodifiableList(packedSfixed32_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { packedSfixed64_ = java.util.Collections.unmodifiableList(packedSfixed64_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { packedFloat_ = java.util.Collections.unmodifiableList(packedFloat_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { packedDouble_ = java.util.Collections.unmodifiableList(packedDouble_); } if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { packedBool_ = java.util.Collections.unmodifiableList(packedBool_); } if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { packedEnum_ = java.util.Collections.unmodifiableList(packedEnum_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestPackedTypes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestPackedTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestPackedTypes.class, protobuf_unittest.UnittestProto.TestPackedTypes.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestPackedTypes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestPackedTypes(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int PACKED_INT32_FIELD_NUMBER = 90; private java.util.List packedInt32_; /** * repeated int32 packed_int32 = 90 [packed = true]; */ public java.util.List getPackedInt32List() { return packedInt32_; } /** * repeated int32 packed_int32 = 90 [packed = true]; */ public int getPackedInt32Count() { return packedInt32_.size(); } /** * repeated int32 packed_int32 = 90 [packed = true]; */ public int getPackedInt32(int index) { return packedInt32_.get(index); } private int packedInt32MemoizedSerializedSize = -1; public static final int PACKED_INT64_FIELD_NUMBER = 91; private java.util.List packedInt64_; /** * repeated int64 packed_int64 = 91 [packed = true]; */ public java.util.List getPackedInt64List() { return packedInt64_; } /** * repeated int64 packed_int64 = 91 [packed = true]; */ public int getPackedInt64Count() { return packedInt64_.size(); } /** * repeated int64 packed_int64 = 91 [packed = true]; */ public long getPackedInt64(int index) { return packedInt64_.get(index); } private int packedInt64MemoizedSerializedSize = -1; public static final int PACKED_UINT32_FIELD_NUMBER = 92; private java.util.List packedUint32_; /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ public java.util.List getPackedUint32List() { return packedUint32_; } /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ public int getPackedUint32Count() { return packedUint32_.size(); } /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ public int getPackedUint32(int index) { return packedUint32_.get(index); } private int packedUint32MemoizedSerializedSize = -1; public static final int PACKED_UINT64_FIELD_NUMBER = 93; private java.util.List packedUint64_; /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ public java.util.List getPackedUint64List() { return packedUint64_; } /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ public int getPackedUint64Count() { return packedUint64_.size(); } /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ public long getPackedUint64(int index) { return packedUint64_.get(index); } private int packedUint64MemoizedSerializedSize = -1; public static final int PACKED_SINT32_FIELD_NUMBER = 94; private java.util.List packedSint32_; /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ public java.util.List getPackedSint32List() { return packedSint32_; } /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ public int getPackedSint32Count() { return packedSint32_.size(); } /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ public int getPackedSint32(int index) { return packedSint32_.get(index); } private int packedSint32MemoizedSerializedSize = -1; public static final int PACKED_SINT64_FIELD_NUMBER = 95; private java.util.List packedSint64_; /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ public java.util.List getPackedSint64List() { return packedSint64_; } /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ public int getPackedSint64Count() { return packedSint64_.size(); } /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ public long getPackedSint64(int index) { return packedSint64_.get(index); } private int packedSint64MemoizedSerializedSize = -1; public static final int PACKED_FIXED32_FIELD_NUMBER = 96; private java.util.List packedFixed32_; /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ public java.util.List getPackedFixed32List() { return packedFixed32_; } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ public int getPackedFixed32Count() { return packedFixed32_.size(); } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ public int getPackedFixed32(int index) { return packedFixed32_.get(index); } private int packedFixed32MemoizedSerializedSize = -1; public static final int PACKED_FIXED64_FIELD_NUMBER = 97; private java.util.List packedFixed64_; /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ public java.util.List getPackedFixed64List() { return packedFixed64_; } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ public int getPackedFixed64Count() { return packedFixed64_.size(); } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ public long getPackedFixed64(int index) { return packedFixed64_.get(index); } private int packedFixed64MemoizedSerializedSize = -1; public static final int PACKED_SFIXED32_FIELD_NUMBER = 98; private java.util.List packedSfixed32_; /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ public java.util.List getPackedSfixed32List() { return packedSfixed32_; } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ public int getPackedSfixed32Count() { return packedSfixed32_.size(); } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ public int getPackedSfixed32(int index) { return packedSfixed32_.get(index); } private int packedSfixed32MemoizedSerializedSize = -1; public static final int PACKED_SFIXED64_FIELD_NUMBER = 99; private java.util.List packedSfixed64_; /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ public java.util.List getPackedSfixed64List() { return packedSfixed64_; } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ public int getPackedSfixed64Count() { return packedSfixed64_.size(); } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ public long getPackedSfixed64(int index) { return packedSfixed64_.get(index); } private int packedSfixed64MemoizedSerializedSize = -1; public static final int PACKED_FLOAT_FIELD_NUMBER = 100; private java.util.List packedFloat_; /** * repeated float packed_float = 100 [packed = true]; */ public java.util.List getPackedFloatList() { return packedFloat_; } /** * repeated float packed_float = 100 [packed = true]; */ public int getPackedFloatCount() { return packedFloat_.size(); } /** * repeated float packed_float = 100 [packed = true]; */ public float getPackedFloat(int index) { return packedFloat_.get(index); } private int packedFloatMemoizedSerializedSize = -1; public static final int PACKED_DOUBLE_FIELD_NUMBER = 101; private java.util.List packedDouble_; /** * repeated double packed_double = 101 [packed = true]; */ public java.util.List getPackedDoubleList() { return packedDouble_; } /** * repeated double packed_double = 101 [packed = true]; */ public int getPackedDoubleCount() { return packedDouble_.size(); } /** * repeated double packed_double = 101 [packed = true]; */ public double getPackedDouble(int index) { return packedDouble_.get(index); } private int packedDoubleMemoizedSerializedSize = -1; public static final int PACKED_BOOL_FIELD_NUMBER = 102; private java.util.List packedBool_; /** * repeated bool packed_bool = 102 [packed = true]; */ public java.util.List getPackedBoolList() { return packedBool_; } /** * repeated bool packed_bool = 102 [packed = true]; */ public int getPackedBoolCount() { return packedBool_.size(); } /** * repeated bool packed_bool = 102 [packed = true]; */ public boolean getPackedBool(int index) { return packedBool_.get(index); } private int packedBoolMemoizedSerializedSize = -1; public static final int PACKED_ENUM_FIELD_NUMBER = 103; private java.util.List packedEnum_; /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ public java.util.List getPackedEnumList() { return packedEnum_; } /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ public int getPackedEnumCount() { return packedEnum_.size(); } /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ public protobuf_unittest.UnittestProto.ForeignEnum getPackedEnum(int index) { return packedEnum_.get(index); } private int packedEnumMemoizedSerializedSize; private void initFields() { packedInt32_ = java.util.Collections.emptyList(); packedInt64_ = java.util.Collections.emptyList(); packedUint32_ = java.util.Collections.emptyList(); packedUint64_ = java.util.Collections.emptyList(); packedSint32_ = java.util.Collections.emptyList(); packedSint64_ = java.util.Collections.emptyList(); packedFixed32_ = java.util.Collections.emptyList(); packedFixed64_ = java.util.Collections.emptyList(); packedSfixed32_ = java.util.Collections.emptyList(); packedSfixed64_ = java.util.Collections.emptyList(); packedFloat_ = java.util.Collections.emptyList(); packedDouble_ = java.util.Collections.emptyList(); packedBool_ = java.util.Collections.emptyList(); packedEnum_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getPackedInt32List().size() > 0) { output.writeRawVarint32(722); output.writeRawVarint32(packedInt32MemoizedSerializedSize); } for (int i = 0; i < packedInt32_.size(); i++) { output.writeInt32NoTag(packedInt32_.get(i)); } if (getPackedInt64List().size() > 0) { output.writeRawVarint32(730); output.writeRawVarint32(packedInt64MemoizedSerializedSize); } for (int i = 0; i < packedInt64_.size(); i++) { output.writeInt64NoTag(packedInt64_.get(i)); } if (getPackedUint32List().size() > 0) { output.writeRawVarint32(738); output.writeRawVarint32(packedUint32MemoizedSerializedSize); } for (int i = 0; i < packedUint32_.size(); i++) { output.writeUInt32NoTag(packedUint32_.get(i)); } if (getPackedUint64List().size() > 0) { output.writeRawVarint32(746); output.writeRawVarint32(packedUint64MemoizedSerializedSize); } for (int i = 0; i < packedUint64_.size(); i++) { output.writeUInt64NoTag(packedUint64_.get(i)); } if (getPackedSint32List().size() > 0) { output.writeRawVarint32(754); output.writeRawVarint32(packedSint32MemoizedSerializedSize); } for (int i = 0; i < packedSint32_.size(); i++) { output.writeSInt32NoTag(packedSint32_.get(i)); } if (getPackedSint64List().size() > 0) { output.writeRawVarint32(762); output.writeRawVarint32(packedSint64MemoizedSerializedSize); } for (int i = 0; i < packedSint64_.size(); i++) { output.writeSInt64NoTag(packedSint64_.get(i)); } if (getPackedFixed32List().size() > 0) { output.writeRawVarint32(770); output.writeRawVarint32(packedFixed32MemoizedSerializedSize); } for (int i = 0; i < packedFixed32_.size(); i++) { output.writeFixed32NoTag(packedFixed32_.get(i)); } if (getPackedFixed64List().size() > 0) { output.writeRawVarint32(778); output.writeRawVarint32(packedFixed64MemoizedSerializedSize); } for (int i = 0; i < packedFixed64_.size(); i++) { output.writeFixed64NoTag(packedFixed64_.get(i)); } if (getPackedSfixed32List().size() > 0) { output.writeRawVarint32(786); output.writeRawVarint32(packedSfixed32MemoizedSerializedSize); } for (int i = 0; i < packedSfixed32_.size(); i++) { output.writeSFixed32NoTag(packedSfixed32_.get(i)); } if (getPackedSfixed64List().size() > 0) { output.writeRawVarint32(794); output.writeRawVarint32(packedSfixed64MemoizedSerializedSize); } for (int i = 0; i < packedSfixed64_.size(); i++) { output.writeSFixed64NoTag(packedSfixed64_.get(i)); } if (getPackedFloatList().size() > 0) { output.writeRawVarint32(802); output.writeRawVarint32(packedFloatMemoizedSerializedSize); } for (int i = 0; i < packedFloat_.size(); i++) { output.writeFloatNoTag(packedFloat_.get(i)); } if (getPackedDoubleList().size() > 0) { output.writeRawVarint32(810); output.writeRawVarint32(packedDoubleMemoizedSerializedSize); } for (int i = 0; i < packedDouble_.size(); i++) { output.writeDoubleNoTag(packedDouble_.get(i)); } if (getPackedBoolList().size() > 0) { output.writeRawVarint32(818); output.writeRawVarint32(packedBoolMemoizedSerializedSize); } for (int i = 0; i < packedBool_.size(); i++) { output.writeBoolNoTag(packedBool_.get(i)); } if (getPackedEnumList().size() > 0) { output.writeRawVarint32(826); output.writeRawVarint32(packedEnumMemoizedSerializedSize); } for (int i = 0; i < packedEnum_.size(); i++) { output.writeEnumNoTag(packedEnum_.get(i).getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; 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_.get(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_.get(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_.get(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_.get(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_.get(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_.get(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).getNumber()); } size += dataSize; if (!getPackedEnumList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeRawVarint32Size(dataSize); }packedEnumMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestPackedTypes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestPackedTypes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestPackedTypes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestPackedTypes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestPackedTypes parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestPackedTypes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestPackedTypes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestPackedTypes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestPackedTypes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestPackedTypes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestPackedTypes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestPackedTypes} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestPackedTypes) protobuf_unittest.UnittestProto.TestPackedTypesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestPackedTypes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestPackedTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestPackedTypes.class, protobuf_unittest.UnittestProto.TestPackedTypes.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestPackedTypes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); packedInt32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); packedInt64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); packedUint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); packedUint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); packedSint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); packedSint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); packedFixed32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); packedFixed64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); packedSfixed32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); packedSfixed64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); packedFloat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); packedDouble_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); packedBool_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); packedEnum_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestPackedTypes_descriptor; } public protobuf_unittest.UnittestProto.TestPackedTypes getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestPackedTypes.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestPackedTypes build() { protobuf_unittest.UnittestProto.TestPackedTypes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestPackedTypes buildPartial() { protobuf_unittest.UnittestProto.TestPackedTypes result = new protobuf_unittest.UnittestProto.TestPackedTypes(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { packedInt32_ = java.util.Collections.unmodifiableList(packedInt32_); bitField0_ = (bitField0_ & ~0x00000001); } result.packedInt32_ = packedInt32_; if (((bitField0_ & 0x00000002) == 0x00000002)) { packedInt64_ = java.util.Collections.unmodifiableList(packedInt64_); bitField0_ = (bitField0_ & ~0x00000002); } result.packedInt64_ = packedInt64_; if (((bitField0_ & 0x00000004) == 0x00000004)) { packedUint32_ = java.util.Collections.unmodifiableList(packedUint32_); bitField0_ = (bitField0_ & ~0x00000004); } result.packedUint32_ = packedUint32_; if (((bitField0_ & 0x00000008) == 0x00000008)) { packedUint64_ = java.util.Collections.unmodifiableList(packedUint64_); bitField0_ = (bitField0_ & ~0x00000008); } result.packedUint64_ = packedUint64_; if (((bitField0_ & 0x00000010) == 0x00000010)) { packedSint32_ = java.util.Collections.unmodifiableList(packedSint32_); bitField0_ = (bitField0_ & ~0x00000010); } result.packedSint32_ = packedSint32_; if (((bitField0_ & 0x00000020) == 0x00000020)) { packedSint64_ = java.util.Collections.unmodifiableList(packedSint64_); bitField0_ = (bitField0_ & ~0x00000020); } result.packedSint64_ = packedSint64_; if (((bitField0_ & 0x00000040) == 0x00000040)) { packedFixed32_ = java.util.Collections.unmodifiableList(packedFixed32_); bitField0_ = (bitField0_ & ~0x00000040); } result.packedFixed32_ = packedFixed32_; if (((bitField0_ & 0x00000080) == 0x00000080)) { packedFixed64_ = java.util.Collections.unmodifiableList(packedFixed64_); bitField0_ = (bitField0_ & ~0x00000080); } result.packedFixed64_ = packedFixed64_; if (((bitField0_ & 0x00000100) == 0x00000100)) { packedSfixed32_ = java.util.Collections.unmodifiableList(packedSfixed32_); bitField0_ = (bitField0_ & ~0x00000100); } result.packedSfixed32_ = packedSfixed32_; if (((bitField0_ & 0x00000200) == 0x00000200)) { packedSfixed64_ = java.util.Collections.unmodifiableList(packedSfixed64_); bitField0_ = (bitField0_ & ~0x00000200); } result.packedSfixed64_ = packedSfixed64_; if (((bitField0_ & 0x00000400) == 0x00000400)) { packedFloat_ = java.util.Collections.unmodifiableList(packedFloat_); bitField0_ = (bitField0_ & ~0x00000400); } result.packedFloat_ = packedFloat_; if (((bitField0_ & 0x00000800) == 0x00000800)) { packedDouble_ = java.util.Collections.unmodifiableList(packedDouble_); bitField0_ = (bitField0_ & ~0x00000800); } result.packedDouble_ = packedDouble_; if (((bitField0_ & 0x00001000) == 0x00001000)) { packedBool_ = java.util.Collections.unmodifiableList(packedBool_); bitField0_ = (bitField0_ & ~0x00001000); } result.packedBool_ = packedBool_; if (((bitField0_ & 0x00002000) == 0x00002000)) { packedEnum_ = java.util.Collections.unmodifiableList(packedEnum_); bitField0_ = (bitField0_ & ~0x00002000); } result.packedEnum_ = packedEnum_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestPackedTypes) { return mergeFrom((protobuf_unittest.UnittestProto.TestPackedTypes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestPackedTypes other) { if (other == protobuf_unittest.UnittestProto.TestPackedTypes.getDefaultInstance()) return this; if (!other.packedInt32_.isEmpty()) { if (packedInt32_.isEmpty()) { packedInt32_ = other.packedInt32_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePackedInt32IsMutable(); packedInt32_.addAll(other.packedInt32_); } onChanged(); } if (!other.packedInt64_.isEmpty()) { if (packedInt64_.isEmpty()) { packedInt64_ = other.packedInt64_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePackedInt64IsMutable(); packedInt64_.addAll(other.packedInt64_); } onChanged(); } if (!other.packedUint32_.isEmpty()) { if (packedUint32_.isEmpty()) { packedUint32_ = other.packedUint32_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePackedUint32IsMutable(); packedUint32_.addAll(other.packedUint32_); } onChanged(); } if (!other.packedUint64_.isEmpty()) { if (packedUint64_.isEmpty()) { packedUint64_ = other.packedUint64_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePackedUint64IsMutable(); packedUint64_.addAll(other.packedUint64_); } onChanged(); } if (!other.packedSint32_.isEmpty()) { if (packedSint32_.isEmpty()) { packedSint32_ = other.packedSint32_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePackedSint32IsMutable(); packedSint32_.addAll(other.packedSint32_); } onChanged(); } if (!other.packedSint64_.isEmpty()) { if (packedSint64_.isEmpty()) { packedSint64_ = other.packedSint64_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensurePackedSint64IsMutable(); packedSint64_.addAll(other.packedSint64_); } onChanged(); } if (!other.packedFixed32_.isEmpty()) { if (packedFixed32_.isEmpty()) { packedFixed32_ = other.packedFixed32_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensurePackedFixed32IsMutable(); packedFixed32_.addAll(other.packedFixed32_); } onChanged(); } if (!other.packedFixed64_.isEmpty()) { if (packedFixed64_.isEmpty()) { packedFixed64_ = other.packedFixed64_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensurePackedFixed64IsMutable(); packedFixed64_.addAll(other.packedFixed64_); } onChanged(); } if (!other.packedSfixed32_.isEmpty()) { if (packedSfixed32_.isEmpty()) { packedSfixed32_ = other.packedSfixed32_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensurePackedSfixed32IsMutable(); packedSfixed32_.addAll(other.packedSfixed32_); } onChanged(); } if (!other.packedSfixed64_.isEmpty()) { if (packedSfixed64_.isEmpty()) { packedSfixed64_ = other.packedSfixed64_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensurePackedSfixed64IsMutable(); packedSfixed64_.addAll(other.packedSfixed64_); } onChanged(); } if (!other.packedFloat_.isEmpty()) { if (packedFloat_.isEmpty()) { packedFloat_ = other.packedFloat_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensurePackedFloatIsMutable(); packedFloat_.addAll(other.packedFloat_); } onChanged(); } if (!other.packedDouble_.isEmpty()) { if (packedDouble_.isEmpty()) { packedDouble_ = other.packedDouble_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensurePackedDoubleIsMutable(); packedDouble_.addAll(other.packedDouble_); } onChanged(); } if (!other.packedBool_.isEmpty()) { if (packedBool_.isEmpty()) { packedBool_ = other.packedBool_; bitField0_ = (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()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestPackedTypes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestPackedTypes) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List packedInt32_ = java.util.Collections.emptyList(); private void ensurePackedInt32IsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { packedInt32_ = new java.util.ArrayList(packedInt32_); bitField0_ |= 0x00000001; } } /** * repeated int32 packed_int32 = 90 [packed = true]; */ public java.util.List getPackedInt32List() { return java.util.Collections.unmodifiableList(packedInt32_); } /** * repeated int32 packed_int32 = 90 [packed = true]; */ public int getPackedInt32Count() { return packedInt32_.size(); } /** * repeated int32 packed_int32 = 90 [packed = true]; */ public int getPackedInt32(int index) { return packedInt32_.get(index); } /** * repeated int32 packed_int32 = 90 [packed = true]; */ public Builder setPackedInt32( int index, int value) { ensurePackedInt32IsMutable(); packedInt32_.set(index, value); onChanged(); return this; } /** * repeated int32 packed_int32 = 90 [packed = true]; */ public Builder addPackedInt32(int value) { ensurePackedInt32IsMutable(); packedInt32_.add(value); onChanged(); return this; } /** * repeated int32 packed_int32 = 90 [packed = true]; */ public Builder addAllPackedInt32( java.lang.Iterable values) { ensurePackedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedInt32_); onChanged(); return this; } /** * repeated int32 packed_int32 = 90 [packed = true]; */ public Builder clearPackedInt32() { packedInt32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.util.List packedInt64_ = java.util.Collections.emptyList(); private void ensurePackedInt64IsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { packedInt64_ = new java.util.ArrayList(packedInt64_); bitField0_ |= 0x00000002; } } /** * repeated int64 packed_int64 = 91 [packed = true]; */ public java.util.List getPackedInt64List() { return java.util.Collections.unmodifiableList(packedInt64_); } /** * repeated int64 packed_int64 = 91 [packed = true]; */ public int getPackedInt64Count() { return packedInt64_.size(); } /** * repeated int64 packed_int64 = 91 [packed = true]; */ public long getPackedInt64(int index) { return packedInt64_.get(index); } /** * repeated int64 packed_int64 = 91 [packed = true]; */ public Builder setPackedInt64( int index, long value) { ensurePackedInt64IsMutable(); packedInt64_.set(index, value); onChanged(); return this; } /** * repeated int64 packed_int64 = 91 [packed = true]; */ public Builder addPackedInt64(long value) { ensurePackedInt64IsMutable(); packedInt64_.add(value); onChanged(); return this; } /** * repeated int64 packed_int64 = 91 [packed = true]; */ public Builder addAllPackedInt64( java.lang.Iterable values) { ensurePackedInt64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedInt64_); onChanged(); return this; } /** * repeated int64 packed_int64 = 91 [packed = true]; */ public Builder clearPackedInt64() { packedInt64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.util.List packedUint32_ = java.util.Collections.emptyList(); private void ensurePackedUint32IsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { packedUint32_ = new java.util.ArrayList(packedUint32_); bitField0_ |= 0x00000004; } } /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ public java.util.List getPackedUint32List() { return java.util.Collections.unmodifiableList(packedUint32_); } /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ public int getPackedUint32Count() { return packedUint32_.size(); } /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ public int getPackedUint32(int index) { return packedUint32_.get(index); } /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ public Builder setPackedUint32( int index, int value) { ensurePackedUint32IsMutable(); packedUint32_.set(index, value); onChanged(); return this; } /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ public Builder addPackedUint32(int value) { ensurePackedUint32IsMutable(); packedUint32_.add(value); onChanged(); return this; } /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ public Builder addAllPackedUint32( java.lang.Iterable values) { ensurePackedUint32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedUint32_); onChanged(); return this; } /** * repeated uint32 packed_uint32 = 92 [packed = true]; */ public Builder clearPackedUint32() { packedUint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List packedUint64_ = java.util.Collections.emptyList(); private void ensurePackedUint64IsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { packedUint64_ = new java.util.ArrayList(packedUint64_); bitField0_ |= 0x00000008; } } /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ public java.util.List getPackedUint64List() { return java.util.Collections.unmodifiableList(packedUint64_); } /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ public int getPackedUint64Count() { return packedUint64_.size(); } /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ public long getPackedUint64(int index) { return packedUint64_.get(index); } /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ public Builder setPackedUint64( int index, long value) { ensurePackedUint64IsMutable(); packedUint64_.set(index, value); onChanged(); return this; } /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ public Builder addPackedUint64(long value) { ensurePackedUint64IsMutable(); packedUint64_.add(value); onChanged(); return this; } /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ public Builder addAllPackedUint64( java.lang.Iterable values) { ensurePackedUint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedUint64_); onChanged(); return this; } /** * repeated uint64 packed_uint64 = 93 [packed = true]; */ public Builder clearPackedUint64() { packedUint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private java.util.List packedSint32_ = java.util.Collections.emptyList(); private void ensurePackedSint32IsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { packedSint32_ = new java.util.ArrayList(packedSint32_); bitField0_ |= 0x00000010; } } /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ public java.util.List getPackedSint32List() { return java.util.Collections.unmodifiableList(packedSint32_); } /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ public int getPackedSint32Count() { return packedSint32_.size(); } /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ public int getPackedSint32(int index) { return packedSint32_.get(index); } /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ public Builder setPackedSint32( int index, int value) { ensurePackedSint32IsMutable(); packedSint32_.set(index, value); onChanged(); return this; } /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ public Builder addPackedSint32(int value) { ensurePackedSint32IsMutable(); packedSint32_.add(value); onChanged(); return this; } /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ public Builder addAllPackedSint32( java.lang.Iterable values) { ensurePackedSint32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedSint32_); onChanged(); return this; } /** * repeated sint32 packed_sint32 = 94 [packed = true]; */ public Builder clearPackedSint32() { packedSint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List packedSint64_ = java.util.Collections.emptyList(); private void ensurePackedSint64IsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { packedSint64_ = new java.util.ArrayList(packedSint64_); bitField0_ |= 0x00000020; } } /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ public java.util.List getPackedSint64List() { return java.util.Collections.unmodifiableList(packedSint64_); } /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ public int getPackedSint64Count() { return packedSint64_.size(); } /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ public long getPackedSint64(int index) { return packedSint64_.get(index); } /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ public Builder setPackedSint64( int index, long value) { ensurePackedSint64IsMutable(); packedSint64_.set(index, value); onChanged(); return this; } /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ public Builder addPackedSint64(long value) { ensurePackedSint64IsMutable(); packedSint64_.add(value); onChanged(); return this; } /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ public Builder addAllPackedSint64( java.lang.Iterable values) { ensurePackedSint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedSint64_); onChanged(); return this; } /** * repeated sint64 packed_sint64 = 95 [packed = true]; */ public Builder clearPackedSint64() { packedSint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private java.util.List packedFixed32_ = java.util.Collections.emptyList(); private void ensurePackedFixed32IsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { packedFixed32_ = new java.util.ArrayList(packedFixed32_); bitField0_ |= 0x00000040; } } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ public java.util.List getPackedFixed32List() { return java.util.Collections.unmodifiableList(packedFixed32_); } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ public int getPackedFixed32Count() { return packedFixed32_.size(); } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ public int getPackedFixed32(int index) { return packedFixed32_.get(index); } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ public Builder setPackedFixed32( int index, int value) { ensurePackedFixed32IsMutable(); packedFixed32_.set(index, value); onChanged(); return this; } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ public Builder addPackedFixed32(int value) { ensurePackedFixed32IsMutable(); packedFixed32_.add(value); onChanged(); return this; } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ public Builder addAllPackedFixed32( java.lang.Iterable values) { ensurePackedFixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedFixed32_); onChanged(); return this; } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; */ public Builder clearPackedFixed32() { packedFixed32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private java.util.List packedFixed64_ = java.util.Collections.emptyList(); private void ensurePackedFixed64IsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { packedFixed64_ = new java.util.ArrayList(packedFixed64_); bitField0_ |= 0x00000080; } } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ public java.util.List getPackedFixed64List() { return java.util.Collections.unmodifiableList(packedFixed64_); } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ public int getPackedFixed64Count() { return packedFixed64_.size(); } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ public long getPackedFixed64(int index) { return packedFixed64_.get(index); } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ public Builder setPackedFixed64( int index, long value) { ensurePackedFixed64IsMutable(); packedFixed64_.set(index, value); onChanged(); return this; } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ public Builder addPackedFixed64(long value) { ensurePackedFixed64IsMutable(); packedFixed64_.add(value); onChanged(); return this; } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ public Builder addAllPackedFixed64( java.lang.Iterable values) { ensurePackedFixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedFixed64_); onChanged(); return this; } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; */ public Builder clearPackedFixed64() { packedFixed64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } private java.util.List packedSfixed32_ = java.util.Collections.emptyList(); private void ensurePackedSfixed32IsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { packedSfixed32_ = new java.util.ArrayList(packedSfixed32_); bitField0_ |= 0x00000100; } } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ public java.util.List getPackedSfixed32List() { return java.util.Collections.unmodifiableList(packedSfixed32_); } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ public int getPackedSfixed32Count() { return packedSfixed32_.size(); } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ public int getPackedSfixed32(int index) { return packedSfixed32_.get(index); } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ public Builder setPackedSfixed32( int index, int value) { ensurePackedSfixed32IsMutable(); packedSfixed32_.set(index, value); onChanged(); return this; } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ public Builder addPackedSfixed32(int value) { ensurePackedSfixed32IsMutable(); packedSfixed32_.add(value); onChanged(); return this; } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ public Builder addAllPackedSfixed32( java.lang.Iterable values) { ensurePackedSfixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedSfixed32_); onChanged(); return this; } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; */ public Builder clearPackedSfixed32() { packedSfixed32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } private java.util.List packedSfixed64_ = java.util.Collections.emptyList(); private void ensurePackedSfixed64IsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { packedSfixed64_ = new java.util.ArrayList(packedSfixed64_); bitField0_ |= 0x00000200; } } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ public java.util.List getPackedSfixed64List() { return java.util.Collections.unmodifiableList(packedSfixed64_); } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ public int getPackedSfixed64Count() { return packedSfixed64_.size(); } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ public long getPackedSfixed64(int index) { return packedSfixed64_.get(index); } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ public Builder setPackedSfixed64( int index, long value) { ensurePackedSfixed64IsMutable(); packedSfixed64_.set(index, value); onChanged(); return this; } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ public Builder addPackedSfixed64(long value) { ensurePackedSfixed64IsMutable(); packedSfixed64_.add(value); onChanged(); return this; } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ public Builder addAllPackedSfixed64( java.lang.Iterable values) { ensurePackedSfixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedSfixed64_); onChanged(); return this; } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; */ public Builder clearPackedSfixed64() { packedSfixed64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } private java.util.List packedFloat_ = java.util.Collections.emptyList(); private void ensurePackedFloatIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { packedFloat_ = new java.util.ArrayList(packedFloat_); bitField0_ |= 0x00000400; } } /** * repeated float packed_float = 100 [packed = true]; */ public java.util.List getPackedFloatList() { return java.util.Collections.unmodifiableList(packedFloat_); } /** * repeated float packed_float = 100 [packed = true]; */ public int getPackedFloatCount() { return packedFloat_.size(); } /** * repeated float packed_float = 100 [packed = true]; */ public float getPackedFloat(int index) { return packedFloat_.get(index); } /** * repeated float packed_float = 100 [packed = true]; */ public Builder setPackedFloat( int index, float value) { ensurePackedFloatIsMutable(); packedFloat_.set(index, value); onChanged(); return this; } /** * repeated float packed_float = 100 [packed = true]; */ public Builder addPackedFloat(float value) { ensurePackedFloatIsMutable(); packedFloat_.add(value); onChanged(); return this; } /** * repeated float packed_float = 100 [packed = true]; */ public Builder addAllPackedFloat( java.lang.Iterable values) { ensurePackedFloatIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedFloat_); onChanged(); return this; } /** * repeated float packed_float = 100 [packed = true]; */ public Builder clearPackedFloat() { packedFloat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } private java.util.List packedDouble_ = java.util.Collections.emptyList(); private void ensurePackedDoubleIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { packedDouble_ = new java.util.ArrayList(packedDouble_); bitField0_ |= 0x00000800; } } /** * repeated double packed_double = 101 [packed = true]; */ public java.util.List getPackedDoubleList() { return java.util.Collections.unmodifiableList(packedDouble_); } /** * repeated double packed_double = 101 [packed = true]; */ public int getPackedDoubleCount() { return packedDouble_.size(); } /** * repeated double packed_double = 101 [packed = true]; */ public double getPackedDouble(int index) { return packedDouble_.get(index); } /** * repeated double packed_double = 101 [packed = true]; */ public Builder setPackedDouble( int index, double value) { ensurePackedDoubleIsMutable(); packedDouble_.set(index, value); onChanged(); return this; } /** * repeated double packed_double = 101 [packed = true]; */ public Builder addPackedDouble(double value) { ensurePackedDoubleIsMutable(); packedDouble_.add(value); onChanged(); return this; } /** * repeated double packed_double = 101 [packed = true]; */ public Builder addAllPackedDouble( java.lang.Iterable values) { ensurePackedDoubleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedDouble_); onChanged(); return this; } /** * repeated double packed_double = 101 [packed = true]; */ public Builder clearPackedDouble() { packedDouble_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } private java.util.List packedBool_ = java.util.Collections.emptyList(); private void ensurePackedBoolIsMutable() { if (!((bitField0_ & 0x00001000) == 0x00001000)) { packedBool_ = new java.util.ArrayList(packedBool_); bitField0_ |= 0x00001000; } } /** * repeated bool packed_bool = 102 [packed = true]; */ public java.util.List getPackedBoolList() { return java.util.Collections.unmodifiableList(packedBool_); } /** * repeated bool packed_bool = 102 [packed = true]; */ public int getPackedBoolCount() { return packedBool_.size(); } /** * repeated bool packed_bool = 102 [packed = true]; */ public boolean getPackedBool(int index) { return packedBool_.get(index); } /** * repeated bool packed_bool = 102 [packed = true]; */ public Builder setPackedBool( int index, boolean value) { ensurePackedBoolIsMutable(); packedBool_.set(index, value); onChanged(); return this; } /** * repeated bool packed_bool = 102 [packed = true]; */ public Builder addPackedBool(boolean value) { ensurePackedBoolIsMutable(); packedBool_.add(value); onChanged(); return this; } /** * repeated bool packed_bool = 102 [packed = true]; */ public Builder addAllPackedBool( java.lang.Iterable values) { ensurePackedBoolIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedBool_); onChanged(); return this; } /** * repeated bool packed_bool = 102 [packed = true]; */ public Builder clearPackedBool() { packedBool_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } private java.util.List packedEnum_ = java.util.Collections.emptyList(); private void ensurePackedEnumIsMutable() { if (!((bitField0_ & 0x00002000) == 0x00002000)) { packedEnum_ = new java.util.ArrayList(packedEnum_); bitField0_ |= 0x00002000; } } /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ public java.util.List getPackedEnumList() { return java.util.Collections.unmodifiableList(packedEnum_); } /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ public int getPackedEnumCount() { return packedEnum_.size(); } /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ public protobuf_unittest.UnittestProto.ForeignEnum getPackedEnum(int index) { return packedEnum_.get(index); } /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ public Builder setPackedEnum( int index, protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } ensurePackedEnumIsMutable(); packedEnum_.set(index, value); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ public Builder addPackedEnum(protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } ensurePackedEnumIsMutable(); packedEnum_.add(value); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ public Builder addAllPackedEnum( java.lang.Iterable values) { ensurePackedEnumIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedEnum_); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true]; */ public Builder clearPackedEnum() { packedEnum_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestPackedTypes) } static { defaultInstance = new TestPackedTypes(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestPackedTypes) } public interface TestUnpackedTypesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestUnpackedTypes) com.google.protobuf.MessageOrBuilder { /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ java.util.List getUnpackedInt32List(); /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ int getUnpackedInt32Count(); /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ int getUnpackedInt32(int index); /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ java.util.List getUnpackedInt64List(); /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ int getUnpackedInt64Count(); /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ long getUnpackedInt64(int index); /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ java.util.List getUnpackedUint32List(); /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ int getUnpackedUint32Count(); /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ int getUnpackedUint32(int index); /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ java.util.List getUnpackedUint64List(); /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ int getUnpackedUint64Count(); /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ long getUnpackedUint64(int index); /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ java.util.List getUnpackedSint32List(); /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ int getUnpackedSint32Count(); /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ int getUnpackedSint32(int index); /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ java.util.List getUnpackedSint64List(); /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ int getUnpackedSint64Count(); /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ long getUnpackedSint64(int index); /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ java.util.List getUnpackedFixed32List(); /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ int getUnpackedFixed32Count(); /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ int getUnpackedFixed32(int index); /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ java.util.List getUnpackedFixed64List(); /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ int getUnpackedFixed64Count(); /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ long getUnpackedFixed64(int index); /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ java.util.List getUnpackedSfixed32List(); /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ int getUnpackedSfixed32Count(); /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ int getUnpackedSfixed32(int index); /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ java.util.List getUnpackedSfixed64List(); /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ int getUnpackedSfixed64Count(); /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ long getUnpackedSfixed64(int index); /** * repeated float unpacked_float = 100 [packed = false]; */ java.util.List getUnpackedFloatList(); /** * repeated float unpacked_float = 100 [packed = false]; */ int getUnpackedFloatCount(); /** * repeated float unpacked_float = 100 [packed = false]; */ float getUnpackedFloat(int index); /** * repeated double unpacked_double = 101 [packed = false]; */ java.util.List getUnpackedDoubleList(); /** * repeated double unpacked_double = 101 [packed = false]; */ int getUnpackedDoubleCount(); /** * repeated double unpacked_double = 101 [packed = false]; */ double getUnpackedDouble(int index); /** * repeated bool unpacked_bool = 102 [packed = false]; */ java.util.List getUnpackedBoolList(); /** * repeated bool unpacked_bool = 102 [packed = false]; */ int getUnpackedBoolCount(); /** * repeated bool unpacked_bool = 102 [packed = false]; */ boolean getUnpackedBool(int index); /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ java.util.List getUnpackedEnumList(); /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ int getUnpackedEnumCount(); /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ protobuf_unittest.UnittestProto.ForeignEnum getUnpackedEnum(int index); } /** * Protobuf type {@code protobuf_unittest.TestUnpackedTypes} * *
   * A message with the same fields as TestPackedTypes, but without packing. Used
   * to test packed <-> unpacked wire compatibility.
   * 
*/ public static final class TestUnpackedTypes extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestUnpackedTypes) TestUnpackedTypesOrBuilder { // Use TestUnpackedTypes.newBuilder() to construct. private TestUnpackedTypes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestUnpackedTypes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestUnpackedTypes defaultInstance; public static TestUnpackedTypes getDefaultInstance() { return defaultInstance; } public TestUnpackedTypes getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestUnpackedTypes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 720: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { unpackedInt32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } unpackedInt32_.add(input.readInt32()); break; } case 722: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { unpackedInt32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { unpackedInt32_.add(input.readInt32()); } input.popLimit(limit); break; } case 728: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { unpackedInt64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } unpackedInt64_.add(input.readInt64()); break; } case 730: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { unpackedInt64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { unpackedInt64_.add(input.readInt64()); } input.popLimit(limit); break; } case 736: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { unpackedUint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } unpackedUint32_.add(input.readUInt32()); break; } case 738: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { unpackedUint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { unpackedUint32_.add(input.readUInt32()); } input.popLimit(limit); break; } case 744: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { unpackedUint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } unpackedUint64_.add(input.readUInt64()); break; } case 746: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { unpackedUint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { unpackedUint64_.add(input.readUInt64()); } input.popLimit(limit); break; } case 752: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { unpackedSint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } unpackedSint32_.add(input.readSInt32()); break; } case 754: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { unpackedSint32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { unpackedSint32_.add(input.readSInt32()); } input.popLimit(limit); break; } case 760: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { unpackedSint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } unpackedSint64_.add(input.readSInt64()); break; } case 762: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { unpackedSint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { unpackedSint64_.add(input.readSInt64()); } input.popLimit(limit); break; } case 773: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { unpackedFixed32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } unpackedFixed32_.add(input.readFixed32()); break; } case 770: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { unpackedFixed32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { unpackedFixed32_.add(input.readFixed32()); } input.popLimit(limit); break; } case 777: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { unpackedFixed64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } unpackedFixed64_.add(input.readFixed64()); break; } case 778: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) { unpackedFixed64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } while (input.getBytesUntilLimit() > 0) { unpackedFixed64_.add(input.readFixed64()); } input.popLimit(limit); break; } case 789: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { unpackedSfixed32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } unpackedSfixed32_.add(input.readSFixed32()); break; } case 786: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { unpackedSfixed32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } while (input.getBytesUntilLimit() > 0) { unpackedSfixed32_.add(input.readSFixed32()); } input.popLimit(limit); break; } case 793: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { unpackedSfixed64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } unpackedSfixed64_.add(input.readSFixed64()); break; } case 794: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) { unpackedSfixed64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } while (input.getBytesUntilLimit() > 0) { unpackedSfixed64_.add(input.readSFixed64()); } input.popLimit(limit); break; } case 805: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { unpackedFloat_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } unpackedFloat_.add(input.readFloat()); break; } case 802: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) { unpackedFloat_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } while (input.getBytesUntilLimit() > 0) { unpackedFloat_.add(input.readFloat()); } input.popLimit(limit); break; } case 809: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { unpackedDouble_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } unpackedDouble_.add(input.readDouble()); break; } case 810: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) { unpackedDouble_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } while (input.getBytesUntilLimit() > 0) { unpackedDouble_.add(input.readDouble()); } input.popLimit(limit); break; } case 816: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { unpackedBool_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00001000; } unpackedBool_.add(input.readBool()); break; } case 818: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00001000) == 0x00001000) && input.getBytesUntilLimit() > 0) { unpackedBool_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00001000; } while (input.getBytesUntilLimit() > 0) { unpackedBool_.add(input.readBool()); } input.popLimit(limit); break; } case 824: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(103, rawValue); } else { if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { unpackedEnum_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00002000; } unpackedEnum_.add(value); } break; } case 826: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(103, rawValue); } else { if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { unpackedEnum_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00002000; } unpackedEnum_.add(value); } } input.popLimit(oldLimit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { unpackedInt32_ = java.util.Collections.unmodifiableList(unpackedInt32_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { unpackedInt64_ = java.util.Collections.unmodifiableList(unpackedInt64_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { unpackedUint32_ = java.util.Collections.unmodifiableList(unpackedUint32_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { unpackedUint64_ = java.util.Collections.unmodifiableList(unpackedUint64_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { unpackedSint32_ = java.util.Collections.unmodifiableList(unpackedSint32_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { unpackedSint64_ = java.util.Collections.unmodifiableList(unpackedSint64_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { unpackedFixed32_ = java.util.Collections.unmodifiableList(unpackedFixed32_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { unpackedFixed64_ = java.util.Collections.unmodifiableList(unpackedFixed64_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { unpackedSfixed32_ = java.util.Collections.unmodifiableList(unpackedSfixed32_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { unpackedSfixed64_ = java.util.Collections.unmodifiableList(unpackedSfixed64_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { unpackedFloat_ = java.util.Collections.unmodifiableList(unpackedFloat_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { unpackedDouble_ = java.util.Collections.unmodifiableList(unpackedDouble_); } if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { unpackedBool_ = java.util.Collections.unmodifiableList(unpackedBool_); } if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { unpackedEnum_ = java.util.Collections.unmodifiableList(unpackedEnum_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestUnpackedTypes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestUnpackedTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestUnpackedTypes.class, protobuf_unittest.UnittestProto.TestUnpackedTypes.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestUnpackedTypes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestUnpackedTypes(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int UNPACKED_INT32_FIELD_NUMBER = 90; private java.util.List unpackedInt32_; /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ public java.util.List getUnpackedInt32List() { return unpackedInt32_; } /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ public int getUnpackedInt32Count() { return unpackedInt32_.size(); } /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ public int getUnpackedInt32(int index) { return unpackedInt32_.get(index); } public static final int UNPACKED_INT64_FIELD_NUMBER = 91; private java.util.List unpackedInt64_; /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ public java.util.List getUnpackedInt64List() { return unpackedInt64_; } /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ public int getUnpackedInt64Count() { return unpackedInt64_.size(); } /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ public long getUnpackedInt64(int index) { return unpackedInt64_.get(index); } public static final int UNPACKED_UINT32_FIELD_NUMBER = 92; private java.util.List unpackedUint32_; /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ public java.util.List getUnpackedUint32List() { return unpackedUint32_; } /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ public int getUnpackedUint32Count() { return unpackedUint32_.size(); } /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ public int getUnpackedUint32(int index) { return unpackedUint32_.get(index); } public static final int UNPACKED_UINT64_FIELD_NUMBER = 93; private java.util.List unpackedUint64_; /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ public java.util.List getUnpackedUint64List() { return unpackedUint64_; } /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ public int getUnpackedUint64Count() { return unpackedUint64_.size(); } /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ public long getUnpackedUint64(int index) { return unpackedUint64_.get(index); } public static final int UNPACKED_SINT32_FIELD_NUMBER = 94; private java.util.List unpackedSint32_; /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ public java.util.List getUnpackedSint32List() { return unpackedSint32_; } /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ public int getUnpackedSint32Count() { return unpackedSint32_.size(); } /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ public int getUnpackedSint32(int index) { return unpackedSint32_.get(index); } public static final int UNPACKED_SINT64_FIELD_NUMBER = 95; private java.util.List unpackedSint64_; /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ public java.util.List getUnpackedSint64List() { return unpackedSint64_; } /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ public int getUnpackedSint64Count() { return unpackedSint64_.size(); } /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ public long getUnpackedSint64(int index) { return unpackedSint64_.get(index); } public static final int UNPACKED_FIXED32_FIELD_NUMBER = 96; private java.util.List unpackedFixed32_; /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ public java.util.List getUnpackedFixed32List() { return unpackedFixed32_; } /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ public int getUnpackedFixed32Count() { return unpackedFixed32_.size(); } /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ public int getUnpackedFixed32(int index) { return unpackedFixed32_.get(index); } public static final int UNPACKED_FIXED64_FIELD_NUMBER = 97; private java.util.List unpackedFixed64_; /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ public java.util.List getUnpackedFixed64List() { return unpackedFixed64_; } /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ public int getUnpackedFixed64Count() { return unpackedFixed64_.size(); } /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ public long getUnpackedFixed64(int index) { return unpackedFixed64_.get(index); } public static final int UNPACKED_SFIXED32_FIELD_NUMBER = 98; private java.util.List unpackedSfixed32_; /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ public java.util.List getUnpackedSfixed32List() { return unpackedSfixed32_; } /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ public int getUnpackedSfixed32Count() { return unpackedSfixed32_.size(); } /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ public int getUnpackedSfixed32(int index) { return unpackedSfixed32_.get(index); } public static final int UNPACKED_SFIXED64_FIELD_NUMBER = 99; private java.util.List unpackedSfixed64_; /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ public java.util.List getUnpackedSfixed64List() { return unpackedSfixed64_; } /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ public int getUnpackedSfixed64Count() { return unpackedSfixed64_.size(); } /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ public long getUnpackedSfixed64(int index) { return unpackedSfixed64_.get(index); } public static final int UNPACKED_FLOAT_FIELD_NUMBER = 100; private java.util.List unpackedFloat_; /** * repeated float unpacked_float = 100 [packed = false]; */ public java.util.List getUnpackedFloatList() { return unpackedFloat_; } /** * repeated float unpacked_float = 100 [packed = false]; */ public int getUnpackedFloatCount() { return unpackedFloat_.size(); } /** * repeated float unpacked_float = 100 [packed = false]; */ public float getUnpackedFloat(int index) { return unpackedFloat_.get(index); } public static final int UNPACKED_DOUBLE_FIELD_NUMBER = 101; private java.util.List unpackedDouble_; /** * repeated double unpacked_double = 101 [packed = false]; */ public java.util.List getUnpackedDoubleList() { return unpackedDouble_; } /** * repeated double unpacked_double = 101 [packed = false]; */ public int getUnpackedDoubleCount() { return unpackedDouble_.size(); } /** * repeated double unpacked_double = 101 [packed = false]; */ public double getUnpackedDouble(int index) { return unpackedDouble_.get(index); } public static final int UNPACKED_BOOL_FIELD_NUMBER = 102; private java.util.List unpackedBool_; /** * repeated bool unpacked_bool = 102 [packed = false]; */ public java.util.List getUnpackedBoolList() { return unpackedBool_; } /** * repeated bool unpacked_bool = 102 [packed = false]; */ public int getUnpackedBoolCount() { return unpackedBool_.size(); } /** * repeated bool unpacked_bool = 102 [packed = false]; */ public boolean getUnpackedBool(int index) { return unpackedBool_.get(index); } public static final int UNPACKED_ENUM_FIELD_NUMBER = 103; private java.util.List unpackedEnum_; /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ public java.util.List getUnpackedEnumList() { return unpackedEnum_; } /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ public int getUnpackedEnumCount() { return unpackedEnum_.size(); } /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ public protobuf_unittest.UnittestProto.ForeignEnum getUnpackedEnum(int index) { return unpackedEnum_.get(index); } private void initFields() { unpackedInt32_ = java.util.Collections.emptyList(); unpackedInt64_ = java.util.Collections.emptyList(); unpackedUint32_ = java.util.Collections.emptyList(); unpackedUint64_ = java.util.Collections.emptyList(); unpackedSint32_ = java.util.Collections.emptyList(); unpackedSint64_ = java.util.Collections.emptyList(); unpackedFixed32_ = java.util.Collections.emptyList(); unpackedFixed64_ = java.util.Collections.emptyList(); unpackedSfixed32_ = java.util.Collections.emptyList(); unpackedSfixed64_ = java.util.Collections.emptyList(); unpackedFloat_ = java.util.Collections.emptyList(); unpackedDouble_ = java.util.Collections.emptyList(); unpackedBool_ = java.util.Collections.emptyList(); unpackedEnum_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < unpackedInt32_.size(); i++) { output.writeInt32(90, unpackedInt32_.get(i)); } for (int i = 0; i < unpackedInt64_.size(); i++) { output.writeInt64(91, unpackedInt64_.get(i)); } for (int i = 0; i < unpackedUint32_.size(); i++) { output.writeUInt32(92, unpackedUint32_.get(i)); } for (int i = 0; i < unpackedUint64_.size(); i++) { output.writeUInt64(93, unpackedUint64_.get(i)); } for (int i = 0; i < unpackedSint32_.size(); i++) { output.writeSInt32(94, unpackedSint32_.get(i)); } for (int i = 0; i < unpackedSint64_.size(); i++) { output.writeSInt64(95, unpackedSint64_.get(i)); } for (int i = 0; i < unpackedFixed32_.size(); i++) { output.writeFixed32(96, unpackedFixed32_.get(i)); } for (int i = 0; i < unpackedFixed64_.size(); i++) { output.writeFixed64(97, unpackedFixed64_.get(i)); } for (int i = 0; i < unpackedSfixed32_.size(); i++) { output.writeSFixed32(98, unpackedSfixed32_.get(i)); } for (int i = 0; i < unpackedSfixed64_.size(); i++) { output.writeSFixed64(99, unpackedSfixed64_.get(i)); } for (int i = 0; i < unpackedFloat_.size(); i++) { output.writeFloat(100, unpackedFloat_.get(i)); } for (int i = 0; i < unpackedDouble_.size(); i++) { output.writeDouble(101, unpackedDouble_.get(i)); } for (int i = 0; i < unpackedBool_.size(); i++) { output.writeBool(102, unpackedBool_.get(i)); } for (int i = 0; i < unpackedEnum_.size(); i++) { output.writeEnum(103, unpackedEnum_.get(i).getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < unpackedInt32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(unpackedInt32_.get(i)); } size += dataSize; size += 2 * getUnpackedInt32List().size(); } { int dataSize = 0; for (int i = 0; i < unpackedInt64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(unpackedInt64_.get(i)); } size += dataSize; size += 2 * getUnpackedInt64List().size(); } { int dataSize = 0; for (int i = 0; i < unpackedUint32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(unpackedUint32_.get(i)); } size += dataSize; size += 2 * getUnpackedUint32List().size(); } { int dataSize = 0; for (int i = 0; i < unpackedUint64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(unpackedUint64_.get(i)); } size += dataSize; size += 2 * getUnpackedUint64List().size(); } { int dataSize = 0; for (int i = 0; i < unpackedSint32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt32SizeNoTag(unpackedSint32_.get(i)); } size += dataSize; size += 2 * getUnpackedSint32List().size(); } { int dataSize = 0; for (int i = 0; i < unpackedSint64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt64SizeNoTag(unpackedSint64_.get(i)); } size += dataSize; size += 2 * getUnpackedSint64List().size(); } { int dataSize = 0; dataSize = 4 * getUnpackedFixed32List().size(); size += dataSize; size += 2 * getUnpackedFixed32List().size(); } { int dataSize = 0; dataSize = 8 * getUnpackedFixed64List().size(); size += dataSize; size += 2 * getUnpackedFixed64List().size(); } { int dataSize = 0; dataSize = 4 * getUnpackedSfixed32List().size(); size += dataSize; size += 2 * getUnpackedSfixed32List().size(); } { int dataSize = 0; dataSize = 8 * getUnpackedSfixed64List().size(); size += dataSize; size += 2 * getUnpackedSfixed64List().size(); } { int dataSize = 0; dataSize = 4 * getUnpackedFloatList().size(); size += dataSize; size += 2 * getUnpackedFloatList().size(); } { int dataSize = 0; dataSize = 8 * getUnpackedDoubleList().size(); size += dataSize; size += 2 * getUnpackedDoubleList().size(); } { int dataSize = 0; dataSize = 1 * getUnpackedBoolList().size(); size += dataSize; size += 2 * getUnpackedBoolList().size(); } { int dataSize = 0; for (int i = 0; i < unpackedEnum_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(unpackedEnum_.get(i).getNumber()); } size += dataSize; size += 2 * unpackedEnum_.size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestUnpackedTypes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestUnpackedTypes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestUnpackedTypes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestUnpackedTypes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestUnpackedTypes parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestUnpackedTypes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestUnpackedTypes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestUnpackedTypes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestUnpackedTypes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestUnpackedTypes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestUnpackedTypes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestUnpackedTypes} * *
     * A message with the same fields as TestPackedTypes, but without packing. Used
     * to test packed <-> unpacked wire compatibility.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestUnpackedTypes) protobuf_unittest.UnittestProto.TestUnpackedTypesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestUnpackedTypes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestUnpackedTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestUnpackedTypes.class, protobuf_unittest.UnittestProto.TestUnpackedTypes.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestUnpackedTypes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); unpackedInt32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); unpackedInt64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); unpackedUint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); unpackedUint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); unpackedSint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); unpackedSint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); unpackedFixed32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); unpackedFixed64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); unpackedSfixed32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); unpackedSfixed64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); unpackedFloat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); unpackedDouble_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); unpackedBool_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); unpackedEnum_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestUnpackedTypes_descriptor; } public protobuf_unittest.UnittestProto.TestUnpackedTypes getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestUnpackedTypes.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestUnpackedTypes build() { protobuf_unittest.UnittestProto.TestUnpackedTypes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestUnpackedTypes buildPartial() { protobuf_unittest.UnittestProto.TestUnpackedTypes result = new protobuf_unittest.UnittestProto.TestUnpackedTypes(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { unpackedInt32_ = java.util.Collections.unmodifiableList(unpackedInt32_); bitField0_ = (bitField0_ & ~0x00000001); } result.unpackedInt32_ = unpackedInt32_; if (((bitField0_ & 0x00000002) == 0x00000002)) { unpackedInt64_ = java.util.Collections.unmodifiableList(unpackedInt64_); bitField0_ = (bitField0_ & ~0x00000002); } result.unpackedInt64_ = unpackedInt64_; if (((bitField0_ & 0x00000004) == 0x00000004)) { unpackedUint32_ = java.util.Collections.unmodifiableList(unpackedUint32_); bitField0_ = (bitField0_ & ~0x00000004); } result.unpackedUint32_ = unpackedUint32_; if (((bitField0_ & 0x00000008) == 0x00000008)) { unpackedUint64_ = java.util.Collections.unmodifiableList(unpackedUint64_); bitField0_ = (bitField0_ & ~0x00000008); } result.unpackedUint64_ = unpackedUint64_; if (((bitField0_ & 0x00000010) == 0x00000010)) { unpackedSint32_ = java.util.Collections.unmodifiableList(unpackedSint32_); bitField0_ = (bitField0_ & ~0x00000010); } result.unpackedSint32_ = unpackedSint32_; if (((bitField0_ & 0x00000020) == 0x00000020)) { unpackedSint64_ = java.util.Collections.unmodifiableList(unpackedSint64_); bitField0_ = (bitField0_ & ~0x00000020); } result.unpackedSint64_ = unpackedSint64_; if (((bitField0_ & 0x00000040) == 0x00000040)) { unpackedFixed32_ = java.util.Collections.unmodifiableList(unpackedFixed32_); bitField0_ = (bitField0_ & ~0x00000040); } result.unpackedFixed32_ = unpackedFixed32_; if (((bitField0_ & 0x00000080) == 0x00000080)) { unpackedFixed64_ = java.util.Collections.unmodifiableList(unpackedFixed64_); bitField0_ = (bitField0_ & ~0x00000080); } result.unpackedFixed64_ = unpackedFixed64_; if (((bitField0_ & 0x00000100) == 0x00000100)) { unpackedSfixed32_ = java.util.Collections.unmodifiableList(unpackedSfixed32_); bitField0_ = (bitField0_ & ~0x00000100); } result.unpackedSfixed32_ = unpackedSfixed32_; if (((bitField0_ & 0x00000200) == 0x00000200)) { unpackedSfixed64_ = java.util.Collections.unmodifiableList(unpackedSfixed64_); bitField0_ = (bitField0_ & ~0x00000200); } result.unpackedSfixed64_ = unpackedSfixed64_; if (((bitField0_ & 0x00000400) == 0x00000400)) { unpackedFloat_ = java.util.Collections.unmodifiableList(unpackedFloat_); bitField0_ = (bitField0_ & ~0x00000400); } result.unpackedFloat_ = unpackedFloat_; if (((bitField0_ & 0x00000800) == 0x00000800)) { unpackedDouble_ = java.util.Collections.unmodifiableList(unpackedDouble_); bitField0_ = (bitField0_ & ~0x00000800); } result.unpackedDouble_ = unpackedDouble_; if (((bitField0_ & 0x00001000) == 0x00001000)) { unpackedBool_ = java.util.Collections.unmodifiableList(unpackedBool_); bitField0_ = (bitField0_ & ~0x00001000); } result.unpackedBool_ = unpackedBool_; if (((bitField0_ & 0x00002000) == 0x00002000)) { unpackedEnum_ = java.util.Collections.unmodifiableList(unpackedEnum_); bitField0_ = (bitField0_ & ~0x00002000); } result.unpackedEnum_ = unpackedEnum_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestUnpackedTypes) { return mergeFrom((protobuf_unittest.UnittestProto.TestUnpackedTypes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestUnpackedTypes other) { if (other == protobuf_unittest.UnittestProto.TestUnpackedTypes.getDefaultInstance()) return this; if (!other.unpackedInt32_.isEmpty()) { if (unpackedInt32_.isEmpty()) { unpackedInt32_ = other.unpackedInt32_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUnpackedInt32IsMutable(); unpackedInt32_.addAll(other.unpackedInt32_); } onChanged(); } if (!other.unpackedInt64_.isEmpty()) { if (unpackedInt64_.isEmpty()) { unpackedInt64_ = other.unpackedInt64_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUnpackedInt64IsMutable(); unpackedInt64_.addAll(other.unpackedInt64_); } onChanged(); } if (!other.unpackedUint32_.isEmpty()) { if (unpackedUint32_.isEmpty()) { unpackedUint32_ = other.unpackedUint32_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureUnpackedUint32IsMutable(); unpackedUint32_.addAll(other.unpackedUint32_); } onChanged(); } if (!other.unpackedUint64_.isEmpty()) { if (unpackedUint64_.isEmpty()) { unpackedUint64_ = other.unpackedUint64_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureUnpackedUint64IsMutable(); unpackedUint64_.addAll(other.unpackedUint64_); } onChanged(); } if (!other.unpackedSint32_.isEmpty()) { if (unpackedSint32_.isEmpty()) { unpackedSint32_ = other.unpackedSint32_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureUnpackedSint32IsMutable(); unpackedSint32_.addAll(other.unpackedSint32_); } onChanged(); } if (!other.unpackedSint64_.isEmpty()) { if (unpackedSint64_.isEmpty()) { unpackedSint64_ = other.unpackedSint64_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureUnpackedSint64IsMutable(); unpackedSint64_.addAll(other.unpackedSint64_); } onChanged(); } if (!other.unpackedFixed32_.isEmpty()) { if (unpackedFixed32_.isEmpty()) { unpackedFixed32_ = other.unpackedFixed32_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureUnpackedFixed32IsMutable(); unpackedFixed32_.addAll(other.unpackedFixed32_); } onChanged(); } if (!other.unpackedFixed64_.isEmpty()) { if (unpackedFixed64_.isEmpty()) { unpackedFixed64_ = other.unpackedFixed64_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureUnpackedFixed64IsMutable(); unpackedFixed64_.addAll(other.unpackedFixed64_); } onChanged(); } if (!other.unpackedSfixed32_.isEmpty()) { if (unpackedSfixed32_.isEmpty()) { unpackedSfixed32_ = other.unpackedSfixed32_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureUnpackedSfixed32IsMutable(); unpackedSfixed32_.addAll(other.unpackedSfixed32_); } onChanged(); } if (!other.unpackedSfixed64_.isEmpty()) { if (unpackedSfixed64_.isEmpty()) { unpackedSfixed64_ = other.unpackedSfixed64_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureUnpackedSfixed64IsMutable(); unpackedSfixed64_.addAll(other.unpackedSfixed64_); } onChanged(); } if (!other.unpackedFloat_.isEmpty()) { if (unpackedFloat_.isEmpty()) { unpackedFloat_ = other.unpackedFloat_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureUnpackedFloatIsMutable(); unpackedFloat_.addAll(other.unpackedFloat_); } onChanged(); } if (!other.unpackedDouble_.isEmpty()) { if (unpackedDouble_.isEmpty()) { unpackedDouble_ = other.unpackedDouble_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureUnpackedDoubleIsMutable(); unpackedDouble_.addAll(other.unpackedDouble_); } onChanged(); } if (!other.unpackedBool_.isEmpty()) { if (unpackedBool_.isEmpty()) { unpackedBool_ = other.unpackedBool_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureUnpackedBoolIsMutable(); unpackedBool_.addAll(other.unpackedBool_); } onChanged(); } if (!other.unpackedEnum_.isEmpty()) { if (unpackedEnum_.isEmpty()) { unpackedEnum_ = other.unpackedEnum_; bitField0_ = (bitField0_ & ~0x00002000); } else { ensureUnpackedEnumIsMutable(); unpackedEnum_.addAll(other.unpackedEnum_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestUnpackedTypes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestUnpackedTypes) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List unpackedInt32_ = java.util.Collections.emptyList(); private void ensureUnpackedInt32IsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { unpackedInt32_ = new java.util.ArrayList(unpackedInt32_); bitField0_ |= 0x00000001; } } /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ public java.util.List getUnpackedInt32List() { return java.util.Collections.unmodifiableList(unpackedInt32_); } /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ public int getUnpackedInt32Count() { return unpackedInt32_.size(); } /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ public int getUnpackedInt32(int index) { return unpackedInt32_.get(index); } /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ public Builder setUnpackedInt32( int index, int value) { ensureUnpackedInt32IsMutable(); unpackedInt32_.set(index, value); onChanged(); return this; } /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ public Builder addUnpackedInt32(int value) { ensureUnpackedInt32IsMutable(); unpackedInt32_.add(value); onChanged(); return this; } /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ public Builder addAllUnpackedInt32( java.lang.Iterable values) { ensureUnpackedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedInt32_); onChanged(); return this; } /** * repeated int32 unpacked_int32 = 90 [packed = false]; */ public Builder clearUnpackedInt32() { unpackedInt32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.util.List unpackedInt64_ = java.util.Collections.emptyList(); private void ensureUnpackedInt64IsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { unpackedInt64_ = new java.util.ArrayList(unpackedInt64_); bitField0_ |= 0x00000002; } } /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ public java.util.List getUnpackedInt64List() { return java.util.Collections.unmodifiableList(unpackedInt64_); } /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ public int getUnpackedInt64Count() { return unpackedInt64_.size(); } /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ public long getUnpackedInt64(int index) { return unpackedInt64_.get(index); } /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ public Builder setUnpackedInt64( int index, long value) { ensureUnpackedInt64IsMutable(); unpackedInt64_.set(index, value); onChanged(); return this; } /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ public Builder addUnpackedInt64(long value) { ensureUnpackedInt64IsMutable(); unpackedInt64_.add(value); onChanged(); return this; } /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ public Builder addAllUnpackedInt64( java.lang.Iterable values) { ensureUnpackedInt64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedInt64_); onChanged(); return this; } /** * repeated int64 unpacked_int64 = 91 [packed = false]; */ public Builder clearUnpackedInt64() { unpackedInt64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.util.List unpackedUint32_ = java.util.Collections.emptyList(); private void ensureUnpackedUint32IsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { unpackedUint32_ = new java.util.ArrayList(unpackedUint32_); bitField0_ |= 0x00000004; } } /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ public java.util.List getUnpackedUint32List() { return java.util.Collections.unmodifiableList(unpackedUint32_); } /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ public int getUnpackedUint32Count() { return unpackedUint32_.size(); } /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ public int getUnpackedUint32(int index) { return unpackedUint32_.get(index); } /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ public Builder setUnpackedUint32( int index, int value) { ensureUnpackedUint32IsMutable(); unpackedUint32_.set(index, value); onChanged(); return this; } /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ public Builder addUnpackedUint32(int value) { ensureUnpackedUint32IsMutable(); unpackedUint32_.add(value); onChanged(); return this; } /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ public Builder addAllUnpackedUint32( java.lang.Iterable values) { ensureUnpackedUint32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedUint32_); onChanged(); return this; } /** * repeated uint32 unpacked_uint32 = 92 [packed = false]; */ public Builder clearUnpackedUint32() { unpackedUint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List unpackedUint64_ = java.util.Collections.emptyList(); private void ensureUnpackedUint64IsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { unpackedUint64_ = new java.util.ArrayList(unpackedUint64_); bitField0_ |= 0x00000008; } } /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ public java.util.List getUnpackedUint64List() { return java.util.Collections.unmodifiableList(unpackedUint64_); } /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ public int getUnpackedUint64Count() { return unpackedUint64_.size(); } /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ public long getUnpackedUint64(int index) { return unpackedUint64_.get(index); } /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ public Builder setUnpackedUint64( int index, long value) { ensureUnpackedUint64IsMutable(); unpackedUint64_.set(index, value); onChanged(); return this; } /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ public Builder addUnpackedUint64(long value) { ensureUnpackedUint64IsMutable(); unpackedUint64_.add(value); onChanged(); return this; } /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ public Builder addAllUnpackedUint64( java.lang.Iterable values) { ensureUnpackedUint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedUint64_); onChanged(); return this; } /** * repeated uint64 unpacked_uint64 = 93 [packed = false]; */ public Builder clearUnpackedUint64() { unpackedUint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private java.util.List unpackedSint32_ = java.util.Collections.emptyList(); private void ensureUnpackedSint32IsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { unpackedSint32_ = new java.util.ArrayList(unpackedSint32_); bitField0_ |= 0x00000010; } } /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ public java.util.List getUnpackedSint32List() { return java.util.Collections.unmodifiableList(unpackedSint32_); } /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ public int getUnpackedSint32Count() { return unpackedSint32_.size(); } /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ public int getUnpackedSint32(int index) { return unpackedSint32_.get(index); } /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ public Builder setUnpackedSint32( int index, int value) { ensureUnpackedSint32IsMutable(); unpackedSint32_.set(index, value); onChanged(); return this; } /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ public Builder addUnpackedSint32(int value) { ensureUnpackedSint32IsMutable(); unpackedSint32_.add(value); onChanged(); return this; } /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ public Builder addAllUnpackedSint32( java.lang.Iterable values) { ensureUnpackedSint32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedSint32_); onChanged(); return this; } /** * repeated sint32 unpacked_sint32 = 94 [packed = false]; */ public Builder clearUnpackedSint32() { unpackedSint32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List unpackedSint64_ = java.util.Collections.emptyList(); private void ensureUnpackedSint64IsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { unpackedSint64_ = new java.util.ArrayList(unpackedSint64_); bitField0_ |= 0x00000020; } } /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ public java.util.List getUnpackedSint64List() { return java.util.Collections.unmodifiableList(unpackedSint64_); } /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ public int getUnpackedSint64Count() { return unpackedSint64_.size(); } /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ public long getUnpackedSint64(int index) { return unpackedSint64_.get(index); } /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ public Builder setUnpackedSint64( int index, long value) { ensureUnpackedSint64IsMutable(); unpackedSint64_.set(index, value); onChanged(); return this; } /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ public Builder addUnpackedSint64(long value) { ensureUnpackedSint64IsMutable(); unpackedSint64_.add(value); onChanged(); return this; } /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ public Builder addAllUnpackedSint64( java.lang.Iterable values) { ensureUnpackedSint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedSint64_); onChanged(); return this; } /** * repeated sint64 unpacked_sint64 = 95 [packed = false]; */ public Builder clearUnpackedSint64() { unpackedSint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private java.util.List unpackedFixed32_ = java.util.Collections.emptyList(); private void ensureUnpackedFixed32IsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { unpackedFixed32_ = new java.util.ArrayList(unpackedFixed32_); bitField0_ |= 0x00000040; } } /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ public java.util.List getUnpackedFixed32List() { return java.util.Collections.unmodifiableList(unpackedFixed32_); } /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ public int getUnpackedFixed32Count() { return unpackedFixed32_.size(); } /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ public int getUnpackedFixed32(int index) { return unpackedFixed32_.get(index); } /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ public Builder setUnpackedFixed32( int index, int value) { ensureUnpackedFixed32IsMutable(); unpackedFixed32_.set(index, value); onChanged(); return this; } /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ public Builder addUnpackedFixed32(int value) { ensureUnpackedFixed32IsMutable(); unpackedFixed32_.add(value); onChanged(); return this; } /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ public Builder addAllUnpackedFixed32( java.lang.Iterable values) { ensureUnpackedFixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedFixed32_); onChanged(); return this; } /** * repeated fixed32 unpacked_fixed32 = 96 [packed = false]; */ public Builder clearUnpackedFixed32() { unpackedFixed32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private java.util.List unpackedFixed64_ = java.util.Collections.emptyList(); private void ensureUnpackedFixed64IsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { unpackedFixed64_ = new java.util.ArrayList(unpackedFixed64_); bitField0_ |= 0x00000080; } } /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ public java.util.List getUnpackedFixed64List() { return java.util.Collections.unmodifiableList(unpackedFixed64_); } /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ public int getUnpackedFixed64Count() { return unpackedFixed64_.size(); } /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ public long getUnpackedFixed64(int index) { return unpackedFixed64_.get(index); } /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ public Builder setUnpackedFixed64( int index, long value) { ensureUnpackedFixed64IsMutable(); unpackedFixed64_.set(index, value); onChanged(); return this; } /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ public Builder addUnpackedFixed64(long value) { ensureUnpackedFixed64IsMutable(); unpackedFixed64_.add(value); onChanged(); return this; } /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ public Builder addAllUnpackedFixed64( java.lang.Iterable values) { ensureUnpackedFixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedFixed64_); onChanged(); return this; } /** * repeated fixed64 unpacked_fixed64 = 97 [packed = false]; */ public Builder clearUnpackedFixed64() { unpackedFixed64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } private java.util.List unpackedSfixed32_ = java.util.Collections.emptyList(); private void ensureUnpackedSfixed32IsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { unpackedSfixed32_ = new java.util.ArrayList(unpackedSfixed32_); bitField0_ |= 0x00000100; } } /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ public java.util.List getUnpackedSfixed32List() { return java.util.Collections.unmodifiableList(unpackedSfixed32_); } /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ public int getUnpackedSfixed32Count() { return unpackedSfixed32_.size(); } /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ public int getUnpackedSfixed32(int index) { return unpackedSfixed32_.get(index); } /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ public Builder setUnpackedSfixed32( int index, int value) { ensureUnpackedSfixed32IsMutable(); unpackedSfixed32_.set(index, value); onChanged(); return this; } /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ public Builder addUnpackedSfixed32(int value) { ensureUnpackedSfixed32IsMutable(); unpackedSfixed32_.add(value); onChanged(); return this; } /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ public Builder addAllUnpackedSfixed32( java.lang.Iterable values) { ensureUnpackedSfixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedSfixed32_); onChanged(); return this; } /** * repeated sfixed32 unpacked_sfixed32 = 98 [packed = false]; */ public Builder clearUnpackedSfixed32() { unpackedSfixed32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } private java.util.List unpackedSfixed64_ = java.util.Collections.emptyList(); private void ensureUnpackedSfixed64IsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { unpackedSfixed64_ = new java.util.ArrayList(unpackedSfixed64_); bitField0_ |= 0x00000200; } } /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ public java.util.List getUnpackedSfixed64List() { return java.util.Collections.unmodifiableList(unpackedSfixed64_); } /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ public int getUnpackedSfixed64Count() { return unpackedSfixed64_.size(); } /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ public long getUnpackedSfixed64(int index) { return unpackedSfixed64_.get(index); } /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ public Builder setUnpackedSfixed64( int index, long value) { ensureUnpackedSfixed64IsMutable(); unpackedSfixed64_.set(index, value); onChanged(); return this; } /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ public Builder addUnpackedSfixed64(long value) { ensureUnpackedSfixed64IsMutable(); unpackedSfixed64_.add(value); onChanged(); return this; } /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ public Builder addAllUnpackedSfixed64( java.lang.Iterable values) { ensureUnpackedSfixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedSfixed64_); onChanged(); return this; } /** * repeated sfixed64 unpacked_sfixed64 = 99 [packed = false]; */ public Builder clearUnpackedSfixed64() { unpackedSfixed64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } private java.util.List unpackedFloat_ = java.util.Collections.emptyList(); private void ensureUnpackedFloatIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { unpackedFloat_ = new java.util.ArrayList(unpackedFloat_); bitField0_ |= 0x00000400; } } /** * repeated float unpacked_float = 100 [packed = false]; */ public java.util.List getUnpackedFloatList() { return java.util.Collections.unmodifiableList(unpackedFloat_); } /** * repeated float unpacked_float = 100 [packed = false]; */ public int getUnpackedFloatCount() { return unpackedFloat_.size(); } /** * repeated float unpacked_float = 100 [packed = false]; */ public float getUnpackedFloat(int index) { return unpackedFloat_.get(index); } /** * repeated float unpacked_float = 100 [packed = false]; */ public Builder setUnpackedFloat( int index, float value) { ensureUnpackedFloatIsMutable(); unpackedFloat_.set(index, value); onChanged(); return this; } /** * repeated float unpacked_float = 100 [packed = false]; */ public Builder addUnpackedFloat(float value) { ensureUnpackedFloatIsMutable(); unpackedFloat_.add(value); onChanged(); return this; } /** * repeated float unpacked_float = 100 [packed = false]; */ public Builder addAllUnpackedFloat( java.lang.Iterable values) { ensureUnpackedFloatIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedFloat_); onChanged(); return this; } /** * repeated float unpacked_float = 100 [packed = false]; */ public Builder clearUnpackedFloat() { unpackedFloat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } private java.util.List unpackedDouble_ = java.util.Collections.emptyList(); private void ensureUnpackedDoubleIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { unpackedDouble_ = new java.util.ArrayList(unpackedDouble_); bitField0_ |= 0x00000800; } } /** * repeated double unpacked_double = 101 [packed = false]; */ public java.util.List getUnpackedDoubleList() { return java.util.Collections.unmodifiableList(unpackedDouble_); } /** * repeated double unpacked_double = 101 [packed = false]; */ public int getUnpackedDoubleCount() { return unpackedDouble_.size(); } /** * repeated double unpacked_double = 101 [packed = false]; */ public double getUnpackedDouble(int index) { return unpackedDouble_.get(index); } /** * repeated double unpacked_double = 101 [packed = false]; */ public Builder setUnpackedDouble( int index, double value) { ensureUnpackedDoubleIsMutable(); unpackedDouble_.set(index, value); onChanged(); return this; } /** * repeated double unpacked_double = 101 [packed = false]; */ public Builder addUnpackedDouble(double value) { ensureUnpackedDoubleIsMutable(); unpackedDouble_.add(value); onChanged(); return this; } /** * repeated double unpacked_double = 101 [packed = false]; */ public Builder addAllUnpackedDouble( java.lang.Iterable values) { ensureUnpackedDoubleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedDouble_); onChanged(); return this; } /** * repeated double unpacked_double = 101 [packed = false]; */ public Builder clearUnpackedDouble() { unpackedDouble_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } private java.util.List unpackedBool_ = java.util.Collections.emptyList(); private void ensureUnpackedBoolIsMutable() { if (!((bitField0_ & 0x00001000) == 0x00001000)) { unpackedBool_ = new java.util.ArrayList(unpackedBool_); bitField0_ |= 0x00001000; } } /** * repeated bool unpacked_bool = 102 [packed = false]; */ public java.util.List getUnpackedBoolList() { return java.util.Collections.unmodifiableList(unpackedBool_); } /** * repeated bool unpacked_bool = 102 [packed = false]; */ public int getUnpackedBoolCount() { return unpackedBool_.size(); } /** * repeated bool unpacked_bool = 102 [packed = false]; */ public boolean getUnpackedBool(int index) { return unpackedBool_.get(index); } /** * repeated bool unpacked_bool = 102 [packed = false]; */ public Builder setUnpackedBool( int index, boolean value) { ensureUnpackedBoolIsMutable(); unpackedBool_.set(index, value); onChanged(); return this; } /** * repeated bool unpacked_bool = 102 [packed = false]; */ public Builder addUnpackedBool(boolean value) { ensureUnpackedBoolIsMutable(); unpackedBool_.add(value); onChanged(); return this; } /** * repeated bool unpacked_bool = 102 [packed = false]; */ public Builder addAllUnpackedBool( java.lang.Iterable values) { ensureUnpackedBoolIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedBool_); onChanged(); return this; } /** * repeated bool unpacked_bool = 102 [packed = false]; */ public Builder clearUnpackedBool() { unpackedBool_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } private java.util.List unpackedEnum_ = java.util.Collections.emptyList(); private void ensureUnpackedEnumIsMutable() { if (!((bitField0_ & 0x00002000) == 0x00002000)) { unpackedEnum_ = new java.util.ArrayList(unpackedEnum_); bitField0_ |= 0x00002000; } } /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ public java.util.List getUnpackedEnumList() { return java.util.Collections.unmodifiableList(unpackedEnum_); } /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ public int getUnpackedEnumCount() { return unpackedEnum_.size(); } /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ public protobuf_unittest.UnittestProto.ForeignEnum getUnpackedEnum(int index) { return unpackedEnum_.get(index); } /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ public Builder setUnpackedEnum( int index, protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } ensureUnpackedEnumIsMutable(); unpackedEnum_.set(index, value); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ public Builder addUnpackedEnum(protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } ensureUnpackedEnumIsMutable(); unpackedEnum_.add(value); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ public Builder addAllUnpackedEnum( java.lang.Iterable values) { ensureUnpackedEnumIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unpackedEnum_); onChanged(); return this; } /** * repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false]; */ public Builder clearUnpackedEnum() { unpackedEnum_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestUnpackedTypes) } static { defaultInstance = new TestUnpackedTypes(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestUnpackedTypes) } public interface TestPackedExtensionsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestPackedExtensions) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.TestPackedExtensions} */ public static final class TestPackedExtensions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< TestPackedExtensions> implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestPackedExtensions) TestPackedExtensionsOrBuilder { // Use TestPackedExtensions.newBuilder() to construct. private TestPackedExtensions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestPackedExtensions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestPackedExtensions defaultInstance; public static TestPackedExtensions getDefaultInstance() { return defaultInstance; } public TestPackedExtensions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestPackedExtensions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestPackedExtensions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestPackedExtensions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestPackedExtensions.class, protobuf_unittest.UnittestProto.TestPackedExtensions.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestPackedExtensions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestPackedExtensions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestPackedExtensions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestPackedExtensions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestPackedExtensions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestPackedExtensions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestPackedExtensions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestPackedExtensions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestPackedExtensions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestPackedExtensions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestPackedExtensions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestPackedExtensions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestPackedExtensions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestPackedExtensions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest.UnittestProto.TestPackedExtensions, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestPackedExtensions) protobuf_unittest.UnittestProto.TestPackedExtensionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestPackedExtensions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestPackedExtensions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestPackedExtensions.class, protobuf_unittest.UnittestProto.TestPackedExtensions.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestPackedExtensions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestPackedExtensions_descriptor; } public protobuf_unittest.UnittestProto.TestPackedExtensions getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestPackedExtensions.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestPackedExtensions build() { protobuf_unittest.UnittestProto.TestPackedExtensions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestPackedExtensions buildPartial() { protobuf_unittest.UnittestProto.TestPackedExtensions result = new protobuf_unittest.UnittestProto.TestPackedExtensions(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestPackedExtensions) { return mergeFrom((protobuf_unittest.UnittestProto.TestPackedExtensions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestPackedExtensions other) { if (other == protobuf_unittest.UnittestProto.TestPackedExtensions.getDefaultInstance()) return this; this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestPackedExtensions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestPackedExtensions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestPackedExtensions) } static { defaultInstance = new TestPackedExtensions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestPackedExtensions) } public interface TestUnpackedExtensionsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestUnpackedExtensions) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.TestUnpackedExtensions} */ public static final class TestUnpackedExtensions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< TestUnpackedExtensions> implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestUnpackedExtensions) TestUnpackedExtensionsOrBuilder { // Use TestUnpackedExtensions.newBuilder() to construct. private TestUnpackedExtensions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestUnpackedExtensions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestUnpackedExtensions defaultInstance; public static TestUnpackedExtensions getDefaultInstance() { return defaultInstance; } public TestUnpackedExtensions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestUnpackedExtensions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestUnpackedExtensions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestUnpackedExtensions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestUnpackedExtensions.class, protobuf_unittest.UnittestProto.TestUnpackedExtensions.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestUnpackedExtensions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestUnpackedExtensions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestUnpackedExtensions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestUnpackedExtensions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestUnpackedExtensions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestUnpackedExtensions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestUnpackedExtensions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestUnpackedExtensions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestUnpackedExtensions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestUnpackedExtensions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestUnpackedExtensions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestUnpackedExtensions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestUnpackedExtensions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestUnpackedExtensions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest.UnittestProto.TestUnpackedExtensions, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestUnpackedExtensions) protobuf_unittest.UnittestProto.TestUnpackedExtensionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestUnpackedExtensions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestUnpackedExtensions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestUnpackedExtensions.class, protobuf_unittest.UnittestProto.TestUnpackedExtensions.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestUnpackedExtensions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestUnpackedExtensions_descriptor; } public protobuf_unittest.UnittestProto.TestUnpackedExtensions getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestUnpackedExtensions.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestUnpackedExtensions build() { protobuf_unittest.UnittestProto.TestUnpackedExtensions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestUnpackedExtensions buildPartial() { protobuf_unittest.UnittestProto.TestUnpackedExtensions result = new protobuf_unittest.UnittestProto.TestUnpackedExtensions(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestUnpackedExtensions) { return mergeFrom((protobuf_unittest.UnittestProto.TestUnpackedExtensions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestUnpackedExtensions other) { if (other == protobuf_unittest.UnittestProto.TestUnpackedExtensions.getDefaultInstance()) return this; this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestUnpackedExtensions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestUnpackedExtensions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestUnpackedExtensions) } static { defaultInstance = new TestUnpackedExtensions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestUnpackedExtensions) } public interface TestDynamicExtensionsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestDynamicExtensions) com.google.protobuf.MessageOrBuilder { /** * optional fixed32 scalar_extension = 2000; */ boolean hasScalarExtension(); /** * optional fixed32 scalar_extension = 2000; */ int getScalarExtension(); /** * optional .protobuf_unittest.ForeignEnum enum_extension = 2001; */ boolean hasEnumExtension(); /** * optional .protobuf_unittest.ForeignEnum enum_extension = 2001; */ protobuf_unittest.UnittestProto.ForeignEnum getEnumExtension(); /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002; */ boolean hasDynamicEnumExtension(); /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002; */ protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType getDynamicEnumExtension(); /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ boolean hasMessageExtension(); /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ protobuf_unittest.UnittestProto.ForeignMessage getMessageExtension(); /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getMessageExtensionOrBuilder(); /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ boolean hasDynamicMessageExtension(); /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType getDynamicMessageExtension(); /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageTypeOrBuilder getDynamicMessageExtensionOrBuilder(); /** * repeated string repeated_extension = 2005; */ com.google.protobuf.ProtocolStringList getRepeatedExtensionList(); /** * repeated string repeated_extension = 2005; */ int getRepeatedExtensionCount(); /** * repeated string repeated_extension = 2005; */ java.lang.String getRepeatedExtension(int index); /** * repeated string repeated_extension = 2005; */ com.google.protobuf.ByteString getRepeatedExtensionBytes(int index); /** * repeated sint32 packed_extension = 2006 [packed = true]; */ java.util.List getPackedExtensionList(); /** * repeated sint32 packed_extension = 2006 [packed = true]; */ int getPackedExtensionCount(); /** * repeated sint32 packed_extension = 2006 [packed = true]; */ int getPackedExtension(int index); } /** * Protobuf type {@code protobuf_unittest.TestDynamicExtensions} * *
   * Used by ExtensionSetTest/DynamicExtensions.  The test actually builds
   * a set of extensions to TestAllExtensions dynamically, based on the fields
   * of this message type.
   * 
*/ public static final class TestDynamicExtensions extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestDynamicExtensions) TestDynamicExtensionsOrBuilder { // Use TestDynamicExtensions.newBuilder() to construct. private TestDynamicExtensions(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestDynamicExtensions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestDynamicExtensions defaultInstance; public static TestDynamicExtensions getDefaultInstance() { return defaultInstance; } public TestDynamicExtensions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestDynamicExtensions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 16005: { bitField0_ |= 0x00000001; scalarExtension_ = input.readFixed32(); break; } case 16008: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.ForeignEnum value = protobuf_unittest.UnittestProto.ForeignEnum.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2001, rawValue); } else { bitField0_ |= 0x00000002; enumExtension_ = value; } break; } case 16016: { int rawValue = input.readEnum(); protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType value = protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2002, rawValue); } else { bitField0_ |= 0x00000004; dynamicEnumExtension_ = value; } break; } case 16026: { protobuf_unittest.UnittestProto.ForeignMessage.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = messageExtension_.toBuilder(); } messageExtension_ = input.readMessage(protobuf_unittest.UnittestProto.ForeignMessage.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(messageExtension_); messageExtension_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 16034: { protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = dynamicMessageExtension_.toBuilder(); } dynamicMessageExtension_ = input.readMessage(protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dynamicMessageExtension_); dynamicMessageExtension_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 16042: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { repeatedExtension_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } repeatedExtension_.add(bs); break; } case 16048: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { packedExtension_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } packedExtension_.add(input.readSInt32()); break; } case 16050: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { packedExtension_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { packedExtension_.add(input.readSInt32()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { repeatedExtension_ = repeatedExtension_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { packedExtension_ = java.util.Collections.unmodifiableList(packedExtension_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDynamicExtensions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDynamicExtensions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDynamicExtensions.class, protobuf_unittest.UnittestProto.TestDynamicExtensions.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestDynamicExtensions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestDynamicExtensions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code protobuf_unittest.TestDynamicExtensions.DynamicEnumType} */ public enum DynamicEnumType implements com.google.protobuf.ProtocolMessageEnum { /** * DYNAMIC_FOO = 2200; */ DYNAMIC_FOO(0, 2200), /** * DYNAMIC_BAR = 2201; */ DYNAMIC_BAR(1, 2201), /** * DYNAMIC_BAZ = 2202; */ DYNAMIC_BAZ(2, 2202), ; /** * DYNAMIC_FOO = 2200; */ public static final int DYNAMIC_FOO_VALUE = 2200; /** * DYNAMIC_BAR = 2201; */ public static final int DYNAMIC_BAR_VALUE = 2201; /** * DYNAMIC_BAZ = 2202; */ public static final int DYNAMIC_BAZ_VALUE = 2202; public final int getNumber() { return value; } public static DynamicEnumType valueOf(int value) { switch (value) { case 2200: return DYNAMIC_FOO; case 2201: return DYNAMIC_BAR; case 2202: return DYNAMIC_BAZ; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DynamicEnumType findValueByNumber(int number) { return DynamicEnumType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return protobuf_unittest.UnittestProto.TestDynamicExtensions.getDescriptor().getEnumTypes().get(0); } private static final DynamicEnumType[] VALUES = values(); public static DynamicEnumType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private DynamicEnumType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protobuf_unittest.TestDynamicExtensions.DynamicEnumType) } public interface DynamicMessageTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestDynamicExtensions.DynamicMessageType) com.google.protobuf.MessageOrBuilder { /** * optional int32 dynamic_field = 2100; */ boolean hasDynamicField(); /** * optional int32 dynamic_field = 2100; */ int getDynamicField(); } /** * Protobuf type {@code protobuf_unittest.TestDynamicExtensions.DynamicMessageType} */ public static final class DynamicMessageType extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestDynamicExtensions.DynamicMessageType) DynamicMessageTypeOrBuilder { // Use DynamicMessageType.newBuilder() to construct. private DynamicMessageType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DynamicMessageType(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DynamicMessageType defaultInstance; public static DynamicMessageType getDefaultInstance() { return defaultInstance; } public DynamicMessageType getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DynamicMessageType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 16800: { bitField0_ |= 0x00000001; dynamicField_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.class, protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DynamicMessageType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DynamicMessageType(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int DYNAMIC_FIELD_FIELD_NUMBER = 2100; private int dynamicField_; /** * optional int32 dynamic_field = 2100; */ public boolean hasDynamicField() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 dynamic_field = 2100; */ public int getDynamicField() { return dynamicField_; } private void initFields() { dynamicField_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(2100, dynamicField_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2100, dynamicField_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestDynamicExtensions.DynamicMessageType} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestDynamicExtensions.DynamicMessageType) protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.class, protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); dynamicField_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType_descriptor; } public protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType build() { protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType buildPartial() { protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType result = new protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.dynamicField_ = dynamicField_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType) { return mergeFrom((protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType other) { if (other == protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.getDefaultInstance()) return this; if (other.hasDynamicField()) { setDynamicField(other.getDynamicField()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int dynamicField_ ; /** * optional int32 dynamic_field = 2100; */ public boolean hasDynamicField() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 dynamic_field = 2100; */ public int getDynamicField() { return dynamicField_; } /** * optional int32 dynamic_field = 2100; */ public Builder setDynamicField(int value) { bitField0_ |= 0x00000001; dynamicField_ = value; onChanged(); return this; } /** * optional int32 dynamic_field = 2100; */ public Builder clearDynamicField() { bitField0_ = (bitField0_ & ~0x00000001); dynamicField_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestDynamicExtensions.DynamicMessageType) } static { defaultInstance = new DynamicMessageType(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDynamicExtensions.DynamicMessageType) } private int bitField0_; public static final int SCALAR_EXTENSION_FIELD_NUMBER = 2000; private int scalarExtension_; /** * optional fixed32 scalar_extension = 2000; */ public boolean hasScalarExtension() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional fixed32 scalar_extension = 2000; */ public int getScalarExtension() { return scalarExtension_; } public static final int ENUM_EXTENSION_FIELD_NUMBER = 2001; private protobuf_unittest.UnittestProto.ForeignEnum enumExtension_; /** * optional .protobuf_unittest.ForeignEnum enum_extension = 2001; */ public boolean hasEnumExtension() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .protobuf_unittest.ForeignEnum enum_extension = 2001; */ public protobuf_unittest.UnittestProto.ForeignEnum getEnumExtension() { return enumExtension_; } public static final int DYNAMIC_ENUM_EXTENSION_FIELD_NUMBER = 2002; private protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType dynamicEnumExtension_; /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002; */ public boolean hasDynamicEnumExtension() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002; */ public protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType getDynamicEnumExtension() { return dynamicEnumExtension_; } public static final int MESSAGE_EXTENSION_FIELD_NUMBER = 2003; private protobuf_unittest.UnittestProto.ForeignMessage messageExtension_; /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public boolean hasMessageExtension() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public protobuf_unittest.UnittestProto.ForeignMessage getMessageExtension() { return messageExtension_; } /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getMessageExtensionOrBuilder() { return messageExtension_; } public static final int DYNAMIC_MESSAGE_EXTENSION_FIELD_NUMBER = 2004; private protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType dynamicMessageExtension_; /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public boolean hasDynamicMessageExtension() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType getDynamicMessageExtension() { return dynamicMessageExtension_; } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageTypeOrBuilder getDynamicMessageExtensionOrBuilder() { return dynamicMessageExtension_; } public static final int REPEATED_EXTENSION_FIELD_NUMBER = 2005; private com.google.protobuf.LazyStringList repeatedExtension_; /** * repeated string repeated_extension = 2005; */ public com.google.protobuf.ProtocolStringList getRepeatedExtensionList() { return repeatedExtension_; } /** * repeated string repeated_extension = 2005; */ public int getRepeatedExtensionCount() { return repeatedExtension_.size(); } /** * repeated string repeated_extension = 2005; */ public java.lang.String getRepeatedExtension(int index) { return repeatedExtension_.get(index); } /** * repeated string repeated_extension = 2005; */ public com.google.protobuf.ByteString getRepeatedExtensionBytes(int index) { return repeatedExtension_.getByteString(index); } public static final int PACKED_EXTENSION_FIELD_NUMBER = 2006; private java.util.List packedExtension_; /** * repeated sint32 packed_extension = 2006 [packed = true]; */ public java.util.List getPackedExtensionList() { return packedExtension_; } /** * repeated sint32 packed_extension = 2006 [packed = true]; */ public int getPackedExtensionCount() { return packedExtension_.size(); } /** * repeated sint32 packed_extension = 2006 [packed = true]; */ public int getPackedExtension(int index) { return packedExtension_.get(index); } private int packedExtensionMemoizedSerializedSize = -1; private void initFields() { scalarExtension_ = 0; enumExtension_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; dynamicEnumExtension_ = protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType.DYNAMIC_FOO; messageExtension_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); dynamicMessageExtension_ = protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.getDefaultInstance(); repeatedExtension_ = com.google.protobuf.LazyStringArrayList.EMPTY; packedExtension_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeFixed32(2000, scalarExtension_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2001, enumExtension_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(2002, dynamicEnumExtension_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(2003, messageExtension_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(2004, dynamicMessageExtension_); } for (int i = 0; i < repeatedExtension_.size(); i++) { output.writeBytes(2005, repeatedExtension_.getByteString(i)); } if (getPackedExtensionList().size() > 0) { output.writeRawVarint32(16050); output.writeRawVarint32(packedExtensionMemoizedSerializedSize); } for (int i = 0; i < packedExtension_.size(); i++) { output.writeSInt32NoTag(packedExtension_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeFixed32Size(2000, scalarExtension_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2001, enumExtension_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2002, dynamicEnumExtension_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2003, messageExtension_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2004, dynamicMessageExtension_); } { int dataSize = 0; for (int i = 0; i < repeatedExtension_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(repeatedExtension_.getByteString(i)); } size += dataSize; size += 2 * getRepeatedExtensionList().size(); } { int dataSize = 0; for (int i = 0; i < packedExtension_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt32SizeNoTag(packedExtension_.get(i)); } size += dataSize; if (!getPackedExtensionList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedExtensionMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestDynamicExtensions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestDynamicExtensions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestDynamicExtensions} * *
     * Used by ExtensionSetTest/DynamicExtensions.  The test actually builds
     * a set of extensions to TestAllExtensions dynamically, based on the fields
     * of this message type.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestDynamicExtensions) protobuf_unittest.UnittestProto.TestDynamicExtensionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDynamicExtensions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDynamicExtensions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestDynamicExtensions.class, protobuf_unittest.UnittestProto.TestDynamicExtensions.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestDynamicExtensions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMessageExtensionFieldBuilder(); getDynamicMessageExtensionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); scalarExtension_ = 0; bitField0_ = (bitField0_ & ~0x00000001); enumExtension_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; bitField0_ = (bitField0_ & ~0x00000002); dynamicEnumExtension_ = protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType.DYNAMIC_FOO; bitField0_ = (bitField0_ & ~0x00000004); if (messageExtensionBuilder_ == null) { messageExtension_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); } else { messageExtensionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (dynamicMessageExtensionBuilder_ == null) { dynamicMessageExtension_ = protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.getDefaultInstance(); } else { dynamicMessageExtensionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); repeatedExtension_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); packedExtension_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestDynamicExtensions_descriptor; } public protobuf_unittest.UnittestProto.TestDynamicExtensions getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestDynamicExtensions.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestDynamicExtensions build() { protobuf_unittest.UnittestProto.TestDynamicExtensions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestDynamicExtensions buildPartial() { protobuf_unittest.UnittestProto.TestDynamicExtensions result = new protobuf_unittest.UnittestProto.TestDynamicExtensions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.scalarExtension_ = scalarExtension_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.enumExtension_ = enumExtension_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.dynamicEnumExtension_ = dynamicEnumExtension_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (messageExtensionBuilder_ == null) { result.messageExtension_ = messageExtension_; } else { result.messageExtension_ = messageExtensionBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (dynamicMessageExtensionBuilder_ == null) { result.dynamicMessageExtension_ = dynamicMessageExtension_; } else { result.dynamicMessageExtension_ = dynamicMessageExtensionBuilder_.build(); } if (((bitField0_ & 0x00000020) == 0x00000020)) { repeatedExtension_ = repeatedExtension_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.repeatedExtension_ = repeatedExtension_; if (((bitField0_ & 0x00000040) == 0x00000040)) { packedExtension_ = java.util.Collections.unmodifiableList(packedExtension_); bitField0_ = (bitField0_ & ~0x00000040); } result.packedExtension_ = packedExtension_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestDynamicExtensions) { return mergeFrom((protobuf_unittest.UnittestProto.TestDynamicExtensions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestDynamicExtensions other) { if (other == protobuf_unittest.UnittestProto.TestDynamicExtensions.getDefaultInstance()) return this; if (other.hasScalarExtension()) { setScalarExtension(other.getScalarExtension()); } if (other.hasEnumExtension()) { setEnumExtension(other.getEnumExtension()); } if (other.hasDynamicEnumExtension()) { setDynamicEnumExtension(other.getDynamicEnumExtension()); } if (other.hasMessageExtension()) { mergeMessageExtension(other.getMessageExtension()); } if (other.hasDynamicMessageExtension()) { mergeDynamicMessageExtension(other.getDynamicMessageExtension()); } if (!other.repeatedExtension_.isEmpty()) { if (repeatedExtension_.isEmpty()) { repeatedExtension_ = other.repeatedExtension_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureRepeatedExtensionIsMutable(); repeatedExtension_.addAll(other.repeatedExtension_); } onChanged(); } if (!other.packedExtension_.isEmpty()) { if (packedExtension_.isEmpty()) { packedExtension_ = other.packedExtension_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensurePackedExtensionIsMutable(); packedExtension_.addAll(other.packedExtension_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestDynamicExtensions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestDynamicExtensions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int scalarExtension_ ; /** * optional fixed32 scalar_extension = 2000; */ public boolean hasScalarExtension() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional fixed32 scalar_extension = 2000; */ public int getScalarExtension() { return scalarExtension_; } /** * optional fixed32 scalar_extension = 2000; */ public Builder setScalarExtension(int value) { bitField0_ |= 0x00000001; scalarExtension_ = value; onChanged(); return this; } /** * optional fixed32 scalar_extension = 2000; */ public Builder clearScalarExtension() { bitField0_ = (bitField0_ & ~0x00000001); scalarExtension_ = 0; onChanged(); return this; } private protobuf_unittest.UnittestProto.ForeignEnum enumExtension_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; /** * optional .protobuf_unittest.ForeignEnum enum_extension = 2001; */ public boolean hasEnumExtension() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .protobuf_unittest.ForeignEnum enum_extension = 2001; */ public protobuf_unittest.UnittestProto.ForeignEnum getEnumExtension() { return enumExtension_; } /** * optional .protobuf_unittest.ForeignEnum enum_extension = 2001; */ public Builder setEnumExtension(protobuf_unittest.UnittestProto.ForeignEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; enumExtension_ = value; onChanged(); return this; } /** * optional .protobuf_unittest.ForeignEnum enum_extension = 2001; */ public Builder clearEnumExtension() { bitField0_ = (bitField0_ & ~0x00000002); enumExtension_ = protobuf_unittest.UnittestProto.ForeignEnum.FOREIGN_FOO; onChanged(); return this; } private protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType dynamicEnumExtension_ = protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType.DYNAMIC_FOO; /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002; */ public boolean hasDynamicEnumExtension() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002; */ public protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType getDynamicEnumExtension() { return dynamicEnumExtension_; } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002; */ public Builder setDynamicEnumExtension(protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; dynamicEnumExtension_ = value; onChanged(); return this; } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002; */ public Builder clearDynamicEnumExtension() { bitField0_ = (bitField0_ & ~0x00000004); dynamicEnumExtension_ = protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicEnumType.DYNAMIC_FOO; onChanged(); return this; } private protobuf_unittest.UnittestProto.ForeignMessage messageExtension_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> messageExtensionBuilder_; /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public boolean hasMessageExtension() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public protobuf_unittest.UnittestProto.ForeignMessage getMessageExtension() { if (messageExtensionBuilder_ == null) { return messageExtension_; } else { return messageExtensionBuilder_.getMessage(); } } /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public Builder setMessageExtension(protobuf_unittest.UnittestProto.ForeignMessage value) { if (messageExtensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } messageExtension_ = value; onChanged(); } else { messageExtensionBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public Builder setMessageExtension( protobuf_unittest.UnittestProto.ForeignMessage.Builder builderForValue) { if (messageExtensionBuilder_ == null) { messageExtension_ = builderForValue.build(); onChanged(); } else { messageExtensionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public Builder mergeMessageExtension(protobuf_unittest.UnittestProto.ForeignMessage value) { if (messageExtensionBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && messageExtension_ != protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()) { messageExtension_ = protobuf_unittest.UnittestProto.ForeignMessage.newBuilder(messageExtension_).mergeFrom(value).buildPartial(); } else { messageExtension_ = value; } onChanged(); } else { messageExtensionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public Builder clearMessageExtension() { if (messageExtensionBuilder_ == null) { messageExtension_ = protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance(); onChanged(); } else { messageExtensionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public protobuf_unittest.UnittestProto.ForeignMessage.Builder getMessageExtensionBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMessageExtensionFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ public protobuf_unittest.UnittestProto.ForeignMessageOrBuilder getMessageExtensionOrBuilder() { if (messageExtensionBuilder_ != null) { return messageExtensionBuilder_.getMessageOrBuilder(); } else { return messageExtension_; } } /** * optional .protobuf_unittest.ForeignMessage message_extension = 2003; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder> getMessageExtensionFieldBuilder() { if (messageExtensionBuilder_ == null) { messageExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.ForeignMessage, protobuf_unittest.UnittestProto.ForeignMessage.Builder, protobuf_unittest.UnittestProto.ForeignMessageOrBuilder>( getMessageExtension(), getParentForChildren(), isClean()); messageExtension_ = null; } return messageExtensionBuilder_; } private protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType dynamicMessageExtension_ = protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType, protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.Builder, protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageTypeOrBuilder> dynamicMessageExtensionBuilder_; /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public boolean hasDynamicMessageExtension() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType getDynamicMessageExtension() { if (dynamicMessageExtensionBuilder_ == null) { return dynamicMessageExtension_; } else { return dynamicMessageExtensionBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public Builder setDynamicMessageExtension(protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType value) { if (dynamicMessageExtensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dynamicMessageExtension_ = value; onChanged(); } else { dynamicMessageExtensionBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public Builder setDynamicMessageExtension( protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.Builder builderForValue) { if (dynamicMessageExtensionBuilder_ == null) { dynamicMessageExtension_ = builderForValue.build(); onChanged(); } else { dynamicMessageExtensionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public Builder mergeDynamicMessageExtension(protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType value) { if (dynamicMessageExtensionBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && dynamicMessageExtension_ != protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.getDefaultInstance()) { dynamicMessageExtension_ = protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.newBuilder(dynamicMessageExtension_).mergeFrom(value).buildPartial(); } else { dynamicMessageExtension_ = value; } onChanged(); } else { dynamicMessageExtensionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public Builder clearDynamicMessageExtension() { if (dynamicMessageExtensionBuilder_ == null) { dynamicMessageExtension_ = protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.getDefaultInstance(); onChanged(); } else { dynamicMessageExtensionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.Builder getDynamicMessageExtensionBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDynamicMessageExtensionFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ public protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageTypeOrBuilder getDynamicMessageExtensionOrBuilder() { if (dynamicMessageExtensionBuilder_ != null) { return dynamicMessageExtensionBuilder_.getMessageOrBuilder(); } else { return dynamicMessageExtension_; } } /** * optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType, protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.Builder, protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageTypeOrBuilder> getDynamicMessageExtensionFieldBuilder() { if (dynamicMessageExtensionBuilder_ == null) { dynamicMessageExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType, protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageType.Builder, protobuf_unittest.UnittestProto.TestDynamicExtensions.DynamicMessageTypeOrBuilder>( getDynamicMessageExtension(), getParentForChildren(), isClean()); dynamicMessageExtension_ = null; } return dynamicMessageExtensionBuilder_; } private com.google.protobuf.LazyStringList repeatedExtension_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRepeatedExtensionIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { repeatedExtension_ = new com.google.protobuf.LazyStringArrayList(repeatedExtension_); bitField0_ |= 0x00000020; } } /** * repeated string repeated_extension = 2005; */ public com.google.protobuf.ProtocolStringList getRepeatedExtensionList() { return repeatedExtension_.getUnmodifiableView(); } /** * repeated string repeated_extension = 2005; */ public int getRepeatedExtensionCount() { return repeatedExtension_.size(); } /** * repeated string repeated_extension = 2005; */ public java.lang.String getRepeatedExtension(int index) { return repeatedExtension_.get(index); } /** * repeated string repeated_extension = 2005; */ public com.google.protobuf.ByteString getRepeatedExtensionBytes(int index) { return repeatedExtension_.getByteString(index); } /** * repeated string repeated_extension = 2005; */ public Builder setRepeatedExtension( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedExtensionIsMutable(); repeatedExtension_.set(index, value); onChanged(); return this; } /** * repeated string repeated_extension = 2005; */ public Builder addRepeatedExtension( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedExtensionIsMutable(); repeatedExtension_.add(value); onChanged(); return this; } /** * repeated string repeated_extension = 2005; */ public Builder addAllRepeatedExtension( java.lang.Iterable values) { ensureRepeatedExtensionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedExtension_); onChanged(); return this; } /** * repeated string repeated_extension = 2005; */ public Builder clearRepeatedExtension() { repeatedExtension_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * repeated string repeated_extension = 2005; */ public Builder addRepeatedExtensionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedExtensionIsMutable(); repeatedExtension_.add(value); onChanged(); return this; } private java.util.List packedExtension_ = java.util.Collections.emptyList(); private void ensurePackedExtensionIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { packedExtension_ = new java.util.ArrayList(packedExtension_); bitField0_ |= 0x00000040; } } /** * repeated sint32 packed_extension = 2006 [packed = true]; */ public java.util.List getPackedExtensionList() { return java.util.Collections.unmodifiableList(packedExtension_); } /** * repeated sint32 packed_extension = 2006 [packed = true]; */ public int getPackedExtensionCount() { return packedExtension_.size(); } /** * repeated sint32 packed_extension = 2006 [packed = true]; */ public int getPackedExtension(int index) { return packedExtension_.get(index); } /** * repeated sint32 packed_extension = 2006 [packed = true]; */ public Builder setPackedExtension( int index, int value) { ensurePackedExtensionIsMutable(); packedExtension_.set(index, value); onChanged(); return this; } /** * repeated sint32 packed_extension = 2006 [packed = true]; */ public Builder addPackedExtension(int value) { ensurePackedExtensionIsMutable(); packedExtension_.add(value); onChanged(); return this; } /** * repeated sint32 packed_extension = 2006 [packed = true]; */ public Builder addAllPackedExtension( java.lang.Iterable values) { ensurePackedExtensionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedExtension_); onChanged(); return this; } /** * repeated sint32 packed_extension = 2006 [packed = true]; */ public Builder clearPackedExtension() { packedExtension_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestDynamicExtensions) } static { defaultInstance = new TestDynamicExtensions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDynamicExtensions) } public interface TestRepeatedScalarDifferentTagSizesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestRepeatedScalarDifferentTagSizes) com.google.protobuf.MessageOrBuilder { /** * repeated fixed32 repeated_fixed32 = 12; * *
     * Parsing repeated fixed size values used to fail. This message needs to be
     * used in order to get a tag of the right size; all of the repeated fields
     * in TestAllTypes didn't trigger the check.
     * 
*/ java.util.List getRepeatedFixed32List(); /** * repeated fixed32 repeated_fixed32 = 12; * *
     * Parsing repeated fixed size values used to fail. This message needs to be
     * used in order to get a tag of the right size; all of the repeated fields
     * in TestAllTypes didn't trigger the check.
     * 
*/ int getRepeatedFixed32Count(); /** * repeated fixed32 repeated_fixed32 = 12; * *
     * Parsing repeated fixed size values used to fail. This message needs to be
     * used in order to get a tag of the right size; all of the repeated fields
     * in TestAllTypes didn't trigger the check.
     * 
*/ int getRepeatedFixed32(int index); /** * repeated int32 repeated_int32 = 13; * *
     * Check for a varint type, just for good measure.
     * 
*/ java.util.List getRepeatedInt32List(); /** * repeated int32 repeated_int32 = 13; * *
     * Check for a varint type, just for good measure.
     * 
*/ int getRepeatedInt32Count(); /** * repeated int32 repeated_int32 = 13; * *
     * Check for a varint type, just for good measure.
     * 
*/ int getRepeatedInt32(int index); /** * repeated fixed64 repeated_fixed64 = 2046; * *
     * These have two-byte tags.
     * 
*/ java.util.List getRepeatedFixed64List(); /** * repeated fixed64 repeated_fixed64 = 2046; * *
     * These have two-byte tags.
     * 
*/ int getRepeatedFixed64Count(); /** * repeated fixed64 repeated_fixed64 = 2046; * *
     * These have two-byte tags.
     * 
*/ long getRepeatedFixed64(int index); /** * repeated int64 repeated_int64 = 2047; */ java.util.List getRepeatedInt64List(); /** * repeated int64 repeated_int64 = 2047; */ int getRepeatedInt64Count(); /** * repeated int64 repeated_int64 = 2047; */ long getRepeatedInt64(int index); /** * repeated float repeated_float = 262142; * *
     * Three byte tags.
     * 
*/ java.util.List getRepeatedFloatList(); /** * repeated float repeated_float = 262142; * *
     * Three byte tags.
     * 
*/ int getRepeatedFloatCount(); /** * repeated float repeated_float = 262142; * *
     * Three byte tags.
     * 
*/ float getRepeatedFloat(int index); /** * repeated uint64 repeated_uint64 = 262143; */ java.util.List getRepeatedUint64List(); /** * repeated uint64 repeated_uint64 = 262143; */ int getRepeatedUint64Count(); /** * repeated uint64 repeated_uint64 = 262143; */ long getRepeatedUint64(int index); } /** * Protobuf type {@code protobuf_unittest.TestRepeatedScalarDifferentTagSizes} */ public static final class TestRepeatedScalarDifferentTagSizes extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestRepeatedScalarDifferentTagSizes) TestRepeatedScalarDifferentTagSizesOrBuilder { // Use TestRepeatedScalarDifferentTagSizes.newBuilder() to construct. private TestRepeatedScalarDifferentTagSizes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestRepeatedScalarDifferentTagSizes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestRepeatedScalarDifferentTagSizes defaultInstance; public static TestRepeatedScalarDifferentTagSizes getDefaultInstance() { return defaultInstance; } public TestRepeatedScalarDifferentTagSizes getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestRepeatedScalarDifferentTagSizes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 101: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { repeatedFixed32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } repeatedFixed32_.add(input.readFixed32()); break; } case 98: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { repeatedFixed32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { repeatedFixed32_.add(input.readFixed32()); } input.popLimit(limit); break; } case 104: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { repeatedInt32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } repeatedInt32_.add(input.readInt32()); break; } case 106: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { repeatedInt32_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { repeatedInt32_.add(input.readInt32()); } input.popLimit(limit); break; } case 16369: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { repeatedFixed64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } repeatedFixed64_.add(input.readFixed64()); break; } case 16370: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { repeatedFixed64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { repeatedFixed64_.add(input.readFixed64()); } input.popLimit(limit); break; } case 16376: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { repeatedInt64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } repeatedInt64_.add(input.readInt64()); break; } case 16378: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { repeatedInt64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { repeatedInt64_.add(input.readInt64()); } input.popLimit(limit); break; } case 2097141: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { repeatedFloat_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } repeatedFloat_.add(input.readFloat()); break; } case 2097138: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { repeatedFloat_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { repeatedFloat_.add(input.readFloat()); } input.popLimit(limit); break; } case 2097144: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { repeatedUint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } repeatedUint64_.add(input.readUInt64()); break; } case 2097146: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { repeatedUint64_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { repeatedUint64_.add(input.readUInt64()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { repeatedFixed32_ = java.util.Collections.unmodifiableList(repeatedFixed32_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { repeatedInt32_ = java.util.Collections.unmodifiableList(repeatedInt32_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { repeatedFixed64_ = java.util.Collections.unmodifiableList(repeatedFixed64_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { repeatedInt64_ = java.util.Collections.unmodifiableList(repeatedInt64_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { repeatedFloat_ = java.util.Collections.unmodifiableList(repeatedFloat_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { repeatedUint64_ = java.util.Collections.unmodifiableList(repeatedUint64_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes.class, protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestRepeatedScalarDifferentTagSizes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestRepeatedScalarDifferentTagSizes(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int REPEATED_FIXED32_FIELD_NUMBER = 12; private java.util.List repeatedFixed32_; /** * repeated fixed32 repeated_fixed32 = 12; * *
     * Parsing repeated fixed size values used to fail. This message needs to be
     * used in order to get a tag of the right size; all of the repeated fields
     * in TestAllTypes didn't trigger the check.
     * 
*/ public java.util.List getRepeatedFixed32List() { return repeatedFixed32_; } /** * repeated fixed32 repeated_fixed32 = 12; * *
     * Parsing repeated fixed size values used to fail. This message needs to be
     * used in order to get a tag of the right size; all of the repeated fields
     * in TestAllTypes didn't trigger the check.
     * 
*/ public int getRepeatedFixed32Count() { return repeatedFixed32_.size(); } /** * repeated fixed32 repeated_fixed32 = 12; * *
     * Parsing repeated fixed size values used to fail. This message needs to be
     * used in order to get a tag of the right size; all of the repeated fields
     * in TestAllTypes didn't trigger the check.
     * 
*/ public int getRepeatedFixed32(int index) { return repeatedFixed32_.get(index); } public static final int REPEATED_INT32_FIELD_NUMBER = 13; private java.util.List repeatedInt32_; /** * repeated int32 repeated_int32 = 13; * *
     * Check for a varint type, just for good measure.
     * 
*/ public java.util.List getRepeatedInt32List() { return repeatedInt32_; } /** * repeated int32 repeated_int32 = 13; * *
     * Check for a varint type, just for good measure.
     * 
*/ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** * repeated int32 repeated_int32 = 13; * *
     * Check for a varint type, just for good measure.
     * 
*/ public int getRepeatedInt32(int index) { return repeatedInt32_.get(index); } public static final int REPEATED_FIXED64_FIELD_NUMBER = 2046; private java.util.List repeatedFixed64_; /** * repeated fixed64 repeated_fixed64 = 2046; * *
     * These have two-byte tags.
     * 
*/ public java.util.List getRepeatedFixed64List() { return repeatedFixed64_; } /** * repeated fixed64 repeated_fixed64 = 2046; * *
     * These have two-byte tags.
     * 
*/ public int getRepeatedFixed64Count() { return repeatedFixed64_.size(); } /** * repeated fixed64 repeated_fixed64 = 2046; * *
     * These have two-byte tags.
     * 
*/ public long getRepeatedFixed64(int index) { return repeatedFixed64_.get(index); } public static final int REPEATED_INT64_FIELD_NUMBER = 2047; private java.util.List repeatedInt64_; /** * repeated int64 repeated_int64 = 2047; */ public java.util.List getRepeatedInt64List() { return repeatedInt64_; } /** * repeated int64 repeated_int64 = 2047; */ public int getRepeatedInt64Count() { return repeatedInt64_.size(); } /** * repeated int64 repeated_int64 = 2047; */ public long getRepeatedInt64(int index) { return repeatedInt64_.get(index); } public static final int REPEATED_FLOAT_FIELD_NUMBER = 262142; private java.util.List repeatedFloat_; /** * repeated float repeated_float = 262142; * *
     * Three byte tags.
     * 
*/ public java.util.List getRepeatedFloatList() { return repeatedFloat_; } /** * repeated float repeated_float = 262142; * *
     * Three byte tags.
     * 
*/ public int getRepeatedFloatCount() { return repeatedFloat_.size(); } /** * repeated float repeated_float = 262142; * *
     * Three byte tags.
     * 
*/ public float getRepeatedFloat(int index) { return repeatedFloat_.get(index); } public static final int REPEATED_UINT64_FIELD_NUMBER = 262143; private java.util.List repeatedUint64_; /** * repeated uint64 repeated_uint64 = 262143; */ public java.util.List getRepeatedUint64List() { return repeatedUint64_; } /** * repeated uint64 repeated_uint64 = 262143; */ public int getRepeatedUint64Count() { return repeatedUint64_.size(); } /** * repeated uint64 repeated_uint64 = 262143; */ public long getRepeatedUint64(int index) { return repeatedUint64_.get(index); } private void initFields() { repeatedFixed32_ = java.util.Collections.emptyList(); repeatedInt32_ = java.util.Collections.emptyList(); repeatedFixed64_ = java.util.Collections.emptyList(); repeatedInt64_ = java.util.Collections.emptyList(); repeatedFloat_ = java.util.Collections.emptyList(); repeatedUint64_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < repeatedFixed32_.size(); i++) { output.writeFixed32(12, repeatedFixed32_.get(i)); } for (int i = 0; i < repeatedInt32_.size(); i++) { output.writeInt32(13, repeatedInt32_.get(i)); } for (int i = 0; i < repeatedFixed64_.size(); i++) { output.writeFixed64(2046, repeatedFixed64_.get(i)); } for (int i = 0; i < repeatedInt64_.size(); i++) { output.writeInt64(2047, repeatedInt64_.get(i)); } for (int i = 0; i < repeatedFloat_.size(); i++) { output.writeFloat(262142, repeatedFloat_.get(i)); } for (int i = 0; i < repeatedUint64_.size(); i++) { output.writeUInt64(262143, repeatedUint64_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; dataSize = 4 * getRepeatedFixed32List().size(); size += dataSize; size += 1 * getRepeatedFixed32List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedInt32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(repeatedInt32_.get(i)); } size += dataSize; size += 1 * getRepeatedInt32List().size(); } { int dataSize = 0; dataSize = 8 * getRepeatedFixed64List().size(); size += dataSize; size += 2 * getRepeatedFixed64List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedInt64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(repeatedInt64_.get(i)); } size += dataSize; size += 2 * getRepeatedInt64List().size(); } { int dataSize = 0; dataSize = 4 * getRepeatedFloatList().size(); size += dataSize; size += 3 * getRepeatedFloatList().size(); } { int dataSize = 0; for (int i = 0; i < repeatedUint64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(repeatedUint64_.get(i)); } size += dataSize; size += 3 * getRepeatedUint64List().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestRepeatedScalarDifferentTagSizes} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestRepeatedScalarDifferentTagSizes) protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes.class, protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); repeatedFixed32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); repeatedInt32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); repeatedFixed64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); repeatedInt64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); repeatedFloat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); repeatedUint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes_descriptor; } public protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes build() { protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes buildPartial() { protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes result = new protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { repeatedFixed32_ = java.util.Collections.unmodifiableList(repeatedFixed32_); bitField0_ = (bitField0_ & ~0x00000001); } result.repeatedFixed32_ = repeatedFixed32_; if (((bitField0_ & 0x00000002) == 0x00000002)) { repeatedInt32_ = java.util.Collections.unmodifiableList(repeatedInt32_); bitField0_ = (bitField0_ & ~0x00000002); } result.repeatedInt32_ = repeatedInt32_; if (((bitField0_ & 0x00000004) == 0x00000004)) { repeatedFixed64_ = java.util.Collections.unmodifiableList(repeatedFixed64_); bitField0_ = (bitField0_ & ~0x00000004); } result.repeatedFixed64_ = repeatedFixed64_; if (((bitField0_ & 0x00000008) == 0x00000008)) { repeatedInt64_ = java.util.Collections.unmodifiableList(repeatedInt64_); bitField0_ = (bitField0_ & ~0x00000008); } result.repeatedInt64_ = repeatedInt64_; if (((bitField0_ & 0x00000010) == 0x00000010)) { repeatedFloat_ = java.util.Collections.unmodifiableList(repeatedFloat_); bitField0_ = (bitField0_ & ~0x00000010); } result.repeatedFloat_ = repeatedFloat_; if (((bitField0_ & 0x00000020) == 0x00000020)) { repeatedUint64_ = java.util.Collections.unmodifiableList(repeatedUint64_); bitField0_ = (bitField0_ & ~0x00000020); } result.repeatedUint64_ = repeatedUint64_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes) { return mergeFrom((protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes other) { if (other == protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes.getDefaultInstance()) return this; if (!other.repeatedFixed32_.isEmpty()) { if (repeatedFixed32_.isEmpty()) { repeatedFixed32_ = other.repeatedFixed32_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addAll(other.repeatedFixed32_); } onChanged(); } if (!other.repeatedInt32_.isEmpty()) { if (repeatedInt32_.isEmpty()) { repeatedInt32_ = other.repeatedInt32_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRepeatedInt32IsMutable(); repeatedInt32_.addAll(other.repeatedInt32_); } onChanged(); } if (!other.repeatedFixed64_.isEmpty()) { if (repeatedFixed64_.isEmpty()) { repeatedFixed64_ = other.repeatedFixed64_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRepeatedFixed64IsMutable(); repeatedFixed64_.addAll(other.repeatedFixed64_); } onChanged(); } if (!other.repeatedInt64_.isEmpty()) { if (repeatedInt64_.isEmpty()) { repeatedInt64_ = other.repeatedInt64_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureRepeatedInt64IsMutable(); repeatedInt64_.addAll(other.repeatedInt64_); } onChanged(); } if (!other.repeatedFloat_.isEmpty()) { if (repeatedFloat_.isEmpty()) { repeatedFloat_ = other.repeatedFloat_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureRepeatedFloatIsMutable(); repeatedFloat_.addAll(other.repeatedFloat_); } onChanged(); } if (!other.repeatedUint64_.isEmpty()) { if (repeatedUint64_.isEmpty()) { repeatedUint64_ = other.repeatedUint64_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureRepeatedUint64IsMutable(); repeatedUint64_.addAll(other.repeatedUint64_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestRepeatedScalarDifferentTagSizes) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List repeatedFixed32_ = java.util.Collections.emptyList(); private void ensureRepeatedFixed32IsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { repeatedFixed32_ = new java.util.ArrayList(repeatedFixed32_); bitField0_ |= 0x00000001; } } /** * repeated fixed32 repeated_fixed32 = 12; * *
       * Parsing repeated fixed size values used to fail. This message needs to be
       * used in order to get a tag of the right size; all of the repeated fields
       * in TestAllTypes didn't trigger the check.
       * 
*/ public java.util.List getRepeatedFixed32List() { return java.util.Collections.unmodifiableList(repeatedFixed32_); } /** * repeated fixed32 repeated_fixed32 = 12; * *
       * Parsing repeated fixed size values used to fail. This message needs to be
       * used in order to get a tag of the right size; all of the repeated fields
       * in TestAllTypes didn't trigger the check.
       * 
*/ public int getRepeatedFixed32Count() { return repeatedFixed32_.size(); } /** * repeated fixed32 repeated_fixed32 = 12; * *
       * Parsing repeated fixed size values used to fail. This message needs to be
       * used in order to get a tag of the right size; all of the repeated fields
       * in TestAllTypes didn't trigger the check.
       * 
*/ public int getRepeatedFixed32(int index) { return repeatedFixed32_.get(index); } /** * repeated fixed32 repeated_fixed32 = 12; * *
       * Parsing repeated fixed size values used to fail. This message needs to be
       * used in order to get a tag of the right size; all of the repeated fields
       * in TestAllTypes didn't trigger the check.
       * 
*/ public Builder setRepeatedFixed32( int index, int value) { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.set(index, value); onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 12; * *
       * Parsing repeated fixed size values used to fail. This message needs to be
       * used in order to get a tag of the right size; all of the repeated fields
       * in TestAllTypes didn't trigger the check.
       * 
*/ public Builder addRepeatedFixed32(int value) { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.add(value); onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 12; * *
       * Parsing repeated fixed size values used to fail. This message needs to be
       * used in order to get a tag of the right size; all of the repeated fields
       * in TestAllTypes didn't trigger the check.
       * 
*/ public Builder addAllRepeatedFixed32( java.lang.Iterable values) { ensureRepeatedFixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFixed32_); onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 12; * *
       * Parsing repeated fixed size values used to fail. This message needs to be
       * used in order to get a tag of the right size; all of the repeated fields
       * in TestAllTypes didn't trigger the check.
       * 
*/ public Builder clearRepeatedFixed32() { repeatedFixed32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private java.util.List repeatedInt32_ = java.util.Collections.emptyList(); private void ensureRepeatedInt32IsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { repeatedInt32_ = new java.util.ArrayList(repeatedInt32_); bitField0_ |= 0x00000002; } } /** * repeated int32 repeated_int32 = 13; * *
       * Check for a varint type, just for good measure.
       * 
*/ public java.util.List getRepeatedInt32List() { return java.util.Collections.unmodifiableList(repeatedInt32_); } /** * repeated int32 repeated_int32 = 13; * *
       * Check for a varint type, just for good measure.
       * 
*/ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** * repeated int32 repeated_int32 = 13; * *
       * Check for a varint type, just for good measure.
       * 
*/ public int getRepeatedInt32(int index) { return repeatedInt32_.get(index); } /** * repeated int32 repeated_int32 = 13; * *
       * Check for a varint type, just for good measure.
       * 
*/ public Builder setRepeatedInt32( int index, int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.set(index, value); onChanged(); return this; } /** * repeated int32 repeated_int32 = 13; * *
       * Check for a varint type, just for good measure.
       * 
*/ public Builder addRepeatedInt32(int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.add(value); onChanged(); return this; } /** * repeated int32 repeated_int32 = 13; * *
       * Check for a varint type, just for good measure.
       * 
*/ public Builder addAllRepeatedInt32( java.lang.Iterable values) { ensureRepeatedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedInt32_); onChanged(); return this; } /** * repeated int32 repeated_int32 = 13; * *
       * Check for a varint type, just for good measure.
       * 
*/ public Builder clearRepeatedInt32() { repeatedInt32_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.util.List repeatedFixed64_ = java.util.Collections.emptyList(); private void ensureRepeatedFixed64IsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { repeatedFixed64_ = new java.util.ArrayList(repeatedFixed64_); bitField0_ |= 0x00000004; } } /** * repeated fixed64 repeated_fixed64 = 2046; * *
       * These have two-byte tags.
       * 
*/ public java.util.List getRepeatedFixed64List() { return java.util.Collections.unmodifiableList(repeatedFixed64_); } /** * repeated fixed64 repeated_fixed64 = 2046; * *
       * These have two-byte tags.
       * 
*/ public int getRepeatedFixed64Count() { return repeatedFixed64_.size(); } /** * repeated fixed64 repeated_fixed64 = 2046; * *
       * These have two-byte tags.
       * 
*/ public long getRepeatedFixed64(int index) { return repeatedFixed64_.get(index); } /** * repeated fixed64 repeated_fixed64 = 2046; * *
       * These have two-byte tags.
       * 
*/ public Builder setRepeatedFixed64( int index, long value) { ensureRepeatedFixed64IsMutable(); repeatedFixed64_.set(index, value); onChanged(); return this; } /** * repeated fixed64 repeated_fixed64 = 2046; * *
       * These have two-byte tags.
       * 
*/ public Builder addRepeatedFixed64(long value) { ensureRepeatedFixed64IsMutable(); repeatedFixed64_.add(value); onChanged(); return this; } /** * repeated fixed64 repeated_fixed64 = 2046; * *
       * These have two-byte tags.
       * 
*/ public Builder addAllRepeatedFixed64( java.lang.Iterable values) { ensureRepeatedFixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFixed64_); onChanged(); return this; } /** * repeated fixed64 repeated_fixed64 = 2046; * *
       * These have two-byte tags.
       * 
*/ public Builder clearRepeatedFixed64() { repeatedFixed64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List repeatedInt64_ = java.util.Collections.emptyList(); private void ensureRepeatedInt64IsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { repeatedInt64_ = new java.util.ArrayList(repeatedInt64_); bitField0_ |= 0x00000008; } } /** * repeated int64 repeated_int64 = 2047; */ public java.util.List getRepeatedInt64List() { return java.util.Collections.unmodifiableList(repeatedInt64_); } /** * repeated int64 repeated_int64 = 2047; */ public int getRepeatedInt64Count() { return repeatedInt64_.size(); } /** * repeated int64 repeated_int64 = 2047; */ public long getRepeatedInt64(int index) { return repeatedInt64_.get(index); } /** * repeated int64 repeated_int64 = 2047; */ public Builder setRepeatedInt64( int index, long value) { ensureRepeatedInt64IsMutable(); repeatedInt64_.set(index, value); onChanged(); return this; } /** * repeated int64 repeated_int64 = 2047; */ public Builder addRepeatedInt64(long value) { ensureRepeatedInt64IsMutable(); repeatedInt64_.add(value); onChanged(); return this; } /** * repeated int64 repeated_int64 = 2047; */ public Builder addAllRepeatedInt64( java.lang.Iterable values) { ensureRepeatedInt64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedInt64_); onChanged(); return this; } /** * repeated int64 repeated_int64 = 2047; */ public Builder clearRepeatedInt64() { repeatedInt64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private java.util.List repeatedFloat_ = java.util.Collections.emptyList(); private void ensureRepeatedFloatIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { repeatedFloat_ = new java.util.ArrayList(repeatedFloat_); bitField0_ |= 0x00000010; } } /** * repeated float repeated_float = 262142; * *
       * Three byte tags.
       * 
*/ public java.util.List getRepeatedFloatList() { return java.util.Collections.unmodifiableList(repeatedFloat_); } /** * repeated float repeated_float = 262142; * *
       * Three byte tags.
       * 
*/ public int getRepeatedFloatCount() { return repeatedFloat_.size(); } /** * repeated float repeated_float = 262142; * *
       * Three byte tags.
       * 
*/ public float getRepeatedFloat(int index) { return repeatedFloat_.get(index); } /** * repeated float repeated_float = 262142; * *
       * Three byte tags.
       * 
*/ public Builder setRepeatedFloat( int index, float value) { ensureRepeatedFloatIsMutable(); repeatedFloat_.set(index, value); onChanged(); return this; } /** * repeated float repeated_float = 262142; * *
       * Three byte tags.
       * 
*/ public Builder addRepeatedFloat(float value) { ensureRepeatedFloatIsMutable(); repeatedFloat_.add(value); onChanged(); return this; } /** * repeated float repeated_float = 262142; * *
       * Three byte tags.
       * 
*/ public Builder addAllRepeatedFloat( java.lang.Iterable values) { ensureRepeatedFloatIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFloat_); onChanged(); return this; } /** * repeated float repeated_float = 262142; * *
       * Three byte tags.
       * 
*/ public Builder clearRepeatedFloat() { repeatedFloat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List repeatedUint64_ = java.util.Collections.emptyList(); private void ensureRepeatedUint64IsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { repeatedUint64_ = new java.util.ArrayList(repeatedUint64_); bitField0_ |= 0x00000020; } } /** * repeated uint64 repeated_uint64 = 262143; */ public java.util.List getRepeatedUint64List() { return java.util.Collections.unmodifiableList(repeatedUint64_); } /** * repeated uint64 repeated_uint64 = 262143; */ public int getRepeatedUint64Count() { return repeatedUint64_.size(); } /** * repeated uint64 repeated_uint64 = 262143; */ public long getRepeatedUint64(int index) { return repeatedUint64_.get(index); } /** * repeated uint64 repeated_uint64 = 262143; */ public Builder setRepeatedUint64( int index, long value) { ensureRepeatedUint64IsMutable(); repeatedUint64_.set(index, value); onChanged(); return this; } /** * repeated uint64 repeated_uint64 = 262143; */ public Builder addRepeatedUint64(long value) { ensureRepeatedUint64IsMutable(); repeatedUint64_.add(value); onChanged(); return this; } /** * repeated uint64 repeated_uint64 = 262143; */ public Builder addAllRepeatedUint64( java.lang.Iterable values) { ensureRepeatedUint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedUint64_); onChanged(); return this; } /** * repeated uint64 repeated_uint64 = 262143; */ public Builder clearRepeatedUint64() { repeatedUint64_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestRepeatedScalarDifferentTagSizes) } static { defaultInstance = new TestRepeatedScalarDifferentTagSizes(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRepeatedScalarDifferentTagSizes) } public interface TestParsingMergeOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestParsingMerge) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ boolean hasRequiredAllTypes(); /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ protobuf_unittest.UnittestProto.TestAllTypes getRequiredAllTypes(); /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getRequiredAllTypesOrBuilder(); /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ boolean hasOptionalAllTypes(); /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ protobuf_unittest.UnittestProto.TestAllTypes getOptionalAllTypes(); /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getOptionalAllTypesOrBuilder(); /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ java.util.List getRepeatedAllTypesList(); /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ protobuf_unittest.UnittestProto.TestAllTypes getRepeatedAllTypes(int index); /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ int getRepeatedAllTypesCount(); /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ java.util.List getRepeatedAllTypesOrBuilderList(); /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getRepeatedAllTypesOrBuilder( int index); /** * optional group OptionalGroup = 10 { ... } */ boolean hasOptionalGroup(); /** * optional group OptionalGroup = 10 { ... } */ protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup getOptionalGroup(); /** * optional group OptionalGroup = 10 { ... } */ protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroupOrBuilder getOptionalGroupOrBuilder(); /** * repeated group RepeatedGroup = 20 { ... } */ java.util.List getRepeatedGroupList(); /** * repeated group RepeatedGroup = 20 { ... } */ protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup getRepeatedGroup(int index); /** * repeated group RepeatedGroup = 20 { ... } */ int getRepeatedGroupCount(); /** * repeated group RepeatedGroup = 20 { ... } */ java.util.List getRepeatedGroupOrBuilderList(); /** * repeated group RepeatedGroup = 20 { ... } */ protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index); } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge} * *
   * Test that if an optional or required message/group field appears multiple
   * times in the input, they need to be merged.
   * 
*/ public static final class TestParsingMerge extends com.google.protobuf.GeneratedMessage.ExtendableMessage< TestParsingMerge> implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestParsingMerge) TestParsingMergeOrBuilder { // Use TestParsingMerge.newBuilder() to construct. private TestParsingMerge(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestParsingMerge(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestParsingMerge defaultInstance; public static TestParsingMerge getDefaultInstance() { return defaultInstance; } public TestParsingMerge getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestParsingMerge( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = requiredAllTypes_.toBuilder(); } requiredAllTypes_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(requiredAllTypes_); requiredAllTypes_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = optionalAllTypes_.toBuilder(); } optionalAllTypes_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalAllTypes_); optionalAllTypes_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { repeatedAllTypes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } repeatedAllTypes_.add(input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry)); break; } case 83: { protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = optionalGroup_.toBuilder(); } optionalGroup_ = input.readGroup(10, protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalGroup_); optionalGroup_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 163: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { repeatedGroup_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } repeatedGroup_.add(input.readGroup(20, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { repeatedAllTypes_ = java.util.Collections.unmodifiableList(repeatedAllTypes_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { repeatedGroup_ = java.util.Collections.unmodifiableList(repeatedGroup_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.class, protobuf_unittest.UnittestProto.TestParsingMerge.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestParsingMerge parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestParsingMerge(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface RepeatedFieldsGeneratorOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator) com.google.protobuf.MessageOrBuilder { /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ java.util.List getField1List(); /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ protobuf_unittest.UnittestProto.TestAllTypes getField1(int index); /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ int getField1Count(); /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ java.util.List getField1OrBuilderList(); /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField1OrBuilder( int index); /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ java.util.List getField2List(); /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ protobuf_unittest.UnittestProto.TestAllTypes getField2(int index); /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ int getField2Count(); /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ java.util.List getField2OrBuilderList(); /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField2OrBuilder( int index); /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ java.util.List getField3List(); /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ protobuf_unittest.UnittestProto.TestAllTypes getField3(int index); /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ int getField3Count(); /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ java.util.List getField3OrBuilderList(); /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField3OrBuilder( int index); /** * repeated group Group1 = 10 { ... } */ java.util.List getGroup1List(); /** * repeated group Group1 = 10 { ... } */ protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 getGroup1(int index); /** * repeated group Group1 = 10 { ... } */ int getGroup1Count(); /** * repeated group Group1 = 10 { ... } */ java.util.List getGroup1OrBuilderList(); /** * repeated group Group1 = 10 { ... } */ protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1OrBuilder getGroup1OrBuilder( int index); /** * repeated group Group2 = 20 { ... } */ java.util.List getGroup2List(); /** * repeated group Group2 = 20 { ... } */ protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 getGroup2(int index); /** * repeated group Group2 = 20 { ... } */ int getGroup2Count(); /** * repeated group Group2 = 20 { ... } */ java.util.List getGroup2OrBuilderList(); /** * repeated group Group2 = 20 { ... } */ protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2OrBuilder getGroup2OrBuilder( int index); /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ java.util.List getExt1List(); /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ protobuf_unittest.UnittestProto.TestAllTypes getExt1(int index); /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ int getExt1Count(); /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ java.util.List getExt1OrBuilderList(); /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getExt1OrBuilder( int index); /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ java.util.List getExt2List(); /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ protobuf_unittest.UnittestProto.TestAllTypes getExt2(int index); /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ int getExt2Count(); /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ java.util.List getExt2OrBuilderList(); /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getExt2OrBuilder( int index); } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator} * *
     * RepeatedFieldsGenerator defines matching field types as TestParsingMerge,
     * except that all fields are repeated. In the tests, we will serialize the
     * RepeatedFieldsGenerator to bytes, and parse the bytes to TestParsingMerge.
     * Repeated fields in RepeatedFieldsGenerator are expected to be merged into
     * the corresponding required/optional fields in TestParsingMerge.
     * 
*/ public static final class RepeatedFieldsGenerator extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator) RepeatedFieldsGeneratorOrBuilder { // Use RepeatedFieldsGenerator.newBuilder() to construct. private RepeatedFieldsGenerator(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RepeatedFieldsGenerator(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RepeatedFieldsGenerator defaultInstance; public static RepeatedFieldsGenerator getDefaultInstance() { return defaultInstance; } public RepeatedFieldsGenerator getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RepeatedFieldsGenerator( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { field1_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } field1_.add(input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { field2_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } field2_.add(input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { field3_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } field3_.add(input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry)); break; } case 83: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { group1_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } group1_.add(input.readGroup(10, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.PARSER, extensionRegistry)); break; } case 163: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { group2_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } group2_.add(input.readGroup(20, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.PARSER, extensionRegistry)); break; } case 8002: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { ext1_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } ext1_.add(input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry)); break; } case 8010: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { ext2_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } ext2_.add(input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { field1_ = java.util.Collections.unmodifiableList(field1_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { field2_ = java.util.Collections.unmodifiableList(field2_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { field3_ = java.util.Collections.unmodifiableList(field3_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { group1_ = java.util.Collections.unmodifiableList(group1_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { group2_ = java.util.Collections.unmodifiableList(group2_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { ext1_ = java.util.Collections.unmodifiableList(ext1_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { ext2_ = java.util.Collections.unmodifiableList(ext2_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.class, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RepeatedFieldsGenerator parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RepeatedFieldsGenerator(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface Group1OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ boolean hasField1(); /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ protobuf_unittest.UnittestProto.TestAllTypes getField1(); /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField1OrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1} */ public static final class Group1 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1) Group1OrBuilder { // Use Group1.newBuilder() to construct. private Group1(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Group1(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Group1 defaultInstance; public static Group1 getDefaultInstance() { return defaultInstance; } public Group1 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Group1( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 90: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = field1_.toBuilder(); } field1_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(field1_); field1_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.class, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Group1 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Group1(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int FIELD1_FIELD_NUMBER = 11; private protobuf_unittest.UnittestProto.TestAllTypes field1_; /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public boolean hasField1() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public protobuf_unittest.UnittestProto.TestAllTypes getField1() { return field1_; } /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField1OrBuilder() { return field1_; } private void initFields() { field1_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(11, field1_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, field1_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1) protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.class, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getField1FieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (field1Builder_ == null) { field1_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { field1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1_descriptor; } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 build() { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 buildPartial() { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 result = new protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (field1Builder_ == null) { result.field1_ = field1_; } else { result.field1_ = field1Builder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1) { return mergeFrom((protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 other) { if (other == protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.getDefaultInstance()) return this; if (other.hasField1()) { mergeField1(other.getField1()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestAllTypes field1_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> field1Builder_; /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public boolean hasField1() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public protobuf_unittest.UnittestProto.TestAllTypes getField1() { if (field1Builder_ == null) { return field1_; } else { return field1Builder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public Builder setField1(protobuf_unittest.UnittestProto.TestAllTypes value) { if (field1Builder_ == null) { if (value == null) { throw new NullPointerException(); } field1_ = value; onChanged(); } else { field1Builder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public Builder setField1( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field1Builder_ == null) { field1_ = builderForValue.build(); onChanged(); } else { field1Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public Builder mergeField1(protobuf_unittest.UnittestProto.TestAllTypes value) { if (field1Builder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && field1_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { field1_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(field1_).mergeFrom(value).buildPartial(); } else { field1_ = value; } onChanged(); } else { field1Builder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public Builder clearField1() { if (field1Builder_ == null) { field1_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); onChanged(); } else { field1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getField1Builder() { bitField0_ |= 0x00000001; onChanged(); return getField1FieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField1OrBuilder() { if (field1Builder_ != null) { return field1Builder_.getMessageOrBuilder(); } else { return field1_; } } /** * optional .protobuf_unittest.TestAllTypes field1 = 11; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getField1FieldBuilder() { if (field1Builder_ == null) { field1Builder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( getField1(), getParentForChildren(), isClean()); field1_ = null; } return field1Builder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1) } static { defaultInstance = new Group1(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1) } public interface Group2OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ boolean hasField1(); /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ protobuf_unittest.UnittestProto.TestAllTypes getField1(); /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField1OrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2} */ public static final class Group2 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2) Group2OrBuilder { // Use Group2.newBuilder() to construct. private Group2(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Group2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Group2 defaultInstance; public static Group2 getDefaultInstance() { return defaultInstance; } public Group2 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Group2( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 170: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = field1_.toBuilder(); } field1_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(field1_); field1_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.class, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Group2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Group2(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int FIELD1_FIELD_NUMBER = 21; private protobuf_unittest.UnittestProto.TestAllTypes field1_; /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public boolean hasField1() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public protobuf_unittest.UnittestProto.TestAllTypes getField1() { return field1_; } /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField1OrBuilder() { return field1_; } private void initFields() { field1_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(21, field1_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, field1_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2) protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.class, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getField1FieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (field1Builder_ == null) { field1_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { field1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2_descriptor; } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 build() { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 buildPartial() { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 result = new protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (field1Builder_ == null) { result.field1_ = field1_; } else { result.field1_ = field1Builder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2) { return mergeFrom((protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 other) { if (other == protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.getDefaultInstance()) return this; if (other.hasField1()) { mergeField1(other.getField1()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestAllTypes field1_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> field1Builder_; /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public boolean hasField1() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public protobuf_unittest.UnittestProto.TestAllTypes getField1() { if (field1Builder_ == null) { return field1_; } else { return field1Builder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public Builder setField1(protobuf_unittest.UnittestProto.TestAllTypes value) { if (field1Builder_ == null) { if (value == null) { throw new NullPointerException(); } field1_ = value; onChanged(); } else { field1Builder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public Builder setField1( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field1Builder_ == null) { field1_ = builderForValue.build(); onChanged(); } else { field1Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public Builder mergeField1(protobuf_unittest.UnittestProto.TestAllTypes value) { if (field1Builder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && field1_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { field1_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(field1_).mergeFrom(value).buildPartial(); } else { field1_ = value; } onChanged(); } else { field1Builder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public Builder clearField1() { if (field1Builder_ == null) { field1_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); onChanged(); } else { field1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getField1Builder() { bitField0_ |= 0x00000001; onChanged(); return getField1FieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField1OrBuilder() { if (field1Builder_ != null) { return field1Builder_.getMessageOrBuilder(); } else { return field1_; } } /** * optional .protobuf_unittest.TestAllTypes field1 = 21; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getField1FieldBuilder() { if (field1Builder_ == null) { field1Builder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( getField1(), getParentForChildren(), isClean()); field1_ = null; } return field1Builder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2) } static { defaultInstance = new Group2(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2) } public static final int FIELD1_FIELD_NUMBER = 1; private java.util.List field1_; /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public java.util.List getField1List() { return field1_; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public java.util.List getField1OrBuilderList() { return field1_; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public int getField1Count() { return field1_.size(); } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes getField1(int index) { return field1_.get(index); } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField1OrBuilder( int index) { return field1_.get(index); } public static final int FIELD2_FIELD_NUMBER = 2; private java.util.List field2_; /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public java.util.List getField2List() { return field2_; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public java.util.List getField2OrBuilderList() { return field2_; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public int getField2Count() { return field2_.size(); } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes getField2(int index) { return field2_.get(index); } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField2OrBuilder( int index) { return field2_.get(index); } public static final int FIELD3_FIELD_NUMBER = 3; private java.util.List field3_; /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public java.util.List getField3List() { return field3_; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public java.util.List getField3OrBuilderList() { return field3_; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public int getField3Count() { return field3_.size(); } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes getField3(int index) { return field3_.get(index); } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField3OrBuilder( int index) { return field3_.get(index); } public static final int GROUP1_FIELD_NUMBER = 10; private java.util.List group1_; /** * repeated group Group1 = 10 { ... } */ public java.util.List getGroup1List() { return group1_; } /** * repeated group Group1 = 10 { ... } */ public java.util.List getGroup1OrBuilderList() { return group1_; } /** * repeated group Group1 = 10 { ... } */ public int getGroup1Count() { return group1_.size(); } /** * repeated group Group1 = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 getGroup1(int index) { return group1_.get(index); } /** * repeated group Group1 = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1OrBuilder getGroup1OrBuilder( int index) { return group1_.get(index); } public static final int GROUP2_FIELD_NUMBER = 20; private java.util.List group2_; /** * repeated group Group2 = 20 { ... } */ public java.util.List getGroup2List() { return group2_; } /** * repeated group Group2 = 20 { ... } */ public java.util.List getGroup2OrBuilderList() { return group2_; } /** * repeated group Group2 = 20 { ... } */ public int getGroup2Count() { return group2_.size(); } /** * repeated group Group2 = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 getGroup2(int index) { return group2_.get(index); } /** * repeated group Group2 = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2OrBuilder getGroup2OrBuilder( int index) { return group2_.get(index); } public static final int EXT1_FIELD_NUMBER = 1000; private java.util.List ext1_; /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public java.util.List getExt1List() { return ext1_; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public java.util.List getExt1OrBuilderList() { return ext1_; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public int getExt1Count() { return ext1_.size(); } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public protobuf_unittest.UnittestProto.TestAllTypes getExt1(int index) { return ext1_.get(index); } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getExt1OrBuilder( int index) { return ext1_.get(index); } public static final int EXT2_FIELD_NUMBER = 1001; private java.util.List ext2_; /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public java.util.List getExt2List() { return ext2_; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public java.util.List getExt2OrBuilderList() { return ext2_; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public int getExt2Count() { return ext2_.size(); } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public protobuf_unittest.UnittestProto.TestAllTypes getExt2(int index) { return ext2_.get(index); } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getExt2OrBuilder( int index) { return ext2_.get(index); } private void initFields() { field1_ = java.util.Collections.emptyList(); field2_ = java.util.Collections.emptyList(); field3_ = java.util.Collections.emptyList(); group1_ = java.util.Collections.emptyList(); group2_ = java.util.Collections.emptyList(); ext1_ = java.util.Collections.emptyList(); ext2_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < field1_.size(); i++) { output.writeMessage(1, field1_.get(i)); } for (int i = 0; i < field2_.size(); i++) { output.writeMessage(2, field2_.get(i)); } for (int i = 0; i < field3_.size(); i++) { output.writeMessage(3, field3_.get(i)); } for (int i = 0; i < group1_.size(); i++) { output.writeGroup(10, group1_.get(i)); } for (int i = 0; i < group2_.size(); i++) { output.writeGroup(20, group2_.get(i)); } for (int i = 0; i < ext1_.size(); i++) { output.writeMessage(1000, ext1_.get(i)); } for (int i = 0; i < ext2_.size(); i++) { output.writeMessage(1001, ext2_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < field1_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, field1_.get(i)); } for (int i = 0; i < field2_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, field2_.get(i)); } for (int i = 0; i < field3_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, field3_.get(i)); } for (int i = 0; i < group1_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(10, group1_.get(i)); } for (int i = 0; i < group2_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(20, group2_.get(i)); } for (int i = 0; i < ext1_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1000, ext1_.get(i)); } for (int i = 0; i < ext2_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1001, ext2_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator} * *
       * RepeatedFieldsGenerator defines matching field types as TestParsingMerge,
       * except that all fields are repeated. In the tests, we will serialize the
       * RepeatedFieldsGenerator to bytes, and parse the bytes to TestParsingMerge.
       * Repeated fields in RepeatedFieldsGenerator are expected to be merged into
       * the corresponding required/optional fields in TestParsingMerge.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator) protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGeneratorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.class, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getField1FieldBuilder(); getField2FieldBuilder(); getField3FieldBuilder(); getGroup1FieldBuilder(); getGroup2FieldBuilder(); getExt1FieldBuilder(); getExt2FieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (field1Builder_ == null) { field1_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { field1Builder_.clear(); } if (field2Builder_ == null) { field2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { field2Builder_.clear(); } if (field3Builder_ == null) { field3_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { field3Builder_.clear(); } if (group1Builder_ == null) { group1_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { group1Builder_.clear(); } if (group2Builder_ == null) { group2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { group2Builder_.clear(); } if (ext1Builder_ == null) { ext1_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { ext1Builder_.clear(); } if (ext2Builder_ == null) { ext2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { ext2Builder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_descriptor; } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator build() { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator buildPartial() { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator result = new protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator(this); int from_bitField0_ = bitField0_; if (field1Builder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { field1_ = java.util.Collections.unmodifiableList(field1_); bitField0_ = (bitField0_ & ~0x00000001); } result.field1_ = field1_; } else { result.field1_ = field1Builder_.build(); } if (field2Builder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { field2_ = java.util.Collections.unmodifiableList(field2_); bitField0_ = (bitField0_ & ~0x00000002); } result.field2_ = field2_; } else { result.field2_ = field2Builder_.build(); } if (field3Builder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { field3_ = java.util.Collections.unmodifiableList(field3_); bitField0_ = (bitField0_ & ~0x00000004); } result.field3_ = field3_; } else { result.field3_ = field3Builder_.build(); } if (group1Builder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { group1_ = java.util.Collections.unmodifiableList(group1_); bitField0_ = (bitField0_ & ~0x00000008); } result.group1_ = group1_; } else { result.group1_ = group1Builder_.build(); } if (group2Builder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { group2_ = java.util.Collections.unmodifiableList(group2_); bitField0_ = (bitField0_ & ~0x00000010); } result.group2_ = group2_; } else { result.group2_ = group2Builder_.build(); } if (ext1Builder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { ext1_ = java.util.Collections.unmodifiableList(ext1_); bitField0_ = (bitField0_ & ~0x00000020); } result.ext1_ = ext1_; } else { result.ext1_ = ext1Builder_.build(); } if (ext2Builder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { ext2_ = java.util.Collections.unmodifiableList(ext2_); bitField0_ = (bitField0_ & ~0x00000040); } result.ext2_ = ext2_; } else { result.ext2_ = ext2Builder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator) { return mergeFrom((protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator other) { if (other == protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.getDefaultInstance()) return this; if (field1Builder_ == null) { if (!other.field1_.isEmpty()) { if (field1_.isEmpty()) { field1_ = other.field1_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureField1IsMutable(); field1_.addAll(other.field1_); } onChanged(); } } else { if (!other.field1_.isEmpty()) { if (field1Builder_.isEmpty()) { field1Builder_.dispose(); field1Builder_ = null; field1_ = other.field1_; bitField0_ = (bitField0_ & ~0x00000001); field1Builder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getField1FieldBuilder() : null; } else { field1Builder_.addAllMessages(other.field1_); } } } if (field2Builder_ == null) { if (!other.field2_.isEmpty()) { if (field2_.isEmpty()) { field2_ = other.field2_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureField2IsMutable(); field2_.addAll(other.field2_); } onChanged(); } } else { if (!other.field2_.isEmpty()) { if (field2Builder_.isEmpty()) { field2Builder_.dispose(); field2Builder_ = null; field2_ = other.field2_; bitField0_ = (bitField0_ & ~0x00000002); field2Builder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getField2FieldBuilder() : null; } else { field2Builder_.addAllMessages(other.field2_); } } } if (field3Builder_ == null) { if (!other.field3_.isEmpty()) { if (field3_.isEmpty()) { field3_ = other.field3_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureField3IsMutable(); field3_.addAll(other.field3_); } onChanged(); } } else { if (!other.field3_.isEmpty()) { if (field3Builder_.isEmpty()) { field3Builder_.dispose(); field3Builder_ = null; field3_ = other.field3_; bitField0_ = (bitField0_ & ~0x00000004); field3Builder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getField3FieldBuilder() : null; } else { field3Builder_.addAllMessages(other.field3_); } } } if (group1Builder_ == null) { if (!other.group1_.isEmpty()) { if (group1_.isEmpty()) { group1_ = other.group1_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureGroup1IsMutable(); group1_.addAll(other.group1_); } onChanged(); } } else { if (!other.group1_.isEmpty()) { if (group1Builder_.isEmpty()) { group1Builder_.dispose(); group1Builder_ = null; group1_ = other.group1_; bitField0_ = (bitField0_ & ~0x00000008); group1Builder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getGroup1FieldBuilder() : null; } else { group1Builder_.addAllMessages(other.group1_); } } } if (group2Builder_ == null) { if (!other.group2_.isEmpty()) { if (group2_.isEmpty()) { group2_ = other.group2_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureGroup2IsMutable(); group2_.addAll(other.group2_); } onChanged(); } } else { if (!other.group2_.isEmpty()) { if (group2Builder_.isEmpty()) { group2Builder_.dispose(); group2Builder_ = null; group2_ = other.group2_; bitField0_ = (bitField0_ & ~0x00000010); group2Builder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getGroup2FieldBuilder() : null; } else { group2Builder_.addAllMessages(other.group2_); } } } if (ext1Builder_ == null) { if (!other.ext1_.isEmpty()) { if (ext1_.isEmpty()) { ext1_ = other.ext1_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureExt1IsMutable(); ext1_.addAll(other.ext1_); } onChanged(); } } else { if (!other.ext1_.isEmpty()) { if (ext1Builder_.isEmpty()) { ext1Builder_.dispose(); ext1Builder_ = null; ext1_ = other.ext1_; bitField0_ = (bitField0_ & ~0x00000020); ext1Builder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getExt1FieldBuilder() : null; } else { ext1Builder_.addAllMessages(other.ext1_); } } } if (ext2Builder_ == null) { if (!other.ext2_.isEmpty()) { if (ext2_.isEmpty()) { ext2_ = other.ext2_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureExt2IsMutable(); ext2_.addAll(other.ext2_); } onChanged(); } } else { if (!other.ext2_.isEmpty()) { if (ext2Builder_.isEmpty()) { ext2Builder_.dispose(); ext2Builder_ = null; ext2_ = other.ext2_; bitField0_ = (bitField0_ & ~0x00000040); ext2Builder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getExt2FieldBuilder() : null; } else { ext2Builder_.addAllMessages(other.ext2_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List field1_ = java.util.Collections.emptyList(); private void ensureField1IsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { field1_ = new java.util.ArrayList(field1_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> field1Builder_; /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public java.util.List getField1List() { if (field1Builder_ == null) { return java.util.Collections.unmodifiableList(field1_); } else { return field1Builder_.getMessageList(); } } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public int getField1Count() { if (field1Builder_ == null) { return field1_.size(); } else { return field1Builder_.getCount(); } } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes getField1(int index) { if (field1Builder_ == null) { return field1_.get(index); } else { return field1Builder_.getMessage(index); } } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public Builder setField1( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (field1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField1IsMutable(); field1_.set(index, value); onChanged(); } else { field1Builder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public Builder setField1( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field1Builder_ == null) { ensureField1IsMutable(); field1_.set(index, builderForValue.build()); onChanged(); } else { field1Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public Builder addField1(protobuf_unittest.UnittestProto.TestAllTypes value) { if (field1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField1IsMutable(); field1_.add(value); onChanged(); } else { field1Builder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public Builder addField1( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (field1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField1IsMutable(); field1_.add(index, value); onChanged(); } else { field1Builder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public Builder addField1( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field1Builder_ == null) { ensureField1IsMutable(); field1_.add(builderForValue.build()); onChanged(); } else { field1Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public Builder addField1( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field1Builder_ == null) { ensureField1IsMutable(); field1_.add(index, builderForValue.build()); onChanged(); } else { field1Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public Builder addAllField1( java.lang.Iterable values) { if (field1Builder_ == null) { ensureField1IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, field1_); onChanged(); } else { field1Builder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public Builder clearField1() { if (field1Builder_ == null) { field1_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { field1Builder_.clear(); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public Builder removeField1(int index) { if (field1Builder_ == null) { ensureField1IsMutable(); field1_.remove(index); onChanged(); } else { field1Builder_.remove(index); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getField1Builder( int index) { return getField1FieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField1OrBuilder( int index) { if (field1Builder_ == null) { return field1_.get(index); } else { return field1Builder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public java.util.List getField1OrBuilderList() { if (field1Builder_ != null) { return field1Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(field1_); } } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addField1Builder() { return getField1FieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addField1Builder( int index) { return getField1FieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes field1 = 1; */ public java.util.List getField1BuilderList() { return getField1FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getField1FieldBuilder() { if (field1Builder_ == null) { field1Builder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( field1_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); field1_ = null; } return field1Builder_; } private java.util.List field2_ = java.util.Collections.emptyList(); private void ensureField2IsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { field2_ = new java.util.ArrayList(field2_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> field2Builder_; /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public java.util.List getField2List() { if (field2Builder_ == null) { return java.util.Collections.unmodifiableList(field2_); } else { return field2Builder_.getMessageList(); } } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public int getField2Count() { if (field2Builder_ == null) { return field2_.size(); } else { return field2Builder_.getCount(); } } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes getField2(int index) { if (field2Builder_ == null) { return field2_.get(index); } else { return field2Builder_.getMessage(index); } } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public Builder setField2( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (field2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField2IsMutable(); field2_.set(index, value); onChanged(); } else { field2Builder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public Builder setField2( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field2Builder_ == null) { ensureField2IsMutable(); field2_.set(index, builderForValue.build()); onChanged(); } else { field2Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public Builder addField2(protobuf_unittest.UnittestProto.TestAllTypes value) { if (field2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField2IsMutable(); field2_.add(value); onChanged(); } else { field2Builder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public Builder addField2( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (field2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField2IsMutable(); field2_.add(index, value); onChanged(); } else { field2Builder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public Builder addField2( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field2Builder_ == null) { ensureField2IsMutable(); field2_.add(builderForValue.build()); onChanged(); } else { field2Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public Builder addField2( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field2Builder_ == null) { ensureField2IsMutable(); field2_.add(index, builderForValue.build()); onChanged(); } else { field2Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public Builder addAllField2( java.lang.Iterable values) { if (field2Builder_ == null) { ensureField2IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, field2_); onChanged(); } else { field2Builder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public Builder clearField2() { if (field2Builder_ == null) { field2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { field2Builder_.clear(); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public Builder removeField2(int index) { if (field2Builder_ == null) { ensureField2IsMutable(); field2_.remove(index); onChanged(); } else { field2Builder_.remove(index); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getField2Builder( int index) { return getField2FieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField2OrBuilder( int index) { if (field2Builder_ == null) { return field2_.get(index); } else { return field2Builder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public java.util.List getField2OrBuilderList() { if (field2Builder_ != null) { return field2Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(field2_); } } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addField2Builder() { return getField2FieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addField2Builder( int index) { return getField2FieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes field2 = 2; */ public java.util.List getField2BuilderList() { return getField2FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getField2FieldBuilder() { if (field2Builder_ == null) { field2Builder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( field2_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); field2_ = null; } return field2Builder_; } private java.util.List field3_ = java.util.Collections.emptyList(); private void ensureField3IsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { field3_ = new java.util.ArrayList(field3_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> field3Builder_; /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public java.util.List getField3List() { if (field3Builder_ == null) { return java.util.Collections.unmodifiableList(field3_); } else { return field3Builder_.getMessageList(); } } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public int getField3Count() { if (field3Builder_ == null) { return field3_.size(); } else { return field3Builder_.getCount(); } } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes getField3(int index) { if (field3Builder_ == null) { return field3_.get(index); } else { return field3Builder_.getMessage(index); } } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public Builder setField3( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (field3Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField3IsMutable(); field3_.set(index, value); onChanged(); } else { field3Builder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public Builder setField3( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field3Builder_ == null) { ensureField3IsMutable(); field3_.set(index, builderForValue.build()); onChanged(); } else { field3Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public Builder addField3(protobuf_unittest.UnittestProto.TestAllTypes value) { if (field3Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField3IsMutable(); field3_.add(value); onChanged(); } else { field3Builder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public Builder addField3( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (field3Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField3IsMutable(); field3_.add(index, value); onChanged(); } else { field3Builder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public Builder addField3( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field3Builder_ == null) { ensureField3IsMutable(); field3_.add(builderForValue.build()); onChanged(); } else { field3Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public Builder addField3( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (field3Builder_ == null) { ensureField3IsMutable(); field3_.add(index, builderForValue.build()); onChanged(); } else { field3Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public Builder addAllField3( java.lang.Iterable values) { if (field3Builder_ == null) { ensureField3IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, field3_); onChanged(); } else { field3Builder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public Builder clearField3() { if (field3Builder_ == null) { field3_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { field3Builder_.clear(); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public Builder removeField3(int index) { if (field3Builder_ == null) { ensureField3IsMutable(); field3_.remove(index); onChanged(); } else { field3Builder_.remove(index); } return this; } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getField3Builder( int index) { return getField3FieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getField3OrBuilder( int index) { if (field3Builder_ == null) { return field3_.get(index); } else { return field3Builder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public java.util.List getField3OrBuilderList() { if (field3Builder_ != null) { return field3Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(field3_); } } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addField3Builder() { return getField3FieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addField3Builder( int index) { return getField3FieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes field3 = 3; */ public java.util.List getField3BuilderList() { return getField3FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getField3FieldBuilder() { if (field3Builder_ == null) { field3Builder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( field3_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); field3_ = null; } return field3Builder_; } private java.util.List group1_ = java.util.Collections.emptyList(); private void ensureGroup1IsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { group1_ = new java.util.ArrayList(group1_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1OrBuilder> group1Builder_; /** * repeated group Group1 = 10 { ... } */ public java.util.List getGroup1List() { if (group1Builder_ == null) { return java.util.Collections.unmodifiableList(group1_); } else { return group1Builder_.getMessageList(); } } /** * repeated group Group1 = 10 { ... } */ public int getGroup1Count() { if (group1Builder_ == null) { return group1_.size(); } else { return group1Builder_.getCount(); } } /** * repeated group Group1 = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 getGroup1(int index) { if (group1Builder_ == null) { return group1_.get(index); } else { return group1Builder_.getMessage(index); } } /** * repeated group Group1 = 10 { ... } */ public Builder setGroup1( int index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 value) { if (group1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup1IsMutable(); group1_.set(index, value); onChanged(); } else { group1Builder_.setMessage(index, value); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder setGroup1( int index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder builderForValue) { if (group1Builder_ == null) { ensureGroup1IsMutable(); group1_.set(index, builderForValue.build()); onChanged(); } else { group1Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder addGroup1(protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 value) { if (group1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup1IsMutable(); group1_.add(value); onChanged(); } else { group1Builder_.addMessage(value); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder addGroup1( int index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1 value) { if (group1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup1IsMutable(); group1_.add(index, value); onChanged(); } else { group1Builder_.addMessage(index, value); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder addGroup1( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder builderForValue) { if (group1Builder_ == null) { ensureGroup1IsMutable(); group1_.add(builderForValue.build()); onChanged(); } else { group1Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder addGroup1( int index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder builderForValue) { if (group1Builder_ == null) { ensureGroup1IsMutable(); group1_.add(index, builderForValue.build()); onChanged(); } else { group1Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder addAllGroup1( java.lang.Iterable values) { if (group1Builder_ == null) { ensureGroup1IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, group1_); onChanged(); } else { group1Builder_.addAllMessages(values); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder clearGroup1() { if (group1Builder_ == null) { group1_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { group1Builder_.clear(); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder removeGroup1(int index) { if (group1Builder_ == null) { ensureGroup1IsMutable(); group1_.remove(index); onChanged(); } else { group1Builder_.remove(index); } return this; } /** * repeated group Group1 = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder getGroup1Builder( int index) { return getGroup1FieldBuilder().getBuilder(index); } /** * repeated group Group1 = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1OrBuilder getGroup1OrBuilder( int index) { if (group1Builder_ == null) { return group1_.get(index); } else { return group1Builder_.getMessageOrBuilder(index); } } /** * repeated group Group1 = 10 { ... } */ public java.util.List getGroup1OrBuilderList() { if (group1Builder_ != null) { return group1Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(group1_); } } /** * repeated group Group1 = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder addGroup1Builder() { return getGroup1FieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.getDefaultInstance()); } /** * repeated group Group1 = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder addGroup1Builder( int index) { return getGroup1FieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.getDefaultInstance()); } /** * repeated group Group1 = 10 { ... } */ public java.util.List getGroup1BuilderList() { return getGroup1FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1OrBuilder> getGroup1FieldBuilder() { if (group1Builder_ == null) { group1Builder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group1OrBuilder>( group1_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); group1_ = null; } return group1Builder_; } private java.util.List group2_ = java.util.Collections.emptyList(); private void ensureGroup2IsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { group2_ = new java.util.ArrayList(group2_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2OrBuilder> group2Builder_; /** * repeated group Group2 = 20 { ... } */ public java.util.List getGroup2List() { if (group2Builder_ == null) { return java.util.Collections.unmodifiableList(group2_); } else { return group2Builder_.getMessageList(); } } /** * repeated group Group2 = 20 { ... } */ public int getGroup2Count() { if (group2Builder_ == null) { return group2_.size(); } else { return group2Builder_.getCount(); } } /** * repeated group Group2 = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 getGroup2(int index) { if (group2Builder_ == null) { return group2_.get(index); } else { return group2Builder_.getMessage(index); } } /** * repeated group Group2 = 20 { ... } */ public Builder setGroup2( int index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 value) { if (group2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup2IsMutable(); group2_.set(index, value); onChanged(); } else { group2Builder_.setMessage(index, value); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder setGroup2( int index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder builderForValue) { if (group2Builder_ == null) { ensureGroup2IsMutable(); group2_.set(index, builderForValue.build()); onChanged(); } else { group2Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder addGroup2(protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 value) { if (group2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup2IsMutable(); group2_.add(value); onChanged(); } else { group2Builder_.addMessage(value); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder addGroup2( int index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2 value) { if (group2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup2IsMutable(); group2_.add(index, value); onChanged(); } else { group2Builder_.addMessage(index, value); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder addGroup2( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder builderForValue) { if (group2Builder_ == null) { ensureGroup2IsMutable(); group2_.add(builderForValue.build()); onChanged(); } else { group2Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder addGroup2( int index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder builderForValue) { if (group2Builder_ == null) { ensureGroup2IsMutable(); group2_.add(index, builderForValue.build()); onChanged(); } else { group2Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder addAllGroup2( java.lang.Iterable values) { if (group2Builder_ == null) { ensureGroup2IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, group2_); onChanged(); } else { group2Builder_.addAllMessages(values); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder clearGroup2() { if (group2Builder_ == null) { group2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { group2Builder_.clear(); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder removeGroup2(int index) { if (group2Builder_ == null) { ensureGroup2IsMutable(); group2_.remove(index); onChanged(); } else { group2Builder_.remove(index); } return this; } /** * repeated group Group2 = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder getGroup2Builder( int index) { return getGroup2FieldBuilder().getBuilder(index); } /** * repeated group Group2 = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2OrBuilder getGroup2OrBuilder( int index) { if (group2Builder_ == null) { return group2_.get(index); } else { return group2Builder_.getMessageOrBuilder(index); } } /** * repeated group Group2 = 20 { ... } */ public java.util.List getGroup2OrBuilderList() { if (group2Builder_ != null) { return group2Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(group2_); } } /** * repeated group Group2 = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder addGroup2Builder() { return getGroup2FieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.getDefaultInstance()); } /** * repeated group Group2 = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder addGroup2Builder( int index) { return getGroup2FieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.getDefaultInstance()); } /** * repeated group Group2 = 20 { ... } */ public java.util.List getGroup2BuilderList() { return getGroup2FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2OrBuilder> getGroup2FieldBuilder() { if (group2Builder_ == null) { group2Builder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedFieldsGenerator.Group2OrBuilder>( group2_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); group2_ = null; } return group2Builder_; } private java.util.List ext1_ = java.util.Collections.emptyList(); private void ensureExt1IsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { ext1_ = new java.util.ArrayList(ext1_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> ext1Builder_; /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public java.util.List getExt1List() { if (ext1Builder_ == null) { return java.util.Collections.unmodifiableList(ext1_); } else { return ext1Builder_.getMessageList(); } } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public int getExt1Count() { if (ext1Builder_ == null) { return ext1_.size(); } else { return ext1Builder_.getCount(); } } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public protobuf_unittest.UnittestProto.TestAllTypes getExt1(int index) { if (ext1Builder_ == null) { return ext1_.get(index); } else { return ext1Builder_.getMessage(index); } } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public Builder setExt1( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (ext1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt1IsMutable(); ext1_.set(index, value); onChanged(); } else { ext1Builder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public Builder setExt1( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (ext1Builder_ == null) { ensureExt1IsMutable(); ext1_.set(index, builderForValue.build()); onChanged(); } else { ext1Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public Builder addExt1(protobuf_unittest.UnittestProto.TestAllTypes value) { if (ext1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt1IsMutable(); ext1_.add(value); onChanged(); } else { ext1Builder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public Builder addExt1( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (ext1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt1IsMutable(); ext1_.add(index, value); onChanged(); } else { ext1Builder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public Builder addExt1( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (ext1Builder_ == null) { ensureExt1IsMutable(); ext1_.add(builderForValue.build()); onChanged(); } else { ext1Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public Builder addExt1( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (ext1Builder_ == null) { ensureExt1IsMutable(); ext1_.add(index, builderForValue.build()); onChanged(); } else { ext1Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public Builder addAllExt1( java.lang.Iterable values) { if (ext1Builder_ == null) { ensureExt1IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ext1_); onChanged(); } else { ext1Builder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public Builder clearExt1() { if (ext1Builder_ == null) { ext1_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { ext1Builder_.clear(); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public Builder removeExt1(int index) { if (ext1Builder_ == null) { ensureExt1IsMutable(); ext1_.remove(index); onChanged(); } else { ext1Builder_.remove(index); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getExt1Builder( int index) { return getExt1FieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getExt1OrBuilder( int index) { if (ext1Builder_ == null) { return ext1_.get(index); } else { return ext1Builder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public java.util.List getExt1OrBuilderList() { if (ext1Builder_ != null) { return ext1Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ext1_); } } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addExt1Builder() { return getExt1FieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addExt1Builder( int index) { return getExt1FieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes ext1 = 1000; */ public java.util.List getExt1BuilderList() { return getExt1FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getExt1FieldBuilder() { if (ext1Builder_ == null) { ext1Builder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( ext1_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); ext1_ = null; } return ext1Builder_; } private java.util.List ext2_ = java.util.Collections.emptyList(); private void ensureExt2IsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { ext2_ = new java.util.ArrayList(ext2_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> ext2Builder_; /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public java.util.List getExt2List() { if (ext2Builder_ == null) { return java.util.Collections.unmodifiableList(ext2_); } else { return ext2Builder_.getMessageList(); } } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public int getExt2Count() { if (ext2Builder_ == null) { return ext2_.size(); } else { return ext2Builder_.getCount(); } } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public protobuf_unittest.UnittestProto.TestAllTypes getExt2(int index) { if (ext2Builder_ == null) { return ext2_.get(index); } else { return ext2Builder_.getMessage(index); } } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public Builder setExt2( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (ext2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt2IsMutable(); ext2_.set(index, value); onChanged(); } else { ext2Builder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public Builder setExt2( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (ext2Builder_ == null) { ensureExt2IsMutable(); ext2_.set(index, builderForValue.build()); onChanged(); } else { ext2Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public Builder addExt2(protobuf_unittest.UnittestProto.TestAllTypes value) { if (ext2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt2IsMutable(); ext2_.add(value); onChanged(); } else { ext2Builder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public Builder addExt2( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (ext2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt2IsMutable(); ext2_.add(index, value); onChanged(); } else { ext2Builder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public Builder addExt2( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (ext2Builder_ == null) { ensureExt2IsMutable(); ext2_.add(builderForValue.build()); onChanged(); } else { ext2Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public Builder addExt2( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (ext2Builder_ == null) { ensureExt2IsMutable(); ext2_.add(index, builderForValue.build()); onChanged(); } else { ext2Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public Builder addAllExt2( java.lang.Iterable values) { if (ext2Builder_ == null) { ensureExt2IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ext2_); onChanged(); } else { ext2Builder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public Builder clearExt2() { if (ext2Builder_ == null) { ext2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { ext2Builder_.clear(); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public Builder removeExt2(int index) { if (ext2Builder_ == null) { ensureExt2IsMutable(); ext2_.remove(index); onChanged(); } else { ext2Builder_.remove(index); } return this; } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getExt2Builder( int index) { return getExt2FieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getExt2OrBuilder( int index) { if (ext2Builder_ == null) { return ext2_.get(index); } else { return ext2Builder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public java.util.List getExt2OrBuilderList() { if (ext2Builder_ != null) { return ext2Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ext2_); } } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addExt2Builder() { return getExt2FieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addExt2Builder( int index) { return getExt2FieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes ext2 = 1001; */ public java.util.List getExt2BuilderList() { return getExt2FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getExt2FieldBuilder() { if (ext2Builder_ == null) { ext2Builder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( ext2_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); ext2_ = null; } return ext2Builder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator) } static { defaultInstance = new RepeatedFieldsGenerator(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator) } public interface OptionalGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestParsingMerge.OptionalGroup) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ boolean hasOptionalGroupAllTypes(); /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ protobuf_unittest.UnittestProto.TestAllTypes getOptionalGroupAllTypes(); /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getOptionalGroupAllTypesOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge.OptionalGroup} */ public static final class OptionalGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestParsingMerge.OptionalGroup) OptionalGroupOrBuilder { // Use OptionalGroup.newBuilder() to construct. private OptionalGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OptionalGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OptionalGroup defaultInstance; public static OptionalGroup getDefaultInstance() { return defaultInstance; } public OptionalGroup getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OptionalGroup( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 90: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = optionalGroupAllTypes_.toBuilder(); } optionalGroupAllTypes_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionalGroupAllTypes_); optionalGroupAllTypes_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_OptionalGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_OptionalGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.class, protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OptionalGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionalGroup(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int OPTIONAL_GROUP_ALL_TYPES_FIELD_NUMBER = 11; private protobuf_unittest.UnittestProto.TestAllTypes optionalGroupAllTypes_; /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public boolean hasOptionalGroupAllTypes() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public protobuf_unittest.UnittestProto.TestAllTypes getOptionalGroupAllTypes() { return optionalGroupAllTypes_; } /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getOptionalGroupAllTypesOrBuilder() { return optionalGroupAllTypes_; } private void initFields() { optionalGroupAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(11, optionalGroupAllTypes_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, optionalGroupAllTypes_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge.OptionalGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestParsingMerge.OptionalGroup) protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_OptionalGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_OptionalGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.class, protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getOptionalGroupAllTypesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (optionalGroupAllTypesBuilder_ == null) { optionalGroupAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { optionalGroupAllTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_OptionalGroup_descriptor; } public protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup build() { protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup buildPartial() { protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup result = new protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (optionalGroupAllTypesBuilder_ == null) { result.optionalGroupAllTypes_ = optionalGroupAllTypes_; } else { result.optionalGroupAllTypes_ = optionalGroupAllTypesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup) { return mergeFrom((protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup other) { if (other == protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.getDefaultInstance()) return this; if (other.hasOptionalGroupAllTypes()) { mergeOptionalGroupAllTypes(other.getOptionalGroupAllTypes()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestAllTypes optionalGroupAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> optionalGroupAllTypesBuilder_; /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public boolean hasOptionalGroupAllTypes() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public protobuf_unittest.UnittestProto.TestAllTypes getOptionalGroupAllTypes() { if (optionalGroupAllTypesBuilder_ == null) { return optionalGroupAllTypes_; } else { return optionalGroupAllTypesBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public Builder setOptionalGroupAllTypes(protobuf_unittest.UnittestProto.TestAllTypes value) { if (optionalGroupAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalGroupAllTypes_ = value; onChanged(); } else { optionalGroupAllTypesBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public Builder setOptionalGroupAllTypes( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (optionalGroupAllTypesBuilder_ == null) { optionalGroupAllTypes_ = builderForValue.build(); onChanged(); } else { optionalGroupAllTypesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public Builder mergeOptionalGroupAllTypes(protobuf_unittest.UnittestProto.TestAllTypes value) { if (optionalGroupAllTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && optionalGroupAllTypes_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { optionalGroupAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(optionalGroupAllTypes_).mergeFrom(value).buildPartial(); } else { optionalGroupAllTypes_ = value; } onChanged(); } else { optionalGroupAllTypesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public Builder clearOptionalGroupAllTypes() { if (optionalGroupAllTypesBuilder_ == null) { optionalGroupAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); onChanged(); } else { optionalGroupAllTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getOptionalGroupAllTypesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOptionalGroupAllTypesFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getOptionalGroupAllTypesOrBuilder() { if (optionalGroupAllTypesBuilder_ != null) { return optionalGroupAllTypesBuilder_.getMessageOrBuilder(); } else { return optionalGroupAllTypes_; } } /** * optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getOptionalGroupAllTypesFieldBuilder() { if (optionalGroupAllTypesBuilder_ == null) { optionalGroupAllTypesBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( getOptionalGroupAllTypes(), getParentForChildren(), isClean()); optionalGroupAllTypes_ = null; } return optionalGroupAllTypesBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestParsingMerge.OptionalGroup) } static { defaultInstance = new OptionalGroup(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.OptionalGroup) } public interface RepeatedGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestParsingMerge.RepeatedGroup) com.google.protobuf.MessageOrBuilder { /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ boolean hasRepeatedGroupAllTypes(); /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ protobuf_unittest.UnittestProto.TestAllTypes getRepeatedGroupAllTypes(); /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getRepeatedGroupAllTypesOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge.RepeatedGroup} */ public static final class RepeatedGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestParsingMerge.RepeatedGroup) RepeatedGroupOrBuilder { // Use RepeatedGroup.newBuilder() to construct. private RepeatedGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RepeatedGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RepeatedGroup defaultInstance; public static RepeatedGroup getDefaultInstance() { return defaultInstance; } public RepeatedGroup getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RepeatedGroup( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 170: { protobuf_unittest.UnittestProto.TestAllTypes.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = repeatedGroupAllTypes_.toBuilder(); } repeatedGroupAllTypes_ = input.readMessage(protobuf_unittest.UnittestProto.TestAllTypes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(repeatedGroupAllTypes_); repeatedGroupAllTypes_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.class, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RepeatedGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RepeatedGroup(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int REPEATED_GROUP_ALL_TYPES_FIELD_NUMBER = 21; private protobuf_unittest.UnittestProto.TestAllTypes repeatedGroupAllTypes_; /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public boolean hasRepeatedGroupAllTypes() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public protobuf_unittest.UnittestProto.TestAllTypes getRepeatedGroupAllTypes() { return repeatedGroupAllTypes_; } /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getRepeatedGroupAllTypesOrBuilder() { return repeatedGroupAllTypes_; } private void initFields() { repeatedGroupAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(21, repeatedGroupAllTypes_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, repeatedGroupAllTypes_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge.RepeatedGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestParsingMerge.RepeatedGroup) protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedGroup_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.class, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRepeatedGroupAllTypesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (repeatedGroupAllTypesBuilder_ == null) { repeatedGroupAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { repeatedGroupAllTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_RepeatedGroup_descriptor; } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup build() { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup buildPartial() { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup result = new protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (repeatedGroupAllTypesBuilder_ == null) { result.repeatedGroupAllTypes_ = repeatedGroupAllTypes_; } else { result.repeatedGroupAllTypes_ = repeatedGroupAllTypesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup) { return mergeFrom((protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup other) { if (other == protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.getDefaultInstance()) return this; if (other.hasRepeatedGroupAllTypes()) { mergeRepeatedGroupAllTypes(other.getRepeatedGroupAllTypes()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestAllTypes repeatedGroupAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> repeatedGroupAllTypesBuilder_; /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public boolean hasRepeatedGroupAllTypes() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public protobuf_unittest.UnittestProto.TestAllTypes getRepeatedGroupAllTypes() { if (repeatedGroupAllTypesBuilder_ == null) { return repeatedGroupAllTypes_; } else { return repeatedGroupAllTypesBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public Builder setRepeatedGroupAllTypes(protobuf_unittest.UnittestProto.TestAllTypes value) { if (repeatedGroupAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } repeatedGroupAllTypes_ = value; onChanged(); } else { repeatedGroupAllTypesBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public Builder setRepeatedGroupAllTypes( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (repeatedGroupAllTypesBuilder_ == null) { repeatedGroupAllTypes_ = builderForValue.build(); onChanged(); } else { repeatedGroupAllTypesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public Builder mergeRepeatedGroupAllTypes(protobuf_unittest.UnittestProto.TestAllTypes value) { if (repeatedGroupAllTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && repeatedGroupAllTypes_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { repeatedGroupAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(repeatedGroupAllTypes_).mergeFrom(value).buildPartial(); } else { repeatedGroupAllTypes_ = value; } onChanged(); } else { repeatedGroupAllTypesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public Builder clearRepeatedGroupAllTypes() { if (repeatedGroupAllTypesBuilder_ == null) { repeatedGroupAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); onChanged(); } else { repeatedGroupAllTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getRepeatedGroupAllTypesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRepeatedGroupAllTypesFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getRepeatedGroupAllTypesOrBuilder() { if (repeatedGroupAllTypesBuilder_ != null) { return repeatedGroupAllTypesBuilder_.getMessageOrBuilder(); } else { return repeatedGroupAllTypes_; } } /** * optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getRepeatedGroupAllTypesFieldBuilder() { if (repeatedGroupAllTypesBuilder_ == null) { repeatedGroupAllTypesBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( getRepeatedGroupAllTypes(), getParentForChildren(), isClean()); repeatedGroupAllTypes_ = null; } return repeatedGroupAllTypesBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestParsingMerge.RepeatedGroup) } static { defaultInstance = new RepeatedGroup(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedGroup) } private int bitField0_; public static final int REQUIRED_ALL_TYPES_FIELD_NUMBER = 1; private protobuf_unittest.UnittestProto.TestAllTypes requiredAllTypes_; /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public boolean hasRequiredAllTypes() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes getRequiredAllTypes() { return requiredAllTypes_; } /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getRequiredAllTypesOrBuilder() { return requiredAllTypes_; } public static final int OPTIONAL_ALL_TYPES_FIELD_NUMBER = 2; private protobuf_unittest.UnittestProto.TestAllTypes optionalAllTypes_; /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public boolean hasOptionalAllTypes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes getOptionalAllTypes() { return optionalAllTypes_; } /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getOptionalAllTypesOrBuilder() { return optionalAllTypes_; } public static final int REPEATED_ALL_TYPES_FIELD_NUMBER = 3; private java.util.List repeatedAllTypes_; /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public java.util.List getRepeatedAllTypesList() { return repeatedAllTypes_; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public java.util.List getRepeatedAllTypesOrBuilderList() { return repeatedAllTypes_; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public int getRepeatedAllTypesCount() { return repeatedAllTypes_.size(); } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes getRepeatedAllTypes(int index) { return repeatedAllTypes_.get(index); } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getRepeatedAllTypesOrBuilder( int index) { return repeatedAllTypes_.get(index); } public static final int OPTIONALGROUP_FIELD_NUMBER = 10; private protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup optionalGroup_; /** * optional group OptionalGroup = 10 { ... } */ public boolean hasOptionalGroup() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional group OptionalGroup = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup getOptionalGroup() { return optionalGroup_; } /** * optional group OptionalGroup = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroupOrBuilder getOptionalGroupOrBuilder() { return optionalGroup_; } public static final int REPEATEDGROUP_FIELD_NUMBER = 20; private java.util.List repeatedGroup_; /** * repeated group RepeatedGroup = 20 { ... } */ public java.util.List getRepeatedGroupList() { return repeatedGroup_; } /** * repeated group RepeatedGroup = 20 { ... } */ public java.util.List getRepeatedGroupOrBuilderList() { return repeatedGroup_; } /** * repeated group RepeatedGroup = 20 { ... } */ public int getRepeatedGroupCount() { return repeatedGroup_.size(); } /** * repeated group RepeatedGroup = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup getRepeatedGroup(int index) { return repeatedGroup_.get(index); } /** * repeated group RepeatedGroup = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index) { return repeatedGroup_.get(index); } private void initFields() { requiredAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); optionalAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); repeatedAllTypes_ = java.util.Collections.emptyList(); optionalGroup_ = protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.getDefaultInstance(); repeatedGroup_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasRequiredAllTypes()) { memoizedIsInitialized = 0; return false; } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, requiredAllTypes_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, optionalAllTypes_); } for (int i = 0; i < repeatedAllTypes_.size(); i++) { output.writeMessage(3, repeatedAllTypes_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeGroup(10, optionalGroup_); } for (int i = 0; i < repeatedGroup_.size(); i++) { output.writeGroup(20, repeatedGroup_.get(i)); } extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, requiredAllTypes_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, optionalAllTypes_); } for (int i = 0; i < repeatedAllTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, repeatedAllTypes_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(10, optionalGroup_); } for (int i = 0; i < repeatedGroup_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(20, repeatedGroup_.get(i)); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestParsingMerge parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestParsingMerge parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestParsingMerge parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestParsingMerge parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestParsingMerge prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestParsingMerge} * *
     * Test that if an optional or required message/group field appears multiple
     * times in the input, they need to be merged.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest.UnittestProto.TestParsingMerge, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestParsingMerge) protobuf_unittest.UnittestProto.TestParsingMergeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestParsingMerge.class, protobuf_unittest.UnittestProto.TestParsingMerge.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestParsingMerge.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRequiredAllTypesFieldBuilder(); getOptionalAllTypesFieldBuilder(); getRepeatedAllTypesFieldBuilder(); getOptionalGroupFieldBuilder(); getRepeatedGroupFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (requiredAllTypesBuilder_ == null) { requiredAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { requiredAllTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (optionalAllTypesBuilder_ == null) { optionalAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); } else { optionalAllTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (repeatedAllTypesBuilder_ == null) { repeatedAllTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { repeatedAllTypesBuilder_.clear(); } if (optionalGroupBuilder_ == null) { optionalGroup_ = protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.getDefaultInstance(); } else { optionalGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (repeatedGroupBuilder_ == null) { repeatedGroup_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { repeatedGroupBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestParsingMerge_descriptor; } public protobuf_unittest.UnittestProto.TestParsingMerge getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestParsingMerge.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestParsingMerge build() { protobuf_unittest.UnittestProto.TestParsingMerge result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestParsingMerge buildPartial() { protobuf_unittest.UnittestProto.TestParsingMerge result = new protobuf_unittest.UnittestProto.TestParsingMerge(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (requiredAllTypesBuilder_ == null) { result.requiredAllTypes_ = requiredAllTypes_; } else { result.requiredAllTypes_ = requiredAllTypesBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (optionalAllTypesBuilder_ == null) { result.optionalAllTypes_ = optionalAllTypes_; } else { result.optionalAllTypes_ = optionalAllTypesBuilder_.build(); } if (repeatedAllTypesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { repeatedAllTypes_ = java.util.Collections.unmodifiableList(repeatedAllTypes_); bitField0_ = (bitField0_ & ~0x00000004); } result.repeatedAllTypes_ = repeatedAllTypes_; } else { result.repeatedAllTypes_ = repeatedAllTypesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (optionalGroupBuilder_ == null) { result.optionalGroup_ = optionalGroup_; } else { result.optionalGroup_ = optionalGroupBuilder_.build(); } if (repeatedGroupBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { repeatedGroup_ = java.util.Collections.unmodifiableList(repeatedGroup_); bitField0_ = (bitField0_ & ~0x00000010); } result.repeatedGroup_ = repeatedGroup_; } else { result.repeatedGroup_ = repeatedGroupBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestParsingMerge) { return mergeFrom((protobuf_unittest.UnittestProto.TestParsingMerge)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestParsingMerge other) { if (other == protobuf_unittest.UnittestProto.TestParsingMerge.getDefaultInstance()) return this; if (other.hasRequiredAllTypes()) { mergeRequiredAllTypes(other.getRequiredAllTypes()); } if (other.hasOptionalAllTypes()) { mergeOptionalAllTypes(other.getOptionalAllTypes()); } if (repeatedAllTypesBuilder_ == null) { if (!other.repeatedAllTypes_.isEmpty()) { if (repeatedAllTypes_.isEmpty()) { repeatedAllTypes_ = other.repeatedAllTypes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.addAll(other.repeatedAllTypes_); } onChanged(); } } else { if (!other.repeatedAllTypes_.isEmpty()) { if (repeatedAllTypesBuilder_.isEmpty()) { repeatedAllTypesBuilder_.dispose(); repeatedAllTypesBuilder_ = null; repeatedAllTypes_ = other.repeatedAllTypes_; bitField0_ = (bitField0_ & ~0x00000004); repeatedAllTypesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepeatedAllTypesFieldBuilder() : null; } else { repeatedAllTypesBuilder_.addAllMessages(other.repeatedAllTypes_); } } } if (other.hasOptionalGroup()) { mergeOptionalGroup(other.getOptionalGroup()); } if (repeatedGroupBuilder_ == null) { if (!other.repeatedGroup_.isEmpty()) { if (repeatedGroup_.isEmpty()) { repeatedGroup_ = other.repeatedGroup_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureRepeatedGroupIsMutable(); repeatedGroup_.addAll(other.repeatedGroup_); } onChanged(); } } else { if (!other.repeatedGroup_.isEmpty()) { if (repeatedGroupBuilder_.isEmpty()) { repeatedGroupBuilder_.dispose(); repeatedGroupBuilder_ = null; repeatedGroup_ = other.repeatedGroup_; bitField0_ = (bitField0_ & ~0x00000010); repeatedGroupBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRepeatedGroupFieldBuilder() : null; } else { repeatedGroupBuilder_.addAllMessages(other.repeatedGroup_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasRequiredAllTypes()) { return false; } if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestParsingMerge parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestParsingMerge) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestProto.TestAllTypes requiredAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> requiredAllTypesBuilder_; /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public boolean hasRequiredAllTypes() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes getRequiredAllTypes() { if (requiredAllTypesBuilder_ == null) { return requiredAllTypes_; } else { return requiredAllTypesBuilder_.getMessage(); } } /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public Builder setRequiredAllTypes(protobuf_unittest.UnittestProto.TestAllTypes value) { if (requiredAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiredAllTypes_ = value; onChanged(); } else { requiredAllTypesBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public Builder setRequiredAllTypes( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (requiredAllTypesBuilder_ == null) { requiredAllTypes_ = builderForValue.build(); onChanged(); } else { requiredAllTypesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public Builder mergeRequiredAllTypes(protobuf_unittest.UnittestProto.TestAllTypes value) { if (requiredAllTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && requiredAllTypes_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { requiredAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(requiredAllTypes_).mergeFrom(value).buildPartial(); } else { requiredAllTypes_ = value; } onChanged(); } else { requiredAllTypesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public Builder clearRequiredAllTypes() { if (requiredAllTypesBuilder_ == null) { requiredAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); onChanged(); } else { requiredAllTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getRequiredAllTypesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRequiredAllTypesFieldBuilder().getBuilder(); } /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getRequiredAllTypesOrBuilder() { if (requiredAllTypesBuilder_ != null) { return requiredAllTypesBuilder_.getMessageOrBuilder(); } else { return requiredAllTypes_; } } /** * required .protobuf_unittest.TestAllTypes required_all_types = 1; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getRequiredAllTypesFieldBuilder() { if (requiredAllTypesBuilder_ == null) { requiredAllTypesBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( getRequiredAllTypes(), getParentForChildren(), isClean()); requiredAllTypes_ = null; } return requiredAllTypesBuilder_; } private protobuf_unittest.UnittestProto.TestAllTypes optionalAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> optionalAllTypesBuilder_; /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public boolean hasOptionalAllTypes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes getOptionalAllTypes() { if (optionalAllTypesBuilder_ == null) { return optionalAllTypes_; } else { return optionalAllTypesBuilder_.getMessage(); } } /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public Builder setOptionalAllTypes(protobuf_unittest.UnittestProto.TestAllTypes value) { if (optionalAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalAllTypes_ = value; onChanged(); } else { optionalAllTypesBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public Builder setOptionalAllTypes( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (optionalAllTypesBuilder_ == null) { optionalAllTypes_ = builderForValue.build(); onChanged(); } else { optionalAllTypesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public Builder mergeOptionalAllTypes(protobuf_unittest.UnittestProto.TestAllTypes value) { if (optionalAllTypesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && optionalAllTypes_ != protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()) { optionalAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.newBuilder(optionalAllTypes_).mergeFrom(value).buildPartial(); } else { optionalAllTypes_ = value; } onChanged(); } else { optionalAllTypesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public Builder clearOptionalAllTypes() { if (optionalAllTypesBuilder_ == null) { optionalAllTypes_ = protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance(); onChanged(); } else { optionalAllTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getOptionalAllTypesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getOptionalAllTypesFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getOptionalAllTypesOrBuilder() { if (optionalAllTypesBuilder_ != null) { return optionalAllTypesBuilder_.getMessageOrBuilder(); } else { return optionalAllTypes_; } } /** * optional .protobuf_unittest.TestAllTypes optional_all_types = 2; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getOptionalAllTypesFieldBuilder() { if (optionalAllTypesBuilder_ == null) { optionalAllTypesBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( getOptionalAllTypes(), getParentForChildren(), isClean()); optionalAllTypes_ = null; } return optionalAllTypesBuilder_; } private java.util.List repeatedAllTypes_ = java.util.Collections.emptyList(); private void ensureRepeatedAllTypesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { repeatedAllTypes_ = new java.util.ArrayList(repeatedAllTypes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> repeatedAllTypesBuilder_; /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public java.util.List getRepeatedAllTypesList() { if (repeatedAllTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedAllTypes_); } else { return repeatedAllTypesBuilder_.getMessageList(); } } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public int getRepeatedAllTypesCount() { if (repeatedAllTypesBuilder_ == null) { return repeatedAllTypes_.size(); } else { return repeatedAllTypesBuilder_.getCount(); } } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes getRepeatedAllTypes(int index) { if (repeatedAllTypesBuilder_ == null) { return repeatedAllTypes_.get(index); } else { return repeatedAllTypesBuilder_.getMessage(index); } } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public Builder setRepeatedAllTypes( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (repeatedAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.set(index, value); onChanged(); } else { repeatedAllTypesBuilder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public Builder setRepeatedAllTypes( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.set(index, builderForValue.build()); onChanged(); } else { repeatedAllTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public Builder addRepeatedAllTypes(protobuf_unittest.UnittestProto.TestAllTypes value) { if (repeatedAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.add(value); onChanged(); } else { repeatedAllTypesBuilder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public Builder addRepeatedAllTypes( int index, protobuf_unittest.UnittestProto.TestAllTypes value) { if (repeatedAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.add(index, value); onChanged(); } else { repeatedAllTypesBuilder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public Builder addRepeatedAllTypes( protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.add(builderForValue.build()); onChanged(); } else { repeatedAllTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public Builder addRepeatedAllTypes( int index, protobuf_unittest.UnittestProto.TestAllTypes.Builder builderForValue) { if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.add(index, builderForValue.build()); onChanged(); } else { repeatedAllTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public Builder addAllRepeatedAllTypes( java.lang.Iterable values) { if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedAllTypes_); onChanged(); } else { repeatedAllTypesBuilder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public Builder clearRepeatedAllTypes() { if (repeatedAllTypesBuilder_ == null) { repeatedAllTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { repeatedAllTypesBuilder_.clear(); } return this; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public Builder removeRepeatedAllTypes(int index) { if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.remove(index); onChanged(); } else { repeatedAllTypesBuilder_.remove(index); } return this; } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder getRepeatedAllTypesBuilder( int index) { return getRepeatedAllTypesFieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public protobuf_unittest.UnittestProto.TestAllTypesOrBuilder getRepeatedAllTypesOrBuilder( int index) { if (repeatedAllTypesBuilder_ == null) { return repeatedAllTypes_.get(index); } else { return repeatedAllTypesBuilder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public java.util.List getRepeatedAllTypesOrBuilderList() { if (repeatedAllTypesBuilder_ != null) { return repeatedAllTypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedAllTypes_); } } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addRepeatedAllTypesBuilder() { return getRepeatedAllTypesFieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public protobuf_unittest.UnittestProto.TestAllTypes.Builder addRepeatedAllTypesBuilder( int index) { return getRepeatedAllTypesFieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } /** * repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3; */ public java.util.List getRepeatedAllTypesBuilderList() { return getRepeatedAllTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder> getRepeatedAllTypesFieldBuilder() { if (repeatedAllTypesBuilder_ == null) { repeatedAllTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestAllTypes, protobuf_unittest.UnittestProto.TestAllTypes.Builder, protobuf_unittest.UnittestProto.TestAllTypesOrBuilder>( repeatedAllTypes_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); repeatedAllTypes_ = null; } return repeatedAllTypesBuilder_; } private protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup optionalGroup_ = protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup, protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroupOrBuilder> optionalGroupBuilder_; /** * optional group OptionalGroup = 10 { ... } */ public boolean hasOptionalGroup() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional group OptionalGroup = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup getOptionalGroup() { if (optionalGroupBuilder_ == null) { return optionalGroup_; } else { return optionalGroupBuilder_.getMessage(); } } /** * optional group OptionalGroup = 10 { ... } */ public Builder setOptionalGroup(protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup value) { if (optionalGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalGroup_ = value; onChanged(); } else { optionalGroupBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional group OptionalGroup = 10 { ... } */ public Builder setOptionalGroup( protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.Builder builderForValue) { if (optionalGroupBuilder_ == null) { optionalGroup_ = builderForValue.build(); onChanged(); } else { optionalGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional group OptionalGroup = 10 { ... } */ public Builder mergeOptionalGroup(protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup value) { if (optionalGroupBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && optionalGroup_ != protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.getDefaultInstance()) { optionalGroup_ = protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.newBuilder(optionalGroup_).mergeFrom(value).buildPartial(); } else { optionalGroup_ = value; } onChanged(); } else { optionalGroupBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional group OptionalGroup = 10 { ... } */ public Builder clearOptionalGroup() { if (optionalGroupBuilder_ == null) { optionalGroup_ = protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.getDefaultInstance(); onChanged(); } else { optionalGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional group OptionalGroup = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.Builder getOptionalGroupBuilder() { bitField0_ |= 0x00000008; onChanged(); return getOptionalGroupFieldBuilder().getBuilder(); } /** * optional group OptionalGroup = 10 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroupOrBuilder getOptionalGroupOrBuilder() { if (optionalGroupBuilder_ != null) { return optionalGroupBuilder_.getMessageOrBuilder(); } else { return optionalGroup_; } } /** * optional group OptionalGroup = 10 { ... } */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup, protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroupOrBuilder> getOptionalGroupFieldBuilder() { if (optionalGroupBuilder_ == null) { optionalGroupBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup, protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroup.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.OptionalGroupOrBuilder>( getOptionalGroup(), getParentForChildren(), isClean()); optionalGroup_ = null; } return optionalGroupBuilder_; } private java.util.List repeatedGroup_ = java.util.Collections.emptyList(); private void ensureRepeatedGroupIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { repeatedGroup_ = new java.util.ArrayList(repeatedGroup_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroupOrBuilder> repeatedGroupBuilder_; /** * repeated group RepeatedGroup = 20 { ... } */ public java.util.List getRepeatedGroupList() { if (repeatedGroupBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedGroup_); } else { return repeatedGroupBuilder_.getMessageList(); } } /** * repeated group RepeatedGroup = 20 { ... } */ public int getRepeatedGroupCount() { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.size(); } else { return repeatedGroupBuilder_.getCount(); } } /** * repeated group RepeatedGroup = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup getRepeatedGroup(int index) { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.get(index); } else { return repeatedGroupBuilder_.getMessage(index); } } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder setRepeatedGroup( int index, protobuf_unittest.UnittestProto.TestParsingMerge.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 = 20 { ... } */ public Builder setRepeatedGroup( int index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.set(index, builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder addRepeatedGroup(protobuf_unittest.UnittestProto.TestParsingMerge.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 = 20 { ... } */ public Builder addRepeatedGroup( int index, protobuf_unittest.UnittestProto.TestParsingMerge.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 = 20 { ... } */ public Builder addRepeatedGroup( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.add(builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder addRepeatedGroup( int index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.add(index, builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder addAllRepeatedGroup( java.lang.Iterable values) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedGroup_); onChanged(); } else { repeatedGroupBuilder_.addAllMessages(values); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder clearRepeatedGroup() { if (repeatedGroupBuilder_ == null) { repeatedGroup_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { repeatedGroupBuilder_.clear(); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder removeRepeatedGroup(int index) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.remove(index); onChanged(); } else { repeatedGroupBuilder_.remove(index); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder getRepeatedGroupBuilder( int index) { return getRepeatedGroupFieldBuilder().getBuilder(index); } /** * repeated group RepeatedGroup = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index) { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.get(index); } else { return repeatedGroupBuilder_.getMessageOrBuilder(index); } } /** * repeated group RepeatedGroup = 20 { ... } */ public java.util.List getRepeatedGroupOrBuilderList() { if (repeatedGroupBuilder_ != null) { return repeatedGroupBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedGroup_); } } /** * repeated group RepeatedGroup = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder addRepeatedGroupBuilder() { return getRepeatedGroupFieldBuilder().addBuilder( protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.getDefaultInstance()); } /** * repeated group RepeatedGroup = 20 { ... } */ public protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder addRepeatedGroupBuilder( int index) { return getRepeatedGroupFieldBuilder().addBuilder( index, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.getDefaultInstance()); } /** * repeated group RepeatedGroup = 20 { ... } */ public java.util.List getRepeatedGroupBuilderList() { return getRepeatedGroupFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroupOrBuilder> getRepeatedGroupFieldBuilder() { if (repeatedGroupBuilder_ == null) { repeatedGroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroup.Builder, protobuf_unittest.UnittestProto.TestParsingMerge.RepeatedGroupOrBuilder>( repeatedGroup_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); repeatedGroup_ = null; } return repeatedGroupBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestParsingMerge) } static { defaultInstance = new TestParsingMerge(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge) public static final int OPTIONAL_EXT_FIELD_NUMBER = 1000; /** * extend .protobuf_unittest.TestParsingMerge { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestParsingMerge, protobuf_unittest.UnittestProto.TestAllTypes> optionalExt = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestParsingMerge.getDefaultInstance(), 0, protobuf_unittest.UnittestProto.TestAllTypes.class, protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); public static final int REPEATED_EXT_FIELD_NUMBER = 1001; /** * extend .protobuf_unittest.TestParsingMerge { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestParsingMerge, java.util.List> repeatedExt = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestParsingMerge.getDefaultInstance(), 1, protobuf_unittest.UnittestProto.TestAllTypes.class, protobuf_unittest.UnittestProto.TestAllTypes.getDefaultInstance()); } public interface TestCommentInjectionMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestCommentInjectionMessage) com.google.protobuf.MessageOrBuilder { /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
     * */ <- This should not close the generated doc comment
     * 
*/ boolean hasA(); /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
     * */ <- This should not close the generated doc comment
     * 
*/ java.lang.String getA(); /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
     * */ <- This should not close the generated doc comment
     * 
*/ com.google.protobuf.ByteString getABytes(); } /** * Protobuf type {@code protobuf_unittest.TestCommentInjectionMessage} */ public static final class TestCommentInjectionMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestCommentInjectionMessage) TestCommentInjectionMessageOrBuilder { // Use TestCommentInjectionMessage.newBuilder() to construct. private TestCommentInjectionMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestCommentInjectionMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestCommentInjectionMessage defaultInstance; public static TestCommentInjectionMessage getDefaultInstance() { return defaultInstance; } public TestCommentInjectionMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestCommentInjectionMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; a_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestCommentInjectionMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestCommentInjectionMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestCommentInjectionMessage.class, protobuf_unittest.UnittestProto.TestCommentInjectionMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestCommentInjectionMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestCommentInjectionMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int A_FIELD_NUMBER = 1; private java.lang.Object a_; /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
     * */ <- This should not close the generated doc comment
     * 
*/ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
     * */ <- This should not close the generated doc comment
     * 
*/ public java.lang.String getA() { java.lang.Object ref = a_; 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()) { a_ = s; } return s; } } /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
     * */ <- This should not close the generated doc comment
     * 
*/ public com.google.protobuf.ByteString getABytes() { java.lang.Object ref = a_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); a_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { a_ = "*/ <- Neither should this."; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getABytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getABytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.TestCommentInjectionMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestCommentInjectionMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestCommentInjectionMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.TestCommentInjectionMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestCommentInjectionMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestCommentInjectionMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestCommentInjectionMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.TestCommentInjectionMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.TestCommentInjectionMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.TestCommentInjectionMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.TestCommentInjectionMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.TestCommentInjectionMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestCommentInjectionMessage) protobuf_unittest.UnittestProto.TestCommentInjectionMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestCommentInjectionMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestCommentInjectionMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.TestCommentInjectionMessage.class, protobuf_unittest.UnittestProto.TestCommentInjectionMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.TestCommentInjectionMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); a_ = "*/ <- Neither should this."; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_TestCommentInjectionMessage_descriptor; } public protobuf_unittest.UnittestProto.TestCommentInjectionMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.TestCommentInjectionMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.TestCommentInjectionMessage build() { protobuf_unittest.UnittestProto.TestCommentInjectionMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.TestCommentInjectionMessage buildPartial() { protobuf_unittest.UnittestProto.TestCommentInjectionMessage result = new protobuf_unittest.UnittestProto.TestCommentInjectionMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.a_ = a_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.TestCommentInjectionMessage) { return mergeFrom((protobuf_unittest.UnittestProto.TestCommentInjectionMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.TestCommentInjectionMessage other) { if (other == protobuf_unittest.UnittestProto.TestCommentInjectionMessage.getDefaultInstance()) return this; if (other.hasA()) { bitField0_ |= 0x00000001; a_ = other.a_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.TestCommentInjectionMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.TestCommentInjectionMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object a_ = "*/ <- Neither should this."; /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
       * */ <- This should not close the generated doc comment
       * 
*/ public boolean hasA() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
       * */ <- This should not close the generated doc comment
       * 
*/ public java.lang.String getA() { java.lang.Object ref = a_; 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()) { a_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
       * */ <- This should not close the generated doc comment
       * 
*/ public com.google.protobuf.ByteString getABytes() { java.lang.Object ref = a_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); a_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
       * */ <- This should not close the generated doc comment
       * 
*/ public Builder setA( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
       * */ <- This should not close the generated doc comment
       * 
*/ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = getDefaultInstance().getA(); onChanged(); return this; } /** * optional string a = 1 [default = "*/ <- Neither should this."]; * *
       * */ <- This should not close the generated doc comment
       * 
*/ public Builder setABytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; a_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestCommentInjectionMessage) } static { defaultInstance = new TestCommentInjectionMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestCommentInjectionMessage) } public interface FooRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.FooRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.FooRequest} * *
   * Test that RPC services work.
   * 
*/ public static final class FooRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.FooRequest) FooRequestOrBuilder { // Use FooRequest.newBuilder() to construct. private FooRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FooRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FooRequest defaultInstance; public static FooRequest getDefaultInstance() { return defaultInstance; } public FooRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FooRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.FooRequest.class, protobuf_unittest.UnittestProto.FooRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FooRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FooRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.FooRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.FooRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.FooRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.FooRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.FooRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.FooRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.FooRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.FooRequest} * *
     * Test that RPC services work.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.FooRequest) protobuf_unittest.UnittestProto.FooRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.FooRequest.class, protobuf_unittest.UnittestProto.FooRequest.Builder.class); } // Construct using protobuf_unittest.UnittestProto.FooRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooRequest_descriptor; } public protobuf_unittest.UnittestProto.FooRequest getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.FooRequest.getDefaultInstance(); } public protobuf_unittest.UnittestProto.FooRequest build() { protobuf_unittest.UnittestProto.FooRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.FooRequest buildPartial() { protobuf_unittest.UnittestProto.FooRequest result = new protobuf_unittest.UnittestProto.FooRequest(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.FooRequest) { return mergeFrom((protobuf_unittest.UnittestProto.FooRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.FooRequest other) { if (other == protobuf_unittest.UnittestProto.FooRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.FooRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.FooRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.FooRequest) } static { defaultInstance = new FooRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.FooRequest) } public interface FooResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.FooResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.FooResponse} */ public static final class FooResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.FooResponse) FooResponseOrBuilder { // Use FooResponse.newBuilder() to construct. private FooResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FooResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FooResponse defaultInstance; public static FooResponse getDefaultInstance() { return defaultInstance; } public FooResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FooResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.FooResponse.class, protobuf_unittest.UnittestProto.FooResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FooResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FooResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.FooResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.FooResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.FooResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.FooResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.FooResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.FooResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.FooResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.FooResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.FooResponse) protobuf_unittest.UnittestProto.FooResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.FooResponse.class, protobuf_unittest.UnittestProto.FooResponse.Builder.class); } // Construct using protobuf_unittest.UnittestProto.FooResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooResponse_descriptor; } public protobuf_unittest.UnittestProto.FooResponse getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.FooResponse.getDefaultInstance(); } public protobuf_unittest.UnittestProto.FooResponse build() { protobuf_unittest.UnittestProto.FooResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.FooResponse buildPartial() { protobuf_unittest.UnittestProto.FooResponse result = new protobuf_unittest.UnittestProto.FooResponse(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.FooResponse) { return mergeFrom((protobuf_unittest.UnittestProto.FooResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.FooResponse other) { if (other == protobuf_unittest.UnittestProto.FooResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.FooResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.FooResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.FooResponse) } static { defaultInstance = new FooResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.FooResponse) } public interface FooClientMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.FooClientMessage) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.FooClientMessage} */ public static final class FooClientMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.FooClientMessage) FooClientMessageOrBuilder { // Use FooClientMessage.newBuilder() to construct. private FooClientMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FooClientMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FooClientMessage defaultInstance; public static FooClientMessage getDefaultInstance() { return defaultInstance; } public FooClientMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FooClientMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooClientMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooClientMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.FooClientMessage.class, protobuf_unittest.UnittestProto.FooClientMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FooClientMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FooClientMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.FooClientMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.FooClientMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooClientMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.FooClientMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooClientMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.FooClientMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooClientMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.FooClientMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooClientMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.FooClientMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.FooClientMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.FooClientMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.FooClientMessage) protobuf_unittest.UnittestProto.FooClientMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooClientMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooClientMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.FooClientMessage.class, protobuf_unittest.UnittestProto.FooClientMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.FooClientMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooClientMessage_descriptor; } public protobuf_unittest.UnittestProto.FooClientMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.FooClientMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.FooClientMessage build() { protobuf_unittest.UnittestProto.FooClientMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.FooClientMessage buildPartial() { protobuf_unittest.UnittestProto.FooClientMessage result = new protobuf_unittest.UnittestProto.FooClientMessage(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.FooClientMessage) { return mergeFrom((protobuf_unittest.UnittestProto.FooClientMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.FooClientMessage other) { if (other == protobuf_unittest.UnittestProto.FooClientMessage.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.FooClientMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.FooClientMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.FooClientMessage) } static { defaultInstance = new FooClientMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.FooClientMessage) } public interface FooServerMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.FooServerMessage) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.FooServerMessage} */ public static final class FooServerMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.FooServerMessage) FooServerMessageOrBuilder { // Use FooServerMessage.newBuilder() to construct. private FooServerMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FooServerMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FooServerMessage defaultInstance; public static FooServerMessage getDefaultInstance() { return defaultInstance; } public FooServerMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FooServerMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooServerMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooServerMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.FooServerMessage.class, protobuf_unittest.UnittestProto.FooServerMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FooServerMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FooServerMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.FooServerMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.FooServerMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooServerMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.FooServerMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooServerMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.FooServerMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooServerMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.FooServerMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.FooServerMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.FooServerMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.FooServerMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.FooServerMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.FooServerMessage) protobuf_unittest.UnittestProto.FooServerMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooServerMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooServerMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.FooServerMessage.class, protobuf_unittest.UnittestProto.FooServerMessage.Builder.class); } // Construct using protobuf_unittest.UnittestProto.FooServerMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_FooServerMessage_descriptor; } public protobuf_unittest.UnittestProto.FooServerMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.FooServerMessage.getDefaultInstance(); } public protobuf_unittest.UnittestProto.FooServerMessage build() { protobuf_unittest.UnittestProto.FooServerMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.FooServerMessage buildPartial() { protobuf_unittest.UnittestProto.FooServerMessage result = new protobuf_unittest.UnittestProto.FooServerMessage(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.FooServerMessage) { return mergeFrom((protobuf_unittest.UnittestProto.FooServerMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.FooServerMessage other) { if (other == protobuf_unittest.UnittestProto.FooServerMessage.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.FooServerMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.FooServerMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.FooServerMessage) } static { defaultInstance = new FooServerMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.FooServerMessage) } public interface BarRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.BarRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.BarRequest} */ public static final class BarRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.BarRequest) BarRequestOrBuilder { // Use BarRequest.newBuilder() to construct. private BarRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private BarRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final BarRequest defaultInstance; public static BarRequest getDefaultInstance() { return defaultInstance; } public BarRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BarRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BarRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BarRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.BarRequest.class, protobuf_unittest.UnittestProto.BarRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BarRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BarRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.BarRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.BarRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.BarRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.BarRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.BarRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.BarRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.BarRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.BarRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.BarRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.BarRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.BarRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.BarRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.BarRequest) protobuf_unittest.UnittestProto.BarRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BarRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BarRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.BarRequest.class, protobuf_unittest.UnittestProto.BarRequest.Builder.class); } // Construct using protobuf_unittest.UnittestProto.BarRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BarRequest_descriptor; } public protobuf_unittest.UnittestProto.BarRequest getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.BarRequest.getDefaultInstance(); } public protobuf_unittest.UnittestProto.BarRequest build() { protobuf_unittest.UnittestProto.BarRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.BarRequest buildPartial() { protobuf_unittest.UnittestProto.BarRequest result = new protobuf_unittest.UnittestProto.BarRequest(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.BarRequest) { return mergeFrom((protobuf_unittest.UnittestProto.BarRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.BarRequest other) { if (other == protobuf_unittest.UnittestProto.BarRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.BarRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.BarRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.BarRequest) } static { defaultInstance = new BarRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.BarRequest) } public interface BarResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.BarResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.BarResponse} */ public static final class BarResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.BarResponse) BarResponseOrBuilder { // Use BarResponse.newBuilder() to construct. private BarResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private BarResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final BarResponse defaultInstance; public static BarResponse getDefaultInstance() { return defaultInstance; } public BarResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BarResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BarResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BarResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.BarResponse.class, protobuf_unittest.UnittestProto.BarResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BarResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BarResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protobuf_unittest.UnittestProto.BarResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.BarResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.BarResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestProto.BarResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestProto.BarResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.BarResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.BarResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestProto.BarResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestProto.BarResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestProto.BarResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(protobuf_unittest.UnittestProto.BarResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest.BarResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.BarResponse) protobuf_unittest.UnittestProto.BarResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BarResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BarResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestProto.BarResponse.class, protobuf_unittest.UnittestProto.BarResponse.Builder.class); } // Construct using protobuf_unittest.UnittestProto.BarResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestProto.internal_static_protobuf_unittest_BarResponse_descriptor; } public protobuf_unittest.UnittestProto.BarResponse getDefaultInstanceForType() { return protobuf_unittest.UnittestProto.BarResponse.getDefaultInstance(); } public protobuf_unittest.UnittestProto.BarResponse build() { protobuf_unittest.UnittestProto.BarResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestProto.BarResponse buildPartial() { protobuf_unittest.UnittestProto.BarResponse result = new protobuf_unittest.UnittestProto.BarResponse(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestProto.BarResponse) { return mergeFrom((protobuf_unittest.UnittestProto.BarResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestProto.BarResponse other) { if (other == protobuf_unittest.UnittestProto.BarResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestProto.BarResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestProto.BarResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.BarResponse) } static { defaultInstance = new BarResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.BarResponse) } /** * Protobuf service {@code protobuf_unittest.TestService} */ public static abstract class TestService implements com.google.protobuf.Service { protected TestService() {} public interface Interface { /** * rpc Foo(.protobuf_unittest.FooRequest) returns (.protobuf_unittest.FooResponse); */ public abstract void foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.FooRequest request, com.google.protobuf.RpcCallback done); /** * rpc Bar(.protobuf_unittest.BarRequest) returns (.protobuf_unittest.BarResponse); */ public abstract void bar( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.BarRequest request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new TestService() { @java.lang.Override public void foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.FooRequest request, com.google.protobuf.RpcCallback done) { impl.foo(controller, request, done); } @java.lang.Override public void bar( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.BarRequest request, com.google.protobuf.RpcCallback done) { impl.bar(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.foo(controller, (protobuf_unittest.UnittestProto.FooRequest)request); case 1: return impl.bar(controller, (protobuf_unittest.UnittestProto.BarRequest)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return protobuf_unittest.UnittestProto.FooRequest.getDefaultInstance(); case 1: return protobuf_unittest.UnittestProto.BarRequest.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return protobuf_unittest.UnittestProto.FooResponse.getDefaultInstance(); case 1: return protobuf_unittest.UnittestProto.BarResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } /** * rpc Foo(.protobuf_unittest.FooRequest) returns (.protobuf_unittest.FooResponse); */ public abstract void foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.FooRequest request, com.google.protobuf.RpcCallback done); /** * rpc Bar(.protobuf_unittest.BarRequest) returns (.protobuf_unittest.BarResponse); */ public abstract void bar( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.BarRequest request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return protobuf_unittest.UnittestProto.getDescriptor().getServices().get(0); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.foo(controller, (protobuf_unittest.UnittestProto.FooRequest)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 1: this.bar(controller, (protobuf_unittest.UnittestProto.BarRequest)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return protobuf_unittest.UnittestProto.FooRequest.getDefaultInstance(); case 1: return protobuf_unittest.UnittestProto.BarRequest.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return protobuf_unittest.UnittestProto.FooResponse.getDefaultInstance(); case 1: return protobuf_unittest.UnittestProto.BarResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends protobuf_unittest.UnittestProto.TestService implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.FooRequest request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, protobuf_unittest.UnittestProto.FooResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, protobuf_unittest.UnittestProto.FooResponse.class, protobuf_unittest.UnittestProto.FooResponse.getDefaultInstance())); } public void bar( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.BarRequest request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(1), controller, request, protobuf_unittest.UnittestProto.BarResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, protobuf_unittest.UnittestProto.BarResponse.class, protobuf_unittest.UnittestProto.BarResponse.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public protobuf_unittest.UnittestProto.FooResponse foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.FooRequest request) throws com.google.protobuf.ServiceException; public protobuf_unittest.UnittestProto.BarResponse bar( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.BarRequest request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public protobuf_unittest.UnittestProto.FooResponse foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.FooRequest request) throws com.google.protobuf.ServiceException { return (protobuf_unittest.UnittestProto.FooResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, protobuf_unittest.UnittestProto.FooResponse.getDefaultInstance()); } public protobuf_unittest.UnittestProto.BarResponse bar( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestProto.BarRequest request) throws com.google.protobuf.ServiceException { return (protobuf_unittest.UnittestProto.BarResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(1), controller, request, protobuf_unittest.UnittestProto.BarResponse.getDefaultInstance()); } } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestService) } public static final int OPTIONAL_INT32_EXTENSION_FIELD_NUMBER = 1; /** * extend .protobuf_unittest.TestAllExtensions { ... } * *
   * Singular
   * 
*/ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> optionalInt32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int OPTIONAL_INT64_EXTENSION_FIELD_NUMBER = 2; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Long> optionalInt64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int OPTIONAL_UINT32_EXTENSION_FIELD_NUMBER = 3; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> optionalUint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int OPTIONAL_UINT64_EXTENSION_FIELD_NUMBER = 4; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Long> optionalUint64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int OPTIONAL_SINT32_EXTENSION_FIELD_NUMBER = 5; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> optionalSint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int OPTIONAL_SINT64_EXTENSION_FIELD_NUMBER = 6; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Long> optionalSint64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int OPTIONAL_FIXED32_EXTENSION_FIELD_NUMBER = 7; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> optionalFixed32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int OPTIONAL_FIXED64_EXTENSION_FIELD_NUMBER = 8; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Long> optionalFixed64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int OPTIONAL_SFIXED32_EXTENSION_FIELD_NUMBER = 9; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> optionalSfixed32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int OPTIONAL_SFIXED64_EXTENSION_FIELD_NUMBER = 10; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Long> optionalSfixed64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int OPTIONAL_FLOAT_EXTENSION_FIELD_NUMBER = 11; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Float> optionalFloatExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Float.class, null); public static final int OPTIONAL_DOUBLE_EXTENSION_FIELD_NUMBER = 12; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Double> optionalDoubleExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Double.class, null); public static final int OPTIONAL_BOOL_EXTENSION_FIELD_NUMBER = 13; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Boolean> optionalBoolExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int OPTIONAL_STRING_EXTENSION_FIELD_NUMBER = 14; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.String> optionalStringExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int OPTIONAL_BYTES_EXTENSION_FIELD_NUMBER = 15; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, com.google.protobuf.ByteString> optionalBytesExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.ByteString.class, null); public static final int OPTIONALGROUP_EXTENSION_FIELD_NUMBER = 16; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, protobuf_unittest.UnittestProto.OptionalGroup_extension> optionalGroupExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.OptionalGroup_extension.class, protobuf_unittest.UnittestProto.OptionalGroup_extension.getDefaultInstance()); public static final int OPTIONAL_NESTED_MESSAGE_EXTENSION_FIELD_NUMBER = 18; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage> optionalNestedMessageExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.class, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()); public static final int OPTIONAL_FOREIGN_MESSAGE_EXTENSION_FIELD_NUMBER = 19; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, protobuf_unittest.UnittestProto.ForeignMessage> optionalForeignMessageExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.ForeignMessage.class, protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()); public static final int OPTIONAL_IMPORT_MESSAGE_EXTENSION_FIELD_NUMBER = 20; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, com.google.protobuf.test.UnittestImport.ImportMessage> optionalImportMessageExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.test.UnittestImport.ImportMessage.class, com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance()); public static final int OPTIONAL_NESTED_ENUM_EXTENSION_FIELD_NUMBER = 21; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum> optionalNestedEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.class, null); public static final int OPTIONAL_FOREIGN_ENUM_EXTENSION_FIELD_NUMBER = 22; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, protobuf_unittest.UnittestProto.ForeignEnum> optionalForeignEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.ForeignEnum.class, null); public static final int OPTIONAL_IMPORT_ENUM_EXTENSION_FIELD_NUMBER = 23; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, com.google.protobuf.test.UnittestImport.ImportEnum> optionalImportEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.test.UnittestImport.ImportEnum.class, null); public static final int OPTIONAL_STRING_PIECE_EXTENSION_FIELD_NUMBER = 24; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.String> optionalStringPieceExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int OPTIONAL_CORD_EXTENSION_FIELD_NUMBER = 25; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.String> optionalCordExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int OPTIONAL_PUBLIC_IMPORT_MESSAGE_EXTENSION_FIELD_NUMBER = 26; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, com.google.protobuf.test.UnittestImportPublic.PublicImportMessage> optionalPublicImportMessageExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.class, com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance()); public static final int OPTIONAL_LAZY_MESSAGE_EXTENSION_FIELD_NUMBER = 27; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage> optionalLazyMessageExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.class, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()); public static final int REPEATED_INT32_EXTENSION_FIELD_NUMBER = 31; /** * extend .protobuf_unittest.TestAllExtensions { ... } * *
   * Repeated
   * 
*/ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedInt32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int REPEATED_INT64_EXTENSION_FIELD_NUMBER = 32; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedInt64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int REPEATED_UINT32_EXTENSION_FIELD_NUMBER = 33; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedUint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int REPEATED_UINT64_EXTENSION_FIELD_NUMBER = 34; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedUint64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int REPEATED_SINT32_EXTENSION_FIELD_NUMBER = 35; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedSint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int REPEATED_SINT64_EXTENSION_FIELD_NUMBER = 36; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedSint64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int REPEATED_FIXED32_EXTENSION_FIELD_NUMBER = 37; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedFixed32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int REPEATED_FIXED64_EXTENSION_FIELD_NUMBER = 38; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedFixed64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int REPEATED_SFIXED32_EXTENSION_FIELD_NUMBER = 39; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedSfixed32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int REPEATED_SFIXED64_EXTENSION_FIELD_NUMBER = 40; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedSfixed64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int REPEATED_FLOAT_EXTENSION_FIELD_NUMBER = 41; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedFloatExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Float.class, null); public static final int REPEATED_DOUBLE_EXTENSION_FIELD_NUMBER = 42; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedDoubleExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Double.class, null); public static final int REPEATED_BOOL_EXTENSION_FIELD_NUMBER = 43; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedBoolExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int REPEATED_STRING_EXTENSION_FIELD_NUMBER = 44; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedStringExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int REPEATED_BYTES_EXTENSION_FIELD_NUMBER = 45; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedBytesExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.ByteString.class, null); public static final int REPEATEDGROUP_EXTENSION_FIELD_NUMBER = 46; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedGroupExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.RepeatedGroup_extension.class, protobuf_unittest.UnittestProto.RepeatedGroup_extension.getDefaultInstance()); public static final int REPEATED_NESTED_MESSAGE_EXTENSION_FIELD_NUMBER = 48; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedNestedMessageExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.class, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()); public static final int REPEATED_FOREIGN_MESSAGE_EXTENSION_FIELD_NUMBER = 49; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedForeignMessageExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.ForeignMessage.class, protobuf_unittest.UnittestProto.ForeignMessage.getDefaultInstance()); public static final int REPEATED_IMPORT_MESSAGE_EXTENSION_FIELD_NUMBER = 50; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedImportMessageExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.test.UnittestImport.ImportMessage.class, com.google.protobuf.test.UnittestImport.ImportMessage.getDefaultInstance()); public static final int REPEATED_NESTED_ENUM_EXTENSION_FIELD_NUMBER = 51; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedNestedEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.class, null); public static final int REPEATED_FOREIGN_ENUM_EXTENSION_FIELD_NUMBER = 52; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedForeignEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.ForeignEnum.class, null); public static final int REPEATED_IMPORT_ENUM_EXTENSION_FIELD_NUMBER = 53; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedImportEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.test.UnittestImport.ImportEnum.class, null); public static final int REPEATED_STRING_PIECE_EXTENSION_FIELD_NUMBER = 54; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedStringPieceExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int REPEATED_CORD_EXTENSION_FIELD_NUMBER = 55; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedCordExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int REPEATED_LAZY_MESSAGE_EXTENSION_FIELD_NUMBER = 57; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.util.List> repeatedLazyMessageExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.class, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()); public static final int DEFAULT_INT32_EXTENSION_FIELD_NUMBER = 61; /** * extend .protobuf_unittest.TestAllExtensions { ... } * *
   * Singular with defaults
   * 
*/ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> defaultInt32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int DEFAULT_INT64_EXTENSION_FIELD_NUMBER = 62; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Long> defaultInt64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int DEFAULT_UINT32_EXTENSION_FIELD_NUMBER = 63; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> defaultUint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int DEFAULT_UINT64_EXTENSION_FIELD_NUMBER = 64; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Long> defaultUint64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int DEFAULT_SINT32_EXTENSION_FIELD_NUMBER = 65; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> defaultSint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int DEFAULT_SINT64_EXTENSION_FIELD_NUMBER = 66; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Long> defaultSint64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int DEFAULT_FIXED32_EXTENSION_FIELD_NUMBER = 67; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> defaultFixed32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int DEFAULT_FIXED64_EXTENSION_FIELD_NUMBER = 68; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Long> defaultFixed64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int DEFAULT_SFIXED32_EXTENSION_FIELD_NUMBER = 69; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> defaultSfixed32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int DEFAULT_SFIXED64_EXTENSION_FIELD_NUMBER = 70; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Long> defaultSfixed64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int DEFAULT_FLOAT_EXTENSION_FIELD_NUMBER = 71; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Float> defaultFloatExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Float.class, null); public static final int DEFAULT_DOUBLE_EXTENSION_FIELD_NUMBER = 72; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Double> defaultDoubleExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Double.class, null); public static final int DEFAULT_BOOL_EXTENSION_FIELD_NUMBER = 73; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Boolean> defaultBoolExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int DEFAULT_STRING_EXTENSION_FIELD_NUMBER = 74; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.String> defaultStringExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int DEFAULT_BYTES_EXTENSION_FIELD_NUMBER = 75; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, com.google.protobuf.ByteString> defaultBytesExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.ByteString.class, null); public static final int DEFAULT_NESTED_ENUM_EXTENSION_FIELD_NUMBER = 81; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum> defaultNestedEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestAllTypes.NestedEnum.class, null); public static final int DEFAULT_FOREIGN_ENUM_EXTENSION_FIELD_NUMBER = 82; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, protobuf_unittest.UnittestProto.ForeignEnum> defaultForeignEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.ForeignEnum.class, null); public static final int DEFAULT_IMPORT_ENUM_EXTENSION_FIELD_NUMBER = 83; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, com.google.protobuf.test.UnittestImport.ImportEnum> defaultImportEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.test.UnittestImport.ImportEnum.class, null); public static final int DEFAULT_STRING_PIECE_EXTENSION_FIELD_NUMBER = 84; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.String> defaultStringPieceExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int DEFAULT_CORD_EXTENSION_FIELD_NUMBER = 85; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.String> defaultCordExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int ONEOF_UINT32_EXTENSION_FIELD_NUMBER = 111; /** * extend .protobuf_unittest.TestAllExtensions { ... } * *
   * For oneof test
   * 
*/ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.Integer> oneofUint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int ONEOF_NESTED_MESSAGE_EXTENSION_FIELD_NUMBER = 112; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage> oneofNestedMessageExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.class, protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage.getDefaultInstance()); public static final int ONEOF_STRING_EXTENSION_FIELD_NUMBER = 113; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, java.lang.String> oneofStringExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int ONEOF_BYTES_EXTENSION_FIELD_NUMBER = 114; /** * extend .protobuf_unittest.TestAllExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestAllExtensions, com.google.protobuf.ByteString> oneofBytesExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.ByteString.class, null); public static final int MY_EXTENSION_STRING_FIELD_NUMBER = 50; /** * extend .protobuf_unittest.TestFieldOrderings { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestFieldOrderings, java.lang.String> myExtensionString = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int MY_EXTENSION_INT_FIELD_NUMBER = 5; /** * extend .protobuf_unittest.TestFieldOrderings { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestFieldOrderings, java.lang.Integer> myExtensionInt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_INT32_EXTENSION_FIELD_NUMBER = 90; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedInt32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_INT64_EXTENSION_FIELD_NUMBER = 91; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedInt64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int PACKED_UINT32_EXTENSION_FIELD_NUMBER = 92; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedUint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_UINT64_EXTENSION_FIELD_NUMBER = 93; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedUint64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int PACKED_SINT32_EXTENSION_FIELD_NUMBER = 94; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedSint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_SINT64_EXTENSION_FIELD_NUMBER = 95; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedSint64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int PACKED_FIXED32_EXTENSION_FIELD_NUMBER = 96; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedFixed32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_FIXED64_EXTENSION_FIELD_NUMBER = 97; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedFixed64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int PACKED_SFIXED32_EXTENSION_FIELD_NUMBER = 98; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedSfixed32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_SFIXED64_EXTENSION_FIELD_NUMBER = 99; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedSfixed64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int PACKED_FLOAT_EXTENSION_FIELD_NUMBER = 100; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedFloatExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Float.class, null); public static final int PACKED_DOUBLE_EXTENSION_FIELD_NUMBER = 101; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedDoubleExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Double.class, null); public static final int PACKED_BOOL_EXTENSION_FIELD_NUMBER = 102; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedBoolExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int PACKED_ENUM_EXTENSION_FIELD_NUMBER = 103; /** * extend .protobuf_unittest.TestPackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestPackedExtensions, java.util.List> packedEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.ForeignEnum.class, null); public static final int UNPACKED_INT32_EXTENSION_FIELD_NUMBER = 90; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedInt32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int UNPACKED_INT64_EXTENSION_FIELD_NUMBER = 91; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedInt64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int UNPACKED_UINT32_EXTENSION_FIELD_NUMBER = 92; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedUint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int UNPACKED_UINT64_EXTENSION_FIELD_NUMBER = 93; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedUint64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int UNPACKED_SINT32_EXTENSION_FIELD_NUMBER = 94; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedSint32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int UNPACKED_SINT64_EXTENSION_FIELD_NUMBER = 95; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedSint64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int UNPACKED_FIXED32_EXTENSION_FIELD_NUMBER = 96; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedFixed32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int UNPACKED_FIXED64_EXTENSION_FIELD_NUMBER = 97; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedFixed64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int UNPACKED_SFIXED32_EXTENSION_FIELD_NUMBER = 98; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedSfixed32Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int UNPACKED_SFIXED64_EXTENSION_FIELD_NUMBER = 99; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedSfixed64Extension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int UNPACKED_FLOAT_EXTENSION_FIELD_NUMBER = 100; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedFloatExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Float.class, null); public static final int UNPACKED_DOUBLE_EXTENSION_FIELD_NUMBER = 101; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedDoubleExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Double.class, null); public static final int UNPACKED_BOOL_EXTENSION_FIELD_NUMBER = 102; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedBoolExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int UNPACKED_ENUM_EXTENSION_FIELD_NUMBER = 103; /** * extend .protobuf_unittest.TestUnpackedExtensions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestProto.TestUnpackedExtensions, java.util.List> unpackedEnumExtension = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestProto.ForeignEnum.class, null); private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestAllTypes_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestAllTypes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestAllTypes_NestedMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestAllTypes_NestedMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_NestedTestAllTypes_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_NestedTestAllTypes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestDeprecatedFields_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestDeprecatedFields_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_ForeignMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_ForeignMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestAllExtensions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestAllExtensions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_OptionalGroup_extension_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_OptionalGroup_extension_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_RepeatedGroup_extension_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_RepeatedGroup_extension_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestNestedExtension_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestNestedExtension_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestRequired_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestRequired_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestRequiredForeign_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestRequiredForeign_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestForeignNested_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestForeignNested_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestEmptyMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestEmptyMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestEmptyMessageWithExtensions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestEmptyMessageWithExtensions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestMultipleExtensionRanges_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestMultipleExtensionRanges_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestReallyLargeTagNumber_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestReallyLargeTagNumber_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestRecursiveMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestRecursiveMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestMutualRecursionA_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestMutualRecursionA_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestMutualRecursionB_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestMutualRecursionB_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestDupFieldNumber_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestDupFieldNumber_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestDupFieldNumber_Foo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestDupFieldNumber_Foo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestDupFieldNumber_Bar_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestDupFieldNumber_Bar_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestEagerMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestEagerMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestLazyMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestLazyMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestNestedMessageHasBits_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestNestedMessageHasBits_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestCamelCaseFieldNames_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestCamelCaseFieldNames_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestFieldOrderings_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestFieldOrderings_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestExtremeDefaultValues_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestExtremeDefaultValues_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_SparseEnumMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_SparseEnumMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_OneString_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_OneString_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_MoreString_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_MoreString_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_OneBytes_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_OneBytes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_MoreBytes_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_MoreBytes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_Int32Message_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_Int32Message_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_Uint32Message_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_Uint32Message_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_Int64Message_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_Int64Message_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_Uint64Message_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_Uint64Message_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_BoolMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_BoolMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestOneof_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestOneof_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestOneof_FooGroup_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestOneof_FooGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestOneofBackwardsCompatible_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestOneofBackwardsCompatible_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestOneof2_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestOneof2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestOneof2_FooGroup_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestOneof2_FooGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestOneof2_NestedMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestOneof2_NestedMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestRequiredOneof_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestRequiredOneof_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestRequiredOneof_NestedMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestRequiredOneof_NestedMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestPackedTypes_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestPackedTypes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestUnpackedTypes_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestUnpackedTypes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestPackedExtensions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestPackedExtensions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestUnpackedExtensions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestUnpackedExtensions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestDynamicExtensions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestDynamicExtensions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestParsingMerge_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestParsingMerge_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestParsingMerge_OptionalGroup_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestParsingMerge_OptionalGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestParsingMerge_RepeatedGroup_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestParsingMerge_RepeatedGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestCommentInjectionMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestCommentInjectionMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_FooRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_FooRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_FooResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_FooResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_FooClientMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_FooClientMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_FooServerMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_FooServerMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_BarRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_BarRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_BarResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_BarResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\036google/protobuf/unittest.proto\022\021protob" + "uf_unittest\032%google/protobuf/unittest_im" + "port.proto\"\355\030\n\014TestAllTypes\022\026\n\016optional_" + "int32\030\001 \001(\005\022\026\n\016optional_int64\030\002 \001(\003\022\027\n\017o" + "ptional_uint32\030\003 \001(\r\022\027\n\017optional_uint64\030" + "\004 \001(\004\022\027\n\017optional_sint32\030\005 \001(\021\022\027\n\017option" + "al_sint64\030\006 \001(\022\022\030\n\020optional_fixed32\030\007 \001(" + "\007\022\030\n\020optional_fixed64\030\010 \001(\006\022\031\n\021optional_" + "sfixed32\030\t \001(\017\022\031\n\021optional_sfixed64\030\n \001(" + "\020\022\026\n\016optional_float\030\013 \001(\002\022\027\n\017optional_do", "uble\030\014 \001(\001\022\025\n\roptional_bool\030\r \001(\010\022\027\n\017opt" + "ional_string\030\016 \001(\t\022\026\n\016optional_bytes\030\017 \001" + "(\014\022D\n\roptionalgroup\030\020 \001(\n2-.protobuf_uni" + "ttest.TestAllTypes.OptionalGroup\022N\n\027opti" + "onal_nested_message\030\022 \001(\0132-.protobuf_uni" + "ttest.TestAllTypes.NestedMessage\022C\n\030opti" + "onal_foreign_message\030\023 \001(\0132!.protobuf_un" + "ittest.ForeignMessage\022H\n\027optional_import" + "_message\030\024 \001(\0132\'.protobuf_unittest_impor" + "t.ImportMessage\022H\n\024optional_nested_enum\030", "\025 \001(\0162*.protobuf_unittest.TestAllTypes.N" + "estedEnum\022=\n\025optional_foreign_enum\030\026 \001(\016" + "2\036.protobuf_unittest.ForeignEnum\022B\n\024opti" + "onal_import_enum\030\027 \001(\0162$.protobuf_unitte" + "st_import.ImportEnum\022!\n\025optional_string_" + "piece\030\030 \001(\tB\002\010\002\022\031\n\roptional_cord\030\031 \001(\tB\002" + "\010\001\022U\n\036optional_public_import_message\030\032 \001" + "(\0132-.protobuf_unittest_import.PublicImpo" + "rtMessage\022P\n\025optional_lazy_message\030\033 \001(\013" + "2-.protobuf_unittest.TestAllTypes.Nested", "MessageB\002(\001\022\026\n\016repeated_int32\030\037 \003(\005\022\026\n\016r" + "epeated_int64\030 \003(\003\022\027\n\017repeated_uint32\030!" + " \003(\r\022\027\n\017repeated_uint64\030\" \003(\004\022\027\n\017repeate" + "d_sint32\030# \003(\021\022\027\n\017repeated_sint64\030$ \003(\022\022" + "\030\n\020repeated_fixed32\030% \003(\007\022\030\n\020repeated_fi" + "xed64\030& \003(\006\022\031\n\021repeated_sfixed32\030\' \003(\017\022\031" + "\n\021repeated_sfixed64\030( \003(\020\022\026\n\016repeated_fl" + "oat\030) \003(\002\022\027\n\017repeated_double\030* \003(\001\022\025\n\rre" + "peated_bool\030+ \003(\010\022\027\n\017repeated_string\030, \003" + "(\t\022\026\n\016repeated_bytes\030- \003(\014\022D\n\rrepeatedgr", "oup\030. \003(\n2-.protobuf_unittest.TestAllTyp" + "es.RepeatedGroup\022N\n\027repeated_nested_mess" + "age\0300 \003(\0132-.protobuf_unittest.TestAllTyp" + "es.NestedMessage\022C\n\030repeated_foreign_mes" + "sage\0301 \003(\0132!.protobuf_unittest.ForeignMe" + "ssage\022H\n\027repeated_import_message\0302 \003(\0132\'" + ".protobuf_unittest_import.ImportMessage\022" + "H\n\024repeated_nested_enum\0303 \003(\0162*.protobuf" + "_unittest.TestAllTypes.NestedEnum\022=\n\025rep" + "eated_foreign_enum\0304 \003(\0162\036.protobuf_unit", "test.ForeignEnum\022B\n\024repeated_import_enum" + "\0305 \003(\0162$.protobuf_unittest_import.Import" + "Enum\022!\n\025repeated_string_piece\0306 \003(\tB\002\010\002\022" + "\031\n\rrepeated_cord\0307 \003(\tB\002\010\001\022P\n\025repeated_l" + "azy_message\0309 \003(\0132-.protobuf_unittest.Te" + "stAllTypes.NestedMessageB\002(\001\022\031\n\rdefault_" + "int32\030= \001(\005:\00241\022\031\n\rdefault_int64\030> \001(\003:\002" + "42\022\032\n\016default_uint32\030? \001(\r:\00243\022\032\n\016defaul" + "t_uint64\030@ \001(\004:\00244\022\033\n\016default_sint32\030A \001" + "(\021:\003-45\022\032\n\016default_sint64\030B \001(\022:\00246\022\033\n\017d", "efault_fixed32\030C \001(\007:\00247\022\033\n\017default_fixe" + "d64\030D \001(\006:\00248\022\034\n\020default_sfixed32\030E \001(\017:" + "\00249\022\035\n\020default_sfixed64\030F \001(\020:\003-50\022\033\n\rde" + "fault_float\030G \001(\002:\00451.5\022\035\n\016default_doubl" + "e\030H \001(\001:\00552000\022\032\n\014default_bool\030I \001(\010:\004tr" + "ue\022\035\n\016default_string\030J \001(\t:\005hello\022\034\n\rdef" + "ault_bytes\030K \001(\014:\005world\022L\n\023default_neste" + "d_enum\030Q \001(\0162*.protobuf_unittest.TestAll" + "Types.NestedEnum:\003BAR\022I\n\024default_foreign" + "_enum\030R \001(\0162\036.protobuf_unittest.ForeignE", "num:\013FOREIGN_BAR\022M\n\023default_import_enum\030" + "S \001(\0162$.protobuf_unittest_import.ImportE" + "num:\nIMPORT_BAR\022%\n\024default_string_piece\030" + "T \001(\t:\003abcB\002\010\002\022\035\n\014default_cord\030U \001(\t:\00312" + "3B\002\010\001\022\026\n\014oneof_uint32\030o \001(\rH\000\022M\n\024oneof_n" + "ested_message\030p \001(\0132-.protobuf_unittest." + "TestAllTypes.NestedMessageH\000\022\026\n\014oneof_st" + "ring\030q \001(\tH\000\022\025\n\013oneof_bytes\030r \001(\014H\000\032\033\n\rN" + "estedMessage\022\n\n\002bb\030\001 \001(\005\032\032\n\rOptionalGrou" + "p\022\t\n\001a\030\021 \001(\005\032\032\n\rRepeatedGroup\022\t\n\001a\030/ \001(\005", "\"9\n\nNestedEnum\022\007\n\003FOO\020\001\022\007\n\003BAR\020\002\022\007\n\003BAZ\020" + "\003\022\020\n\003NEG\020\377\377\377\377\377\377\377\377\377\001B\r\n\013oneof_field\"|\n\022Ne" + "stedTestAllTypes\0224\n\005child\030\001 \001(\0132%.protob" + "uf_unittest.NestedTestAllTypes\0220\n\007payloa" + "d\030\002 \001(\0132\037.protobuf_unittest.TestAllTypes" + "\"4\n\024TestDeprecatedFields\022\034\n\020deprecated_i" + "nt32\030\001 \001(\005B\002\030\001\"\033\n\016ForeignMessage\022\t\n\001c\030\001 " + "\001(\005\"\035\n\021TestAllExtensions*\010\010\001\020\200\200\200\200\002\"$\n\027Op" + "tionalGroup_extension\022\t\n\001a\030\021 \001(\005\"$\n\027Repe" + "atedGroup_extension\022\t\n\001a\030/ \001(\005\"\230\001\n\023TestN", "estedExtension29\n\004test\022$.protobuf_unitte" + "st.TestAllExtensions\030\352\007 \001(\t:\004test2F\n\027nes" + "ted_string_extension\022$.protobuf_unittest" + ".TestAllExtensions\030\353\007 \001(\t\"\325\005\n\014TestRequir" + "ed\022\t\n\001a\030\001 \002(\005\022\016\n\006dummy2\030\002 \001(\005\022\t\n\001b\030\003 \002(\005" + "\022\016\n\006dummy4\030\004 \001(\005\022\016\n\006dummy5\030\005 \001(\005\022\016\n\006dumm" + "y6\030\006 \001(\005\022\016\n\006dummy7\030\007 \001(\005\022\016\n\006dummy8\030\010 \001(\005" + "\022\016\n\006dummy9\030\t \001(\005\022\017\n\007dummy10\030\n \001(\005\022\017\n\007dum" + "my11\030\013 \001(\005\022\017\n\007dummy12\030\014 \001(\005\022\017\n\007dummy13\030\r" + " \001(\005\022\017\n\007dummy14\030\016 \001(\005\022\017\n\007dummy15\030\017 \001(\005\022\017", "\n\007dummy16\030\020 \001(\005\022\017\n\007dummy17\030\021 \001(\005\022\017\n\007dumm" + "y18\030\022 \001(\005\022\017\n\007dummy19\030\023 \001(\005\022\017\n\007dummy20\030\024 " + "\001(\005\022\017\n\007dummy21\030\025 \001(\005\022\017\n\007dummy22\030\026 \001(\005\022\017\n" + "\007dummy23\030\027 \001(\005\022\017\n\007dummy24\030\030 \001(\005\022\017\n\007dummy" + "25\030\031 \001(\005\022\017\n\007dummy26\030\032 \001(\005\022\017\n\007dummy27\030\033 \001" + "(\005\022\017\n\007dummy28\030\034 \001(\005\022\017\n\007dummy29\030\035 \001(\005\022\017\n\007" + "dummy30\030\036 \001(\005\022\017\n\007dummy31\030\037 \001(\005\022\017\n\007dummy3" + "2\030 \001(\005\022\t\n\001c\030! \002(\0052V\n\006single\022$.protobuf_" + "unittest.TestAllExtensions\030\350\007 \001(\0132\037.prot" + "obuf_unittest.TestRequired2U\n\005multi\022$.pr", "otobuf_unittest.TestAllExtensions\030\351\007 \003(\013" + "2\037.protobuf_unittest.TestRequired\"\232\001\n\023Te" + "stRequiredForeign\0229\n\020optional_message\030\001 " + "\001(\0132\037.protobuf_unittest.TestRequired\0229\n\020" + "repeated_message\030\002 \003(\0132\037.protobuf_unitte" + "st.TestRequired\022\r\n\005dummy\030\003 \001(\005\"Z\n\021TestFo" + "reignNested\022E\n\016foreign_nested\030\001 \001(\0132-.pr" + "otobuf_unittest.TestAllTypes.NestedMessa" + "ge\"\022\n\020TestEmptyMessage\"*\n\036TestEmptyMessa" + "geWithExtensions*\010\010\001\020\200\200\200\200\002\"7\n\033TestMultip", "leExtensionRanges*\004\010*\020+*\006\010\257 \020\224!*\n\010\200\200\004\020\200\200" + "\200\200\002\"4\n\030TestReallyLargeTagNumber\022\t\n\001a\030\001 \001" + "(\005\022\r\n\002bb\030\377\377\377\177 \001(\005\"U\n\024TestRecursiveMessag" + "e\0222\n\001a\030\001 \001(\0132\'.protobuf_unittest.TestRec" + "ursiveMessage\022\t\n\001i\030\002 \001(\005\"K\n\024TestMutualRe" + "cursionA\0223\n\002bb\030\001 \001(\0132\'.protobuf_unittest" + ".TestMutualRecursionB\"b\n\024TestMutualRecur" + "sionB\0222\n\001a\030\001 \001(\0132\'.protobuf_unittest.Tes" + "tMutualRecursionA\022\026\n\016optional_int32\030\002 \001(" + "\005\"\263\001\n\022TestDupFieldNumber\022\t\n\001a\030\001 \001(\005\0226\n\003f", "oo\030\002 \001(\n2).protobuf_unittest.TestDupFiel" + "dNumber.Foo\0226\n\003bar\030\003 \001(\n2).protobuf_unit" + "test.TestDupFieldNumber.Bar\032\020\n\003Foo\022\t\n\001a\030" + "\001 \001(\005\032\020\n\003Bar\022\t\n\001a\030\001 \001(\005\"L\n\020TestEagerMess" + "age\0228\n\013sub_message\030\001 \001(\0132\037.protobuf_unit" + "test.TestAllTypesB\002(\000\"K\n\017TestLazyMessage" + "\0228\n\013sub_message\030\001 \001(\0132\037.protobuf_unittes" + "t.TestAllTypesB\002(\001\"\200\002\n\030TestNestedMessage" + "HasBits\022Z\n\027optional_nested_message\030\001 \001(\013" + "29.protobuf_unittest.TestNestedMessageHa", "sBits.NestedMessage\032\207\001\n\rNestedMessage\022$\n" + "\034nestedmessage_repeated_int32\030\001 \003(\005\022P\n%n" + "estedmessage_repeated_foreignmessage\030\002 \003" + "(\0132!.protobuf_unittest.ForeignMessage\"\345\003" + "\n\027TestCamelCaseFieldNames\022\026\n\016PrimitiveFi" + "eld\030\001 \001(\005\022\023\n\013StringField\030\002 \001(\t\0221\n\tEnumFi" + "eld\030\003 \001(\0162\036.protobuf_unittest.ForeignEnu" + "m\0227\n\014MessageField\030\004 \001(\0132!.protobuf_unitt" + "est.ForeignMessage\022\034\n\020StringPieceField\030\005" + " \001(\tB\002\010\002\022\025\n\tCordField\030\006 \001(\tB\002\010\001\022\036\n\026Repea", "tedPrimitiveField\030\007 \003(\005\022\033\n\023RepeatedStrin" + "gField\030\010 \003(\t\0229\n\021RepeatedEnumField\030\t \003(\0162" + "\036.protobuf_unittest.ForeignEnum\022?\n\024Repea" + "tedMessageField\030\n \003(\0132!.protobuf_unittes" + "t.ForeignMessage\022$\n\030RepeatedStringPieceF" + "ield\030\013 \003(\tB\002\010\002\022\035\n\021RepeatedCordField\030\014 \003(" + "\tB\002\010\001\"U\n\022TestFieldOrderings\022\021\n\tmy_string" + "\030\013 \001(\t\022\016\n\006my_int\030\001 \001(\003\022\020\n\010my_float\030e \001(\002" + "*\004\010\002\020\013*\004\010\014\020e\"\270\007\n\030TestExtremeDefaultValue" + "s\022?\n\rescaped_bytes\030\001 \001(\014:(\\000\\001\\007\\0", "10\\014\\n\\r\\t\\013\\\\\\\'\\\"\\376\022 \n\014large_uint" + "32\030\002 \001(\r:\n4294967295\022*\n\014large_uint64\030\003 \001" + "(\004:\02418446744073709551615\022 \n\013small_int32\030" + "\004 \001(\005:\013-2147483647\022)\n\013small_int64\030\005 \001(\003:" + "\024-9223372036854775807\022\'\n\022really_small_in" + "t32\030\025 \001(\005:\013-2147483648\0220\n\022really_small_i" + "nt64\030\026 \001(\003:\024-9223372036854775808\022\030\n\013utf8" + "_string\030\006 \001(\t:\003\341\210\264\022\025\n\nzero_float\030\007 \001(\002:\001" + "0\022\024\n\tone_float\030\010 \001(\002:\0011\022\030\n\013small_float\030\t" + " \001(\002:\0031.5\022\036\n\022negative_one_float\030\n \001(\002:\002-", "1\022\034\n\016negative_float\030\013 \001(\002:\004-1.5\022\033\n\013large" + "_float\030\014 \001(\002:\0062e+008\022%\n\024small_negative_f" + "loat\030\r \001(\002:\007-8e-028\022\027\n\ninf_double\030\016 \001(\001:" + "\003inf\022\034\n\016neg_inf_double\030\017 \001(\001:\004-inf\022\027\n\nna" + "n_double\030\020 \001(\001:\003nan\022\026\n\tinf_float\030\021 \001(\002:\003" + "inf\022\033\n\rneg_inf_float\030\022 \001(\002:\004-inf\022\026\n\tnan_" + "float\030\023 \001(\002:\003nan\022+\n\014cpp_trigraph\030\024 \001(\t:\025" + "? ? ?? ?? ??? ??/ ??-\022 \n\020string_with_zer" + "o\030\027 \001(\t:\006hel\000lo\022\"\n\017bytes_with_zero\030\030 \001(\014" + ":\twor\\000ld\022(\n\026string_piece_with_zero\030\031 ", "\001(\t:\004ab\000cB\002\010\002\022 \n\016cord_with_zero\030\032 \001(\t:\0041" + "2\0003B\002\010\001\022&\n\022replacement_string\030\033 \001(\t:\n${u" + "nknown}\"K\n\021SparseEnumMessage\0226\n\013sparse_e" + "num\030\001 \001(\0162!.protobuf_unittest.TestSparse" + "Enum\"\031\n\tOneString\022\014\n\004data\030\001 \001(\t\"\032\n\nMoreS" + "tring\022\014\n\004data\030\001 \003(\t\"\030\n\010OneBytes\022\014\n\004data\030" + "\001 \001(\014\"\031\n\tMoreBytes\022\014\n\004data\030\001 \003(\014\"\034\n\014Int3" + "2Message\022\014\n\004data\030\001 \001(\005\"\035\n\rUint32Message\022" + "\014\n\004data\030\001 \001(\r\"\034\n\014Int64Message\022\014\n\004data\030\001 " + "\001(\003\"\035\n\rUint64Message\022\014\n\004data\030\001 \001(\004\"\033\n\013Bo", "olMessage\022\014\n\004data\030\001 \001(\010\"\320\001\n\tTestOneof\022\021\n" + "\007foo_int\030\001 \001(\005H\000\022\024\n\nfoo_string\030\002 \001(\tH\000\0226" + "\n\013foo_message\030\003 \001(\0132\037.protobuf_unittest." + "TestAllTypesH\000\0229\n\010foogroup\030\004 \001(\n2%.proto" + "buf_unittest.TestOneof.FooGroupH\000\032 \n\010Foo" + "Group\022\t\n\001a\030\005 \001(\005\022\t\n\001b\030\006 \001(\tB\005\n\003foo\"\347\001\n\034T" + "estOneofBackwardsCompatible\022\017\n\007foo_int\030\001" + " \001(\005\022\022\n\nfoo_string\030\002 \001(\t\0224\n\013foo_message\030" + "\003 \001(\0132\037.protobuf_unittest.TestAllTypes\022J" + "\n\010foogroup\030\004 \001(\n28.protobuf_unittest.Tes", "tOneofBackwardsCompatible.FooGroup\032 \n\010Fo" + "oGroup\022\t\n\001a\030\005 \001(\005\022\t\n\001b\030\006 \001(\t\"\236\006\n\nTestOne" + "of2\022\021\n\007foo_int\030\001 \001(\005H\000\022\024\n\nfoo_string\030\002 \001" + "(\tH\000\022\026\n\010foo_cord\030\003 \001(\tB\002\010\001H\000\022\036\n\020foo_stri" + "ng_piece\030\004 \001(\tB\002\010\002H\000\022\023\n\tfoo_bytes\030\005 \001(\014H" + "\000\022<\n\010foo_enum\030\006 \001(\0162(.protobuf_unittest." + "TestOneof2.NestedEnumH\000\022B\n\013foo_message\030\007" + " \001(\0132+.protobuf_unittest.TestOneof2.Nest" + "edMessageH\000\022:\n\010foogroup\030\010 \001(\n2&.protobuf" + "_unittest.TestOneof2.FooGroupH\000\022K\n\020foo_l", "azy_message\030\013 \001(\0132+.protobuf_unittest.Te" + "stOneof2.NestedMessageB\002(\001H\000\022\024\n\007bar_int\030" + "\014 \001(\005:\0015H\001\022\034\n\nbar_string\030\r \001(\t:\006STRINGH\001" + "\022\034\n\010bar_cord\030\016 \001(\t:\004CORDB\002\010\001H\001\022&\n\020bar_st" + "ring_piece\030\017 \001(\t:\006SPIECEB\002\010\002H\001\022\032\n\tbar_by" + "tes\030\020 \001(\014:\005BYTESH\001\022A\n\010bar_enum\030\021 \001(\0162(.p" + "rotobuf_unittest.TestOneof2.NestedEnum:\003" + "BARH\001\022\017\n\007baz_int\030\022 \001(\005\022\027\n\nbaz_string\030\023 \001" + "(\t:\003BAZ\032 \n\010FooGroup\022\t\n\001a\030\t \001(\005\022\t\n\001b\030\n \001(" + "\t\0323\n\rNestedMessage\022\017\n\007qux_int\030\001 \001(\003\022\021\n\tc", "orge_int\030\002 \003(\005\"\'\n\nNestedEnum\022\007\n\003FOO\020\001\022\007\n" + "\003BAR\020\002\022\007\n\003BAZ\020\003B\005\n\003fooB\005\n\003bar\"\270\001\n\021TestRe" + "quiredOneof\022\021\n\007foo_int\030\001 \001(\005H\000\022\024\n\nfoo_st" + "ring\030\002 \001(\tH\000\022I\n\013foo_message\030\003 \001(\01322.prot" + "obuf_unittest.TestRequiredOneof.NestedMe" + "ssageH\000\032(\n\rNestedMessage\022\027\n\017required_dou" + "ble\030\001 \002(\001B\005\n\003foo\"\252\003\n\017TestPackedTypes\022\030\n\014" + "packed_int32\030Z \003(\005B\002\020\001\022\030\n\014packed_int64\030[" + " \003(\003B\002\020\001\022\031\n\rpacked_uint32\030\\ \003(\rB\002\020\001\022\031\n\rp" + "acked_uint64\030] \003(\004B\002\020\001\022\031\n\rpacked_sint32\030", "^ \003(\021B\002\020\001\022\031\n\rpacked_sint64\030_ \003(\022B\002\020\001\022\032\n\016" + "packed_fixed32\030` \003(\007B\002\020\001\022\032\n\016packed_fixed" + "64\030a \003(\006B\002\020\001\022\033\n\017packed_sfixed32\030b \003(\017B\002\020" + "\001\022\033\n\017packed_sfixed64\030c \003(\020B\002\020\001\022\030\n\014packed" + "_float\030d \003(\002B\002\020\001\022\031\n\rpacked_double\030e \003(\001B" + "\002\020\001\022\027\n\013packed_bool\030f \003(\010B\002\020\001\0227\n\013packed_e" + "num\030g \003(\0162\036.protobuf_unittest.ForeignEnu" + "mB\002\020\001\"\310\003\n\021TestUnpackedTypes\022\032\n\016unpacked_" + "int32\030Z \003(\005B\002\020\000\022\032\n\016unpacked_int64\030[ \003(\003B" + "\002\020\000\022\033\n\017unpacked_uint32\030\\ \003(\rB\002\020\000\022\033\n\017unpa", "cked_uint64\030] \003(\004B\002\020\000\022\033\n\017unpacked_sint32" + "\030^ \003(\021B\002\020\000\022\033\n\017unpacked_sint64\030_ \003(\022B\002\020\000\022" + "\034\n\020unpacked_fixed32\030` \003(\007B\002\020\000\022\034\n\020unpacke" + "d_fixed64\030a \003(\006B\002\020\000\022\035\n\021unpacked_sfixed32" + "\030b \003(\017B\002\020\000\022\035\n\021unpacked_sfixed64\030c \003(\020B\002\020" + "\000\022\032\n\016unpacked_float\030d \003(\002B\002\020\000\022\033\n\017unpacke" + "d_double\030e \003(\001B\002\020\000\022\031\n\runpacked_bool\030f \003(" + "\010B\002\020\000\0229\n\runpacked_enum\030g \003(\0162\036.protobuf_" + "unittest.ForeignEnumB\002\020\000\" \n\024TestPackedEx" + "tensions*\010\010\001\020\200\200\200\200\002\"\"\n\026TestUnpackedExtens", "ions*\010\010\001\020\200\200\200\200\002\"\231\004\n\025TestDynamicExtensions" + "\022\031\n\020scalar_extension\030\320\017 \001(\007\0227\n\016enum_exte" + "nsion\030\321\017 \001(\0162\036.protobuf_unittest.Foreign" + "Enum\022Y\n\026dynamic_enum_extension\030\322\017 \001(\01628." + "protobuf_unittest.TestDynamicExtensions." + "DynamicEnumType\022=\n\021message_extension\030\323\017 " + "\001(\0132!.protobuf_unittest.ForeignMessage\022_" + "\n\031dynamic_message_extension\030\324\017 \001(\0132;.pro" + "tobuf_unittest.TestDynamicExtensions.Dyn" + "amicMessageType\022\033\n\022repeated_extension\030\325\017", " \003(\t\022\035\n\020packed_extension\030\326\017 \003(\021B\002\020\001\032,\n\022D" + "ynamicMessageType\022\026\n\rdynamic_field\030\264\020 \001(" + "\005\"G\n\017DynamicEnumType\022\020\n\013DYNAMIC_FOO\020\230\021\022\020" + "\n\013DYNAMIC_BAR\020\231\021\022\020\n\013DYNAMIC_BAZ\020\232\021\"\300\001\n#T" + "estRepeatedScalarDifferentTagSizes\022\030\n\020re" + "peated_fixed32\030\014 \003(\007\022\026\n\016repeated_int32\030\r" + " \003(\005\022\031\n\020repeated_fixed64\030\376\017 \003(\006\022\027\n\016repea" + "ted_int64\030\377\017 \003(\003\022\030\n\016repeated_float\030\376\377\017 \003" + "(\002\022\031\n\017repeated_uint64\030\377\377\017 \003(\004\"\367\t\n\020TestPa" + "rsingMerge\022;\n\022required_all_types\030\001 \002(\0132\037", ".protobuf_unittest.TestAllTypes\022;\n\022optio" + "nal_all_types\030\002 \001(\0132\037.protobuf_unittest." + "TestAllTypes\022;\n\022repeated_all_types\030\003 \003(\013" + "2\037.protobuf_unittest.TestAllTypes\022H\n\ropt" + "ionalgroup\030\n \001(\n21.protobuf_unittest.Tes" + "tParsingMerge.OptionalGroup\022H\n\rrepeatedg" + "roup\030\024 \003(\n21.protobuf_unittest.TestParsi" + "ngMerge.RepeatedGroup\032\252\004\n\027RepeatedFields" + "Generator\022/\n\006field1\030\001 \003(\0132\037.protobuf_uni" + "ttest.TestAllTypes\022/\n\006field2\030\002 \003(\0132\037.pro", "tobuf_unittest.TestAllTypes\022/\n\006field3\030\003 " + "\003(\0132\037.protobuf_unittest.TestAllTypes\022R\n\006" + "group1\030\n \003(\n2B.protobuf_unittest.TestPar" + "singMerge.RepeatedFieldsGenerator.Group1" + "\022R\n\006group2\030\024 \003(\n2B.protobuf_unittest.Tes" + "tParsingMerge.RepeatedFieldsGenerator.Gr" + "oup2\022.\n\004ext1\030\350\007 \003(\0132\037.protobuf_unittest." + "TestAllTypes\022.\n\004ext2\030\351\007 \003(\0132\037.protobuf_u" + "nittest.TestAllTypes\0329\n\006Group1\022/\n\006field1" + "\030\013 \001(\0132\037.protobuf_unittest.TestAllTypes\032", "9\n\006Group2\022/\n\006field1\030\025 \001(\0132\037.protobuf_uni" + "ttest.TestAllTypes\032R\n\rOptionalGroup\022A\n\030o" + "ptional_group_all_types\030\013 \001(\0132\037.protobuf" + "_unittest.TestAllTypes\032R\n\rRepeatedGroup\022" + "A\n\030repeated_group_all_types\030\025 \001(\0132\037.prot" + "obuf_unittest.TestAllTypes*\t\010\350\007\020\200\200\200\200\0022[\n" + "\014optional_ext\022#.protobuf_unittest.TestPa" + "rsingMerge\030\350\007 \001(\0132\037.protobuf_unittest.Te" + "stAllTypes2[\n\014repeated_ext\022#.protobuf_un" + "ittest.TestParsingMerge\030\351\007 \003(\0132\037.protobu", "f_unittest.TestAllTypes\"D\n\033TestCommentIn" + "jectionMessage\022%\n\001a\030\001 \001(\t:\032*/ <- Neither" + " should this.\"\014\n\nFooRequest\"\r\n\013FooRespon" + "se\"\022\n\020FooClientMessage\"\022\n\020FooServerMessa" + "ge\"\014\n\nBarRequest\"\r\n\013BarResponse*@\n\013Forei" + "gnEnum\022\017\n\013FOREIGN_FOO\020\004\022\017\n\013FOREIGN_BAR\020\005" + "\022\017\n\013FOREIGN_BAZ\020\006*K\n\024TestEnumWithDupValu" + "e\022\010\n\004FOO1\020\001\022\010\n\004BAR1\020\002\022\007\n\003BAZ\020\003\022\010\n\004FOO2\020\001" + "\022\010\n\004BAR2\020\002\032\002\020\001*\211\001\n\016TestSparseEnum\022\014\n\010SPA" + "RSE_A\020{\022\016\n\010SPARSE_B\020\246\347\003\022\017\n\010SPARSE_C\020\262\261\200\006", "\022\025\n\010SPARSE_D\020\361\377\377\377\377\377\377\377\377\001\022\025\n\010SPARSE_E\020\264\336\374\377" + "\377\377\377\377\377\001\022\014\n\010SPARSE_F\020\000\022\014\n\010SPARSE_G\020\0022\231\001\n\013T" + "estService\022D\n\003Foo\022\035.protobuf_unittest.Fo" + "oRequest\032\036.protobuf_unittest.FooResponse" + "\022D\n\003Bar\022\035.protobuf_unittest.BarRequest\032\036" + ".protobuf_unittest.BarResponse:F\n\030option" + "al_int32_extension\022$.protobuf_unittest.T" + "estAllExtensions\030\001 \001(\005:F\n\030optional_int64" + "_extension\022$.protobuf_unittest.TestAllEx" + "tensions\030\002 \001(\003:G\n\031optional_uint32_extens", "ion\022$.protobuf_unittest.TestAllExtension" + "s\030\003 \001(\r:G\n\031optional_uint64_extension\022$.p" + "rotobuf_unittest.TestAllExtensions\030\004 \001(\004" + ":G\n\031optional_sint32_extension\022$.protobuf" + "_unittest.TestAllExtensions\030\005 \001(\021:G\n\031opt" + "ional_sint64_extension\022$.protobuf_unitte" + "st.TestAllExtensions\030\006 \001(\022:H\n\032optional_f" + "ixed32_extension\022$.protobuf_unittest.Tes" + "tAllExtensions\030\007 \001(\007:H\n\032optional_fixed64" + "_extension\022$.protobuf_unittest.TestAllEx", "tensions\030\010 \001(\006:I\n\033optional_sfixed32_exte" + "nsion\022$.protobuf_unittest.TestAllExtensi" + "ons\030\t \001(\017:I\n\033optional_sfixed64_extension" + "\022$.protobuf_unittest.TestAllExtensions\030\n" + " \001(\020:F\n\030optional_float_extension\022$.proto" + "buf_unittest.TestAllExtensions\030\013 \001(\002:G\n\031" + "optional_double_extension\022$.protobuf_uni" + "ttest.TestAllExtensions\030\014 \001(\001:E\n\027optiona" + "l_bool_extension\022$.protobuf_unittest.Tes" + "tAllExtensions\030\r \001(\010:G\n\031optional_string_", "extension\022$.protobuf_unittest.TestAllExt" + "ensions\030\016 \001(\t:F\n\030optional_bytes_extensio" + "n\022$.protobuf_unittest.TestAllExtensions\030" + "\017 \001(\014:q\n\027optionalgroup_extension\022$.proto" + "buf_unittest.TestAllExtensions\030\020 \001(\n2*.p" + "rotobuf_unittest.OptionalGroup_extension" + ":~\n!optional_nested_message_extension\022$." + "protobuf_unittest.TestAllExtensions\030\022 \001(" + "\0132-.protobuf_unittest.TestAllTypes.Neste" + "dMessage:s\n\"optional_foreign_message_ext", "ension\022$.protobuf_unittest.TestAllExtens" + "ions\030\023 \001(\0132!.protobuf_unittest.ForeignMe" + "ssage:x\n!optional_import_message_extensi" + "on\022$.protobuf_unittest.TestAllExtensions" + "\030\024 \001(\0132\'.protobuf_unittest_import.Import" + "Message:x\n\036optional_nested_enum_extensio" + "n\022$.protobuf_unittest.TestAllExtensions\030" + "\025 \001(\0162*.protobuf_unittest.TestAllTypes.N" + "estedEnum:m\n\037optional_foreign_enum_exten" + "sion\022$.protobuf_unittest.TestAllExtensio", "ns\030\026 \001(\0162\036.protobuf_unittest.ForeignEnum" + ":r\n\036optional_import_enum_extension\022$.pro" + "tobuf_unittest.TestAllExtensions\030\027 \001(\0162$" + ".protobuf_unittest_import.ImportEnum:Q\n\037" + "optional_string_piece_extension\022$.protob" + "uf_unittest.TestAllExtensions\030\030 \001(\tB\002\010\002:" + "I\n\027optional_cord_extension\022$.protobuf_un" + "ittest.TestAllExtensions\030\031 \001(\tB\002\010\001:\205\001\n(o" + "ptional_public_import_message_extension\022" + "$.protobuf_unittest.TestAllExtensions\030\032 ", "\001(\0132-.protobuf_unittest_import.PublicImp" + "ortMessage:\200\001\n\037optional_lazy_message_ext" + "ension\022$.protobuf_unittest.TestAllExtens" + "ions\030\033 \001(\0132-.protobuf_unittest.TestAllTy" + "pes.NestedMessageB\002(\001:F\n\030repeated_int32_" + "extension\022$.protobuf_unittest.TestAllExt" + "ensions\030\037 \003(\005:F\n\030repeated_int64_extensio" + "n\022$.protobuf_unittest.TestAllExtensions\030" + " \003(\003:G\n\031repeated_uint32_extension\022$.pro" + "tobuf_unittest.TestAllExtensions\030! \003(\r:G", "\n\031repeated_uint64_extension\022$.protobuf_u" + "nittest.TestAllExtensions\030\" \003(\004:G\n\031repea" + "ted_sint32_extension\022$.protobuf_unittest" + ".TestAllExtensions\030# \003(\021:G\n\031repeated_sin" + "t64_extension\022$.protobuf_unittest.TestAl" + "lExtensions\030$ \003(\022:H\n\032repeated_fixed32_ex" + "tension\022$.protobuf_unittest.TestAllExten" + "sions\030% \003(\007:H\n\032repeated_fixed64_extensio" + "n\022$.protobuf_unittest.TestAllExtensions\030" + "& \003(\006:I\n\033repeated_sfixed32_extension\022$.p", "rotobuf_unittest.TestAllExtensions\030\' \003(\017" + ":I\n\033repeated_sfixed64_extension\022$.protob" + "uf_unittest.TestAllExtensions\030( \003(\020:F\n\030r" + "epeated_float_extension\022$.protobuf_unitt" + "est.TestAllExtensions\030) \003(\002:G\n\031repeated_" + "double_extension\022$.protobuf_unittest.Tes" + "tAllExtensions\030* \003(\001:E\n\027repeated_bool_ex" + "tension\022$.protobuf_unittest.TestAllExten" + "sions\030+ \003(\010:G\n\031repeated_string_extension" + "\022$.protobuf_unittest.TestAllExtensions\030,", " \003(\t:F\n\030repeated_bytes_extension\022$.proto" + "buf_unittest.TestAllExtensions\030- \003(\014:q\n\027" + "repeatedgroup_extension\022$.protobuf_unitt" + "est.TestAllExtensions\030. \003(\n2*.protobuf_u" + "nittest.RepeatedGroup_extension:~\n!repea" + "ted_nested_message_extension\022$.protobuf_" + "unittest.TestAllExtensions\0300 \003(\0132-.proto" + "buf_unittest.TestAllTypes.NestedMessage:" + "s\n\"repeated_foreign_message_extension\022$." + "protobuf_unittest.TestAllExtensions\0301 \003(", "\0132!.protobuf_unittest.ForeignMessage:x\n!" + "repeated_import_message_extension\022$.prot" + "obuf_unittest.TestAllExtensions\0302 \003(\0132\'." + "protobuf_unittest_import.ImportMessage:x" + "\n\036repeated_nested_enum_extension\022$.proto" + "buf_unittest.TestAllExtensions\0303 \003(\0162*.p" + "rotobuf_unittest.TestAllTypes.NestedEnum" + ":m\n\037repeated_foreign_enum_extension\022$.pr" + "otobuf_unittest.TestAllExtensions\0304 \003(\0162" + "\036.protobuf_unittest.ForeignEnum:r\n\036repea", "ted_import_enum_extension\022$.protobuf_uni" + "ttest.TestAllExtensions\0305 \003(\0162$.protobuf" + "_unittest_import.ImportEnum:Q\n\037repeated_" + "string_piece_extension\022$.protobuf_unitte" + "st.TestAllExtensions\0306 \003(\tB\002\010\002:I\n\027repeat" + "ed_cord_extension\022$.protobuf_unittest.Te" + "stAllExtensions\0307 \003(\tB\002\010\001:\200\001\n\037repeated_l" + "azy_message_extension\022$.protobuf_unittes" + "t.TestAllExtensions\0309 \003(\0132-.protobuf_uni" + "ttest.TestAllTypes.NestedMessageB\002(\001:I\n\027", "default_int32_extension\022$.protobuf_unitt" + "est.TestAllExtensions\030= \001(\005:\00241:I\n\027defau" + "lt_int64_extension\022$.protobuf_unittest.T" + "estAllExtensions\030> \001(\003:\00242:J\n\030default_ui" + "nt32_extension\022$.protobuf_unittest.TestA" + "llExtensions\030? \001(\r:\00243:J\n\030default_uint64" + "_extension\022$.protobuf_unittest.TestAllEx" + "tensions\030@ \001(\004:\00244:K\n\030default_sint32_ext" + "ension\022$.protobuf_unittest.TestAllExtens" + "ions\030A \001(\021:\003-45:J\n\030default_sint64_extens", "ion\022$.protobuf_unittest.TestAllExtension" + "s\030B \001(\022:\00246:K\n\031default_fixed32_extension" + "\022$.protobuf_unittest.TestAllExtensions\030C" + " \001(\007:\00247:K\n\031default_fixed64_extension\022$." + "protobuf_unittest.TestAllExtensions\030D \001(" + "\006:\00248:L\n\032default_sfixed32_extension\022$.pr" + "otobuf_unittest.TestAllExtensions\030E \001(\017:" + "\00249:M\n\032default_sfixed64_extension\022$.prot" + "obuf_unittest.TestAllExtensions\030F \001(\020:\003-" + "50:K\n\027default_float_extension\022$.protobuf", "_unittest.TestAllExtensions\030G \001(\002:\00451.5:" + "M\n\030default_double_extension\022$.protobuf_u" + "nittest.TestAllExtensions\030H \001(\001:\00552000:J" + "\n\026default_bool_extension\022$.protobuf_unit" + "test.TestAllExtensions\030I \001(\010:\004true:M\n\030de" + "fault_string_extension\022$.protobuf_unitte" + "st.TestAllExtensions\030J \001(\t:\005hello:L\n\027def" + "ault_bytes_extension\022$.protobuf_unittest" + ".TestAllExtensions\030K \001(\014:\005world:|\n\035defau" + "lt_nested_enum_extension\022$.protobuf_unit", "test.TestAllExtensions\030Q \001(\0162*.protobuf_" + "unittest.TestAllTypes.NestedEnum:\003BAR:y\n" + "\036default_foreign_enum_extension\022$.protob" + "uf_unittest.TestAllExtensions\030R \001(\0162\036.pr" + "otobuf_unittest.ForeignEnum:\013FOREIGN_BAR" + ":}\n\035default_import_enum_extension\022$.prot" + "obuf_unittest.TestAllExtensions\030S \001(\0162$." + "protobuf_unittest_import.ImportEnum:\nIMP" + "ORT_BAR:U\n\036default_string_piece_extensio" + "n\022$.protobuf_unittest.TestAllExtensions\030", "T \001(\t:\003abcB\002\010\002:M\n\026default_cord_extension" + "\022$.protobuf_unittest.TestAllExtensions\030U" + " \001(\t:\003123B\002\010\001:D\n\026oneof_uint32_extension\022" + "$.protobuf_unittest.TestAllExtensions\030o " + "\001(\r:{\n\036oneof_nested_message_extension\022$." + "protobuf_unittest.TestAllExtensions\030p \001(" + "\0132-.protobuf_unittest.TestAllTypes.Neste" + "dMessage:D\n\026oneof_string_extension\022$.pro" + "tobuf_unittest.TestAllExtensions\030q \001(\t:C" + "\n\025oneof_bytes_extension\022$.protobuf_unitt", "est.TestAllExtensions\030r \001(\014:B\n\023my_extens" + "ion_string\022%.protobuf_unittest.TestField" + "Orderings\0302 \001(\t:?\n\020my_extension_int\022%.pr" + "otobuf_unittest.TestFieldOrderings\030\005 \001(\005" + ":K\n\026packed_int32_extension\022\'.protobuf_un" + "ittest.TestPackedExtensions\030Z \003(\005B\002\020\001:K\n" + "\026packed_int64_extension\022\'.protobuf_unitt" + "est.TestPackedExtensions\030[ \003(\003B\002\020\001:L\n\027pa" + "cked_uint32_extension\022\'.protobuf_unittes" + "t.TestPackedExtensions\030\\ \003(\rB\002\020\001:L\n\027pack", "ed_uint64_extension\022\'.protobuf_unittest." + "TestPackedExtensions\030] \003(\004B\002\020\001:L\n\027packed" + "_sint32_extension\022\'.protobuf_unittest.Te" + "stPackedExtensions\030^ \003(\021B\002\020\001:L\n\027packed_s" + "int64_extension\022\'.protobuf_unittest.Test" + "PackedExtensions\030_ \003(\022B\002\020\001:M\n\030packed_fix" + "ed32_extension\022\'.protobuf_unittest.TestP" + "ackedExtensions\030` \003(\007B\002\020\001:M\n\030packed_fixe" + "d64_extension\022\'.protobuf_unittest.TestPa" + "ckedExtensions\030a \003(\006B\002\020\001:N\n\031packed_sfixe", "d32_extension\022\'.protobuf_unittest.TestPa" + "ckedExtensions\030b \003(\017B\002\020\001:N\n\031packed_sfixe" + "d64_extension\022\'.protobuf_unittest.TestPa" + "ckedExtensions\030c \003(\020B\002\020\001:K\n\026packed_float" + "_extension\022\'.protobuf_unittest.TestPacke" + "dExtensions\030d \003(\002B\002\020\001:L\n\027packed_double_e" + "xtension\022\'.protobuf_unittest.TestPackedE" + "xtensions\030e \003(\001B\002\020\001:J\n\025packed_bool_exten" + "sion\022\'.protobuf_unittest.TestPackedExten" + "sions\030f \003(\010B\002\020\001:j\n\025packed_enum_extension", "\022\'.protobuf_unittest.TestPackedExtension" + "s\030g \003(\0162\036.protobuf_unittest.ForeignEnumB" + "\002\020\001:O\n\030unpacked_int32_extension\022).protob" + "uf_unittest.TestUnpackedExtensions\030Z \003(\005" + "B\002\020\000:O\n\030unpacked_int64_extension\022).proto" + "buf_unittest.TestUnpackedExtensions\030[ \003(" + "\003B\002\020\000:P\n\031unpacked_uint32_extension\022).pro" + "tobuf_unittest.TestUnpackedExtensions\030\\ " + "\003(\rB\002\020\000:P\n\031unpacked_uint64_extension\022).p" + "rotobuf_unittest.TestUnpackedExtensions\030", "] \003(\004B\002\020\000:P\n\031unpacked_sint32_extension\022)" + ".protobuf_unittest.TestUnpackedExtension" + "s\030^ \003(\021B\002\020\000:P\n\031unpacked_sint64_extension" + "\022).protobuf_unittest.TestUnpackedExtensi" + "ons\030_ \003(\022B\002\020\000:Q\n\032unpacked_fixed32_extens" + "ion\022).protobuf_unittest.TestUnpackedExte" + "nsions\030` \003(\007B\002\020\000:Q\n\032unpacked_fixed64_ext" + "ension\022).protobuf_unittest.TestUnpackedE" + "xtensions\030a \003(\006B\002\020\000:R\n\033unpacked_sfixed32" + "_extension\022).protobuf_unittest.TestUnpac", "kedExtensions\030b \003(\017B\002\020\000:R\n\033unpacked_sfix" + "ed64_extension\022).protobuf_unittest.TestU" + "npackedExtensions\030c \003(\020B\002\020\000:O\n\030unpacked_" + "float_extension\022).protobuf_unittest.Test" + "UnpackedExtensions\030d \003(\002B\002\020\000:P\n\031unpacked" + "_double_extension\022).protobuf_unittest.Te" + "stUnpackedExtensions\030e \003(\001B\002\020\000:N\n\027unpack" + "ed_bool_extension\022).protobuf_unittest.Te" + "stUnpackedExtensions\030f \003(\010B\002\020\000:n\n\027unpack" + "ed_enum_extension\022).protobuf_unittest.Te", "stUnpackedExtensions\030g \003(\0162\036.protobuf_un" + "ittest.ForeignEnumB\002\020\000B\032B\rUnittestProtoH" + "\001\200\001\001\210\001\001\220\001\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.test.UnittestImport.getDescriptor(), }, assigner); internal_static_protobuf_unittest_TestAllTypes_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protobuf_unittest_TestAllTypes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestAllTypes_descriptor, new java.lang.String[] { "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalGroup", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalImportMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalImportEnum", "OptionalStringPiece", "OptionalCord", "OptionalPublicImportMessage", "OptionalLazyMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedGroup", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedStringPiece", "RepeatedCord", "RepeatedLazyMessage", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "DefaultNestedEnum", "DefaultForeignEnum", "DefaultImportEnum", "DefaultStringPiece", "DefaultCord", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OneofField", }); internal_static_protobuf_unittest_TestAllTypes_NestedMessage_descriptor = internal_static_protobuf_unittest_TestAllTypes_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestAllTypes_NestedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestAllTypes_NestedMessage_descriptor, new java.lang.String[] { "Bb", }); internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_descriptor = internal_static_protobuf_unittest_TestAllTypes_descriptor.getNestedTypes().get(1); internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestAllTypes_OptionalGroup_descriptor, new java.lang.String[] { "A", }); internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_descriptor = internal_static_protobuf_unittest_TestAllTypes_descriptor.getNestedTypes().get(2); internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestAllTypes_RepeatedGroup_descriptor, new java.lang.String[] { "A", }); internal_static_protobuf_unittest_NestedTestAllTypes_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protobuf_unittest_NestedTestAllTypes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_NestedTestAllTypes_descriptor, new java.lang.String[] { "Child", "Payload", }); internal_static_protobuf_unittest_TestDeprecatedFields_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protobuf_unittest_TestDeprecatedFields_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestDeprecatedFields_descriptor, new java.lang.String[] { "DeprecatedInt32", }); internal_static_protobuf_unittest_ForeignMessage_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protobuf_unittest_ForeignMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_ForeignMessage_descriptor, new java.lang.String[] { "C", }); internal_static_protobuf_unittest_TestAllExtensions_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_protobuf_unittest_TestAllExtensions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestAllExtensions_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_OptionalGroup_extension_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_protobuf_unittest_OptionalGroup_extension_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_OptionalGroup_extension_descriptor, new java.lang.String[] { "A", }); internal_static_protobuf_unittest_RepeatedGroup_extension_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_protobuf_unittest_RepeatedGroup_extension_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_RepeatedGroup_extension_descriptor, new java.lang.String[] { "A", }); internal_static_protobuf_unittest_TestNestedExtension_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_protobuf_unittest_TestNestedExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestNestedExtension_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_TestRequired_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_protobuf_unittest_TestRequired_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestRequired_descriptor, new java.lang.String[] { "A", "Dummy2", "B", "Dummy4", "Dummy5", "Dummy6", "Dummy7", "Dummy8", "Dummy9", "Dummy10", "Dummy11", "Dummy12", "Dummy13", "Dummy14", "Dummy15", "Dummy16", "Dummy17", "Dummy18", "Dummy19", "Dummy20", "Dummy21", "Dummy22", "Dummy23", "Dummy24", "Dummy25", "Dummy26", "Dummy27", "Dummy28", "Dummy29", "Dummy30", "Dummy31", "Dummy32", "C", }); internal_static_protobuf_unittest_TestRequiredForeign_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_protobuf_unittest_TestRequiredForeign_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestRequiredForeign_descriptor, new java.lang.String[] { "OptionalMessage", "RepeatedMessage", "Dummy", }); internal_static_protobuf_unittest_TestForeignNested_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_protobuf_unittest_TestForeignNested_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestForeignNested_descriptor, new java.lang.String[] { "ForeignNested", }); internal_static_protobuf_unittest_TestEmptyMessage_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_protobuf_unittest_TestEmptyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestEmptyMessage_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_TestEmptyMessageWithExtensions_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_protobuf_unittest_TestEmptyMessageWithExtensions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestEmptyMessageWithExtensions_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_TestMultipleExtensionRanges_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_protobuf_unittest_TestMultipleExtensionRanges_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestMultipleExtensionRanges_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_TestReallyLargeTagNumber_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_protobuf_unittest_TestReallyLargeTagNumber_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestReallyLargeTagNumber_descriptor, new java.lang.String[] { "A", "Bb", }); internal_static_protobuf_unittest_TestRecursiveMessage_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_protobuf_unittest_TestRecursiveMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestRecursiveMessage_descriptor, new java.lang.String[] { "A", "I", }); internal_static_protobuf_unittest_TestMutualRecursionA_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_protobuf_unittest_TestMutualRecursionA_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestMutualRecursionA_descriptor, new java.lang.String[] { "Bb", }); internal_static_protobuf_unittest_TestMutualRecursionB_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_protobuf_unittest_TestMutualRecursionB_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestMutualRecursionB_descriptor, new java.lang.String[] { "A", "OptionalInt32", }); internal_static_protobuf_unittest_TestDupFieldNumber_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_protobuf_unittest_TestDupFieldNumber_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestDupFieldNumber_descriptor, new java.lang.String[] { "A", "Foo", "Bar", }); internal_static_protobuf_unittest_TestDupFieldNumber_Foo_descriptor = internal_static_protobuf_unittest_TestDupFieldNumber_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestDupFieldNumber_Foo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestDupFieldNumber_Foo_descriptor, new java.lang.String[] { "A", }); internal_static_protobuf_unittest_TestDupFieldNumber_Bar_descriptor = internal_static_protobuf_unittest_TestDupFieldNumber_descriptor.getNestedTypes().get(1); internal_static_protobuf_unittest_TestDupFieldNumber_Bar_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestDupFieldNumber_Bar_descriptor, new java.lang.String[] { "A", }); internal_static_protobuf_unittest_TestEagerMessage_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_protobuf_unittest_TestEagerMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestEagerMessage_descriptor, new java.lang.String[] { "SubMessage", }); internal_static_protobuf_unittest_TestLazyMessage_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_protobuf_unittest_TestLazyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestLazyMessage_descriptor, new java.lang.String[] { "SubMessage", }); internal_static_protobuf_unittest_TestNestedMessageHasBits_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_protobuf_unittest_TestNestedMessageHasBits_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestNestedMessageHasBits_descriptor, new java.lang.String[] { "OptionalNestedMessage", }); internal_static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage_descriptor = internal_static_protobuf_unittest_TestNestedMessageHasBits_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage_descriptor, new java.lang.String[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", }); internal_static_protobuf_unittest_TestCamelCaseFieldNames_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_protobuf_unittest_TestCamelCaseFieldNames_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestCamelCaseFieldNames_descriptor, new java.lang.String[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", }); internal_static_protobuf_unittest_TestFieldOrderings_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_protobuf_unittest_TestFieldOrderings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestFieldOrderings_descriptor, new java.lang.String[] { "MyString", "MyInt", "MyFloat", }); internal_static_protobuf_unittest_TestExtremeDefaultValues_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_protobuf_unittest_TestExtremeDefaultValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestExtremeDefaultValues_descriptor, new java.lang.String[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "ReallySmallInt32", "ReallySmallInt64", "Utf8String", "ZeroFloat", "OneFloat", "SmallFloat", "NegativeOneFloat", "NegativeFloat", "LargeFloat", "SmallNegativeFloat", "InfDouble", "NegInfDouble", "NanDouble", "InfFloat", "NegInfFloat", "NanFloat", "CppTrigraph", "StringWithZero", "BytesWithZero", "StringPieceWithZero", "CordWithZero", "ReplacementString", }); internal_static_protobuf_unittest_SparseEnumMessage_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_protobuf_unittest_SparseEnumMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_SparseEnumMessage_descriptor, new java.lang.String[] { "SparseEnum", }); internal_static_protobuf_unittest_OneString_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_protobuf_unittest_OneString_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_OneString_descriptor, new java.lang.String[] { "Data", }); internal_static_protobuf_unittest_MoreString_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_protobuf_unittest_MoreString_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_MoreString_descriptor, new java.lang.String[] { "Data", }); internal_static_protobuf_unittest_OneBytes_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_protobuf_unittest_OneBytes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_OneBytes_descriptor, new java.lang.String[] { "Data", }); internal_static_protobuf_unittest_MoreBytes_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_protobuf_unittest_MoreBytes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_MoreBytes_descriptor, new java.lang.String[] { "Data", }); internal_static_protobuf_unittest_Int32Message_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_protobuf_unittest_Int32Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_Int32Message_descriptor, new java.lang.String[] { "Data", }); internal_static_protobuf_unittest_Uint32Message_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_protobuf_unittest_Uint32Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_Uint32Message_descriptor, new java.lang.String[] { "Data", }); internal_static_protobuf_unittest_Int64Message_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_protobuf_unittest_Int64Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_Int64Message_descriptor, new java.lang.String[] { "Data", }); internal_static_protobuf_unittest_Uint64Message_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_protobuf_unittest_Uint64Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_Uint64Message_descriptor, new java.lang.String[] { "Data", }); internal_static_protobuf_unittest_BoolMessage_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_protobuf_unittest_BoolMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_BoolMessage_descriptor, new java.lang.String[] { "Data", }); internal_static_protobuf_unittest_TestOneof_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_protobuf_unittest_TestOneof_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestOneof_descriptor, new java.lang.String[] { "FooInt", "FooString", "FooMessage", "FooGroup", "Foo", }); internal_static_protobuf_unittest_TestOneof_FooGroup_descriptor = internal_static_protobuf_unittest_TestOneof_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestOneof_FooGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestOneof_FooGroup_descriptor, new java.lang.String[] { "A", "B", }); internal_static_protobuf_unittest_TestOneofBackwardsCompatible_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_protobuf_unittest_TestOneofBackwardsCompatible_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestOneofBackwardsCompatible_descriptor, new java.lang.String[] { "FooInt", "FooString", "FooMessage", "FooGroup", }); internal_static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup_descriptor = internal_static_protobuf_unittest_TestOneofBackwardsCompatible_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestOneofBackwardsCompatible_FooGroup_descriptor, new java.lang.String[] { "A", "B", }); internal_static_protobuf_unittest_TestOneof2_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_protobuf_unittest_TestOneof2_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestOneof2_descriptor, new java.lang.String[] { "FooInt", "FooString", "FooCord", "FooStringPiece", "FooBytes", "FooEnum", "FooMessage", "FooGroup", "FooLazyMessage", "BarInt", "BarString", "BarCord", "BarStringPiece", "BarBytes", "BarEnum", "BazInt", "BazString", "Foo", "Bar", }); internal_static_protobuf_unittest_TestOneof2_FooGroup_descriptor = internal_static_protobuf_unittest_TestOneof2_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestOneof2_FooGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestOneof2_FooGroup_descriptor, new java.lang.String[] { "A", "B", }); internal_static_protobuf_unittest_TestOneof2_NestedMessage_descriptor = internal_static_protobuf_unittest_TestOneof2_descriptor.getNestedTypes().get(1); internal_static_protobuf_unittest_TestOneof2_NestedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestOneof2_NestedMessage_descriptor, new java.lang.String[] { "QuxInt", "CorgeInt", }); internal_static_protobuf_unittest_TestRequiredOneof_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_protobuf_unittest_TestRequiredOneof_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestRequiredOneof_descriptor, new java.lang.String[] { "FooInt", "FooString", "FooMessage", "Foo", }); internal_static_protobuf_unittest_TestRequiredOneof_NestedMessage_descriptor = internal_static_protobuf_unittest_TestRequiredOneof_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestRequiredOneof_NestedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestRequiredOneof_NestedMessage_descriptor, new java.lang.String[] { "RequiredDouble", }); internal_static_protobuf_unittest_TestPackedTypes_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_protobuf_unittest_TestPackedTypes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestPackedTypes_descriptor, new java.lang.String[] { "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum", }); internal_static_protobuf_unittest_TestUnpackedTypes_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_protobuf_unittest_TestUnpackedTypes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestUnpackedTypes_descriptor, new java.lang.String[] { "UnpackedInt32", "UnpackedInt64", "UnpackedUint32", "UnpackedUint64", "UnpackedSint32", "UnpackedSint64", "UnpackedFixed32", "UnpackedFixed64", "UnpackedSfixed32", "UnpackedSfixed64", "UnpackedFloat", "UnpackedDouble", "UnpackedBool", "UnpackedEnum", }); internal_static_protobuf_unittest_TestPackedExtensions_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_protobuf_unittest_TestPackedExtensions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestPackedExtensions_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_TestUnpackedExtensions_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_protobuf_unittest_TestUnpackedExtensions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestUnpackedExtensions_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_TestDynamicExtensions_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_protobuf_unittest_TestDynamicExtensions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestDynamicExtensions_descriptor, new java.lang.String[] { "ScalarExtension", "EnumExtension", "DynamicEnumExtension", "MessageExtension", "DynamicMessageExtension", "RepeatedExtension", "PackedExtension", }); internal_static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType_descriptor = internal_static_protobuf_unittest_TestDynamicExtensions_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestDynamicExtensions_DynamicMessageType_descriptor, new java.lang.String[] { "DynamicField", }); internal_static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestRepeatedScalarDifferentTagSizes_descriptor, new java.lang.String[] { "RepeatedFixed32", "RepeatedInt32", "RepeatedFixed64", "RepeatedInt64", "RepeatedFloat", "RepeatedUint64", }); internal_static_protobuf_unittest_TestParsingMerge_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_protobuf_unittest_TestParsingMerge_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestParsingMerge_descriptor, new java.lang.String[] { "RequiredAllTypes", "OptionalAllTypes", "RepeatedAllTypes", "OptionalGroup", "RepeatedGroup", }); internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_descriptor = internal_static_protobuf_unittest_TestParsingMerge_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_descriptor, new java.lang.String[] { "Field1", "Field2", "Field3", "Group1", "Group2", "Ext1", "Ext2", }); internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1_descriptor = internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group1_descriptor, new java.lang.String[] { "Field1", }); internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2_descriptor = internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_descriptor.getNestedTypes().get(1); internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestParsingMerge_RepeatedFieldsGenerator_Group2_descriptor, new java.lang.String[] { "Field1", }); internal_static_protobuf_unittest_TestParsingMerge_OptionalGroup_descriptor = internal_static_protobuf_unittest_TestParsingMerge_descriptor.getNestedTypes().get(1); internal_static_protobuf_unittest_TestParsingMerge_OptionalGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestParsingMerge_OptionalGroup_descriptor, new java.lang.String[] { "OptionalGroupAllTypes", }); internal_static_protobuf_unittest_TestParsingMerge_RepeatedGroup_descriptor = internal_static_protobuf_unittest_TestParsingMerge_descriptor.getNestedTypes().get(2); internal_static_protobuf_unittest_TestParsingMerge_RepeatedGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestParsingMerge_RepeatedGroup_descriptor, new java.lang.String[] { "RepeatedGroupAllTypes", }); internal_static_protobuf_unittest_TestCommentInjectionMessage_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_protobuf_unittest_TestCommentInjectionMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestCommentInjectionMessage_descriptor, new java.lang.String[] { "A", }); internal_static_protobuf_unittest_FooRequest_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_protobuf_unittest_FooRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_FooRequest_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_FooResponse_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_protobuf_unittest_FooResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_FooResponse_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_FooClientMessage_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_protobuf_unittest_FooClientMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_FooClientMessage_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_FooServerMessage_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_protobuf_unittest_FooServerMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_FooServerMessage_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_BarRequest_descriptor = getDescriptor().getMessageTypes().get(51); internal_static_protobuf_unittest_BarRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_BarRequest_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_BarResponse_descriptor = getDescriptor().getMessageTypes().get(52); internal_static_protobuf_unittest_BarResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_BarResponse_descriptor, new java.lang.String[] { }); optionalInt32Extension.internalInit(descriptor.getExtensions().get(0)); optionalInt64Extension.internalInit(descriptor.getExtensions().get(1)); optionalUint32Extension.internalInit(descriptor.getExtensions().get(2)); optionalUint64Extension.internalInit(descriptor.getExtensions().get(3)); optionalSint32Extension.internalInit(descriptor.getExtensions().get(4)); optionalSint64Extension.internalInit(descriptor.getExtensions().get(5)); optionalFixed32Extension.internalInit(descriptor.getExtensions().get(6)); optionalFixed64Extension.internalInit(descriptor.getExtensions().get(7)); optionalSfixed32Extension.internalInit(descriptor.getExtensions().get(8)); optionalSfixed64Extension.internalInit(descriptor.getExtensions().get(9)); optionalFloatExtension.internalInit(descriptor.getExtensions().get(10)); optionalDoubleExtension.internalInit(descriptor.getExtensions().get(11)); optionalBoolExtension.internalInit(descriptor.getExtensions().get(12)); optionalStringExtension.internalInit(descriptor.getExtensions().get(13)); optionalBytesExtension.internalInit(descriptor.getExtensions().get(14)); optionalGroupExtension.internalInit(descriptor.getExtensions().get(15)); optionalNestedMessageExtension.internalInit(descriptor.getExtensions().get(16)); optionalForeignMessageExtension.internalInit(descriptor.getExtensions().get(17)); optionalImportMessageExtension.internalInit(descriptor.getExtensions().get(18)); optionalNestedEnumExtension.internalInit(descriptor.getExtensions().get(19)); optionalForeignEnumExtension.internalInit(descriptor.getExtensions().get(20)); optionalImportEnumExtension.internalInit(descriptor.getExtensions().get(21)); optionalStringPieceExtension.internalInit(descriptor.getExtensions().get(22)); optionalCordExtension.internalInit(descriptor.getExtensions().get(23)); optionalPublicImportMessageExtension.internalInit(descriptor.getExtensions().get(24)); optionalLazyMessageExtension.internalInit(descriptor.getExtensions().get(25)); repeatedInt32Extension.internalInit(descriptor.getExtensions().get(26)); repeatedInt64Extension.internalInit(descriptor.getExtensions().get(27)); repeatedUint32Extension.internalInit(descriptor.getExtensions().get(28)); repeatedUint64Extension.internalInit(descriptor.getExtensions().get(29)); repeatedSint32Extension.internalInit(descriptor.getExtensions().get(30)); repeatedSint64Extension.internalInit(descriptor.getExtensions().get(31)); repeatedFixed32Extension.internalInit(descriptor.getExtensions().get(32)); repeatedFixed64Extension.internalInit(descriptor.getExtensions().get(33)); repeatedSfixed32Extension.internalInit(descriptor.getExtensions().get(34)); repeatedSfixed64Extension.internalInit(descriptor.getExtensions().get(35)); repeatedFloatExtension.internalInit(descriptor.getExtensions().get(36)); repeatedDoubleExtension.internalInit(descriptor.getExtensions().get(37)); repeatedBoolExtension.internalInit(descriptor.getExtensions().get(38)); repeatedStringExtension.internalInit(descriptor.getExtensions().get(39)); repeatedBytesExtension.internalInit(descriptor.getExtensions().get(40)); repeatedGroupExtension.internalInit(descriptor.getExtensions().get(41)); repeatedNestedMessageExtension.internalInit(descriptor.getExtensions().get(42)); repeatedForeignMessageExtension.internalInit(descriptor.getExtensions().get(43)); repeatedImportMessageExtension.internalInit(descriptor.getExtensions().get(44)); repeatedNestedEnumExtension.internalInit(descriptor.getExtensions().get(45)); repeatedForeignEnumExtension.internalInit(descriptor.getExtensions().get(46)); repeatedImportEnumExtension.internalInit(descriptor.getExtensions().get(47)); repeatedStringPieceExtension.internalInit(descriptor.getExtensions().get(48)); repeatedCordExtension.internalInit(descriptor.getExtensions().get(49)); repeatedLazyMessageExtension.internalInit(descriptor.getExtensions().get(50)); defaultInt32Extension.internalInit(descriptor.getExtensions().get(51)); defaultInt64Extension.internalInit(descriptor.getExtensions().get(52)); defaultUint32Extension.internalInit(descriptor.getExtensions().get(53)); defaultUint64Extension.internalInit(descriptor.getExtensions().get(54)); defaultSint32Extension.internalInit(descriptor.getExtensions().get(55)); defaultSint64Extension.internalInit(descriptor.getExtensions().get(56)); defaultFixed32Extension.internalInit(descriptor.getExtensions().get(57)); defaultFixed64Extension.internalInit(descriptor.getExtensions().get(58)); defaultSfixed32Extension.internalInit(descriptor.getExtensions().get(59)); defaultSfixed64Extension.internalInit(descriptor.getExtensions().get(60)); defaultFloatExtension.internalInit(descriptor.getExtensions().get(61)); defaultDoubleExtension.internalInit(descriptor.getExtensions().get(62)); defaultBoolExtension.internalInit(descriptor.getExtensions().get(63)); defaultStringExtension.internalInit(descriptor.getExtensions().get(64)); defaultBytesExtension.internalInit(descriptor.getExtensions().get(65)); defaultNestedEnumExtension.internalInit(descriptor.getExtensions().get(66)); defaultForeignEnumExtension.internalInit(descriptor.getExtensions().get(67)); defaultImportEnumExtension.internalInit(descriptor.getExtensions().get(68)); defaultStringPieceExtension.internalInit(descriptor.getExtensions().get(69)); defaultCordExtension.internalInit(descriptor.getExtensions().get(70)); oneofUint32Extension.internalInit(descriptor.getExtensions().get(71)); oneofNestedMessageExtension.internalInit(descriptor.getExtensions().get(72)); oneofStringExtension.internalInit(descriptor.getExtensions().get(73)); oneofBytesExtension.internalInit(descriptor.getExtensions().get(74)); myExtensionString.internalInit(descriptor.getExtensions().get(75)); myExtensionInt.internalInit(descriptor.getExtensions().get(76)); packedInt32Extension.internalInit(descriptor.getExtensions().get(77)); packedInt64Extension.internalInit(descriptor.getExtensions().get(78)); packedUint32Extension.internalInit(descriptor.getExtensions().get(79)); packedUint64Extension.internalInit(descriptor.getExtensions().get(80)); packedSint32Extension.internalInit(descriptor.getExtensions().get(81)); packedSint64Extension.internalInit(descriptor.getExtensions().get(82)); packedFixed32Extension.internalInit(descriptor.getExtensions().get(83)); packedFixed64Extension.internalInit(descriptor.getExtensions().get(84)); packedSfixed32Extension.internalInit(descriptor.getExtensions().get(85)); packedSfixed64Extension.internalInit(descriptor.getExtensions().get(86)); packedFloatExtension.internalInit(descriptor.getExtensions().get(87)); packedDoubleExtension.internalInit(descriptor.getExtensions().get(88)); packedBoolExtension.internalInit(descriptor.getExtensions().get(89)); packedEnumExtension.internalInit(descriptor.getExtensions().get(90)); unpackedInt32Extension.internalInit(descriptor.getExtensions().get(91)); unpackedInt64Extension.internalInit(descriptor.getExtensions().get(92)); unpackedUint32Extension.internalInit(descriptor.getExtensions().get(93)); unpackedUint64Extension.internalInit(descriptor.getExtensions().get(94)); unpackedSint32Extension.internalInit(descriptor.getExtensions().get(95)); unpackedSint64Extension.internalInit(descriptor.getExtensions().get(96)); unpackedFixed32Extension.internalInit(descriptor.getExtensions().get(97)); unpackedFixed64Extension.internalInit(descriptor.getExtensions().get(98)); unpackedSfixed32Extension.internalInit(descriptor.getExtensions().get(99)); unpackedSfixed64Extension.internalInit(descriptor.getExtensions().get(100)); unpackedFloatExtension.internalInit(descriptor.getExtensions().get(101)); unpackedDoubleExtension.internalInit(descriptor.getExtensions().get(102)); unpackedBoolExtension.internalInit(descriptor.getExtensions().get(103)); unpackedEnumExtension.internalInit(descriptor.getExtensions().get(104)); com.google.protobuf.test.UnittestImport.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy