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

protobuf_unittest.UnittestCustomOptions Maven / Gradle / Ivy

There is a newer version: 0.7.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/protobuf/unittest_custom_options.proto

package protobuf_unittest;

public final class UnittestCustomOptions {
  private UnittestCustomOptions() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registry.add(protobuf_unittest.UnittestCustomOptions.fileOpt1);
    registry.add(protobuf_unittest.UnittestCustomOptions.messageOpt1);
    registry.add(protobuf_unittest.UnittestCustomOptions.fieldOpt1);
    registry.add(protobuf_unittest.UnittestCustomOptions.fieldOpt2);
    registry.add(protobuf_unittest.UnittestCustomOptions.enumOpt1);
    registry.add(protobuf_unittest.UnittestCustomOptions.enumValueOpt1);
    registry.add(protobuf_unittest.UnittestCustomOptions.serviceOpt1);
    registry.add(protobuf_unittest.UnittestCustomOptions.methodOpt1);
    registry.add(protobuf_unittest.UnittestCustomOptions.boolOpt);
    registry.add(protobuf_unittest.UnittestCustomOptions.int32Opt);
    registry.add(protobuf_unittest.UnittestCustomOptions.int64Opt);
    registry.add(protobuf_unittest.UnittestCustomOptions.uint32Opt);
    registry.add(protobuf_unittest.UnittestCustomOptions.uint64Opt);
    registry.add(protobuf_unittest.UnittestCustomOptions.sint32Opt);
    registry.add(protobuf_unittest.UnittestCustomOptions.sint64Opt);
    registry.add(protobuf_unittest.UnittestCustomOptions.fixed32Opt);
    registry.add(protobuf_unittest.UnittestCustomOptions.fixed64Opt);
    registry.add(protobuf_unittest.UnittestCustomOptions.sfixed32Opt);
    registry.add(protobuf_unittest.UnittestCustomOptions.sfixed64Opt);
    registry.add(protobuf_unittest.UnittestCustomOptions.floatOpt);
    registry.add(protobuf_unittest.UnittestCustomOptions.doubleOpt);
    registry.add(protobuf_unittest.UnittestCustomOptions.stringOpt);
    registry.add(protobuf_unittest.UnittestCustomOptions.bytesOpt);
    registry.add(protobuf_unittest.UnittestCustomOptions.enumOpt);
    registry.add(protobuf_unittest.UnittestCustomOptions.messageTypeOpt);
    registry.add(protobuf_unittest.UnittestCustomOptions.quux);
    registry.add(protobuf_unittest.UnittestCustomOptions.corge);
    registry.add(protobuf_unittest.UnittestCustomOptions.grault);
    registry.add(protobuf_unittest.UnittestCustomOptions.garply);
    registry.add(protobuf_unittest.UnittestCustomOptions.complexOpt1);
    registry.add(protobuf_unittest.UnittestCustomOptions.complexOpt2);
    registry.add(protobuf_unittest.UnittestCustomOptions.complexOpt3);
    registry.add(protobuf_unittest.UnittestCustomOptions.complexOpt6);
    registry.add(protobuf_unittest.UnittestCustomOptions.fileopt);
    registry.add(protobuf_unittest.UnittestCustomOptions.msgopt);
    registry.add(protobuf_unittest.UnittestCustomOptions.fieldopt);
    registry.add(protobuf_unittest.UnittestCustomOptions.enumopt);
    registry.add(protobuf_unittest.UnittestCustomOptions.enumvalopt);
    registry.add(protobuf_unittest.UnittestCustomOptions.serviceopt);
    registry.add(protobuf_unittest.UnittestCustomOptions.methodopt);
    registry.add(protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.complexOpt4);
    registry.add(protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.messageSetExtension);
    registry.add(protobuf_unittest.UnittestCustomOptions.Aggregate.nested);
    registry.add(protobuf_unittest.UnittestCustomOptions.NestedOptionType.nestedExtension);
  }
  /**
   * Protobuf enum {@code protobuf_unittest.MethodOpt1}
   */
  public enum MethodOpt1
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * METHODOPT1_VAL1 = 1;
     */
    METHODOPT1_VAL1(0, 1),
    /**
     * METHODOPT1_VAL2 = 2;
     */
    METHODOPT1_VAL2(1, 2),
    ;

    /**
     * METHODOPT1_VAL1 = 1;
     */
    public static final int METHODOPT1_VAL1_VALUE = 1;
    /**
     * METHODOPT1_VAL2 = 2;
     */
    public static final int METHODOPT1_VAL2_VALUE = 2;


    public final int getNumber() { return value; }

    public static MethodOpt1 valueOf(int value) {
      switch (value) {
        case 1: return METHODOPT1_VAL1;
        case 2: return METHODOPT1_VAL2;
        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 MethodOpt1 findValueByNumber(int number) {
              return MethodOpt1.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.UnittestCustomOptions.getDescriptor().getEnumTypes().get(0);
    }

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

    public static MethodOpt1 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 MethodOpt1(int index, int value) {
      this.index = index;
      this.value = value;
    }

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

  /**
   * Protobuf enum {@code protobuf_unittest.AggregateEnum}
   */
  public enum AggregateEnum
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * VALUE = 1;
     */
    VALUE(0, 1),
    ;

    /**
     * VALUE = 1;
     */
    public static final int VALUE_VALUE = 1;


    public final int getNumber() { return value; }

    public static AggregateEnum valueOf(int value) {
      switch (value) {
        case 1: return VALUE;
        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 AggregateEnum findValueByNumber(int number) {
              return AggregateEnum.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.UnittestCustomOptions.getDescriptor().getEnumTypes().get(1);
    }

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

    public static AggregateEnum 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 AggregateEnum(int index, int value) {
      this.index = index;
      this.value = value;
    }

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

  public interface TestMessageWithCustomOptionsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protobuf_unittest.TestMessageWithCustomOptions)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional string field1 = 1 [ctype = CORD];
     */
    boolean hasField1();
    /**
     * optional string field1 = 1 [ctype = CORD];
     */
    java.lang.String getField1();
    /**
     * optional string field1 = 1 [ctype = CORD];
     */
    com.google.protobuf.ByteString
        getField1Bytes();
  }
  /**
   * Protobuf type {@code protobuf_unittest.TestMessageWithCustomOptions}
   *
   * 
   * A test message with custom options at all possible locations (and also some
   * regular options, to make sure they interact nicely).
   * 
*/ public static final class TestMessageWithCustomOptions extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.TestMessageWithCustomOptions) TestMessageWithCustomOptionsOrBuilder { // Use TestMessageWithCustomOptions.newBuilder() to construct. private TestMessageWithCustomOptions(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TestMessageWithCustomOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TestMessageWithCustomOptions defaultInstance; public static TestMessageWithCustomOptions getDefaultInstance() { return defaultInstance; } public TestMessageWithCustomOptions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TestMessageWithCustomOptions( 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; field1_ = 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.UnittestCustomOptions.internal_static_protobuf_unittest_TestMessageWithCustomOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_TestMessageWithCustomOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions.class, protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TestMessageWithCustomOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TestMessageWithCustomOptions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code protobuf_unittest.TestMessageWithCustomOptions.AnEnum} */ public enum AnEnum implements com.google.protobuf.ProtocolMessageEnum { /** * ANENUM_VAL1 = 1; */ ANENUM_VAL1(0, 1), /** * ANENUM_VAL2 = 2; */ ANENUM_VAL2(1, 2), ; /** * ANENUM_VAL1 = 1; */ public static final int ANENUM_VAL1_VALUE = 1; /** * ANENUM_VAL2 = 2; */ public static final int ANENUM_VAL2_VALUE = 2; public final int getNumber() { return value; } public static AnEnum valueOf(int value) { switch (value) { case 1: return ANENUM_VAL1; case 2: return ANENUM_VAL2; 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 AnEnum findValueByNumber(int number) { return AnEnum.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.UnittestCustomOptions.TestMessageWithCustomOptions.getDescriptor().getEnumTypes().get(0); } private static final AnEnum[] VALUES = values(); public static AnEnum 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 AnEnum(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protobuf_unittest.TestMessageWithCustomOptions.AnEnum) } private int bitField0_; public static final int FIELD1_FIELD_NUMBER = 1; private java.lang.Object field1_; /** * optional string field1 = 1 [ctype = CORD]; */ public boolean hasField1() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string field1 = 1 [ctype = CORD]; */ public java.lang.String getField1() { java.lang.Object ref = field1_; 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()) { field1_ = s; } return s; } } /** * optional string field1 = 1 [ctype = CORD]; */ public com.google.protobuf.ByteString getField1Bytes() { java.lang.Object ref = field1_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); field1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { field1_ = ""; } 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, getField1Bytes()); } 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, getField1Bytes()); } 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.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions 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.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions 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.UnittestCustomOptions.TestMessageWithCustomOptions 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.TestMessageWithCustomOptions} * *
     * A test message with custom options at all possible locations (and also some
     * regular options, to make sure they interact nicely).
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.TestMessageWithCustomOptions) protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_TestMessageWithCustomOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_TestMessageWithCustomOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions.class, protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions.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(); field1_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_TestMessageWithCustomOptions_descriptor; } public protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions build() { protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions buildPartial() { protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions result = new protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.field1_ = field1_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions other) { if (other == protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions.getDefaultInstance()) return this; if (other.hasField1()) { bitField0_ |= 0x00000001; field1_ = other.field1_; 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.UnittestCustomOptions.TestMessageWithCustomOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.TestMessageWithCustomOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object field1_ = ""; /** * optional string field1 = 1 [ctype = CORD]; */ public boolean hasField1() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string field1 = 1 [ctype = CORD]; */ public java.lang.String getField1() { java.lang.Object ref = field1_; 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()) { field1_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string field1 = 1 [ctype = CORD]; */ public com.google.protobuf.ByteString getField1Bytes() { java.lang.Object ref = field1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); field1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string field1 = 1 [ctype = CORD]; */ public Builder setField1( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; field1_ = value; onChanged(); return this; } /** * optional string field1 = 1 [ctype = CORD]; */ public Builder clearField1() { bitField0_ = (bitField0_ & ~0x00000001); field1_ = getDefaultInstance().getField1(); onChanged(); return this; } /** * optional string field1 = 1 [ctype = CORD]; */ public Builder setField1Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; field1_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.TestMessageWithCustomOptions) } static { defaultInstance = new TestMessageWithCustomOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMessageWithCustomOptions) } public interface CustomOptionFooRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.CustomOptionFooRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.CustomOptionFooRequest} * *
   * A test RPC service with custom options at all possible locations (and also
   * some regular options, to make sure they interact nicely).
   * 
*/ public static final class CustomOptionFooRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.CustomOptionFooRequest) CustomOptionFooRequestOrBuilder { // Use CustomOptionFooRequest.newBuilder() to construct. private CustomOptionFooRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CustomOptionFooRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CustomOptionFooRequest defaultInstance; public static CustomOptionFooRequest getDefaultInstance() { return defaultInstance; } public CustomOptionFooRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomOptionFooRequest( 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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest.class, protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CustomOptionFooRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomOptionFooRequest(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.UnittestCustomOptions.CustomOptionFooRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest 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.UnittestCustomOptions.CustomOptionFooRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest 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.UnittestCustomOptions.CustomOptionFooRequest 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.CustomOptionFooRequest} * *
     * A test RPC service with custom options at all possible locations (and also
     * some regular options, to make sure they interact nicely).
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.CustomOptionFooRequest) protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest.class, protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest.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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooRequest_descriptor; } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest build() { protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest buildPartial() { protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest result = new protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest other) { if (other == protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest.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.UnittestCustomOptions.CustomOptionFooRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.CustomOptionFooRequest) } static { defaultInstance = new CustomOptionFooRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionFooRequest) } public interface CustomOptionFooResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.CustomOptionFooResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.CustomOptionFooResponse} */ public static final class CustomOptionFooResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.CustomOptionFooResponse) CustomOptionFooResponseOrBuilder { // Use CustomOptionFooResponse.newBuilder() to construct. private CustomOptionFooResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CustomOptionFooResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CustomOptionFooResponse defaultInstance; public static CustomOptionFooResponse getDefaultInstance() { return defaultInstance; } public CustomOptionFooResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomOptionFooResponse( 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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.class, protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CustomOptionFooResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomOptionFooResponse(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.UnittestCustomOptions.CustomOptionFooResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse 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.UnittestCustomOptions.CustomOptionFooResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse 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.UnittestCustomOptions.CustomOptionFooResponse 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.CustomOptionFooResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.CustomOptionFooResponse) protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.class, protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooResponse_descriptor; } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse build() { protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse buildPartial() { protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse result = new protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse other) { if (other == protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.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.UnittestCustomOptions.CustomOptionFooResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.CustomOptionFooResponse) } static { defaultInstance = new CustomOptionFooResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionFooResponse) } public interface CustomOptionFooClientMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.CustomOptionFooClientMessage) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.CustomOptionFooClientMessage} */ public static final class CustomOptionFooClientMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.CustomOptionFooClientMessage) CustomOptionFooClientMessageOrBuilder { // Use CustomOptionFooClientMessage.newBuilder() to construct. private CustomOptionFooClientMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CustomOptionFooClientMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CustomOptionFooClientMessage defaultInstance; public static CustomOptionFooClientMessage getDefaultInstance() { return defaultInstance; } public CustomOptionFooClientMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomOptionFooClientMessage( 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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooClientMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooClientMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage.class, protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CustomOptionFooClientMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomOptionFooClientMessage(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.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage 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.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage 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.UnittestCustomOptions.CustomOptionFooClientMessage 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.CustomOptionFooClientMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.CustomOptionFooClientMessage) protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooClientMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooClientMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage.class, protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage.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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooClientMessage_descriptor; } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage build() { protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage buildPartial() { protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage result = new protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage other) { if (other == protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage.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.UnittestCustomOptions.CustomOptionFooClientMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.CustomOptionFooClientMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.CustomOptionFooClientMessage) } static { defaultInstance = new CustomOptionFooClientMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionFooClientMessage) } public interface CustomOptionFooServerMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.CustomOptionFooServerMessage) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.CustomOptionFooServerMessage} */ public static final class CustomOptionFooServerMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.CustomOptionFooServerMessage) CustomOptionFooServerMessageOrBuilder { // Use CustomOptionFooServerMessage.newBuilder() to construct. private CustomOptionFooServerMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CustomOptionFooServerMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CustomOptionFooServerMessage defaultInstance; public static CustomOptionFooServerMessage getDefaultInstance() { return defaultInstance; } public CustomOptionFooServerMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomOptionFooServerMessage( 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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooServerMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooServerMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage.class, protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CustomOptionFooServerMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomOptionFooServerMessage(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.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage 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.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage 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.UnittestCustomOptions.CustomOptionFooServerMessage 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.CustomOptionFooServerMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.CustomOptionFooServerMessage) protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooServerMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooServerMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage.class, protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage.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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionFooServerMessage_descriptor; } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage build() { protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage buildPartial() { protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage result = new protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage other) { if (other == protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage.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.UnittestCustomOptions.CustomOptionFooServerMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.CustomOptionFooServerMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.CustomOptionFooServerMessage) } static { defaultInstance = new CustomOptionFooServerMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionFooServerMessage) } public interface DummyMessageContainingEnumOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.DummyMessageContainingEnum) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.DummyMessageContainingEnum} */ public static final class DummyMessageContainingEnum extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.DummyMessageContainingEnum) DummyMessageContainingEnumOrBuilder { // Use DummyMessageContainingEnum.newBuilder() to construct. private DummyMessageContainingEnum(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DummyMessageContainingEnum(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DummyMessageContainingEnum defaultInstance; public static DummyMessageContainingEnum getDefaultInstance() { return defaultInstance; } public DummyMessageContainingEnum getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DummyMessageContainingEnum( 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.UnittestCustomOptions.internal_static_protobuf_unittest_DummyMessageContainingEnum_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_DummyMessageContainingEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum.class, protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DummyMessageContainingEnum parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DummyMessageContainingEnum(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code protobuf_unittest.DummyMessageContainingEnum.TestEnumType} */ public enum TestEnumType implements com.google.protobuf.ProtocolMessageEnum { /** * TEST_OPTION_ENUM_TYPE1 = 22; */ TEST_OPTION_ENUM_TYPE1(0, 22), /** * TEST_OPTION_ENUM_TYPE2 = -23; */ TEST_OPTION_ENUM_TYPE2(1, -23), ; /** * TEST_OPTION_ENUM_TYPE1 = 22; */ public static final int TEST_OPTION_ENUM_TYPE1_VALUE = 22; /** * TEST_OPTION_ENUM_TYPE2 = -23; */ public static final int TEST_OPTION_ENUM_TYPE2_VALUE = -23; public final int getNumber() { return value; } public static TestEnumType valueOf(int value) { switch (value) { case 22: return TEST_OPTION_ENUM_TYPE1; case -23: return TEST_OPTION_ENUM_TYPE2; 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 TestEnumType findValueByNumber(int number) { return TestEnumType.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.UnittestCustomOptions.DummyMessageContainingEnum.getDescriptor().getEnumTypes().get(0); } private static final TestEnumType[] VALUES = values(); public static TestEnumType 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 TestEnumType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protobuf_unittest.DummyMessageContainingEnum.TestEnumType) } 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.UnittestCustomOptions.DummyMessageContainingEnum parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum 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.UnittestCustomOptions.DummyMessageContainingEnum parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum 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.UnittestCustomOptions.DummyMessageContainingEnum 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.DummyMessageContainingEnum} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.DummyMessageContainingEnum) protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_DummyMessageContainingEnum_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_DummyMessageContainingEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum.class, protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum.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.UnittestCustomOptions.internal_static_protobuf_unittest_DummyMessageContainingEnum_descriptor; } public protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum build() { protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum buildPartial() { protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum result = new protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum other) { if (other == protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum.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.UnittestCustomOptions.DummyMessageContainingEnum parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.DummyMessageContainingEnum) } static { defaultInstance = new DummyMessageContainingEnum(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.DummyMessageContainingEnum) } public interface DummyMessageInvalidAsOptionTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.DummyMessageInvalidAsOptionType) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.DummyMessageInvalidAsOptionType} */ public static final class DummyMessageInvalidAsOptionType extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.DummyMessageInvalidAsOptionType) DummyMessageInvalidAsOptionTypeOrBuilder { // Use DummyMessageInvalidAsOptionType.newBuilder() to construct. private DummyMessageInvalidAsOptionType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DummyMessageInvalidAsOptionType(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DummyMessageInvalidAsOptionType defaultInstance; public static DummyMessageInvalidAsOptionType getDefaultInstance() { return defaultInstance; } public DummyMessageInvalidAsOptionType getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DummyMessageInvalidAsOptionType( 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.UnittestCustomOptions.internal_static_protobuf_unittest_DummyMessageInvalidAsOptionType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_DummyMessageInvalidAsOptionType_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType.class, protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DummyMessageInvalidAsOptionType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DummyMessageInvalidAsOptionType(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.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType 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.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType 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.UnittestCustomOptions.DummyMessageInvalidAsOptionType 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.DummyMessageInvalidAsOptionType} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.DummyMessageInvalidAsOptionType) protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_DummyMessageInvalidAsOptionType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_DummyMessageInvalidAsOptionType_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType.class, protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType.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.UnittestCustomOptions.internal_static_protobuf_unittest_DummyMessageInvalidAsOptionType_descriptor; } public protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType build() { protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType buildPartial() { protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType result = new protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType other) { if (other == protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType.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.UnittestCustomOptions.DummyMessageInvalidAsOptionType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.DummyMessageInvalidAsOptionType) } static { defaultInstance = new DummyMessageInvalidAsOptionType(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.DummyMessageInvalidAsOptionType) } public interface CustomOptionMinIntegerValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.CustomOptionMinIntegerValues) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.CustomOptionMinIntegerValues} */ public static final class CustomOptionMinIntegerValues extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.CustomOptionMinIntegerValues) CustomOptionMinIntegerValuesOrBuilder { // Use CustomOptionMinIntegerValues.newBuilder() to construct. private CustomOptionMinIntegerValues(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CustomOptionMinIntegerValues(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CustomOptionMinIntegerValues defaultInstance; public static CustomOptionMinIntegerValues getDefaultInstance() { return defaultInstance; } public CustomOptionMinIntegerValues getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomOptionMinIntegerValues( 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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionMinIntegerValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionMinIntegerValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues.class, protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CustomOptionMinIntegerValues parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomOptionMinIntegerValues(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.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues 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.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues 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.UnittestCustomOptions.CustomOptionMinIntegerValues 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.CustomOptionMinIntegerValues} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.CustomOptionMinIntegerValues) protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionMinIntegerValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionMinIntegerValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues.class, protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues.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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionMinIntegerValues_descriptor; } public protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues build() { protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues buildPartial() { protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues result = new protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues other) { if (other == protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues.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.UnittestCustomOptions.CustomOptionMinIntegerValues parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.CustomOptionMinIntegerValues) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.CustomOptionMinIntegerValues) } static { defaultInstance = new CustomOptionMinIntegerValues(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionMinIntegerValues) } public interface CustomOptionMaxIntegerValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.CustomOptionMaxIntegerValues) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.CustomOptionMaxIntegerValues} */ public static final class CustomOptionMaxIntegerValues extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.CustomOptionMaxIntegerValues) CustomOptionMaxIntegerValuesOrBuilder { // Use CustomOptionMaxIntegerValues.newBuilder() to construct. private CustomOptionMaxIntegerValues(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CustomOptionMaxIntegerValues(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CustomOptionMaxIntegerValues defaultInstance; public static CustomOptionMaxIntegerValues getDefaultInstance() { return defaultInstance; } public CustomOptionMaxIntegerValues getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomOptionMaxIntegerValues( 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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionMaxIntegerValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionMaxIntegerValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues.class, protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CustomOptionMaxIntegerValues parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomOptionMaxIntegerValues(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.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues 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.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues 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.UnittestCustomOptions.CustomOptionMaxIntegerValues 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.CustomOptionMaxIntegerValues} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.CustomOptionMaxIntegerValues) protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionMaxIntegerValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionMaxIntegerValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues.class, protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues.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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionMaxIntegerValues_descriptor; } public protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues build() { protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues buildPartial() { protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues result = new protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues other) { if (other == protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues.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.UnittestCustomOptions.CustomOptionMaxIntegerValues parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.CustomOptionMaxIntegerValues) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.CustomOptionMaxIntegerValues) } static { defaultInstance = new CustomOptionMaxIntegerValues(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionMaxIntegerValues) } public interface CustomOptionOtherValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.CustomOptionOtherValues) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.CustomOptionOtherValues} */ public static final class CustomOptionOtherValues extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.CustomOptionOtherValues) CustomOptionOtherValuesOrBuilder { // Use CustomOptionOtherValues.newBuilder() to construct. private CustomOptionOtherValues(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CustomOptionOtherValues(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CustomOptionOtherValues defaultInstance; public static CustomOptionOtherValues getDefaultInstance() { return defaultInstance; } public CustomOptionOtherValues getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomOptionOtherValues( 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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionOtherValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionOtherValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues.class, protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CustomOptionOtherValues parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomOptionOtherValues(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.UnittestCustomOptions.CustomOptionOtherValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues 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.UnittestCustomOptions.CustomOptionOtherValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues 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.UnittestCustomOptions.CustomOptionOtherValues 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.CustomOptionOtherValues} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.CustomOptionOtherValues) protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionOtherValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionOtherValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues.class, protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues.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.UnittestCustomOptions.internal_static_protobuf_unittest_CustomOptionOtherValues_descriptor; } public protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues build() { protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues buildPartial() { protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues result = new protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues other) { if (other == protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues.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.UnittestCustomOptions.CustomOptionOtherValues parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.CustomOptionOtherValues) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.CustomOptionOtherValues) } static { defaultInstance = new CustomOptionOtherValues(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionOtherValues) } public interface SettingRealsFromPositiveIntsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.SettingRealsFromPositiveInts) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.SettingRealsFromPositiveInts} */ public static final class SettingRealsFromPositiveInts extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.SettingRealsFromPositiveInts) SettingRealsFromPositiveIntsOrBuilder { // Use SettingRealsFromPositiveInts.newBuilder() to construct. private SettingRealsFromPositiveInts(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SettingRealsFromPositiveInts(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SettingRealsFromPositiveInts defaultInstance; public static SettingRealsFromPositiveInts getDefaultInstance() { return defaultInstance; } public SettingRealsFromPositiveInts getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SettingRealsFromPositiveInts( 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.UnittestCustomOptions.internal_static_protobuf_unittest_SettingRealsFromPositiveInts_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_SettingRealsFromPositiveInts_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts.class, protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SettingRealsFromPositiveInts parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SettingRealsFromPositiveInts(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.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts 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.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts 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.UnittestCustomOptions.SettingRealsFromPositiveInts 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.SettingRealsFromPositiveInts} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.SettingRealsFromPositiveInts) protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveIntsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_SettingRealsFromPositiveInts_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_SettingRealsFromPositiveInts_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts.class, protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts.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.UnittestCustomOptions.internal_static_protobuf_unittest_SettingRealsFromPositiveInts_descriptor; } public protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts build() { protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts buildPartial() { protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts result = new protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts other) { if (other == protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts.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.UnittestCustomOptions.SettingRealsFromPositiveInts parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.SettingRealsFromPositiveInts) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.SettingRealsFromPositiveInts) } static { defaultInstance = new SettingRealsFromPositiveInts(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.SettingRealsFromPositiveInts) } public interface SettingRealsFromNegativeIntsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.SettingRealsFromNegativeInts) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.SettingRealsFromNegativeInts} */ public static final class SettingRealsFromNegativeInts extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.SettingRealsFromNegativeInts) SettingRealsFromNegativeIntsOrBuilder { // Use SettingRealsFromNegativeInts.newBuilder() to construct. private SettingRealsFromNegativeInts(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SettingRealsFromNegativeInts(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SettingRealsFromNegativeInts defaultInstance; public static SettingRealsFromNegativeInts getDefaultInstance() { return defaultInstance; } public SettingRealsFromNegativeInts getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SettingRealsFromNegativeInts( 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.UnittestCustomOptions.internal_static_protobuf_unittest_SettingRealsFromNegativeInts_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_SettingRealsFromNegativeInts_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts.class, protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SettingRealsFromNegativeInts parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SettingRealsFromNegativeInts(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.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts 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.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts 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.UnittestCustomOptions.SettingRealsFromNegativeInts 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.SettingRealsFromNegativeInts} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.SettingRealsFromNegativeInts) protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeIntsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_SettingRealsFromNegativeInts_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_SettingRealsFromNegativeInts_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts.class, protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts.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.UnittestCustomOptions.internal_static_protobuf_unittest_SettingRealsFromNegativeInts_descriptor; } public protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts build() { protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts buildPartial() { protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts result = new protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts other) { if (other == protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts.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.UnittestCustomOptions.SettingRealsFromNegativeInts parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.SettingRealsFromNegativeInts) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.SettingRealsFromNegativeInts) } static { defaultInstance = new SettingRealsFromNegativeInts(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.SettingRealsFromNegativeInts) } public interface ComplexOptionType1OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.ComplexOptionType1) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { /** * optional int32 foo = 1; */ boolean hasFoo(); /** * optional int32 foo = 1; */ int getFoo(); /** * optional int32 foo2 = 2; */ boolean hasFoo2(); /** * optional int32 foo2 = 2; */ int getFoo2(); /** * optional int32 foo3 = 3; */ boolean hasFoo3(); /** * optional int32 foo3 = 3; */ int getFoo3(); /** * repeated int32 foo4 = 4; */ java.util.List getFoo4List(); /** * repeated int32 foo4 = 4; */ int getFoo4Count(); /** * repeated int32 foo4 = 4; */ int getFoo4(int index); } /** * Protobuf type {@code protobuf_unittest.ComplexOptionType1} */ public static final class ComplexOptionType1 extends com.google.protobuf.GeneratedMessage.ExtendableMessage< ComplexOptionType1> implements // @@protoc_insertion_point(message_implements:protobuf_unittest.ComplexOptionType1) ComplexOptionType1OrBuilder { // Use ComplexOptionType1.newBuilder() to construct. private ComplexOptionType1(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ComplexOptionType1(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ComplexOptionType1 defaultInstance; public static ComplexOptionType1 getDefaultInstance() { return defaultInstance; } public ComplexOptionType1 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ComplexOptionType1( 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; foo_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; foo2_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; foo3_ = input.readInt32(); break; } case 32: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { foo4_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } foo4_.add(input.readInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { foo4_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { foo4_.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_ & 0x00000008) == 0x00000008)) { foo4_ = java.util.Collections.unmodifiableList(foo4_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType1_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType1_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ComplexOptionType1 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ComplexOptionType1(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int FOO_FIELD_NUMBER = 1; private int foo_; /** * optional int32 foo = 1; */ public boolean hasFoo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 foo = 1; */ public int getFoo() { return foo_; } public static final int FOO2_FIELD_NUMBER = 2; private int foo2_; /** * optional int32 foo2 = 2; */ public boolean hasFoo2() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 foo2 = 2; */ public int getFoo2() { return foo2_; } public static final int FOO3_FIELD_NUMBER = 3; private int foo3_; /** * optional int32 foo3 = 3; */ public boolean hasFoo3() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 foo3 = 3; */ public int getFoo3() { return foo3_; } public static final int FOO4_FIELD_NUMBER = 4; private java.util.List foo4_; /** * repeated int32 foo4 = 4; */ public java.util.List getFoo4List() { return foo4_; } /** * repeated int32 foo4 = 4; */ public int getFoo4Count() { return foo4_.size(); } /** * repeated int32 foo4 = 4; */ public int getFoo4(int index) { return foo4_.get(index); } private void initFields() { foo_ = 0; foo2_ = 0; foo3_ = 0; foo4_ = 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 (!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.writeInt32(1, foo_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, foo2_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, foo3_); } for (int i = 0; i < foo4_.size(); i++) { output.writeInt32(4, foo4_.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 .computeInt32Size(1, foo_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, foo2_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, foo3_); } { int dataSize = 0; for (int i = 0; i < foo4_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(foo4_.get(i)); } size += dataSize; size += 1 * getFoo4List().size(); } 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.UnittestCustomOptions.ComplexOptionType1 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 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.UnittestCustomOptions.ComplexOptionType1 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 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.UnittestCustomOptions.ComplexOptionType1 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.ComplexOptionType1} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType1, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.ComplexOptionType1) protobuf_unittest.UnittestCustomOptions.ComplexOptionType1OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType1_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType1_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.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(); foo_ = 0; bitField0_ = (bitField0_ & ~0x00000001); foo2_ = 0; bitField0_ = (bitField0_ & ~0x00000002); foo3_ = 0; bitField0_ = (bitField0_ & ~0x00000004); foo4_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType1_descriptor; } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 build() { protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 buildPartial() { protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 result = new protobuf_unittest.UnittestCustomOptions.ComplexOptionType1(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.foo_ = foo_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.foo2_ = foo2_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.foo3_ = foo3_; if (((bitField0_ & 0x00000008) == 0x00000008)) { foo4_ = java.util.Collections.unmodifiableList(foo4_); bitField0_ = (bitField0_ & ~0x00000008); } result.foo4_ = foo4_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.ComplexOptionType1) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.ComplexOptionType1)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 other) { if (other == protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance()) return this; if (other.hasFoo()) { setFoo(other.getFoo()); } if (other.hasFoo2()) { setFoo2(other.getFoo2()); } if (other.hasFoo3()) { setFoo3(other.getFoo3()); } if (!other.foo4_.isEmpty()) { if (foo4_.isEmpty()) { foo4_ = other.foo4_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFoo4IsMutable(); foo4_.addAll(other.foo4_); } onChanged(); } 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.UnittestCustomOptions.ComplexOptionType1 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.ComplexOptionType1) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int foo_ ; /** * optional int32 foo = 1; */ public boolean hasFoo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 foo = 1; */ public int getFoo() { return foo_; } /** * optional int32 foo = 1; */ public Builder setFoo(int value) { bitField0_ |= 0x00000001; foo_ = value; onChanged(); return this; } /** * optional int32 foo = 1; */ public Builder clearFoo() { bitField0_ = (bitField0_ & ~0x00000001); foo_ = 0; onChanged(); return this; } private int foo2_ ; /** * optional int32 foo2 = 2; */ public boolean hasFoo2() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 foo2 = 2; */ public int getFoo2() { return foo2_; } /** * optional int32 foo2 = 2; */ public Builder setFoo2(int value) { bitField0_ |= 0x00000002; foo2_ = value; onChanged(); return this; } /** * optional int32 foo2 = 2; */ public Builder clearFoo2() { bitField0_ = (bitField0_ & ~0x00000002); foo2_ = 0; onChanged(); return this; } private int foo3_ ; /** * optional int32 foo3 = 3; */ public boolean hasFoo3() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 foo3 = 3; */ public int getFoo3() { return foo3_; } /** * optional int32 foo3 = 3; */ public Builder setFoo3(int value) { bitField0_ |= 0x00000004; foo3_ = value; onChanged(); return this; } /** * optional int32 foo3 = 3; */ public Builder clearFoo3() { bitField0_ = (bitField0_ & ~0x00000004); foo3_ = 0; onChanged(); return this; } private java.util.List foo4_ = java.util.Collections.emptyList(); private void ensureFoo4IsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { foo4_ = new java.util.ArrayList(foo4_); bitField0_ |= 0x00000008; } } /** * repeated int32 foo4 = 4; */ public java.util.List getFoo4List() { return java.util.Collections.unmodifiableList(foo4_); } /** * repeated int32 foo4 = 4; */ public int getFoo4Count() { return foo4_.size(); } /** * repeated int32 foo4 = 4; */ public int getFoo4(int index) { return foo4_.get(index); } /** * repeated int32 foo4 = 4; */ public Builder setFoo4( int index, int value) { ensureFoo4IsMutable(); foo4_.set(index, value); onChanged(); return this; } /** * repeated int32 foo4 = 4; */ public Builder addFoo4(int value) { ensureFoo4IsMutable(); foo4_.add(value); onChanged(); return this; } /** * repeated int32 foo4 = 4; */ public Builder addAllFoo4( java.lang.Iterable values) { ensureFoo4IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, foo4_); onChanged(); return this; } /** * repeated int32 foo4 = 4; */ public Builder clearFoo4() { foo4_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.ComplexOptionType1) } static { defaultInstance = new ComplexOptionType1(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType1) } public interface ComplexOptionType2OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.ComplexOptionType2) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ boolean hasBar(); /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 getBar(); /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ protobuf_unittest.UnittestCustomOptions.ComplexOptionType1OrBuilder getBarOrBuilder(); /** * optional int32 baz = 2; */ boolean hasBaz(); /** * optional int32 baz = 2; */ int getBaz(); /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ boolean hasFred(); /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getFred(); /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder getFredOrBuilder(); /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ java.util.List getBarneyList(); /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getBarney(int index); /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ int getBarneyCount(); /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ java.util.List getBarneyOrBuilderList(); /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder getBarneyOrBuilder( int index); } /** * Protobuf type {@code protobuf_unittest.ComplexOptionType2} */ public static final class ComplexOptionType2 extends com.google.protobuf.GeneratedMessage.ExtendableMessage< ComplexOptionType2> implements // @@protoc_insertion_point(message_implements:protobuf_unittest.ComplexOptionType2) ComplexOptionType2OrBuilder { // Use ComplexOptionType2.newBuilder() to construct. private ComplexOptionType2(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ComplexOptionType2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ComplexOptionType2 defaultInstance; public static ComplexOptionType2 getDefaultInstance() { return defaultInstance; } public ComplexOptionType2 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ComplexOptionType2( 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.UnittestCustomOptions.ComplexOptionType1.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = bar_.toBuilder(); } bar_ = input.readMessage(protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bar_); bar_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; baz_ = input.readInt32(); break; } case 26: { protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = fred_.toBuilder(); } fred_ = input.readMessage(protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fred_); fred_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { barney_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } barney_.add(input.readMessage(protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.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_ & 0x00000008) == 0x00000008)) { barney_ = java.util.Collections.unmodifiableList(barney_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ComplexOptionType2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ComplexOptionType2(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface ComplexOptionType4OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.ComplexOptionType2.ComplexOptionType4) com.google.protobuf.MessageOrBuilder { /** * optional int32 waldo = 1; */ boolean hasWaldo(); /** * optional int32 waldo = 1; */ int getWaldo(); } /** * Protobuf type {@code protobuf_unittest.ComplexOptionType2.ComplexOptionType4} */ public static final class ComplexOptionType4 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.ComplexOptionType2.ComplexOptionType4) ComplexOptionType4OrBuilder { // Use ComplexOptionType4.newBuilder() to construct. private ComplexOptionType4(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ComplexOptionType4(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ComplexOptionType4 defaultInstance; public static ComplexOptionType4 getDefaultInstance() { return defaultInstance; } public ComplexOptionType4 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ComplexOptionType4( 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; waldo_ = 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.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ComplexOptionType4 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ComplexOptionType4(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int WALDO_FIELD_NUMBER = 1; private int waldo_; /** * optional int32 waldo = 1; */ public boolean hasWaldo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 waldo = 1; */ public int getWaldo() { return waldo_; } private void initFields() { waldo_ = 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, waldo_); } 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, waldo_); } 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.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 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.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 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.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 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.ComplexOptionType2.ComplexOptionType4} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.ComplexOptionType2.ComplexOptionType4) protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.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(); waldo_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4_descriptor; } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 build() { protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 buildPartial() { protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 result = new protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.waldo_ = waldo_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 other) { if (other == protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance()) return this; if (other.hasWaldo()) { setWaldo(other.getWaldo()); } 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.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int waldo_ ; /** * optional int32 waldo = 1; */ public boolean hasWaldo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 waldo = 1; */ public int getWaldo() { return waldo_; } /** * optional int32 waldo = 1; */ public Builder setWaldo(int value) { bitField0_ |= 0x00000001; waldo_ = value; onChanged(); return this; } /** * optional int32 waldo = 1; */ public Builder clearWaldo() { bitField0_ = (bitField0_ & ~0x00000001); waldo_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.ComplexOptionType2.ComplexOptionType4) } static { defaultInstance = new ComplexOptionType4(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType2.ComplexOptionType4) public static final int COMPLEX_OPT4_FIELD_NUMBER = 7633546; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4> complexOpt4 = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(), 0, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance()); } private int bitField0_; public static final int BAR_FIELD_NUMBER = 1; private protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 bar_; /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public boolean hasBar() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 getBar() { return bar_; } /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType1OrBuilder getBarOrBuilder() { return bar_; } public static final int BAZ_FIELD_NUMBER = 2; private int baz_; /** * optional int32 baz = 2; */ public boolean hasBaz() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 baz = 2; */ public int getBaz() { return baz_; } public static final int FRED_FIELD_NUMBER = 3; private protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 fred_; /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public boolean hasFred() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getFred() { return fred_; } /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder getFredOrBuilder() { return fred_; } public static final int BARNEY_FIELD_NUMBER = 4; private java.util.List barney_; /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public java.util.List getBarneyList() { return barney_; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public java.util.List getBarneyOrBuilderList() { return barney_; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public int getBarneyCount() { return barney_.size(); } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getBarney(int index) { return barney_.get(index); } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder getBarneyOrBuilder( int index) { return barney_.get(index); } private void initFields() { bar_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance(); baz_ = 0; fred_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(); barney_ = 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 (hasBar()) { if (!getBar().isInitialized()) { 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, bar_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, baz_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, fred_); } for (int i = 0; i < barney_.size(); i++) { output.writeMessage(4, barney_.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, bar_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, baz_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, fred_); } for (int i = 0; i < barney_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, barney_.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.UnittestCustomOptions.ComplexOptionType2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 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.UnittestCustomOptions.ComplexOptionType2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 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.UnittestCustomOptions.ComplexOptionType2 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.ComplexOptionType2} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType2, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.ComplexOptionType2) protobuf_unittest.UnittestCustomOptions.ComplexOptionType2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBarFieldBuilder(); getFredFieldBuilder(); getBarneyFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (barBuilder_ == null) { bar_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance(); } else { barBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); baz_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (fredBuilder_ == null) { fred_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(); } else { fredBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (barneyBuilder_ == null) { barney_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { barneyBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType2_descriptor; } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 build() { protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 buildPartial() { protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 result = new protobuf_unittest.UnittestCustomOptions.ComplexOptionType2(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (barBuilder_ == null) { result.bar_ = bar_; } else { result.bar_ = barBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.baz_ = baz_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (fredBuilder_ == null) { result.fred_ = fred_; } else { result.fred_ = fredBuilder_.build(); } if (barneyBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { barney_ = java.util.Collections.unmodifiableList(barney_); bitField0_ = (bitField0_ & ~0x00000008); } result.barney_ = barney_; } else { result.barney_ = barneyBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.ComplexOptionType2) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.ComplexOptionType2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.ComplexOptionType2 other) { if (other == protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.getDefaultInstance()) return this; if (other.hasBar()) { mergeBar(other.getBar()); } if (other.hasBaz()) { setBaz(other.getBaz()); } if (other.hasFred()) { mergeFred(other.getFred()); } if (barneyBuilder_ == null) { if (!other.barney_.isEmpty()) { if (barney_.isEmpty()) { barney_ = other.barney_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureBarneyIsMutable(); barney_.addAll(other.barney_); } onChanged(); } } else { if (!other.barney_.isEmpty()) { if (barneyBuilder_.isEmpty()) { barneyBuilder_.dispose(); barneyBuilder_ = null; barney_ = other.barney_; bitField0_ = (bitField0_ & ~0x00000008); barneyBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBarneyFieldBuilder() : null; } else { barneyBuilder_.addAllMessages(other.barney_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasBar()) { if (!getBar().isInitialized()) { 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.UnittestCustomOptions.ComplexOptionType2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.ComplexOptionType2) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 bar_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType1, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1OrBuilder> barBuilder_; /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public boolean hasBar() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 getBar() { if (barBuilder_ == null) { return bar_; } else { return barBuilder_.getMessage(); } } /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public Builder setBar(protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 value) { if (barBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bar_ = value; onChanged(); } else { barBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public Builder setBar( protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.Builder builderForValue) { if (barBuilder_ == null) { bar_ = builderForValue.build(); onChanged(); } else { barBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public Builder mergeBar(protobuf_unittest.UnittestCustomOptions.ComplexOptionType1 value) { if (barBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && bar_ != protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance()) { bar_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.newBuilder(bar_).mergeFrom(value).buildPartial(); } else { bar_ = value; } onChanged(); } else { barBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public Builder clearBar() { if (barBuilder_ == null) { bar_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance(); onChanged(); } else { barBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.Builder getBarBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBarFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType1OrBuilder getBarOrBuilder() { if (barBuilder_ != null) { return barBuilder_.getMessageOrBuilder(); } else { return bar_; } } /** * optional .protobuf_unittest.ComplexOptionType1 bar = 1; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType1, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1OrBuilder> getBarFieldBuilder() { if (barBuilder_ == null) { barBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType1, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1OrBuilder>( getBar(), getParentForChildren(), isClean()); bar_ = null; } return barBuilder_; } private int baz_ ; /** * optional int32 baz = 2; */ public boolean hasBaz() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 baz = 2; */ public int getBaz() { return baz_; } /** * optional int32 baz = 2; */ public Builder setBaz(int value) { bitField0_ |= 0x00000002; baz_ = value; onChanged(); return this; } /** * optional int32 baz = 2; */ public Builder clearBaz() { bitField0_ = (bitField0_ & ~0x00000002); baz_ = 0; onChanged(); return this; } private protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 fred_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder> fredBuilder_; /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public boolean hasFred() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getFred() { if (fredBuilder_ == null) { return fred_; } else { return fredBuilder_.getMessage(); } } /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public Builder setFred(protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 value) { if (fredBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fred_ = value; onChanged(); } else { fredBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public Builder setFred( protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder builderForValue) { if (fredBuilder_ == null) { fred_ = builderForValue.build(); onChanged(); } else { fredBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public Builder mergeFred(protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 value) { if (fredBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && fred_ != protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance()) { fred_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.newBuilder(fred_).mergeFrom(value).buildPartial(); } else { fred_ = value; } onChanged(); } else { fredBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public Builder clearFred() { if (fredBuilder_ == null) { fred_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(); onChanged(); } else { fredBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder getFredBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFredFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder getFredOrBuilder() { if (fredBuilder_ != null) { return fredBuilder_.getMessageOrBuilder(); } else { return fred_; } } /** * optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3; */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder> getFredFieldBuilder() { if (fredBuilder_ == null) { fredBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder>( getFred(), getParentForChildren(), isClean()); fred_ = null; } return fredBuilder_; } private java.util.List barney_ = java.util.Collections.emptyList(); private void ensureBarneyIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { barney_ = new java.util.ArrayList(barney_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder> barneyBuilder_; /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public java.util.List getBarneyList() { if (barneyBuilder_ == null) { return java.util.Collections.unmodifiableList(barney_); } else { return barneyBuilder_.getMessageList(); } } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public int getBarneyCount() { if (barneyBuilder_ == null) { return barney_.size(); } else { return barneyBuilder_.getCount(); } } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getBarney(int index) { if (barneyBuilder_ == null) { return barney_.get(index); } else { return barneyBuilder_.getMessage(index); } } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public Builder setBarney( int index, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 value) { if (barneyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBarneyIsMutable(); barney_.set(index, value); onChanged(); } else { barneyBuilder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public Builder setBarney( int index, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder builderForValue) { if (barneyBuilder_ == null) { ensureBarneyIsMutable(); barney_.set(index, builderForValue.build()); onChanged(); } else { barneyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public Builder addBarney(protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 value) { if (barneyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBarneyIsMutable(); barney_.add(value); onChanged(); } else { barneyBuilder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public Builder addBarney( int index, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 value) { if (barneyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBarneyIsMutable(); barney_.add(index, value); onChanged(); } else { barneyBuilder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public Builder addBarney( protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder builderForValue) { if (barneyBuilder_ == null) { ensureBarneyIsMutable(); barney_.add(builderForValue.build()); onChanged(); } else { barneyBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public Builder addBarney( int index, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder builderForValue) { if (barneyBuilder_ == null) { ensureBarneyIsMutable(); barney_.add(index, builderForValue.build()); onChanged(); } else { barneyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public Builder addAllBarney( java.lang.Iterable values) { if (barneyBuilder_ == null) { ensureBarneyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, barney_); onChanged(); } else { barneyBuilder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public Builder clearBarney() { if (barneyBuilder_ == null) { barney_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { barneyBuilder_.clear(); } return this; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public Builder removeBarney(int index) { if (barneyBuilder_ == null) { ensureBarneyIsMutable(); barney_.remove(index); onChanged(); } else { barneyBuilder_.remove(index); } return this; } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder getBarneyBuilder( int index) { return getBarneyFieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder getBarneyOrBuilder( int index) { if (barneyBuilder_ == null) { return barney_.get(index); } else { return barneyBuilder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public java.util.List getBarneyOrBuilderList() { if (barneyBuilder_ != null) { return barneyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(barney_); } } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder addBarneyBuilder() { return getBarneyFieldBuilder().addBuilder( protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance()); } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder addBarneyBuilder( int index) { return getBarneyFieldBuilder().addBuilder( index, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance()); } /** * repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4; */ public java.util.List getBarneyBuilderList() { return getBarneyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder> getBarneyFieldBuilder() { if (barneyBuilder_ == null) { barneyBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder>( barney_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); barney_ = null; } return barneyBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.ComplexOptionType2) } static { defaultInstance = new ComplexOptionType2(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType2) } public interface ComplexOptionType3OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.ComplexOptionType3) com.google.protobuf.MessageOrBuilder { /** * optional int32 qux = 1; */ boolean hasQux(); /** * optional int32 qux = 1; */ int getQux(); /** * optional group ComplexOptionType5 = 2 { ... } */ boolean hasComplexOptionType5(); /** * optional group ComplexOptionType5 = 2 { ... } */ protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 getComplexOptionType5(); /** * optional group ComplexOptionType5 = 2 { ... } */ protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder getComplexOptionType5OrBuilder(); } /** * Protobuf type {@code protobuf_unittest.ComplexOptionType3} */ public static final class ComplexOptionType3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.ComplexOptionType3) ComplexOptionType3OrBuilder { // Use ComplexOptionType3.newBuilder() to construct. private ComplexOptionType3(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ComplexOptionType3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ComplexOptionType3 defaultInstance; public static ComplexOptionType3 getDefaultInstance() { return defaultInstance; } public ComplexOptionType3 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ComplexOptionType3( 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; qux_ = input.readInt32(); break; } case 19: { protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = complexOptionType5_.toBuilder(); } complexOptionType5_ = input.readGroup(2, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(complexOptionType5_); complexOptionType5_ = 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.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType3_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType3_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ComplexOptionType3 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ComplexOptionType3(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface ComplexOptionType5OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.ComplexOptionType3.ComplexOptionType5) com.google.protobuf.MessageOrBuilder { /** * optional int32 plugh = 3; */ boolean hasPlugh(); /** * optional int32 plugh = 3; */ int getPlugh(); } /** * Protobuf type {@code protobuf_unittest.ComplexOptionType3.ComplexOptionType5} */ public static final class ComplexOptionType5 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.ComplexOptionType3.ComplexOptionType5) ComplexOptionType5OrBuilder { // Use ComplexOptionType5.newBuilder() to construct. private ComplexOptionType5(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ComplexOptionType5(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ComplexOptionType5 defaultInstance; public static ComplexOptionType5 getDefaultInstance() { return defaultInstance; } public ComplexOptionType5 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ComplexOptionType5( 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 24: { bitField0_ |= 0x00000001; plugh_ = 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.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ComplexOptionType5 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ComplexOptionType5(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int PLUGH_FIELD_NUMBER = 3; private int plugh_; /** * optional int32 plugh = 3; */ public boolean hasPlugh() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 plugh = 3; */ public int getPlugh() { return plugh_; } private void initFields() { plugh_ = 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(3, plugh_); } 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(3, plugh_); } 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.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 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.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 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.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 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.ComplexOptionType3.ComplexOptionType5} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.ComplexOptionType3.ComplexOptionType5) protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.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(); plugh_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5_descriptor; } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 build() { protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 buildPartial() { protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 result = new protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.plugh_ = plugh_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 other) { if (other == protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.getDefaultInstance()) return this; if (other.hasPlugh()) { setPlugh(other.getPlugh()); } 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.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int plugh_ ; /** * optional int32 plugh = 3; */ public boolean hasPlugh() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 plugh = 3; */ public int getPlugh() { return plugh_; } /** * optional int32 plugh = 3; */ public Builder setPlugh(int value) { bitField0_ |= 0x00000001; plugh_ = value; onChanged(); return this; } /** * optional int32 plugh = 3; */ public Builder clearPlugh() { bitField0_ = (bitField0_ & ~0x00000001); plugh_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.ComplexOptionType3.ComplexOptionType5) } static { defaultInstance = new ComplexOptionType5(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType3.ComplexOptionType5) } private int bitField0_; public static final int QUX_FIELD_NUMBER = 1; private int qux_; /** * optional int32 qux = 1; */ public boolean hasQux() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 qux = 1; */ public int getQux() { return qux_; } public static final int COMPLEXOPTIONTYPE5_FIELD_NUMBER = 2; private protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 complexOptionType5_; /** * optional group ComplexOptionType5 = 2 { ... } */ public boolean hasComplexOptionType5() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional group ComplexOptionType5 = 2 { ... } */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 getComplexOptionType5() { return complexOptionType5_; } /** * optional group ComplexOptionType5 = 2 { ... } */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder getComplexOptionType5OrBuilder() { return complexOptionType5_; } private void initFields() { qux_ = 0; complexOptionType5_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.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, qux_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeGroup(2, complexOptionType5_); } 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, qux_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(2, complexOptionType5_); } 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.UnittestCustomOptions.ComplexOptionType3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 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.UnittestCustomOptions.ComplexOptionType3 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 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.UnittestCustomOptions.ComplexOptionType3 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.ComplexOptionType3} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.ComplexOptionType3) protobuf_unittest.UnittestCustomOptions.ComplexOptionType3OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType3_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType3_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getComplexOptionType5FieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); qux_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (complexOptionType5Builder_ == null) { complexOptionType5_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.getDefaultInstance(); } else { complexOptionType5Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOptionType3_descriptor; } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 build() { protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 buildPartial() { protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 result = new protobuf_unittest.UnittestCustomOptions.ComplexOptionType3(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.qux_ = qux_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (complexOptionType5Builder_ == null) { result.complexOptionType5_ = complexOptionType5_; } else { result.complexOptionType5_ = complexOptionType5Builder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.ComplexOptionType3) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.ComplexOptionType3)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.ComplexOptionType3 other) { if (other == protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.getDefaultInstance()) return this; if (other.hasQux()) { setQux(other.getQux()); } if (other.hasComplexOptionType5()) { mergeComplexOptionType5(other.getComplexOptionType5()); } 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.UnittestCustomOptions.ComplexOptionType3 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.ComplexOptionType3) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int qux_ ; /** * optional int32 qux = 1; */ public boolean hasQux() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 qux = 1; */ public int getQux() { return qux_; } /** * optional int32 qux = 1; */ public Builder setQux(int value) { bitField0_ |= 0x00000001; qux_ = value; onChanged(); return this; } /** * optional int32 qux = 1; */ public Builder clearQux() { bitField0_ = (bitField0_ & ~0x00000001); qux_ = 0; onChanged(); return this; } private protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 complexOptionType5_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder> complexOptionType5Builder_; /** * optional group ComplexOptionType5 = 2 { ... } */ public boolean hasComplexOptionType5() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional group ComplexOptionType5 = 2 { ... } */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 getComplexOptionType5() { if (complexOptionType5Builder_ == null) { return complexOptionType5_; } else { return complexOptionType5Builder_.getMessage(); } } /** * optional group ComplexOptionType5 = 2 { ... } */ public Builder setComplexOptionType5(protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 value) { if (complexOptionType5Builder_ == null) { if (value == null) { throw new NullPointerException(); } complexOptionType5_ = value; onChanged(); } else { complexOptionType5Builder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional group ComplexOptionType5 = 2 { ... } */ public Builder setComplexOptionType5( protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder builderForValue) { if (complexOptionType5Builder_ == null) { complexOptionType5_ = builderForValue.build(); onChanged(); } else { complexOptionType5Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional group ComplexOptionType5 = 2 { ... } */ public Builder mergeComplexOptionType5(protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 value) { if (complexOptionType5Builder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && complexOptionType5_ != protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.getDefaultInstance()) { complexOptionType5_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.newBuilder(complexOptionType5_).mergeFrom(value).buildPartial(); } else { complexOptionType5_ = value; } onChanged(); } else { complexOptionType5Builder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional group ComplexOptionType5 = 2 { ... } */ public Builder clearComplexOptionType5() { if (complexOptionType5Builder_ == null) { complexOptionType5_ = protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.getDefaultInstance(); onChanged(); } else { complexOptionType5Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional group ComplexOptionType5 = 2 { ... } */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder getComplexOptionType5Builder() { bitField0_ |= 0x00000002; onChanged(); return getComplexOptionType5FieldBuilder().getBuilder(); } /** * optional group ComplexOptionType5 = 2 { ... } */ public protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder getComplexOptionType5OrBuilder() { if (complexOptionType5Builder_ != null) { return complexOptionType5Builder_.getMessageOrBuilder(); } else { return complexOptionType5_; } } /** * optional group ComplexOptionType5 = 2 { ... } */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder> getComplexOptionType5FieldBuilder() { if (complexOptionType5Builder_ == null) { complexOptionType5Builder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder>( getComplexOptionType5(), getParentForChildren(), isClean()); complexOptionType5_ = null; } return complexOptionType5Builder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.ComplexOptionType3) } static { defaultInstance = new ComplexOptionType3(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType3) } public interface ComplexOpt6OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.ComplexOpt6) com.google.protobuf.MessageOrBuilder { /** * optional int32 xyzzy = 7593951; */ boolean hasXyzzy(); /** * optional int32 xyzzy = 7593951; */ int getXyzzy(); } /** * Protobuf type {@code protobuf_unittest.ComplexOpt6} */ public static final class ComplexOpt6 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.ComplexOpt6) ComplexOpt6OrBuilder { // Use ComplexOpt6.newBuilder() to construct. private ComplexOpt6(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ComplexOpt6(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ComplexOpt6 defaultInstance; public static ComplexOpt6 getDefaultInstance() { return defaultInstance; } public ComplexOpt6 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ComplexOpt6( 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 60751608: { bitField0_ |= 0x00000001; xyzzy_ = 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.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOpt6_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOpt6_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOpt6.class, protobuf_unittest.UnittestCustomOptions.ComplexOpt6.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ComplexOpt6 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ComplexOpt6(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int XYZZY_FIELD_NUMBER = 7593951; private int xyzzy_; /** * optional int32 xyzzy = 7593951; */ public boolean hasXyzzy() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 xyzzy = 7593951; */ public int getXyzzy() { return xyzzy_; } private void initFields() { xyzzy_ = 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(7593951, xyzzy_); } 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(7593951, xyzzy_); } 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.UnittestCustomOptions.ComplexOpt6 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOpt6 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.UnittestCustomOptions.ComplexOpt6 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.ComplexOpt6 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOpt6 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOpt6 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOpt6 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOpt6 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.ComplexOpt6 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.ComplexOpt6 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.UnittestCustomOptions.ComplexOpt6 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.ComplexOpt6} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.ComplexOpt6) protobuf_unittest.UnittestCustomOptions.ComplexOpt6OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOpt6_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOpt6_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.ComplexOpt6.class, protobuf_unittest.UnittestCustomOptions.ComplexOpt6.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.ComplexOpt6.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(); xyzzy_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_ComplexOpt6_descriptor; } public protobuf_unittest.UnittestCustomOptions.ComplexOpt6 getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.ComplexOpt6.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.ComplexOpt6 build() { protobuf_unittest.UnittestCustomOptions.ComplexOpt6 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.ComplexOpt6 buildPartial() { protobuf_unittest.UnittestCustomOptions.ComplexOpt6 result = new protobuf_unittest.UnittestCustomOptions.ComplexOpt6(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.xyzzy_ = xyzzy_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.ComplexOpt6) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.ComplexOpt6)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.ComplexOpt6 other) { if (other == protobuf_unittest.UnittestCustomOptions.ComplexOpt6.getDefaultInstance()) return this; if (other.hasXyzzy()) { setXyzzy(other.getXyzzy()); } 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.UnittestCustomOptions.ComplexOpt6 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.ComplexOpt6) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int xyzzy_ ; /** * optional int32 xyzzy = 7593951; */ public boolean hasXyzzy() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 xyzzy = 7593951; */ public int getXyzzy() { return xyzzy_; } /** * optional int32 xyzzy = 7593951; */ public Builder setXyzzy(int value) { bitField0_ |= 0x00000001; xyzzy_ = value; onChanged(); return this; } /** * optional int32 xyzzy = 7593951; */ public Builder clearXyzzy() { bitField0_ = (bitField0_ & ~0x00000001); xyzzy_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.ComplexOpt6) } static { defaultInstance = new ComplexOpt6(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOpt6) } public interface VariousComplexOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.VariousComplexOptions) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.VariousComplexOptions} * *
   * Note that we try various different ways of naming the same extension.
   * 
*/ public static final class VariousComplexOptions extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.VariousComplexOptions) VariousComplexOptionsOrBuilder { // Use VariousComplexOptions.newBuilder() to construct. private VariousComplexOptions(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private VariousComplexOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final VariousComplexOptions defaultInstance; public static VariousComplexOptions getDefaultInstance() { return defaultInstance; } public VariousComplexOptions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VariousComplexOptions( 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.UnittestCustomOptions.internal_static_protobuf_unittest_VariousComplexOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_VariousComplexOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.VariousComplexOptions.class, protobuf_unittest.UnittestCustomOptions.VariousComplexOptions.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VariousComplexOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VariousComplexOptions(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.UnittestCustomOptions.VariousComplexOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.VariousComplexOptions 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.UnittestCustomOptions.VariousComplexOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.VariousComplexOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.VariousComplexOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.VariousComplexOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.VariousComplexOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.VariousComplexOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.VariousComplexOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.VariousComplexOptions 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.UnittestCustomOptions.VariousComplexOptions 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.VariousComplexOptions} * *
     * Note that we try various different ways of naming the same extension.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.VariousComplexOptions) protobuf_unittest.UnittestCustomOptions.VariousComplexOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_VariousComplexOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_VariousComplexOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.VariousComplexOptions.class, protobuf_unittest.UnittestCustomOptions.VariousComplexOptions.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.VariousComplexOptions.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.UnittestCustomOptions.internal_static_protobuf_unittest_VariousComplexOptions_descriptor; } public protobuf_unittest.UnittestCustomOptions.VariousComplexOptions getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.VariousComplexOptions.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.VariousComplexOptions build() { protobuf_unittest.UnittestCustomOptions.VariousComplexOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.VariousComplexOptions buildPartial() { protobuf_unittest.UnittestCustomOptions.VariousComplexOptions result = new protobuf_unittest.UnittestCustomOptions.VariousComplexOptions(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.VariousComplexOptions) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.VariousComplexOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.VariousComplexOptions other) { if (other == protobuf_unittest.UnittestCustomOptions.VariousComplexOptions.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.UnittestCustomOptions.VariousComplexOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.VariousComplexOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.VariousComplexOptions) } static { defaultInstance = new VariousComplexOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.VariousComplexOptions) } public interface AggregateMessageSetOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.AggregateMessageSet) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.AggregateMessageSet} */ public static final class AggregateMessageSet extends com.google.protobuf.GeneratedMessage.ExtendableMessage< AggregateMessageSet> implements // @@protoc_insertion_point(message_implements:protobuf_unittest.AggregateMessageSet) AggregateMessageSetOrBuilder { // Use AggregateMessageSet.newBuilder() to construct. private AggregateMessageSet(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AggregateMessageSet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AggregateMessageSet defaultInstance; public static AggregateMessageSet getDefaultInstance() { return defaultInstance; } public AggregateMessageSet getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AggregateMessageSet( 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.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessageSet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessageSet_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.class, protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AggregateMessageSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AggregateMessageSet(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 = newMessageSetExtensionWriter(); extensionWriter.writeUntil(2147483647, output); getUnknownFields().writeAsMessageSetTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += extensionsSerializedSizeAsMessageSet(); size += getUnknownFields().getSerializedSizeAsMessageSet(); 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.UnittestCustomOptions.AggregateMessageSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSet 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.UnittestCustomOptions.AggregateMessageSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSet parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSet 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.UnittestCustomOptions.AggregateMessageSet 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.AggregateMessageSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest.UnittestCustomOptions.AggregateMessageSet, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.AggregateMessageSet) protobuf_unittest.UnittestCustomOptions.AggregateMessageSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessageSet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessageSet_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.class, protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.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.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessageSet_descriptor; } public protobuf_unittest.UnittestCustomOptions.AggregateMessageSet getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.AggregateMessageSet build() { protobuf_unittest.UnittestCustomOptions.AggregateMessageSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.AggregateMessageSet buildPartial() { protobuf_unittest.UnittestCustomOptions.AggregateMessageSet result = new protobuf_unittest.UnittestCustomOptions.AggregateMessageSet(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.AggregateMessageSet) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.AggregateMessageSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.AggregateMessageSet other) { if (other == protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.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.UnittestCustomOptions.AggregateMessageSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.AggregateMessageSet) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.AggregateMessageSet) } static { defaultInstance = new AggregateMessageSet(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.AggregateMessageSet) } public interface AggregateMessageSetElementOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.AggregateMessageSetElement) com.google.protobuf.MessageOrBuilder { /** * optional string s = 1; */ boolean hasS(); /** * optional string s = 1; */ java.lang.String getS(); /** * optional string s = 1; */ com.google.protobuf.ByteString getSBytes(); } /** * Protobuf type {@code protobuf_unittest.AggregateMessageSetElement} */ public static final class AggregateMessageSetElement extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.AggregateMessageSetElement) AggregateMessageSetElementOrBuilder { // Use AggregateMessageSetElement.newBuilder() to construct. private AggregateMessageSetElement(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AggregateMessageSetElement(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AggregateMessageSetElement defaultInstance; public static AggregateMessageSetElement getDefaultInstance() { return defaultInstance; } public AggregateMessageSetElement getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AggregateMessageSetElement( 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; s_ = 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.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessageSetElement_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessageSetElement_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.class, protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AggregateMessageSetElement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AggregateMessageSetElement(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int S_FIELD_NUMBER = 1; private java.lang.Object s_; /** * optional string s = 1; */ public boolean hasS() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string s = 1; */ public java.lang.String getS() { java.lang.Object ref = s_; 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()) { s_ = s; } return s; } } /** * optional string s = 1; */ public com.google.protobuf.ByteString getSBytes() { java.lang.Object ref = s_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); s_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { s_ = ""; } 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, getSBytes()); } 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, getSBytes()); } 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.UnittestCustomOptions.AggregateMessageSetElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement 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.UnittestCustomOptions.AggregateMessageSetElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement 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.UnittestCustomOptions.AggregateMessageSetElement 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.AggregateMessageSetElement} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.AggregateMessageSetElement) protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessageSetElement_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessageSetElement_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.class, protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.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(); s_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessageSetElement_descriptor; } public protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement build() { protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement buildPartial() { protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement result = new protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.s_ = s_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement other) { if (other == protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.getDefaultInstance()) return this; if (other.hasS()) { bitField0_ |= 0x00000001; s_ = other.s_; 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.UnittestCustomOptions.AggregateMessageSetElement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object s_ = ""; /** * optional string s = 1; */ public boolean hasS() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string s = 1; */ public java.lang.String getS() { java.lang.Object ref = s_; 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()) { s_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string s = 1; */ public com.google.protobuf.ByteString getSBytes() { java.lang.Object ref = s_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); s_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string s = 1; */ public Builder setS( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; s_ = value; onChanged(); return this; } /** * optional string s = 1; */ public Builder clearS() { bitField0_ = (bitField0_ & ~0x00000001); s_ = getDefaultInstance().getS(); onChanged(); return this; } /** * optional string s = 1; */ public Builder setSBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; s_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.AggregateMessageSetElement) } static { defaultInstance = new AggregateMessageSetElement(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.AggregateMessageSetElement) public static final int MESSAGE_SET_EXTENSION_FIELD_NUMBER = 15447542; /** * extend .protobuf_unittest.AggregateMessageSet { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestCustomOptions.AggregateMessageSet, protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement> messageSetExtension = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.getDefaultInstance(), 0, protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.class, protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.getDefaultInstance()); } public interface AggregateOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.Aggregate) com.google.protobuf.MessageOrBuilder { /** * optional int32 i = 1; */ boolean hasI(); /** * optional int32 i = 1; */ int getI(); /** * optional string s = 2; */ boolean hasS(); /** * optional string s = 2; */ java.lang.String getS(); /** * optional string s = 2; */ com.google.protobuf.ByteString getSBytes(); /** * optional .protobuf_unittest.Aggregate sub = 3; * *
     * A nested object
     * 
*/ boolean hasSub(); /** * optional .protobuf_unittest.Aggregate sub = 3; * *
     * A nested object
     * 
*/ protobuf_unittest.UnittestCustomOptions.Aggregate getSub(); /** * optional .protobuf_unittest.Aggregate sub = 3; * *
     * A nested object
     * 
*/ protobuf_unittest.UnittestCustomOptions.AggregateOrBuilder getSubOrBuilder(); /** * optional .google.protobuf.FileOptions file = 4; * *
     * To test the parsing of extensions inside aggregate values
     * 
*/ boolean hasFile(); /** * optional .google.protobuf.FileOptions file = 4; * *
     * To test the parsing of extensions inside aggregate values
     * 
*/ com.google.protobuf.DescriptorProtos.FileOptions getFile(); /** * optional .google.protobuf.FileOptions file = 4; * *
     * To test the parsing of extensions inside aggregate values
     * 
*/ com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getFileOrBuilder(); /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
     * An embedded message set
     * 
*/ boolean hasMset(); /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
     * An embedded message set
     * 
*/ protobuf_unittest.UnittestCustomOptions.AggregateMessageSet getMset(); /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
     * An embedded message set
     * 
*/ protobuf_unittest.UnittestCustomOptions.AggregateMessageSetOrBuilder getMsetOrBuilder(); } /** * Protobuf type {@code protobuf_unittest.Aggregate} * *
   * A helper type used to test aggregate option parsing
   * 
*/ public static final class Aggregate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.Aggregate) AggregateOrBuilder { // Use Aggregate.newBuilder() to construct. private Aggregate(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Aggregate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Aggregate defaultInstance; public static Aggregate getDefaultInstance() { return defaultInstance; } public Aggregate getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Aggregate( 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; i_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; s_ = bs; break; } case 26: { protobuf_unittest.UnittestCustomOptions.Aggregate.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = sub_.toBuilder(); } sub_ = input.readMessage(protobuf_unittest.UnittestCustomOptions.Aggregate.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sub_); sub_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protobuf.DescriptorProtos.FileOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = file_.toBuilder(); } file_ = input.readMessage(com.google.protobuf.DescriptorProtos.FileOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(file_); file_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = mset_.toBuilder(); } mset_ = input.readMessage(protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mset_); mset_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; 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.UnittestCustomOptions.internal_static_protobuf_unittest_Aggregate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_Aggregate_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.Aggregate.class, protobuf_unittest.UnittestCustomOptions.Aggregate.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Aggregate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Aggregate(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int I_FIELD_NUMBER = 1; private int i_; /** * optional int32 i = 1; */ public boolean hasI() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 i = 1; */ public int getI() { return i_; } public static final int S_FIELD_NUMBER = 2; private java.lang.Object s_; /** * optional string s = 2; */ public boolean hasS() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string s = 2; */ public java.lang.String getS() { java.lang.Object ref = s_; 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()) { s_ = s; } return s; } } /** * optional string s = 2; */ public com.google.protobuf.ByteString getSBytes() { java.lang.Object ref = s_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); s_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUB_FIELD_NUMBER = 3; private protobuf_unittest.UnittestCustomOptions.Aggregate sub_; /** * optional .protobuf_unittest.Aggregate sub = 3; * *
     * A nested object
     * 
*/ public boolean hasSub() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.Aggregate sub = 3; * *
     * A nested object
     * 
*/ public protobuf_unittest.UnittestCustomOptions.Aggregate getSub() { return sub_; } /** * optional .protobuf_unittest.Aggregate sub = 3; * *
     * A nested object
     * 
*/ public protobuf_unittest.UnittestCustomOptions.AggregateOrBuilder getSubOrBuilder() { return sub_; } public static final int FILE_FIELD_NUMBER = 4; private com.google.protobuf.DescriptorProtos.FileOptions file_; /** * optional .google.protobuf.FileOptions file = 4; * *
     * To test the parsing of extensions inside aggregate values
     * 
*/ public boolean hasFile() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .google.protobuf.FileOptions file = 4; * *
     * To test the parsing of extensions inside aggregate values
     * 
*/ public com.google.protobuf.DescriptorProtos.FileOptions getFile() { return file_; } /** * optional .google.protobuf.FileOptions file = 4; * *
     * To test the parsing of extensions inside aggregate values
     * 
*/ public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getFileOrBuilder() { return file_; } public static final int MSET_FIELD_NUMBER = 5; private protobuf_unittest.UnittestCustomOptions.AggregateMessageSet mset_; /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
     * An embedded message set
     * 
*/ public boolean hasMset() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
     * An embedded message set
     * 
*/ public protobuf_unittest.UnittestCustomOptions.AggregateMessageSet getMset() { return mset_; } /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
     * An embedded message set
     * 
*/ public protobuf_unittest.UnittestCustomOptions.AggregateMessageSetOrBuilder getMsetOrBuilder() { return mset_; } private void initFields() { i_ = 0; s_ = ""; sub_ = protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance(); file_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); mset_ = protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasSub()) { if (!getSub().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasFile()) { if (!getFile().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasMset()) { if (!getMset().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.writeInt32(1, i_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getSBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, sub_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, file_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, mset_); } 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, i_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, sub_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, file_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, mset_); } 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.UnittestCustomOptions.Aggregate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.Aggregate 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.UnittestCustomOptions.Aggregate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.Aggregate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.Aggregate parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.Aggregate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.Aggregate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.Aggregate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.Aggregate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.Aggregate 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.UnittestCustomOptions.Aggregate 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.Aggregate} * *
     * A helper type used to test aggregate option parsing
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.Aggregate) protobuf_unittest.UnittestCustomOptions.AggregateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_Aggregate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_Aggregate_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.Aggregate.class, protobuf_unittest.UnittestCustomOptions.Aggregate.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.Aggregate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSubFieldBuilder(); getFileFieldBuilder(); getMsetFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); i_ = 0; bitField0_ = (bitField0_ & ~0x00000001); s_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (subBuilder_ == null) { sub_ = protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance(); } else { subBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (fileBuilder_ == null) { file_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); } else { fileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (msetBuilder_ == null) { mset_ = protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.getDefaultInstance(); } else { msetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_Aggregate_descriptor; } public protobuf_unittest.UnittestCustomOptions.Aggregate getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.Aggregate build() { protobuf_unittest.UnittestCustomOptions.Aggregate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.Aggregate buildPartial() { protobuf_unittest.UnittestCustomOptions.Aggregate result = new protobuf_unittest.UnittestCustomOptions.Aggregate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.i_ = i_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.s_ = s_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (subBuilder_ == null) { result.sub_ = sub_; } else { result.sub_ = subBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (fileBuilder_ == null) { result.file_ = file_; } else { result.file_ = fileBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (msetBuilder_ == null) { result.mset_ = mset_; } else { result.mset_ = msetBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.Aggregate) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.Aggregate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.Aggregate other) { if (other == protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance()) return this; if (other.hasI()) { setI(other.getI()); } if (other.hasS()) { bitField0_ |= 0x00000002; s_ = other.s_; onChanged(); } if (other.hasSub()) { mergeSub(other.getSub()); } if (other.hasFile()) { mergeFile(other.getFile()); } if (other.hasMset()) { mergeMset(other.getMset()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasSub()) { if (!getSub().isInitialized()) { return false; } } if (hasFile()) { if (!getFile().isInitialized()) { return false; } } if (hasMset()) { if (!getMset().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protobuf_unittest.UnittestCustomOptions.Aggregate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.Aggregate) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int i_ ; /** * optional int32 i = 1; */ public boolean hasI() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 i = 1; */ public int getI() { return i_; } /** * optional int32 i = 1; */ public Builder setI(int value) { bitField0_ |= 0x00000001; i_ = value; onChanged(); return this; } /** * optional int32 i = 1; */ public Builder clearI() { bitField0_ = (bitField0_ & ~0x00000001); i_ = 0; onChanged(); return this; } private java.lang.Object s_ = ""; /** * optional string s = 2; */ public boolean hasS() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string s = 2; */ public java.lang.String getS() { java.lang.Object ref = s_; 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()) { s_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string s = 2; */ public com.google.protobuf.ByteString getSBytes() { java.lang.Object ref = s_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); s_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string s = 2; */ public Builder setS( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; s_ = value; onChanged(); return this; } /** * optional string s = 2; */ public Builder clearS() { bitField0_ = (bitField0_ & ~0x00000002); s_ = getDefaultInstance().getS(); onChanged(); return this; } /** * optional string s = 2; */ public Builder setSBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; s_ = value; onChanged(); return this; } private protobuf_unittest.UnittestCustomOptions.Aggregate sub_ = protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.Aggregate, protobuf_unittest.UnittestCustomOptions.Aggregate.Builder, protobuf_unittest.UnittestCustomOptions.AggregateOrBuilder> subBuilder_; /** * optional .protobuf_unittest.Aggregate sub = 3; * *
       * A nested object
       * 
*/ public boolean hasSub() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .protobuf_unittest.Aggregate sub = 3; * *
       * A nested object
       * 
*/ public protobuf_unittest.UnittestCustomOptions.Aggregate getSub() { if (subBuilder_ == null) { return sub_; } else { return subBuilder_.getMessage(); } } /** * optional .protobuf_unittest.Aggregate sub = 3; * *
       * A nested object
       * 
*/ public Builder setSub(protobuf_unittest.UnittestCustomOptions.Aggregate value) { if (subBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sub_ = value; onChanged(); } else { subBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .protobuf_unittest.Aggregate sub = 3; * *
       * A nested object
       * 
*/ public Builder setSub( protobuf_unittest.UnittestCustomOptions.Aggregate.Builder builderForValue) { if (subBuilder_ == null) { sub_ = builderForValue.build(); onChanged(); } else { subBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .protobuf_unittest.Aggregate sub = 3; * *
       * A nested object
       * 
*/ public Builder mergeSub(protobuf_unittest.UnittestCustomOptions.Aggregate value) { if (subBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && sub_ != protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance()) { sub_ = protobuf_unittest.UnittestCustomOptions.Aggregate.newBuilder(sub_).mergeFrom(value).buildPartial(); } else { sub_ = value; } onChanged(); } else { subBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .protobuf_unittest.Aggregate sub = 3; * *
       * A nested object
       * 
*/ public Builder clearSub() { if (subBuilder_ == null) { sub_ = protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance(); onChanged(); } else { subBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .protobuf_unittest.Aggregate sub = 3; * *
       * A nested object
       * 
*/ public protobuf_unittest.UnittestCustomOptions.Aggregate.Builder getSubBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSubFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.Aggregate sub = 3; * *
       * A nested object
       * 
*/ public protobuf_unittest.UnittestCustomOptions.AggregateOrBuilder getSubOrBuilder() { if (subBuilder_ != null) { return subBuilder_.getMessageOrBuilder(); } else { return sub_; } } /** * optional .protobuf_unittest.Aggregate sub = 3; * *
       * A nested object
       * 
*/ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.Aggregate, protobuf_unittest.UnittestCustomOptions.Aggregate.Builder, protobuf_unittest.UnittestCustomOptions.AggregateOrBuilder> getSubFieldBuilder() { if (subBuilder_ == null) { subBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.Aggregate, protobuf_unittest.UnittestCustomOptions.Aggregate.Builder, protobuf_unittest.UnittestCustomOptions.AggregateOrBuilder>( getSub(), getParentForChildren(), isClean()); sub_ = null; } return subBuilder_; } private com.google.protobuf.DescriptorProtos.FileOptions file_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> fileBuilder_; /** * optional .google.protobuf.FileOptions file = 4; * *
       * To test the parsing of extensions inside aggregate values
       * 
*/ public boolean hasFile() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .google.protobuf.FileOptions file = 4; * *
       * To test the parsing of extensions inside aggregate values
       * 
*/ public com.google.protobuf.DescriptorProtos.FileOptions getFile() { if (fileBuilder_ == null) { return file_; } else { return fileBuilder_.getMessage(); } } /** * optional .google.protobuf.FileOptions file = 4; * *
       * To test the parsing of extensions inside aggregate values
       * 
*/ public Builder setFile(com.google.protobuf.DescriptorProtos.FileOptions value) { if (fileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } file_ = value; onChanged(); } else { fileBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .google.protobuf.FileOptions file = 4; * *
       * To test the parsing of extensions inside aggregate values
       * 
*/ public Builder setFile( com.google.protobuf.DescriptorProtos.FileOptions.Builder builderForValue) { if (fileBuilder_ == null) { file_ = builderForValue.build(); onChanged(); } else { fileBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .google.protobuf.FileOptions file = 4; * *
       * To test the parsing of extensions inside aggregate values
       * 
*/ public Builder mergeFile(com.google.protobuf.DescriptorProtos.FileOptions value) { if (fileBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && file_ != com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance()) { file_ = com.google.protobuf.DescriptorProtos.FileOptions.newBuilder(file_).mergeFrom(value).buildPartial(); } else { file_ = value; } onChanged(); } else { fileBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .google.protobuf.FileOptions file = 4; * *
       * To test the parsing of extensions inside aggregate values
       * 
*/ public Builder clearFile() { if (fileBuilder_ == null) { file_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); onChanged(); } else { fileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .google.protobuf.FileOptions file = 4; * *
       * To test the parsing of extensions inside aggregate values
       * 
*/ public com.google.protobuf.DescriptorProtos.FileOptions.Builder getFileBuilder() { bitField0_ |= 0x00000008; onChanged(); return getFileFieldBuilder().getBuilder(); } /** * optional .google.protobuf.FileOptions file = 4; * *
       * To test the parsing of extensions inside aggregate values
       * 
*/ public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getFileOrBuilder() { if (fileBuilder_ != null) { return fileBuilder_.getMessageOrBuilder(); } else { return file_; } } /** * optional .google.protobuf.FileOptions file = 4; * *
       * To test the parsing of extensions inside aggregate values
       * 
*/ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> getFileFieldBuilder() { if (fileBuilder_ == null) { fileBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder>( getFile(), getParentForChildren(), isClean()); file_ = null; } return fileBuilder_; } private protobuf_unittest.UnittestCustomOptions.AggregateMessageSet mset_ = protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.AggregateMessageSet, protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.Builder, protobuf_unittest.UnittestCustomOptions.AggregateMessageSetOrBuilder> msetBuilder_; /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
       * An embedded message set
       * 
*/ public boolean hasMset() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
       * An embedded message set
       * 
*/ public protobuf_unittest.UnittestCustomOptions.AggregateMessageSet getMset() { if (msetBuilder_ == null) { return mset_; } else { return msetBuilder_.getMessage(); } } /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
       * An embedded message set
       * 
*/ public Builder setMset(protobuf_unittest.UnittestCustomOptions.AggregateMessageSet value) { if (msetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mset_ = value; onChanged(); } else { msetBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
       * An embedded message set
       * 
*/ public Builder setMset( protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.Builder builderForValue) { if (msetBuilder_ == null) { mset_ = builderForValue.build(); onChanged(); } else { msetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
       * An embedded message set
       * 
*/ public Builder mergeMset(protobuf_unittest.UnittestCustomOptions.AggregateMessageSet value) { if (msetBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && mset_ != protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.getDefaultInstance()) { mset_ = protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.newBuilder(mset_).mergeFrom(value).buildPartial(); } else { mset_ = value; } onChanged(); } else { msetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
       * An embedded message set
       * 
*/ public Builder clearMset() { if (msetBuilder_ == null) { mset_ = protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.getDefaultInstance(); onChanged(); } else { msetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
       * An embedded message set
       * 
*/ public protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.Builder getMsetBuilder() { bitField0_ |= 0x00000010; onChanged(); return getMsetFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
       * An embedded message set
       * 
*/ public protobuf_unittest.UnittestCustomOptions.AggregateMessageSetOrBuilder getMsetOrBuilder() { if (msetBuilder_ != null) { return msetBuilder_.getMessageOrBuilder(); } else { return mset_; } } /** * optional .protobuf_unittest.AggregateMessageSet mset = 5; * *
       * An embedded message set
       * 
*/ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.AggregateMessageSet, protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.Builder, protobuf_unittest.UnittestCustomOptions.AggregateMessageSetOrBuilder> getMsetFieldBuilder() { if (msetBuilder_ == null) { msetBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest.UnittestCustomOptions.AggregateMessageSet, protobuf_unittest.UnittestCustomOptions.AggregateMessageSet.Builder, protobuf_unittest.UnittestCustomOptions.AggregateMessageSetOrBuilder>( getMset(), getParentForChildren(), isClean()); mset_ = null; } return msetBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.Aggregate) } static { defaultInstance = new Aggregate(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.Aggregate) public static final int NESTED_FIELD_NUMBER = 15476903; /** * extend .google.protobuf.FileOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, protobuf_unittest.UnittestCustomOptions.Aggregate> nested = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance(), 0, protobuf_unittest.UnittestCustomOptions.Aggregate.class, protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance()); } public interface AggregateMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.AggregateMessage) com.google.protobuf.MessageOrBuilder { /** * optional int32 fieldname = 1; */ boolean hasFieldname(); /** * optional int32 fieldname = 1; */ int getFieldname(); } /** * Protobuf type {@code protobuf_unittest.AggregateMessage} */ public static final class AggregateMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.AggregateMessage) AggregateMessageOrBuilder { // Use AggregateMessage.newBuilder() to construct. private AggregateMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AggregateMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AggregateMessage defaultInstance; public static AggregateMessage getDefaultInstance() { return defaultInstance; } public AggregateMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AggregateMessage( 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; fieldname_ = 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.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.AggregateMessage.class, protobuf_unittest.UnittestCustomOptions.AggregateMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AggregateMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AggregateMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int FIELDNAME_FIELD_NUMBER = 1; private int fieldname_; /** * optional int32 fieldname = 1; */ public boolean hasFieldname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 fieldname = 1; */ public int getFieldname() { return fieldname_; } private void initFields() { fieldname_ = 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, fieldname_); } 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, fieldname_); } 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.UnittestCustomOptions.AggregateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessage 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.UnittestCustomOptions.AggregateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.AggregateMessage 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.UnittestCustomOptions.AggregateMessage 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.AggregateMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.AggregateMessage) protobuf_unittest.UnittestCustomOptions.AggregateMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.AggregateMessage.class, protobuf_unittest.UnittestCustomOptions.AggregateMessage.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.AggregateMessage.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(); fieldname_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_AggregateMessage_descriptor; } public protobuf_unittest.UnittestCustomOptions.AggregateMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.AggregateMessage.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.AggregateMessage build() { protobuf_unittest.UnittestCustomOptions.AggregateMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.AggregateMessage buildPartial() { protobuf_unittest.UnittestCustomOptions.AggregateMessage result = new protobuf_unittest.UnittestCustomOptions.AggregateMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.fieldname_ = fieldname_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.AggregateMessage) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.AggregateMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.AggregateMessage other) { if (other == protobuf_unittest.UnittestCustomOptions.AggregateMessage.getDefaultInstance()) return this; if (other.hasFieldname()) { setFieldname(other.getFieldname()); } 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.UnittestCustomOptions.AggregateMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.AggregateMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int fieldname_ ; /** * optional int32 fieldname = 1; */ public boolean hasFieldname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 fieldname = 1; */ public int getFieldname() { return fieldname_; } /** * optional int32 fieldname = 1; */ public Builder setFieldname(int value) { bitField0_ |= 0x00000001; fieldname_ = value; onChanged(); return this; } /** * optional int32 fieldname = 1; */ public Builder clearFieldname() { bitField0_ = (bitField0_ & ~0x00000001); fieldname_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.AggregateMessage) } static { defaultInstance = new AggregateMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.AggregateMessage) } public interface NestedOptionTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.NestedOptionType) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest.NestedOptionType} * *
   * Test custom options for nested type.
   * 
*/ public static final class NestedOptionType extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.NestedOptionType) NestedOptionTypeOrBuilder { // Use NestedOptionType.newBuilder() to construct. private NestedOptionType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NestedOptionType(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NestedOptionType defaultInstance; public static NestedOptionType getDefaultInstance() { return defaultInstance; } public NestedOptionType getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NestedOptionType( 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.UnittestCustomOptions.internal_static_protobuf_unittest_NestedOptionType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_NestedOptionType_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.NestedOptionType.class, protobuf_unittest.UnittestCustomOptions.NestedOptionType.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NestedOptionType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NestedOptionType(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code protobuf_unittest.NestedOptionType.NestedEnum} */ public enum NestedEnum implements com.google.protobuf.ProtocolMessageEnum { /** * NESTED_ENUM_VALUE = 1; */ NESTED_ENUM_VALUE(0, 1), ; /** * NESTED_ENUM_VALUE = 1; */ public static final int NESTED_ENUM_VALUE_VALUE = 1; public final int getNumber() { return value; } public static NestedEnum valueOf(int value) { switch (value) { case 1: return NESTED_ENUM_VALUE; 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.UnittestCustomOptions.NestedOptionType.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.NestedOptionType.NestedEnum) } public interface NestedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest.NestedOptionType.NestedMessage) com.google.protobuf.MessageOrBuilder { /** * optional int32 nested_field = 1; */ boolean hasNestedField(); /** * optional int32 nested_field = 1; */ int getNestedField(); } /** * Protobuf type {@code protobuf_unittest.NestedOptionType.NestedMessage} */ public static final class NestedMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest.NestedOptionType.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; nestedField_ = 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.UnittestCustomOptions.internal_static_protobuf_unittest_NestedOptionType_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_NestedOptionType_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage.class, protobuf_unittest.UnittestCustomOptions.NestedOptionType.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 NESTED_FIELD_FIELD_NUMBER = 1; private int nestedField_; /** * optional int32 nested_field = 1; */ public boolean hasNestedField() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 nested_field = 1; */ public int getNestedField() { return nestedField_; } private void initFields() { nestedField_ = 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, nestedField_); } 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, nestedField_); } 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.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType.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.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType.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.UnittestCustomOptions.NestedOptionType.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.NestedOptionType.NestedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.NestedOptionType.NestedMessage) protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_NestedOptionType_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_NestedOptionType_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage.class, protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.NestedOptionType.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(); nestedField_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_NestedOptionType_NestedMessage_descriptor; } public protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage build() { protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage buildPartial() { protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage result = new protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.nestedField_ = nestedField_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage other) { if (other == protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage.getDefaultInstance()) return this; if (other.hasNestedField()) { setNestedField(other.getNestedField()); } 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.UnittestCustomOptions.NestedOptionType.NestedMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.NestedOptionType.NestedMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int nestedField_ ; /** * optional int32 nested_field = 1; */ public boolean hasNestedField() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 nested_field = 1; */ public int getNestedField() { return nestedField_; } /** * optional int32 nested_field = 1; */ public Builder setNestedField(int value) { bitField0_ |= 0x00000001; nestedField_ = value; onChanged(); return this; } /** * optional int32 nested_field = 1; */ public Builder clearNestedField() { bitField0_ = (bitField0_ & ~0x00000001); nestedField_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.NestedOptionType.NestedMessage) } static { defaultInstance = new NestedMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.NestedOptionType.NestedMessage) } 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.UnittestCustomOptions.NestedOptionType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType 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.UnittestCustomOptions.NestedOptionType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest.UnittestCustomOptions.NestedOptionType 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.UnittestCustomOptions.NestedOptionType 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.NestedOptionType} * *
     * Test custom options for nested type.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest.NestedOptionType) protobuf_unittest.UnittestCustomOptions.NestedOptionTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_NestedOptionType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest.UnittestCustomOptions.internal_static_protobuf_unittest_NestedOptionType_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest.UnittestCustomOptions.NestedOptionType.class, protobuf_unittest.UnittestCustomOptions.NestedOptionType.Builder.class); } // Construct using protobuf_unittest.UnittestCustomOptions.NestedOptionType.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.UnittestCustomOptions.internal_static_protobuf_unittest_NestedOptionType_descriptor; } public protobuf_unittest.UnittestCustomOptions.NestedOptionType getDefaultInstanceForType() { return protobuf_unittest.UnittestCustomOptions.NestedOptionType.getDefaultInstance(); } public protobuf_unittest.UnittestCustomOptions.NestedOptionType build() { protobuf_unittest.UnittestCustomOptions.NestedOptionType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest.UnittestCustomOptions.NestedOptionType buildPartial() { protobuf_unittest.UnittestCustomOptions.NestedOptionType result = new protobuf_unittest.UnittestCustomOptions.NestedOptionType(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest.UnittestCustomOptions.NestedOptionType) { return mergeFrom((protobuf_unittest.UnittestCustomOptions.NestedOptionType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest.UnittestCustomOptions.NestedOptionType other) { if (other == protobuf_unittest.UnittestCustomOptions.NestedOptionType.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.UnittestCustomOptions.NestedOptionType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest.UnittestCustomOptions.NestedOptionType) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest.NestedOptionType) } static { defaultInstance = new NestedOptionType(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest.NestedOptionType) public static final int NESTED_EXTENSION_FIELD_NUMBER = 7912573; /** * extend .google.protobuf.FileOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, java.lang.Integer> nestedExtension = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.NestedOptionType.getDefaultInstance(), 0, java.lang.Integer.class, null); } /** * Protobuf service {@code protobuf_unittest.TestServiceWithCustomOptions} */ public static abstract class TestServiceWithCustomOptions implements com.google.protobuf.Service { protected TestServiceWithCustomOptions() {} public interface Interface { /** * rpc Foo(.protobuf_unittest.CustomOptionFooRequest) returns (.protobuf_unittest.CustomOptionFooResponse); */ public abstract void foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new TestServiceWithCustomOptions() { @java.lang.Override public void foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest request, com.google.protobuf.RpcCallback done) { impl.foo(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.UnittestCustomOptions.CustomOptionFooRequest)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.UnittestCustomOptions.CustomOptionFooRequest.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.UnittestCustomOptions.CustomOptionFooResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } /** * rpc Foo(.protobuf_unittest.CustomOptionFooRequest) returns (.protobuf_unittest.CustomOptionFooResponse); */ public abstract void foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.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.UnittestCustomOptions.CustomOptionFooRequest)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.UnittestCustomOptions.CustomOptionFooRequest.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.UnittestCustomOptions.CustomOptionFooResponse.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.UnittestCustomOptions.TestServiceWithCustomOptions 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.UnittestCustomOptions.CustomOptionFooRequest request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.class, protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest 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.UnittestCustomOptions.CustomOptionFooResponse foo( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.CustomOptionFooRequest request) throws com.google.protobuf.ServiceException { return (protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, protobuf_unittest.UnittestCustomOptions.CustomOptionFooResponse.getDefaultInstance()); } } // @@protoc_insertion_point(class_scope:protobuf_unittest.TestServiceWithCustomOptions) } /** * Protobuf service {@code protobuf_unittest.AggregateService} */ public static abstract class AggregateService implements com.google.protobuf.Service { protected AggregateService() {} public interface Interface { /** * rpc Method(.protobuf_unittest.AggregateMessage) returns (.protobuf_unittest.AggregateMessage); */ public abstract void method( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.AggregateMessage request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new AggregateService() { @java.lang.Override public void method( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.AggregateMessage request, com.google.protobuf.RpcCallback done) { impl.method(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.method(controller, (protobuf_unittest.UnittestCustomOptions.AggregateMessage)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.UnittestCustomOptions.AggregateMessage.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.UnittestCustomOptions.AggregateMessage.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } /** * rpc Method(.protobuf_unittest.AggregateMessage) returns (.protobuf_unittest.AggregateMessage); */ public abstract void method( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.AggregateMessage request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return protobuf_unittest.UnittestCustomOptions.getDescriptor().getServices().get(1); } 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.method(controller, (protobuf_unittest.UnittestCustomOptions.AggregateMessage)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.UnittestCustomOptions.AggregateMessage.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.UnittestCustomOptions.AggregateMessage.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.UnittestCustomOptions.AggregateService 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 method( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.AggregateMessage request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, protobuf_unittest.UnittestCustomOptions.AggregateMessage.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, protobuf_unittest.UnittestCustomOptions.AggregateMessage.class, protobuf_unittest.UnittestCustomOptions.AggregateMessage.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public protobuf_unittest.UnittestCustomOptions.AggregateMessage method( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.AggregateMessage 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.UnittestCustomOptions.AggregateMessage method( com.google.protobuf.RpcController controller, protobuf_unittest.UnittestCustomOptions.AggregateMessage request) throws com.google.protobuf.ServiceException { return (protobuf_unittest.UnittestCustomOptions.AggregateMessage) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, protobuf_unittest.UnittestCustomOptions.AggregateMessage.getDefaultInstance()); } } // @@protoc_insertion_point(class_scope:protobuf_unittest.AggregateService) } public static final int FILE_OPT1_FIELD_NUMBER = 7736974; /** * extend .google.protobuf.FileOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, java.lang.Long> fileOpt1 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int MESSAGE_OPT1_FIELD_NUMBER = 7739036; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Integer> messageOpt1 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int FIELD_OPT1_FIELD_NUMBER = 7740936; /** * extend .google.protobuf.FieldOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, java.lang.Long> fieldOpt1 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int FIELD_OPT2_FIELD_NUMBER = 7753913; /** * extend .google.protobuf.FieldOptions { ... } * *
   * This is useful for testing that we correctly register default values for
   * extension options.
   * 
*/ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, java.lang.Integer> fieldOpt2 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int ENUM_OPT1_FIELD_NUMBER = 7753576; /** * extend .google.protobuf.EnumOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumOptions, java.lang.Integer> enumOpt1 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int ENUM_VALUE_OPT1_FIELD_NUMBER = 1560678; /** * extend .google.protobuf.EnumValueOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumValueOptions, java.lang.Integer> enumValueOpt1 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int SERVICE_OPT1_FIELD_NUMBER = 7887650; /** * extend .google.protobuf.ServiceOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ServiceOptions, java.lang.Long> serviceOpt1 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int METHOD_OPT1_FIELD_NUMBER = 7890860; /** * extend .google.protobuf.MethodOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, protobuf_unittest.UnittestCustomOptions.MethodOpt1> methodOpt1 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.MethodOpt1.class, null); public static final int BOOL_OPT_FIELD_NUMBER = 7706090; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Boolean> boolOpt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int INT32_OPT_FIELD_NUMBER = 7705709; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Integer> int32Opt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int INT64_OPT_FIELD_NUMBER = 7705542; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Long> int64Opt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int UINT32_OPT_FIELD_NUMBER = 7704880; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Integer> uint32Opt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int UINT64_OPT_FIELD_NUMBER = 7702367; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Long> uint64Opt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int SINT32_OPT_FIELD_NUMBER = 7701568; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Integer> sint32Opt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int SINT64_OPT_FIELD_NUMBER = 7700863; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Long> sint64Opt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int FIXED32_OPT_FIELD_NUMBER = 7700307; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Integer> fixed32Opt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int FIXED64_OPT_FIELD_NUMBER = 7700194; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Long> fixed64Opt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int SFIXED32_OPT_FIELD_NUMBER = 7698645; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Integer> sfixed32Opt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int SFIXED64_OPT_FIELD_NUMBER = 7685475; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Long> sfixed64Opt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int FLOAT_OPT_FIELD_NUMBER = 7675390; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Float> floatOpt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Float.class, null); public static final int DOUBLE_OPT_FIELD_NUMBER = 7673293; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.Double> doubleOpt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Double.class, null); public static final int STRING_OPT_FIELD_NUMBER = 7673285; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, java.lang.String> stringOpt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int BYTES_OPT_FIELD_NUMBER = 7673238; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.ByteString> bytesOpt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.ByteString.class, null); public static final int ENUM_OPT_FIELD_NUMBER = 7673233; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum.TestEnumType> enumOpt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.DummyMessageContainingEnum.TestEnumType.class, null); public static final int MESSAGE_TYPE_OPT_FIELD_NUMBER = 7665967; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType> messageTypeOpt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType.class, protobuf_unittest.UnittestCustomOptions.DummyMessageInvalidAsOptionType.getDefaultInstance()); public static final int QUUX_FIELD_NUMBER = 7663707; /** * extend .protobuf_unittest.ComplexOptionType1 { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestCustomOptions.ComplexOptionType1, java.lang.Integer> quux = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int CORGE_FIELD_NUMBER = 7663442; /** * extend .protobuf_unittest.ComplexOptionType1 { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestCustomOptions.ComplexOptionType1, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3> corge = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.getDefaultInstance()); public static final int GRAULT_FIELD_NUMBER = 7650927; /** * extend .protobuf_unittest.ComplexOptionType2 { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestCustomOptions.ComplexOptionType2, java.lang.Integer> grault = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int GARPLY_FIELD_NUMBER = 7649992; /** * extend .protobuf_unittest.ComplexOptionType2 { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest.UnittestCustomOptions.ComplexOptionType2, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1> garply = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance()); public static final int COMPLEX_OPT1_FIELD_NUMBER = 7646756; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1> complexOpt1 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance()); public static final int COMPLEX_OPT2_FIELD_NUMBER = 7636949; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2> complexOpt2 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.getDefaultInstance()); public static final int COMPLEX_OPT3_FIELD_NUMBER = 7636463; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3> complexOpt3 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.class, protobuf_unittest.UnittestCustomOptions.ComplexOptionType3.getDefaultInstance()); public static final int COMPLEXOPT6_FIELD_NUMBER = 7595468; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest.UnittestCustomOptions.ComplexOpt6> complexOpt6 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.ComplexOpt6.class, protobuf_unittest.UnittestCustomOptions.ComplexOpt6.getDefaultInstance()); public static final int FILEOPT_FIELD_NUMBER = 15478479; /** * extend .google.protobuf.FileOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, protobuf_unittest.UnittestCustomOptions.Aggregate> fileopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.Aggregate.class, protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int MSGOPT_FIELD_NUMBER = 15480088; /** * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest.UnittestCustomOptions.Aggregate> msgopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.Aggregate.class, protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int FIELDOPT_FIELD_NUMBER = 15481374; /** * extend .google.protobuf.FieldOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, protobuf_unittest.UnittestCustomOptions.Aggregate> fieldopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.Aggregate.class, protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int ENUMOPT_FIELD_NUMBER = 15483218; /** * extend .google.protobuf.EnumOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumOptions, protobuf_unittest.UnittestCustomOptions.Aggregate> enumopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.Aggregate.class, protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int ENUMVALOPT_FIELD_NUMBER = 15486921; /** * extend .google.protobuf.EnumValueOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumValueOptions, protobuf_unittest.UnittestCustomOptions.Aggregate> enumvalopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.Aggregate.class, protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int SERVICEOPT_FIELD_NUMBER = 15497145; /** * extend .google.protobuf.ServiceOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ServiceOptions, protobuf_unittest.UnittestCustomOptions.Aggregate> serviceopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.Aggregate.class, protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int METHODOPT_FIELD_NUMBER = 15512713; /** * extend .google.protobuf.MethodOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, protobuf_unittest.UnittestCustomOptions.Aggregate> methodopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest.UnittestCustomOptions.Aggregate.class, protobuf_unittest.UnittestCustomOptions.Aggregate.getDefaultInstance()); private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_TestMessageWithCustomOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_TestMessageWithCustomOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_CustomOptionFooRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_CustomOptionFooRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_CustomOptionFooResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_CustomOptionFooResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_CustomOptionFooClientMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_CustomOptionFooClientMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_CustomOptionFooServerMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_CustomOptionFooServerMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_DummyMessageContainingEnum_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_DummyMessageContainingEnum_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_DummyMessageInvalidAsOptionType_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_DummyMessageInvalidAsOptionType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_CustomOptionMinIntegerValues_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_CustomOptionMinIntegerValues_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_CustomOptionMaxIntegerValues_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_CustomOptionMaxIntegerValues_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_CustomOptionOtherValues_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_CustomOptionOtherValues_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_SettingRealsFromPositiveInts_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_SettingRealsFromPositiveInts_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_SettingRealsFromNegativeInts_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_SettingRealsFromNegativeInts_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_ComplexOptionType1_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_ComplexOptionType1_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_ComplexOptionType2_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_ComplexOptionType2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_ComplexOptionType3_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_ComplexOptionType3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_ComplexOpt6_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_ComplexOpt6_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_VariousComplexOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_VariousComplexOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_AggregateMessageSet_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_AggregateMessageSet_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_AggregateMessageSetElement_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_AggregateMessageSetElement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_Aggregate_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_Aggregate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_AggregateMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_AggregateMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_NestedOptionType_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_NestedOptionType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_NestedOptionType_NestedMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest_NestedOptionType_NestedMessage_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-google/protobuf/unittest_custom_option" + "s.proto\022\021protobuf_unittest\032 google/proto" + "buf/descriptor.proto\"\215\001\n\034TestMessageWith" + "CustomOptions\022\036\n\006field1\030\001 \001(\tB\016\010\001\301\340\303\035-\341u" + "\n\002\000\000\000\";\n\006AnEnum\022\017\n\013ANENUM_VAL1\020\001\022\026\n\013ANEN" + "UM_VAL2\020\002\032\005\260\206\372\005{\032\010\305\366\311\035\353\374\377\377:\020\010\000\340\351\302\035\310\377\377\377\377\377" + "\377\377\377\001\"\030\n\026CustomOptionFooRequest\"\031\n\027Custom" + "OptionFooResponse\"\036\n\034CustomOptionFooClie" + "ntMessage\"\036\n\034CustomOptionFooServerMessag" + "e\"m\n\032DummyMessageContainingEnum\"O\n\014TestE", "numType\022\032\n\026TEST_OPTION_ENUM_TYPE1\020\026\022#\n\026T" + "EST_OPTION_ENUM_TYPE2\020\351\377\377\377\377\377\377\377\377\001\"!\n\037Dumm" + "yMessageInvalidAsOptionType\"\212\001\n\034CustomOp" + "tionMinIntegerValues:j\320\336\262\035\000\350\306\262\035\200\200\200\200\370\377\377\377\377" + "\001\260\274\262\035\200\200\200\200\200\200\200\200\200\001\200\223\262\035\000\370\365\260\035\000\200\304\260\035\377\377\377\377\017\370\227\260\035\377\377" + "\377\377\377\377\377\377\377\001\235\365\257\035\000\000\000\000\221\356\257\035\000\000\000\000\000\000\000\000\255\215\257\035\000\000\000\200\231\326\250\035" + "\000\000\000\000\000\000\000\200\"\221\001\n\034CustomOptionMaxIntegerValue" + "s:q\320\336\262\035\001\350\306\262\035\377\377\377\377\007\260\274\262\035\377\377\377\377\377\377\377\377\177\200\223\262\035\377\377\377\377\017\370" + "\365\260\035\377\377\377\377\377\377\377\377\377\001\200\304\260\035\376\377\377\377\017\370\227\260\035\376\377\377\377\377\377\377\377\377\001\235\365\257\035" + "\377\377\377\377\221\356\257\035\377\377\377\377\377\377\377\377\255\215\257\035\377\377\377\177\231\326\250\035\377\377\377\377\377\377\377\177\"n\n\027", "CustomOptionOtherValues:S\350\306\262\035\234\377\377\377\377\377\377\377\377\001\365" + "\337\243\035\347\207EA\351\334\242\035\373Y\214B\312\300\363?\252\334\242\035\016Hello, \"World\"\262\331" + "\242\035\013Hello\000World\210\331\242\035\351\377\377\377\377\377\377\377\377\001\"4\n\034SettingR" + "ealsFromPositiveInts:\024\365\337\243\035\000\000@A\351\334\242\035\000\000\000\000\000@" + "c@\"4\n\034SettingRealsFromNegativeInts:\024\365\337\243\035" + "\000\000@\301\351\334\242\035\000\000\000\000\000@c\300\"U\n\022ComplexOptionType1\022\013" + "\n\003foo\030\001 \001(\005\022\014\n\004foo2\030\002 \001(\005\022\014\n\004foo3\030\003 \001(\005\022" + "\014\n\004foo4\030\004 \003(\005*\010\010d\020\200\200\200\200\002\"\213\003\n\022ComplexOptio" + "nType2\0222\n\003bar\030\001 \001(\0132%.protobuf_unittest." + "ComplexOptionType1\022\013\n\003baz\030\002 \001(\005\022F\n\004fred\030", "\003 \001(\01328.protobuf_unittest.ComplexOptionT" + "ype2.ComplexOptionType4\022H\n\006barney\030\004 \003(\0132" + "8.protobuf_unittest.ComplexOptionType2.C" + "omplexOptionType4\032\227\001\n\022ComplexOptionType4" + "\022\r\n\005waldo\030\001 \001(\0052r\n\014complex_opt4\022\037.google" + ".protobuf.MessageOptions\030\212\365\321\003 \001(\01328.prot" + "obuf_unittest.ComplexOptionType2.Complex" + "OptionType4*\010\010d\020\200\200\200\200\002\"\234\001\n\022ComplexOptionT" + "ype3\022\013\n\003qux\030\001 \001(\005\022T\n\022complexoptiontype5\030" + "\002 \001(\n28.protobuf_unittest.ComplexOptionT", "ype3.ComplexOptionType5\032#\n\022ComplexOption" + "Type5\022\r\n\005plugh\030\003 \001(\005\"\037\n\013ComplexOpt6\022\020\n\005x" + "yzzy\030\337\277\317\003 \001(\005\"\361\001\n\025VariousComplexOptions:" + "\327\001\242\342\225\035\002\010*\242\342\225\035\006\330\205\236\035\304\002\242\342\225\035\010\222\365\235\035\003\010\354\006\242\342\225\035\002 c" + "\242\342\225\035\002 X\252\375\220\035\003\020\333\007\252\375\220\035\006\370\346\227\035\216\005\252\375\220\035\005\n\003\010\347\005\252\375\220\035" + "\010\n\006\330\205\236\035\317\017\252\375\220\035\n\n\010\222\365\235\035\003\010\330\017\252\375\220\035\010\302\254\227\035\003\010\345\005\252\375\220" + "\035\013\302\254\227\035\006\330\205\236\035\316\017\252\375\220\035\r\302\254\227\035\010\222\365\235\035\003\010\311\020\322\250\217\035\003\010\263\017\252" + "\375\220\035\005\032\003\010\301\002\252\375\220\035\004\"\002\010e\252\375\220\035\005\"\003\010\324\001\372\336\220\035\002\010\t\372\336\220\035\004" + "\023\030\026\024\343\334\374\034\370\375\373\034\030\344\334\374\034\"#\n\023AggregateMessageSet" + "*\010\010\004\020\377\377\377\377\007:\002\010\001\"\240\001\n\032AggregateMessageSetEl", "ement\022\t\n\001s\030\001 \001(\t2w\n\025message_set_extensio" + "n\022&.protobuf_unittest.AggregateMessageSe" + "t\030\366\353\256\007 \001(\0132-.protobuf_unittest.Aggregate" + "MessageSetElement\"\375\001\n\tAggregate\022\t\n\001i\030\001 \001" + "(\005\022\t\n\001s\030\002 \001(\t\022)\n\003sub\030\003 \001(\0132\034.protobuf_un" + "ittest.Aggregate\022*\n\004file\030\004 \001(\0132\034.google." + "protobuf.FileOptions\0224\n\004mset\030\005 \001(\0132&.pro" + "tobuf_unittest.AggregateMessageSet2M\n\006ne" + "sted\022\034.google.protobuf.FileOptions\030\247\321\260\007 " + "\001(\0132\034.protobuf_unittest.Aggregate\"Y\n\020Agg", "regateMessage\022)\n\tfieldname\030\001 \001(\005B\026\362\241\207;\021\022" + "\017FieldAnnotation:\032\302\321\206;\025\010e\022\021MessageAnnota" + "tion\"\311\001\n\020NestedOptionType\032;\n\rNestedMessa" + "ge\022\"\n\014nested_field\030\001 \001(\005B\014\301\340\303\035\352\003\000\000\000\000\000\000:\006" + "\340\351\302\035\351\007\"5\n\nNestedEnum\022\035\n\021NESTED_ENUM_VALU" + "E\020\001\032\006\260\206\372\005\354\007\032\010\305\366\311\035\353\003\000\0002A\n\020nested_extensio" + "n\022\034.google.protobuf.FileOptions\030\375\370\342\003 \001(\005" + "B\006\310\213\312\035\355\007*6\n\nMethodOpt1\022\023\n\017METHODOPT1_VAL" + "1\020\001\022\023\n\017METHODOPT1_VAL2\020\002*M\n\rAggregateEnu" + "m\022%\n\005VALUE\020\001\032\032\312\374\211;\025\022\023EnumValueAnnotation", "\032\025\222\225\210;\020\022\016EnumAnnotation2\216\001\n\034TestServiceW" + "ithCustomOptions\022c\n\003Foo\022).protobuf_unitt" + "est.CustomOptionFooRequest\032*.protobuf_un" + "ittest.CustomOptionFooResponse\"\005\340\372\214\036\002\032\t\220" + "\262\213\036\323\333\200\313I2\231\001\n\020AggregateService\022k\n\006Method\022" + "#.protobuf_unittest.AggregateMessage\032#.p" + "rotobuf_unittest.AggregateMessage\"\027\312\310\226;\022" + "\022\020MethodAnnotation\032\030\312\373\216;\023\022\021ServiceAnnota" + "tion:2\n\tfile_opt1\022\034.google.protobuf.File" + "Options\030\216\235\330\003 \001(\004:8\n\014message_opt1\022\037.googl", "e.protobuf.MessageOptions\030\234\255\330\003 \001(\005:4\n\nfi" + "eld_opt1\022\035.google.protobuf.FieldOptions\030" + "\210\274\330\003 \001(\006:8\n\nfield_opt2\022\035.google.protobuf" + ".FieldOptions\030\271\241\331\003 \001(\005:\00242:2\n\tenum_opt1\022" + "\034.google.protobuf.EnumOptions\030\350\236\331\003 \001(\017:<" + "\n\017enum_value_opt1\022!.google.protobuf.Enum" + "ValueOptions\030\346\240_ \001(\005:8\n\014service_opt1\022\037.g" + "oogle.protobuf.ServiceOptions\030\242\266\341\003 \001(\022:U" + "\n\013method_opt1\022\036.google.protobuf.MethodOp" + "tions\030\254\317\341\003 \001(\0162\035.protobuf_unittest.Metho", "dOpt1:4\n\010bool_opt\022\037.google.protobuf.Mess" + "ageOptions\030\352\253\326\003 \001(\010:5\n\tint32_opt\022\037.googl" + "e.protobuf.MessageOptions\030\355\250\326\003 \001(\005:5\n\tin" + "t64_opt\022\037.google.protobuf.MessageOptions" + "\030\306\247\326\003 \001(\003:6\n\nuint32_opt\022\037.google.protobu" + "f.MessageOptions\030\260\242\326\003 \001(\r:6\n\nuint64_opt\022" + "\037.google.protobuf.MessageOptions\030\337\216\326\003 \001(" + "\004:6\n\nsint32_opt\022\037.google.protobuf.Messag" + "eOptions\030\300\210\326\003 \001(\021:6\n\nsint64_opt\022\037.google" + ".protobuf.MessageOptions\030\377\202\326\003 \001(\022:7\n\013fix", "ed32_opt\022\037.google.protobuf.MessageOption" + "s\030\323\376\325\003 \001(\007:7\n\013fixed64_opt\022\037.google.proto" + "buf.MessageOptions\030\342\375\325\003 \001(\006:8\n\014sfixed32_" + "opt\022\037.google.protobuf.MessageOptions\030\325\361\325" + "\003 \001(\017:8\n\014sfixed64_opt\022\037.google.protobuf." + "MessageOptions\030\343\212\325\003 \001(\020:5\n\tfloat_opt\022\037.g" + "oogle.protobuf.MessageOptions\030\376\273\324\003 \001(\002:6" + "\n\ndouble_opt\022\037.google.protobuf.MessageOp" + "tions\030\315\253\324\003 \001(\001:6\n\nstring_opt\022\037.google.pr" + "otobuf.MessageOptions\030\305\253\324\003 \001(\t:5\n\tbytes_", "opt\022\037.google.protobuf.MessageOptions\030\226\253\324" + "\003 \001(\014:p\n\010enum_opt\022\037.google.protobuf.Mess" + "ageOptions\030\221\253\324\003 \001(\0162:.protobuf_unittest." + "DummyMessageContainingEnum.TestEnumType:" + "p\n\020message_type_opt\022\037.google.protobuf.Me" + "ssageOptions\030\257\362\323\003 \001(\01322.protobuf_unittes" + "t.DummyMessageInvalidAsOptionType:6\n\004quu" + "x\022%.protobuf_unittest.ComplexOptionType1" + "\030\333\340\323\003 \001(\005:^\n\005corge\022%.protobuf_unittest.C" + "omplexOptionType1\030\322\336\323\003 \001(\0132%.protobuf_un", "ittest.ComplexOptionType3:8\n\006grault\022%.pr" + "otobuf_unittest.ComplexOptionType2\030\357\374\322\003 " + "\001(\005:_\n\006garply\022%.protobuf_unittest.Comple" + "xOptionType2\030\310\365\322\003 \001(\0132%.protobuf_unittes" + "t.ComplexOptionType1:_\n\014complex_opt1\022\037.g" + "oogle.protobuf.MessageOptions\030\244\334\322\003 \001(\0132%" + ".protobuf_unittest.ComplexOptionType1:_\n" + "\014complex_opt2\022\037.google.protobuf.MessageO" + "ptions\030\325\217\322\003 \001(\0132%.protobuf_unittest.Comp" + "lexOptionType2:_\n\014complex_opt3\022\037.google.", "protobuf.MessageOptions\030\357\213\322\003 \001(\0132%.proto" + "buf_unittest.ComplexOptionType3:W\n\013compl" + "exopt6\022\037.google.protobuf.MessageOptions\030" + "\314\313\317\003 \001(\n2\036.protobuf_unittest.ComplexOpt6" + ":N\n\007fileopt\022\034.google.protobuf.FileOption" + "s\030\317\335\260\007 \001(\0132\034.protobuf_unittest.Aggregate" + ":P\n\006msgopt\022\037.google.protobuf.MessageOpti" + "ons\030\230\352\260\007 \001(\0132\034.protobuf_unittest.Aggrega" + "te:P\n\010fieldopt\022\035.google.protobuf.FieldOp" + "tions\030\236\364\260\007 \001(\0132\034.protobuf_unittest.Aggre", "gate:N\n\007enumopt\022\034.google.protobuf.EnumOp" + "tions\030\322\202\261\007 \001(\0132\034.protobuf_unittest.Aggre" + "gate:V\n\nenumvalopt\022!.google.protobuf.Enu" + "mValueOptions\030\311\237\261\007 \001(\0132\034.protobuf_unitte" + "st.Aggregate:T\n\nserviceopt\022\037.google.prot" + "obuf.ServiceOptions\030\271\357\261\007 \001(\0132\034.protobuf_" + "unittest.Aggregate:R\n\tmethodopt\022\036.google" + ".protobuf.MethodOptions\030\211\351\262\007 \001(\0132\034.proto" + "buf_unittest.AggregateB\207\001\200\001\001\210\001\001\220\001\001\360\350\301\035\352\255" + "\300\345$\372\354\205;p\010d\022\016FileAnnotation\032\026\022\024NestedFile", "Annotation\"\036\372\354\205;\031\022\027FileExtensionAnnotati" + "on*$\013\020\366\353\256\007\032\033\n\031EmbeddedMessageSetElement\014" }; 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.DescriptorProtos.getDescriptor(), }, assigner); internal_static_protobuf_unittest_TestMessageWithCustomOptions_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protobuf_unittest_TestMessageWithCustomOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_TestMessageWithCustomOptions_descriptor, new java.lang.String[] { "Field1", }); internal_static_protobuf_unittest_CustomOptionFooRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protobuf_unittest_CustomOptionFooRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_CustomOptionFooRequest_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_CustomOptionFooResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protobuf_unittest_CustomOptionFooResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_CustomOptionFooResponse_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_CustomOptionFooClientMessage_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protobuf_unittest_CustomOptionFooClientMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_CustomOptionFooClientMessage_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_CustomOptionFooServerMessage_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_protobuf_unittest_CustomOptionFooServerMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_CustomOptionFooServerMessage_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_DummyMessageContainingEnum_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_protobuf_unittest_DummyMessageContainingEnum_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_DummyMessageContainingEnum_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_DummyMessageInvalidAsOptionType_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_protobuf_unittest_DummyMessageInvalidAsOptionType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_DummyMessageInvalidAsOptionType_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_CustomOptionMinIntegerValues_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_protobuf_unittest_CustomOptionMinIntegerValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_CustomOptionMinIntegerValues_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_CustomOptionMaxIntegerValues_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_protobuf_unittest_CustomOptionMaxIntegerValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_CustomOptionMaxIntegerValues_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_CustomOptionOtherValues_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_protobuf_unittest_CustomOptionOtherValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_CustomOptionOtherValues_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_SettingRealsFromPositiveInts_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_protobuf_unittest_SettingRealsFromPositiveInts_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_SettingRealsFromPositiveInts_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_SettingRealsFromNegativeInts_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_protobuf_unittest_SettingRealsFromNegativeInts_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_SettingRealsFromNegativeInts_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_ComplexOptionType1_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_protobuf_unittest_ComplexOptionType1_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_ComplexOptionType1_descriptor, new java.lang.String[] { "Foo", "Foo2", "Foo3", "Foo4", }); internal_static_protobuf_unittest_ComplexOptionType2_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_protobuf_unittest_ComplexOptionType2_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_ComplexOptionType2_descriptor, new java.lang.String[] { "Bar", "Baz", "Fred", "Barney", }); internal_static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4_descriptor = internal_static_protobuf_unittest_ComplexOptionType2_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_ComplexOptionType2_ComplexOptionType4_descriptor, new java.lang.String[] { "Waldo", }); internal_static_protobuf_unittest_ComplexOptionType3_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_protobuf_unittest_ComplexOptionType3_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_ComplexOptionType3_descriptor, new java.lang.String[] { "Qux", "ComplexOptionType5", }); internal_static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5_descriptor = internal_static_protobuf_unittest_ComplexOptionType3_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_ComplexOptionType3_ComplexOptionType5_descriptor, new java.lang.String[] { "Plugh", }); internal_static_protobuf_unittest_ComplexOpt6_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_protobuf_unittest_ComplexOpt6_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_ComplexOpt6_descriptor, new java.lang.String[] { "Xyzzy", }); internal_static_protobuf_unittest_VariousComplexOptions_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_protobuf_unittest_VariousComplexOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_VariousComplexOptions_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_AggregateMessageSet_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_protobuf_unittest_AggregateMessageSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_AggregateMessageSet_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_AggregateMessageSetElement_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_protobuf_unittest_AggregateMessageSetElement_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_AggregateMessageSetElement_descriptor, new java.lang.String[] { "S", }); internal_static_protobuf_unittest_Aggregate_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_protobuf_unittest_Aggregate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_Aggregate_descriptor, new java.lang.String[] { "I", "S", "Sub", "File", "Mset", }); internal_static_protobuf_unittest_AggregateMessage_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_protobuf_unittest_AggregateMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_AggregateMessage_descriptor, new java.lang.String[] { "Fieldname", }); internal_static_protobuf_unittest_NestedOptionType_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_protobuf_unittest_NestedOptionType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_NestedOptionType_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest_NestedOptionType_NestedMessage_descriptor = internal_static_protobuf_unittest_NestedOptionType_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest_NestedOptionType_NestedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest_NestedOptionType_NestedMessage_descriptor, new java.lang.String[] { "NestedField", }); fileOpt1.internalInit(descriptor.getExtensions().get(0)); messageOpt1.internalInit(descriptor.getExtensions().get(1)); fieldOpt1.internalInit(descriptor.getExtensions().get(2)); fieldOpt2.internalInit(descriptor.getExtensions().get(3)); enumOpt1.internalInit(descriptor.getExtensions().get(4)); enumValueOpt1.internalInit(descriptor.getExtensions().get(5)); serviceOpt1.internalInit(descriptor.getExtensions().get(6)); methodOpt1.internalInit(descriptor.getExtensions().get(7)); boolOpt.internalInit(descriptor.getExtensions().get(8)); int32Opt.internalInit(descriptor.getExtensions().get(9)); int64Opt.internalInit(descriptor.getExtensions().get(10)); uint32Opt.internalInit(descriptor.getExtensions().get(11)); uint64Opt.internalInit(descriptor.getExtensions().get(12)); sint32Opt.internalInit(descriptor.getExtensions().get(13)); sint64Opt.internalInit(descriptor.getExtensions().get(14)); fixed32Opt.internalInit(descriptor.getExtensions().get(15)); fixed64Opt.internalInit(descriptor.getExtensions().get(16)); sfixed32Opt.internalInit(descriptor.getExtensions().get(17)); sfixed64Opt.internalInit(descriptor.getExtensions().get(18)); floatOpt.internalInit(descriptor.getExtensions().get(19)); doubleOpt.internalInit(descriptor.getExtensions().get(20)); stringOpt.internalInit(descriptor.getExtensions().get(21)); bytesOpt.internalInit(descriptor.getExtensions().get(22)); enumOpt.internalInit(descriptor.getExtensions().get(23)); messageTypeOpt.internalInit(descriptor.getExtensions().get(24)); quux.internalInit(descriptor.getExtensions().get(25)); corge.internalInit(descriptor.getExtensions().get(26)); grault.internalInit(descriptor.getExtensions().get(27)); garply.internalInit(descriptor.getExtensions().get(28)); complexOpt1.internalInit(descriptor.getExtensions().get(29)); complexOpt2.internalInit(descriptor.getExtensions().get(30)); complexOpt3.internalInit(descriptor.getExtensions().get(31)); complexOpt6.internalInit(descriptor.getExtensions().get(32)); fileopt.internalInit(descriptor.getExtensions().get(33)); msgopt.internalInit(descriptor.getExtensions().get(34)); fieldopt.internalInit(descriptor.getExtensions().get(35)); enumopt.internalInit(descriptor.getExtensions().get(36)); enumvalopt.internalInit(descriptor.getExtensions().get(37)); serviceopt.internalInit(descriptor.getExtensions().get(38)); methodopt.internalInit(descriptor.getExtensions().get(39)); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(protobuf_unittest.UnittestCustomOptions.fieldOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.enumValueOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.enumOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.messageOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.sfixed64Opt); registry.add(protobuf_unittest.UnittestCustomOptions.sfixed32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.fixed64Opt); registry.add(protobuf_unittest.UnittestCustomOptions.fixed32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.sint64Opt); registry.add(protobuf_unittest.UnittestCustomOptions.sint32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.uint64Opt); registry.add(protobuf_unittest.UnittestCustomOptions.uint32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.int64Opt); registry.add(protobuf_unittest.UnittestCustomOptions.int32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.boolOpt); registry.add(protobuf_unittest.UnittestCustomOptions.sfixed64Opt); registry.add(protobuf_unittest.UnittestCustomOptions.sfixed32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.fixed64Opt); registry.add(protobuf_unittest.UnittestCustomOptions.fixed32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.sint64Opt); registry.add(protobuf_unittest.UnittestCustomOptions.sint32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.uint64Opt); registry.add(protobuf_unittest.UnittestCustomOptions.uint32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.int64Opt); registry.add(protobuf_unittest.UnittestCustomOptions.int32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.boolOpt); registry.add(protobuf_unittest.UnittestCustomOptions.enumOpt); registry.add(protobuf_unittest.UnittestCustomOptions.bytesOpt); registry.add(protobuf_unittest.UnittestCustomOptions.stringOpt); registry.add(protobuf_unittest.UnittestCustomOptions.doubleOpt); registry.add(protobuf_unittest.UnittestCustomOptions.floatOpt); registry.add(protobuf_unittest.UnittestCustomOptions.int32Opt); registry.add(protobuf_unittest.UnittestCustomOptions.doubleOpt); registry.add(protobuf_unittest.UnittestCustomOptions.floatOpt); registry.add(protobuf_unittest.UnittestCustomOptions.doubleOpt); registry.add(protobuf_unittest.UnittestCustomOptions.floatOpt); registry.add(protobuf_unittest.UnittestCustomOptions.complexOpt6); registry.add(protobuf_unittest.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.complexOpt4); registry.add(protobuf_unittest.UnittestCustomOptions.complexOpt3); registry.add(protobuf_unittest.UnittestCustomOptions.complexOpt2); registry.add(protobuf_unittest.UnittestCustomOptions.corge); registry.add(protobuf_unittest.UnittestCustomOptions.quux); registry.add(protobuf_unittest.UnittestCustomOptions.garply); registry.add(protobuf_unittest.UnittestCustomOptions.corge); registry.add(protobuf_unittest.UnittestCustomOptions.quux); registry.add(protobuf_unittest.UnittestCustomOptions.grault); registry.add(protobuf_unittest.UnittestCustomOptions.complexOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.corge); registry.add(protobuf_unittest.UnittestCustomOptions.quux); registry.add(protobuf_unittest.UnittestCustomOptions.fieldopt); registry.add(protobuf_unittest.UnittestCustomOptions.msgopt); registry.add(protobuf_unittest.UnittestCustomOptions.fieldOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.messageOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.enumValueOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.enumOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.fieldOpt2); registry.add(protobuf_unittest.UnittestCustomOptions.enumvalopt); registry.add(protobuf_unittest.UnittestCustomOptions.enumopt); registry.add(protobuf_unittest.UnittestCustomOptions.methodOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.serviceOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.methodopt); registry.add(protobuf_unittest.UnittestCustomOptions.serviceopt); registry.add(protobuf_unittest.UnittestCustomOptions.fileOpt1); registry.add(protobuf_unittest.UnittestCustomOptions.fileopt); registry.add(protobuf_unittest.UnittestCustomOptions.fileopt); registry.add(protobuf_unittest.UnittestCustomOptions.AggregateMessageSetElement.messageSetExtension); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.DescriptorProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy