// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tests/unittest_custom_options.proto package protobuf_unittest2; public final class UnittestCustomOptions { private UnittestCustomOptions() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registry.add(protobuf_unittest2.UnittestCustomOptions.fileOpt33); registry.add(protobuf_unittest2.UnittestCustomOptions.fileOpt34); registry.add(protobuf_unittest2.UnittestCustomOptions.fileOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.messageOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.fieldOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.fieldOpt2); registry.add(protobuf_unittest2.UnittestCustomOptions.enumOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.enumValueOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.serviceOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.methodOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.boolOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.int32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.int64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.uint32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.uint64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.sint32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.sint64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.fixed32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.fixed64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.sfixed32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.sfixed64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.floatOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.doubleOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.stringOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.bytesOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.enumOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.messageTypeOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.quux); registry.add(protobuf_unittest2.UnittestCustomOptions.corge); registry.add(protobuf_unittest2.UnittestCustomOptions.grault); registry.add(protobuf_unittest2.UnittestCustomOptions.garply); registry.add(protobuf_unittest2.UnittestCustomOptions.complexOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.complexOpt2); registry.add(protobuf_unittest2.UnittestCustomOptions.complexOpt3); registry.add(protobuf_unittest2.UnittestCustomOptions.complexOpt6); registry.add(protobuf_unittest2.UnittestCustomOptions.fileopt); registry.add(protobuf_unittest2.UnittestCustomOptions.msgopt); registry.add(protobuf_unittest2.UnittestCustomOptions.fieldopt); registry.add(protobuf_unittest2.UnittestCustomOptions.enumopt); registry.add(protobuf_unittest2.UnittestCustomOptions.enumvalopt); registry.add(protobuf_unittest2.UnittestCustomOptions.serviceopt); registry.add(protobuf_unittest2.UnittestCustomOptions.methodopt); registry.add(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.complexOpt4); registry.add(protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement.messageSetExtension); registry.add(protobuf_unittest2.UnittestCustomOptions.Aggregate.nested); registry.add(protobuf_unittest2.UnittestCustomOptions.NestedOptionType.nestedExtension); } /** * Protobuf enum {@code protobuf_unittest2.badIDsEnum} */ public enum badIDsEnum implements com.google.protobuf.ProtocolMessageEnum { /** * <code>eNum1 = 1;</code> */ eNum1(0, 1), /** * <code>e2 = 2;</code> */ e2(1, 2), ; /** * <code>eNum1 = 1;</code> */ public static final int eNum1_VALUE = 1; /** * <code>e2 = 2;</code> */ public static final int e2_VALUE = 2; public final int getNumber() { return value; } public static badIDsEnum valueOf(int value) { switch (value) { case 1: return eNum1; case 2: return e2; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<badIDsEnum> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<badIDsEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<badIDsEnum>() { public badIDsEnum findValueByNumber(int number) { return badIDsEnum.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_unittest2.UnittestCustomOptions.getDescriptor().getEnumTypes().get(0); } private static final badIDsEnum[] VALUES = values(); public static badIDsEnum 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 badIDsEnum(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protobuf_unittest2.badIDsEnum) } /** * Protobuf enum {@code protobuf_unittest2.MethodOpt1} */ public enum MethodOpt1 implements com.google.protobuf.ProtocolMessageEnum { /** * <code>METHODOPT1_VAL1 = 1;</code> */ METHODOPT1_VAL1(0, 1), /** * <code>METHODOPT1_VAL2 = 2;</code> */ METHODOPT1_VAL2(1, 2), ; /** * <code>METHODOPT1_VAL1 = 1;</code> */ public static final int METHODOPT1_VAL1_VALUE = 1; /** * <code>METHODOPT1_VAL2 = 2;</code> */ 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<MethodOpt1> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<MethodOpt1> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<MethodOpt1>() { 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_unittest2.UnittestCustomOptions.getDescriptor().getEnumTypes().get(1); } 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_unittest2.MethodOpt1) } /** * Protobuf enum {@code protobuf_unittest2.AggregateEnum} */ public enum AggregateEnum implements com.google.protobuf.ProtocolMessageEnum { /** * <code>VALUE = 1;</code> */ VALUE(0, 1), ; /** * <code>VALUE = 1;</code> */ 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<AggregateEnum> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<AggregateEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<AggregateEnum>() { 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_unittest2.UnittestCustomOptions.getDescriptor().getEnumTypes().get(2); } 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_unittest2.AggregateEnum) } public interface CommentsTest1OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.CommentsTest1) com.google.protobuf.MessageOrBuilder { /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ boolean hasField1(); /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ java.lang.String getField1(); /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ com.google.protobuf.ByteString getField1Bytes(); /** * <code>optional uint32 field2 = 2;</code> * * <pre> * leading comment 1 * * </pre> */ boolean hasField2(); /** * <code>optional uint32 field2 = 2;</code> * * <pre> * leading comment 1 * * </pre> */ int getField2(); } /** * Protobuf type {@code protobuf_unittest2.CommentsTest1} */ public static final class CommentsTest1 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.CommentsTest1) CommentsTest1OrBuilder { // Use CommentsTest1.newBuilder() to construct. private CommentsTest1(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CommentsTest1(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CommentsTest1 defaultInstance; public static CommentsTest1 getDefaultInstance() { return defaultInstance; } public CommentsTest1 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommentsTest1( 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; } case 16: { bitField0_ |= 0x00000002; field2_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CommentsTest1_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CommentsTest1_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CommentsTest1.class, protobuf_unittest2.UnittestCustomOptions.CommentsTest1.Builder.class); } public static com.google.protobuf.Parser<CommentsTest1> PARSER = new com.google.protobuf.AbstractParser<CommentsTest1>() { public CommentsTest1 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommentsTest1(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<CommentsTest1> getParserForType() { return PARSER; } private int bitField0_; public static final int FIELD1_FIELD_NUMBER = 1; private java.lang.Object field1_; /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ public boolean hasField1() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ 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; } } /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ 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; } } public static final int FIELD2_FIELD_NUMBER = 2; private int field2_; /** * <code>optional uint32 field2 = 2;</code> * * <pre> * leading comment 1 * * </pre> */ public boolean hasField2() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 field2 = 2;</code> * * <pre> * leading comment 1 * * </pre> */ public int getField2() { return field2_; } private void initFields() { field1_ = ""; field2_ = 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.writeBytes(1, getField1Bytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, field2_); } 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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, field2_); } 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.CommentsTest1)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.CommentsTest1 other = (protobuf_unittest2.UnittestCustomOptions.CommentsTest1) obj; boolean result = true; result = result && (hasField1() == other.hasField1()); if (hasField1()) { result = result && getField1() .equals(other.getField1()); } result = result && (hasField2() == other.hasField2()); if (hasField2()) { result = result && (getField2() == other.getField2()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasField1()) { hash = (37 * hash) + FIELD1_FIELD_NUMBER; hash = (53 * hash) + getField1().hashCode(); } if (hasField2()) { hash = (37 * hash) + FIELD2_FIELD_NUMBER; hash = (53 * hash) + getField2(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.CommentsTest1 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.CommentsTest1 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CommentsTest1 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.CommentsTest1 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CommentsTest1 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CommentsTest1 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CommentsTest1 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CommentsTest1 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CommentsTest1 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CommentsTest1 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_unittest2.UnittestCustomOptions.CommentsTest1 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_unittest2.CommentsTest1} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.CommentsTest1) protobuf_unittest2.UnittestCustomOptions.CommentsTest1OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CommentsTest1_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CommentsTest1_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CommentsTest1.class, protobuf_unittest2.UnittestCustomOptions.CommentsTest1.Builder.class); } // Construct using protobuf_unittest2.UnittestCustomOptions.CommentsTest1.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); field2_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CommentsTest1_descriptor; } public protobuf_unittest2.UnittestCustomOptions.CommentsTest1 getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.CommentsTest1.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.CommentsTest1 build() { protobuf_unittest2.UnittestCustomOptions.CommentsTest1 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.CommentsTest1 buildPartial() { protobuf_unittest2.UnittestCustomOptions.CommentsTest1 result = new protobuf_unittest2.UnittestCustomOptions.CommentsTest1(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.field1_ = field1_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.field2_ = field2_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.CommentsTest1) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.CommentsTest1)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.CommentsTest1 other) { if (other == protobuf_unittest2.UnittestCustomOptions.CommentsTest1.getDefaultInstance()) return this; if (other.hasField1()) { bitField0_ |= 0x00000001; field1_ = other.field1_; onChanged(); } if (other.hasField2()) { setField2(other.getField2()); } 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_unittest2.UnittestCustomOptions.CommentsTest1 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.CommentsTest1) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object field1_ = ""; /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ public boolean hasField1() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ 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; } } /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ 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; } } /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ public Builder setField1( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; field1_ = value; onChanged(); return this; } /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ public Builder clearField1() { bitField0_ = (bitField0_ & ~0x00000001); field1_ = getDefaultInstance().getField1(); onChanged(); return this; } /** * <code>optional string field1 = 1;</code> * * <pre> *stmt comment * </pre> */ public Builder setField1Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; field1_ = value; onChanged(); return this; } private int field2_ ; /** * <code>optional uint32 field2 = 2;</code> * * <pre> * leading comment 1 * * </pre> */ public boolean hasField2() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 field2 = 2;</code> * * <pre> * leading comment 1 * * </pre> */ public int getField2() { return field2_; } /** * <code>optional uint32 field2 = 2;</code> * * <pre> * leading comment 1 * * </pre> */ public Builder setField2(int value) { bitField0_ |= 0x00000002; field2_ = value; onChanged(); return this; } /** * <code>optional uint32 field2 = 2;</code> * * <pre> * leading comment 1 * * </pre> */ public Builder clearField2() { bitField0_ = (bitField0_ & ~0x00000002); field2_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.CommentsTest1) } static { defaultInstance = new CommentsTest1(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.CommentsTest1) } public interface TestMessageWithCustomOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.TestMessageWithCustomOptions) com.google.protobuf.MessageOrBuilder { /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ boolean hasField1(); /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ java.lang.String getField1(); /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ com.google.protobuf.ByteString getField1Bytes(); } /** * Protobuf type {@code protobuf_unittest2.TestMessageWithCustomOptions} * * <pre> * A test message with custom options at all possible locations (and also some * regular options, to make sure they interact nicely). * </pre> */ public static final class TestMessageWithCustomOptions extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_TestMessageWithCustomOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_TestMessageWithCustomOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions.class, protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions.Builder.class); } public static com.google.protobuf.Parser<TestMessageWithCustomOptions> PARSER = new com.google.protobuf.AbstractParser<TestMessageWithCustomOptions>() { 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<TestMessageWithCustomOptions> getParserForType() { return PARSER; } /** * Protobuf enum {@code protobuf_unittest2.TestMessageWithCustomOptions.AnEnum} */ public enum AnEnum implements com.google.protobuf.ProtocolMessageEnum { /** * <code>ANENUM_VAL1 = 1;</code> */ ANENUM_VAL1(0, 1), /** * <code>ANENUM_VAL2 = 2;</code> */ ANENUM_VAL2(1, 2), ; /** * <code>ANENUM_VAL1 = 1;</code> */ public static final int ANENUM_VAL1_VALUE = 1; /** * <code>ANENUM_VAL2 = 2;</code> */ 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<AnEnum> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<AnEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<AnEnum>() { 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_unittest2.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_unittest2.TestMessageWithCustomOptions.AnEnum) } private int bitField0_; public static final int FIELD1_FIELD_NUMBER = 1; private java.lang.Object field1_; /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ public boolean hasField1() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ 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; } } /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ 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_ = "hello2"; } 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions other = (protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions) obj; boolean result = true; result = result && (hasField1() == other.hasField1()); if (hasField1()) { result = result && getField1() .equals(other.getField1()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasField1()) { hash = (37 * hash) + FIELD1_FIELD_NUMBER; hash = (53 * hash) + getField1().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.TestMessageWithCustomOptions} * * <pre> * A test message with custom options at all possible locations (and also some * regular options, to make sure they interact nicely). * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.TestMessageWithCustomOptions) protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_TestMessageWithCustomOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_TestMessageWithCustomOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions.class, protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions.Builder.class); } // Construct using protobuf_unittest2.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_ = "hello2"; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_TestMessageWithCustomOptions_descriptor; } public protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions build() { protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions buildPartial() { protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions result = new protobuf_unittest2.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_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.TestMessageWithCustomOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object field1_ = "hello2"; /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ public boolean hasField1() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ 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; } } /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ 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; } } /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ public Builder setField1( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; field1_ = value; onChanged(); return this; } /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ public Builder clearField1() { bitField0_ = (bitField0_ & ~0x00000001); field1_ = getDefaultInstance().getField1(); onChanged(); return this; } /** * <code>optional string field1 = 1 [default = "hello2", ctype = CORD];</code> */ 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_unittest2.TestMessageWithCustomOptions) } static { defaultInstance = new TestMessageWithCustomOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.TestMessageWithCustomOptions) } public interface CustomOptionFooRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.CustomOptionFooRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.CustomOptionFooRequest} * * <pre> * A test RPC service with custom options at all possible locations (and also * some regular options, to make sure they interact nicely). * </pre> */ public static final class CustomOptionFooRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest.Builder.class); } public static com.google.protobuf.Parser<CustomOptionFooRequest> PARSER = new com.google.protobuf.AbstractParser<CustomOptionFooRequest>() { 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<CustomOptionFooRequest> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest other = (protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.CustomOptionFooRequest} * * <pre> * A test RPC service with custom options at all possible locations (and also * some regular options, to make sure they interact nicely). * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.CustomOptionFooRequest) protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooRequest_descriptor; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest build() { protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest buildPartial() { protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest result = new protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.CustomOptionFooRequest) } static { defaultInstance = new CustomOptionFooRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.CustomOptionFooRequest) } public interface CustomOptionFooResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.CustomOptionFooResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.CustomOptionFooResponse} */ public static final class CustomOptionFooResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse.Builder.class); } public static com.google.protobuf.Parser<CustomOptionFooResponse> PARSER = new com.google.protobuf.AbstractParser<CustomOptionFooResponse>() { 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<CustomOptionFooResponse> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse other = (protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.CustomOptionFooResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.CustomOptionFooResponse) protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooResponse_descriptor; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse build() { protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse buildPartial() { protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse result = new protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.CustomOptionFooResponse) } static { defaultInstance = new CustomOptionFooResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.CustomOptionFooResponse) } public interface CustomOptionFooClientMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.CustomOptionFooClientMessage) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.CustomOptionFooClientMessage} */ public static final class CustomOptionFooClientMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooClientMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooClientMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage.Builder.class); } public static com.google.protobuf.Parser<CustomOptionFooClientMessage> PARSER = new com.google.protobuf.AbstractParser<CustomOptionFooClientMessage>() { 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<CustomOptionFooClientMessage> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage other = (protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.CustomOptionFooClientMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.CustomOptionFooClientMessage) protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooClientMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooClientMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooClientMessage_descriptor; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage build() { protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage buildPartial() { protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage result = new protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.CustomOptionFooClientMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.CustomOptionFooClientMessage) } static { defaultInstance = new CustomOptionFooClientMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.CustomOptionFooClientMessage) } public interface CustomOptionFooServerMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.CustomOptionFooServerMessage) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.CustomOptionFooServerMessage} */ public static final class CustomOptionFooServerMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooServerMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooServerMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage.Builder.class); } public static com.google.protobuf.Parser<CustomOptionFooServerMessage> PARSER = new com.google.protobuf.AbstractParser<CustomOptionFooServerMessage>() { 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<CustomOptionFooServerMessage> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage other = (protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.CustomOptionFooServerMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.CustomOptionFooServerMessage) protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooServerMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooServerMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionFooServerMessage_descriptor; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage build() { protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage buildPartial() { protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage result = new protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.CustomOptionFooServerMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.CustomOptionFooServerMessage) } static { defaultInstance = new CustomOptionFooServerMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.CustomOptionFooServerMessage) } public interface DummyMessageContainingEnumOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.DummyMessageContainingEnum) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.DummyMessageContainingEnum} */ public static final class DummyMessageContainingEnum extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_DummyMessageContainingEnum_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_DummyMessageContainingEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum.class, protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum.Builder.class); } public static com.google.protobuf.Parser<DummyMessageContainingEnum> PARSER = new com.google.protobuf.AbstractParser<DummyMessageContainingEnum>() { 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<DummyMessageContainingEnum> getParserForType() { return PARSER; } /** * Protobuf enum {@code protobuf_unittest2.DummyMessageContainingEnum.TestEnumType} */ public enum TestEnumType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>TEST_OPTION_ENUM_TYPE1 = 22;</code> */ TEST_OPTION_ENUM_TYPE1(0, 22), /** * <code>TEST_OPTION_ENUM_TYPE2 = -23;</code> */ TEST_OPTION_ENUM_TYPE2(1, -23), ; /** * <code>TEST_OPTION_ENUM_TYPE1 = 22;</code> */ public static final int TEST_OPTION_ENUM_TYPE1_VALUE = 22; /** * <code>TEST_OPTION_ENUM_TYPE2 = -23;</code> */ 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<TestEnumType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<TestEnumType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<TestEnumType>() { 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_unittest2.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_unittest2.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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum other = (protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.DummyMessageContainingEnum parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.DummyMessageContainingEnum} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.DummyMessageContainingEnum) protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_DummyMessageContainingEnum_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_DummyMessageContainingEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum.class, protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_DummyMessageContainingEnum_descriptor; } public protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum build() { protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum buildPartial() { protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum result = new protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.DummyMessageContainingEnum parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.DummyMessageContainingEnum) } static { defaultInstance = new DummyMessageContainingEnum(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.DummyMessageContainingEnum) } public interface DummyMessageInvalidAsOptionTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.DummyMessageInvalidAsOptionType) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.DummyMessageInvalidAsOptionType} */ public static final class DummyMessageInvalidAsOptionType extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_DummyMessageInvalidAsOptionType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_DummyMessageInvalidAsOptionType_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType.class, protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType.Builder.class); } public static com.google.protobuf.Parser<DummyMessageInvalidAsOptionType> PARSER = new com.google.protobuf.AbstractParser<DummyMessageInvalidAsOptionType>() { 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<DummyMessageInvalidAsOptionType> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType other = (protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.DummyMessageInvalidAsOptionType} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.DummyMessageInvalidAsOptionType) protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_DummyMessageInvalidAsOptionType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_DummyMessageInvalidAsOptionType_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType.class, protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_DummyMessageInvalidAsOptionType_descriptor; } public protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType build() { protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType buildPartial() { protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType result = new protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.DummyMessageInvalidAsOptionType) } static { defaultInstance = new DummyMessageInvalidAsOptionType(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.DummyMessageInvalidAsOptionType) } public interface CustomOptionMinIntegerValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.CustomOptionMinIntegerValues) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.CustomOptionMinIntegerValues} */ public static final class CustomOptionMinIntegerValues extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionMinIntegerValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionMinIntegerValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues.Builder.class); } public static com.google.protobuf.Parser<CustomOptionMinIntegerValues> PARSER = new com.google.protobuf.AbstractParser<CustomOptionMinIntegerValues>() { 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<CustomOptionMinIntegerValues> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues other = (protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.CustomOptionMinIntegerValues} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.CustomOptionMinIntegerValues) protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionMinIntegerValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionMinIntegerValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionMinIntegerValues_descriptor; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues build() { protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues buildPartial() { protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues result = new protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.CustomOptionMinIntegerValues) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.CustomOptionMinIntegerValues) } static { defaultInstance = new CustomOptionMinIntegerValues(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.CustomOptionMinIntegerValues) } public interface CustomOptionMaxIntegerValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.CustomOptionMaxIntegerValues) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.CustomOptionMaxIntegerValues} */ public static final class CustomOptionMaxIntegerValues extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionMaxIntegerValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionMaxIntegerValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues.Builder.class); } public static com.google.protobuf.Parser<CustomOptionMaxIntegerValues> PARSER = new com.google.protobuf.AbstractParser<CustomOptionMaxIntegerValues>() { 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<CustomOptionMaxIntegerValues> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues other = (protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.CustomOptionMaxIntegerValues} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.CustomOptionMaxIntegerValues) protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionMaxIntegerValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionMaxIntegerValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionMaxIntegerValues_descriptor; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues build() { protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues buildPartial() { protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues result = new protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.CustomOptionMaxIntegerValues) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.CustomOptionMaxIntegerValues) } static { defaultInstance = new CustomOptionMaxIntegerValues(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.CustomOptionMaxIntegerValues) } public interface CustomOptionOtherValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.CustomOptionOtherValues) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.CustomOptionOtherValues} */ public static final class CustomOptionOtherValues extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionOtherValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionOtherValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues.Builder.class); } public static com.google.protobuf.Parser<CustomOptionOtherValues> PARSER = new com.google.protobuf.AbstractParser<CustomOptionOtherValues>() { 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<CustomOptionOtherValues> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues other = (protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionOtherValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.CustomOptionOtherValues} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.CustomOptionOtherValues) protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionOtherValues_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionOtherValues_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_CustomOptionOtherValues_descriptor; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues build() { protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues buildPartial() { protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues result = new protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionOtherValues parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.CustomOptionOtherValues) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.CustomOptionOtherValues) } static { defaultInstance = new CustomOptionOtherValues(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.CustomOptionOtherValues) } public interface SettingRealsFromPositiveIntsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.SettingRealsFromPositiveInts) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.SettingRealsFromPositiveInts} */ public static final class SettingRealsFromPositiveInts extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_SettingRealsFromPositiveInts_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_SettingRealsFromPositiveInts_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts.class, protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts.Builder.class); } public static com.google.protobuf.Parser<SettingRealsFromPositiveInts> PARSER = new com.google.protobuf.AbstractParser<SettingRealsFromPositiveInts>() { 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<SettingRealsFromPositiveInts> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts other = (protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.SettingRealsFromPositiveInts} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.SettingRealsFromPositiveInts) protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveIntsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_SettingRealsFromPositiveInts_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_SettingRealsFromPositiveInts_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts.class, protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_SettingRealsFromPositiveInts_descriptor; } public protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts build() { protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts buildPartial() { protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts result = new protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.SettingRealsFromPositiveInts) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.SettingRealsFromPositiveInts) } static { defaultInstance = new SettingRealsFromPositiveInts(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.SettingRealsFromPositiveInts) } public interface SettingRealsFromNegativeIntsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.SettingRealsFromNegativeInts) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.SettingRealsFromNegativeInts} */ public static final class SettingRealsFromNegativeInts extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_SettingRealsFromNegativeInts_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_SettingRealsFromNegativeInts_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts.class, protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts.Builder.class); } public static com.google.protobuf.Parser<SettingRealsFromNegativeInts> PARSER = new com.google.protobuf.AbstractParser<SettingRealsFromNegativeInts>() { 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<SettingRealsFromNegativeInts> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts other = (protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.SettingRealsFromNegativeInts} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.SettingRealsFromNegativeInts) protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeIntsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_SettingRealsFromNegativeInts_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_SettingRealsFromNegativeInts_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts.class, protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_SettingRealsFromNegativeInts_descriptor; } public protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts build() { protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts buildPartial() { protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts result = new protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.SettingRealsFromNegativeInts) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.SettingRealsFromNegativeInts) } static { defaultInstance = new SettingRealsFromNegativeInts(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.SettingRealsFromNegativeInts) } public interface ComplexOptionType1OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.ComplexOptionType1) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<ComplexOptionType1> { /** * <code>optional int32 foo = 1;</code> */ boolean hasFoo(); /** * <code>optional int32 foo = 1;</code> */ int getFoo(); /** * <code>optional int32 foo2 = 2;</code> */ boolean hasFoo2(); /** * <code>optional int32 foo2 = 2;</code> */ int getFoo2(); /** * <code>optional int32 foo3 = 3;</code> */ boolean hasFoo3(); /** * <code>optional int32 foo3 = 3;</code> */ int getFoo3(); } /** * Protobuf type {@code protobuf_unittest2.ComplexOptionType1} */ public static final class ComplexOptionType1 extends com.google.protobuf.GeneratedMessage.ExtendableMessage< ComplexOptionType1> implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.ComplexOptionType1) ComplexOptionType1OrBuilder { // Use ComplexOptionType1.newBuilder() to construct. private ComplexOptionType1(com.google.protobuf.GeneratedMessage.ExtendableBuilder<protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1, ?> 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; } } } } 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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType1_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType1_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.Builder.class); } public static com.google.protobuf.Parser<ComplexOptionType1> PARSER = new com.google.protobuf.AbstractParser<ComplexOptionType1>() { 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<ComplexOptionType1> getParserForType() { return PARSER; } private int bitField0_; public static final int FOO_FIELD_NUMBER = 1; private int foo_; /** * <code>optional int32 foo = 1;</code> */ public boolean hasFoo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 foo = 1;</code> */ public int getFoo() { return foo_; } public static final int FOO2_FIELD_NUMBER = 2; private int foo2_; /** * <code>optional int32 foo2 = 2;</code> */ public boolean hasFoo2() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 foo2 = 2;</code> */ public int getFoo2() { return foo2_; } public static final int FOO3_FIELD_NUMBER = 3; private int foo3_; /** * <code>optional int32 foo3 = 3;</code> */ public boolean hasFoo3() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 foo3 = 3;</code> */ public int getFoo3() { return foo3_; } private void initFields() { foo_ = 0; foo2_ = 0; foo3_ = 0; } 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<protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1>.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_); } 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_); } 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 other = (protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1) obj; boolean result = true; result = result && (hasFoo() == other.hasFoo()); if (hasFoo()) { result = result && (getFoo() == other.getFoo()); } result = result && (hasFoo2() == other.hasFoo2()); if (hasFoo2()) { result = result && (getFoo2() == other.getFoo2()); } result = result && (hasFoo3() == other.hasFoo3()); if (hasFoo3()) { result = result && (getFoo3() == other.getFoo3()); } result = result && getUnknownFields().equals(other.getUnknownFields()); result = result && getExtensionFields().equals(other.getExtensionFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFoo()) { hash = (37 * hash) + FOO_FIELD_NUMBER; hash = (53 * hash) + getFoo(); } if (hasFoo2()) { hash = (37 * hash) + FOO2_FIELD_NUMBER; hash = (53 * hash) + getFoo2(); } if (hasFoo3()) { hash = (37 * hash) + FOO3_FIELD_NUMBER; hash = (53 * hash) + getFoo3(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType1 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.ComplexOptionType1} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.ComplexOptionType1) protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType1_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType1_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.Builder.class); } // Construct using protobuf_unittest2.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); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType1_descriptor; } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 build() { protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 buildPartial() { protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 result = new protobuf_unittest2.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_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 other) { if (other == protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance()) return this; if (other.hasFoo()) { setFoo(other.getFoo()); } if (other.hasFoo2()) { setFoo2(other.getFoo2()); } if (other.hasFoo3()) { setFoo3(other.getFoo3()); } 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_unittest2.UnittestCustomOptions.ComplexOptionType1 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int foo_ ; /** * <code>optional int32 foo = 1;</code> */ public boolean hasFoo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 foo = 1;</code> */ public int getFoo() { return foo_; } /** * <code>optional int32 foo = 1;</code> */ public Builder setFoo(int value) { bitField0_ |= 0x00000001; foo_ = value; onChanged(); return this; } /** * <code>optional int32 foo = 1;</code> */ public Builder clearFoo() { bitField0_ = (bitField0_ & ~0x00000001); foo_ = 0; onChanged(); return this; } private int foo2_ ; /** * <code>optional int32 foo2 = 2;</code> */ public boolean hasFoo2() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 foo2 = 2;</code> */ public int getFoo2() { return foo2_; } /** * <code>optional int32 foo2 = 2;</code> */ public Builder setFoo2(int value) { bitField0_ |= 0x00000002; foo2_ = value; onChanged(); return this; } /** * <code>optional int32 foo2 = 2;</code> */ public Builder clearFoo2() { bitField0_ = (bitField0_ & ~0x00000002); foo2_ = 0; onChanged(); return this; } private int foo3_ ; /** * <code>optional int32 foo3 = 3;</code> */ public boolean hasFoo3() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 foo3 = 3;</code> */ public int getFoo3() { return foo3_; } /** * <code>optional int32 foo3 = 3;</code> */ public Builder setFoo3(int value) { bitField0_ |= 0x00000004; foo3_ = value; onChanged(); return this; } /** * <code>optional int32 foo3 = 3;</code> */ public Builder clearFoo3() { bitField0_ = (bitField0_ & ~0x00000004); foo3_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.ComplexOptionType1) } static { defaultInstance = new ComplexOptionType1(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.ComplexOptionType1) } public interface ComplexOptionType2OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.ComplexOptionType2) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<ComplexOptionType2> { /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ boolean hasBar(); /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 getBar(); /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1OrBuilder getBarOrBuilder(); /** * <code>optional int32 baz = 2;</code> */ boolean hasBaz(); /** * <code>optional int32 baz = 2;</code> */ int getBaz(); /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ boolean hasFred(); /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getFred(); /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder getFredOrBuilder(); } /** * Protobuf type {@code protobuf_unittest2.ComplexOptionType2} */ public static final class ComplexOptionType2 extends com.google.protobuf.GeneratedMessage.ExtendableMessage< ComplexOptionType2> implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.ComplexOptionType2) ComplexOptionType2OrBuilder { // Use ComplexOptionType2.newBuilder() to construct. private ComplexOptionType2(com.google.protobuf.GeneratedMessage.ExtendableBuilder<protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2, ?> 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_unittest2.UnittestCustomOptions.ComplexOptionType1.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = bar_.toBuilder(); } bar_ = input.readMessage(protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = fred_.toBuilder(); } fred_ = input.readMessage(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fred_); fred_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.Builder.class); } public static com.google.protobuf.Parser<ComplexOptionType2> PARSER = new com.google.protobuf.AbstractParser<ComplexOptionType2>() { 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<ComplexOptionType2> getParserForType() { return PARSER; } public interface ComplexOptionType4OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.ComplexOptionType2.ComplexOptionType4) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 waldo = 1;</code> */ boolean hasWaldo(); /** * <code>optional int32 waldo = 1;</code> */ int getWaldo(); } /** * Protobuf type {@code protobuf_unittest2.ComplexOptionType2.ComplexOptionType4} */ public static final class ComplexOptionType4 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType2_ComplexOptionType4_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType2_ComplexOptionType4_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder.class); } public static com.google.protobuf.Parser<ComplexOptionType4> PARSER = new com.google.protobuf.AbstractParser<ComplexOptionType4>() { 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<ComplexOptionType4> getParserForType() { return PARSER; } private int bitField0_; public static final int WALDO_FIELD_NUMBER = 1; private int waldo_; /** * <code>optional int32 waldo = 1;</code> */ public boolean hasWaldo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 waldo = 1;</code> */ 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 other = (protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4) obj; boolean result = true; result = result && (hasWaldo() == other.hasWaldo()); if (hasWaldo()) { result = result && (getWaldo() == other.getWaldo()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasWaldo()) { hash = (37 * hash) + WALDO_FIELD_NUMBER; hash = (53 * hash) + getWaldo(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.ComplexOptionType2.ComplexOptionType4} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.ComplexOptionType2.ComplexOptionType4) protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType2_ComplexOptionType4_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType2_ComplexOptionType4_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType2_ComplexOptionType4_descriptor; } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 build() { protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 buildPartial() { protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 result = new protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int waldo_ ; /** * <code>optional int32 waldo = 1;</code> */ public boolean hasWaldo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 waldo = 1;</code> */ public int getWaldo() { return waldo_; } /** * <code>optional int32 waldo = 1;</code> */ public Builder setWaldo(int value) { bitField0_ |= 0x00000001; waldo_ = value; onChanged(); return this; } /** * <code>optional int32 waldo = 1;</code> */ public Builder clearWaldo() { bitField0_ = (bitField0_ & ~0x00000001); waldo_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.ComplexOptionType2.ComplexOptionType4) } static { defaultInstance = new ComplexOptionType4(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.ComplexOptionType2.ComplexOptionType4) public static final int COMPLEX_OPT4_FIELD_NUMBER = 7633546; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4> complexOpt4 = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(), 0, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance()); } private int bitField0_; public static final int BAR_FIELD_NUMBER = 1; private protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 bar_; /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public boolean hasBar() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 getBar() { return bar_; } /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1OrBuilder getBarOrBuilder() { return bar_; } public static final int BAZ_FIELD_NUMBER = 2; private int baz_; /** * <code>optional int32 baz = 2;</code> */ public boolean hasBaz() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 baz = 2;</code> */ public int getBaz() { return baz_; } public static final int FRED_FIELD_NUMBER = 3; private protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 fred_; /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public boolean hasFred() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getFred() { return fred_; } /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder getFredOrBuilder() { return fred_; } private void initFields() { bar_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance(); baz_ = 0; fred_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(); } 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<protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2>.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_); } 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_); } 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 other = (protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2) obj; boolean result = true; result = result && (hasBar() == other.hasBar()); if (hasBar()) { result = result && getBar() .equals(other.getBar()); } result = result && (hasBaz() == other.hasBaz()); if (hasBaz()) { result = result && (getBaz() == other.getBaz()); } result = result && (hasFred() == other.hasFred()); if (hasFred()) { result = result && getFred() .equals(other.getFred()); } result = result && getUnknownFields().equals(other.getUnknownFields()); result = result && getExtensionFields().equals(other.getExtensionFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasBar()) { hash = (37 * hash) + BAR_FIELD_NUMBER; hash = (53 * hash) + getBar().hashCode(); } if (hasBaz()) { hash = (37 * hash) + BAZ_FIELD_NUMBER; hash = (53 * hash) + getBaz(); } if (hasFred()) { hash = (37 * hash) + FRED_FIELD_NUMBER; hash = (53 * hash) + getFred().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.ComplexOptionType2} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.ComplexOptionType2) protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType2_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.Builder.class); } // Construct using protobuf_unittest2.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(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (barBuilder_ == null) { bar_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance(); } else { barBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); baz_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (fredBuilder_ == null) { fred_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(); } else { fredBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType2_descriptor; } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 build() { protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 buildPartial() { protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 result = new protobuf_unittest2.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(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2 other) { if (other == protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.getDefaultInstance()) return this; if (other.hasBar()) { mergeBar(other.getBar()); } if (other.hasBaz()) { setBaz(other.getBaz()); } if (other.hasFred()) { mergeFred(other.getFred()); } 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_unittest2.UnittestCustomOptions.ComplexOptionType2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 bar_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.Builder, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1OrBuilder> barBuilder_; /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public boolean hasBar() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 getBar() { if (barBuilder_ == null) { return bar_; } else { return barBuilder_.getMessage(); } } /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public Builder setBar(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 value) { if (barBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bar_ = value; onChanged(); } else { barBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public Builder setBar( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.Builder builderForValue) { if (barBuilder_ == null) { bar_ = builderForValue.build(); onChanged(); } else { barBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public Builder mergeBar(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1 value) { if (barBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && bar_ != protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance()) { bar_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.newBuilder(bar_).mergeFrom(value).buildPartial(); } else { bar_ = value; } onChanged(); } else { barBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public Builder clearBar() { if (barBuilder_ == null) { bar_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance(); onChanged(); } else { barBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.Builder getBarBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBarFieldBuilder().getBuilder(); } /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1OrBuilder getBarOrBuilder() { if (barBuilder_ != null) { return barBuilder_.getMessageOrBuilder(); } else { return bar_; } } /** * <code>optional .protobuf_unittest2.ComplexOptionType1 bar = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.Builder, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1OrBuilder> getBarFieldBuilder() { if (barBuilder_ == null) { barBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.Builder, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1OrBuilder>( getBar(), getParentForChildren(), isClean()); bar_ = null; } return barBuilder_; } private int baz_ ; /** * <code>optional int32 baz = 2;</code> */ public boolean hasBaz() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 baz = 2;</code> */ public int getBaz() { return baz_; } /** * <code>optional int32 baz = 2;</code> */ public Builder setBaz(int value) { bitField0_ |= 0x00000002; baz_ = value; onChanged(); return this; } /** * <code>optional int32 baz = 2;</code> */ public Builder clearBaz() { bitField0_ = (bitField0_ & ~0x00000002); baz_ = 0; onChanged(); return this; } private protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 fred_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder> fredBuilder_; /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public boolean hasFred() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 getFred() { if (fredBuilder_ == null) { return fred_; } else { return fredBuilder_.getMessage(); } } /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public Builder setFred(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 value) { if (fredBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fred_ = value; onChanged(); } else { fredBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public Builder setFred( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder builderForValue) { if (fredBuilder_ == null) { fred_ = builderForValue.build(); onChanged(); } else { fredBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public Builder mergeFred(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4 value) { if (fredBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && fred_ != protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance()) { fred_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.newBuilder(fred_).mergeFrom(value).buildPartial(); } else { fred_ = value; } onChanged(); } else { fredBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public Builder clearFred() { if (fredBuilder_ == null) { fred_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.getDefaultInstance(); onChanged(); } else { fredBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder getFredBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFredFieldBuilder().getBuilder(); } /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder getFredOrBuilder() { if (fredBuilder_ != null) { return fredBuilder_.getMessageOrBuilder(); } else { return fred_; } } /** * <code>optional .protobuf_unittest2.ComplexOptionType2.ComplexOptionType4 fred = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder> getFredFieldBuilder() { if (fredBuilder_ == null) { fredBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.Builder, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4OrBuilder>( getFred(), getParentForChildren(), isClean()); fred_ = null; } return fredBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.ComplexOptionType2) } static { defaultInstance = new ComplexOptionType2(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.ComplexOptionType2) } public interface ComplexOptionType3OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.ComplexOptionType3) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 qux = 1;</code> */ boolean hasQux(); /** * <code>optional int32 qux = 1;</code> */ int getQux(); /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ boolean hasComplexOptionType5(); /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 getComplexOptionType5(); /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder getComplexOptionType5OrBuilder(); } /** * Protobuf type {@code protobuf_unittest2.ComplexOptionType3} */ public static final class ComplexOptionType3 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = complexOptionType5_.toBuilder(); } complexOptionType5_ = input.readGroup(2, protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType3_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType3_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.Builder.class); } public static com.google.protobuf.Parser<ComplexOptionType3> PARSER = new com.google.protobuf.AbstractParser<ComplexOptionType3>() { 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<ComplexOptionType3> getParserForType() { return PARSER; } public interface ComplexOptionType5OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.ComplexOptionType3.ComplexOptionType5) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 plugh = 3;</code> */ boolean hasPlugh(); /** * <code>optional int32 plugh = 3;</code> */ int getPlugh(); } /** * Protobuf type {@code protobuf_unittest2.ComplexOptionType3.ComplexOptionType5} */ public static final class ComplexOptionType5 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType3_ComplexOptionType5_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType3_ComplexOptionType5_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder.class); } public static com.google.protobuf.Parser<ComplexOptionType5> PARSER = new com.google.protobuf.AbstractParser<ComplexOptionType5>() { 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<ComplexOptionType5> getParserForType() { return PARSER; } private int bitField0_; public static final int PLUGH_FIELD_NUMBER = 3; private int plugh_; /** * <code>optional int32 plugh = 3;</code> */ public boolean hasPlugh() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 plugh = 3;</code> */ 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 other = (protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5) obj; boolean result = true; result = result && (hasPlugh() == other.hasPlugh()); if (hasPlugh()) { result = result && (getPlugh() == other.getPlugh()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasPlugh()) { hash = (37 * hash) + PLUGH_FIELD_NUMBER; hash = (53 * hash) + getPlugh(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.ComplexOptionType3.ComplexOptionType5} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.ComplexOptionType3.ComplexOptionType5) protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType3_ComplexOptionType5_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType3_ComplexOptionType5_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType3_ComplexOptionType5_descriptor; } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 build() { protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 buildPartial() { protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 result = new protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int plugh_ ; /** * <code>optional int32 plugh = 3;</code> */ public boolean hasPlugh() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 plugh = 3;</code> */ public int getPlugh() { return plugh_; } /** * <code>optional int32 plugh = 3;</code> */ public Builder setPlugh(int value) { bitField0_ |= 0x00000001; plugh_ = value; onChanged(); return this; } /** * <code>optional int32 plugh = 3;</code> */ public Builder clearPlugh() { bitField0_ = (bitField0_ & ~0x00000001); plugh_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.ComplexOptionType3.ComplexOptionType5) } static { defaultInstance = new ComplexOptionType5(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.ComplexOptionType3.ComplexOptionType5) } private int bitField0_; public static final int QUX_FIELD_NUMBER = 1; private int qux_; /** * <code>optional int32 qux = 1;</code> */ public boolean hasQux() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 qux = 1;</code> */ public int getQux() { return qux_; } public static final int COMPLEXOPTIONTYPE5_FIELD_NUMBER = 2; private protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 complexOptionType5_; /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public boolean hasComplexOptionType5() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 getComplexOptionType5() { return complexOptionType5_; } /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder getComplexOptionType5OrBuilder() { return complexOptionType5_; } private void initFields() { qux_ = 0; complexOptionType5_ = protobuf_unittest2.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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 other = (protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3) obj; boolean result = true; result = result && (hasQux() == other.hasQux()); if (hasQux()) { result = result && (getQux() == other.getQux()); } result = result && (hasComplexOptionType5() == other.hasComplexOptionType5()); if (hasComplexOptionType5()) { result = result && getComplexOptionType5() .equals(other.getComplexOptionType5()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasQux()) { hash = (37 * hash) + QUX_FIELD_NUMBER; hash = (53 * hash) + getQux(); } if (hasComplexOptionType5()) { hash = (37 * hash) + COMPLEXOPTIONTYPE5_FIELD_NUMBER; hash = (53 * hash) + getComplexOptionType5().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType3 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.ComplexOptionType3} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.ComplexOptionType3) protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType3_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType3_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOptionType3_descriptor; } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 build() { protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 buildPartial() { protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 result = new protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType3) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3 other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOptionType3 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int qux_ ; /** * <code>optional int32 qux = 1;</code> */ public boolean hasQux() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 qux = 1;</code> */ public int getQux() { return qux_; } /** * <code>optional int32 qux = 1;</code> */ public Builder setQux(int value) { bitField0_ |= 0x00000001; qux_ = value; onChanged(); return this; } /** * <code>optional int32 qux = 1;</code> */ public Builder clearQux() { bitField0_ = (bitField0_ & ~0x00000001); qux_ = 0; onChanged(); return this; } private protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 complexOptionType5_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder> complexOptionType5Builder_; /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public boolean hasComplexOptionType5() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 getComplexOptionType5() { if (complexOptionType5Builder_ == null) { return complexOptionType5_; } else { return complexOptionType5Builder_.getMessage(); } } /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public Builder setComplexOptionType5(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 value) { if (complexOptionType5Builder_ == null) { if (value == null) { throw new NullPointerException(); } complexOptionType5_ = value; onChanged(); } else { complexOptionType5Builder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public Builder setComplexOptionType5( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder builderForValue) { if (complexOptionType5Builder_ == null) { complexOptionType5_ = builderForValue.build(); onChanged(); } else { complexOptionType5Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public Builder mergeComplexOptionType5(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5 value) { if (complexOptionType5Builder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && complexOptionType5_ != protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.getDefaultInstance()) { complexOptionType5_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.newBuilder(complexOptionType5_).mergeFrom(value).buildPartial(); } else { complexOptionType5_ = value; } onChanged(); } else { complexOptionType5Builder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public Builder clearComplexOptionType5() { if (complexOptionType5Builder_ == null) { complexOptionType5_ = protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.getDefaultInstance(); onChanged(); } else { complexOptionType5Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder getComplexOptionType5Builder() { bitField0_ |= 0x00000002; onChanged(); return getComplexOptionType5FieldBuilder().getBuilder(); } /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ public protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder getComplexOptionType5OrBuilder() { if (complexOptionType5Builder_ != null) { return complexOptionType5Builder_.getMessageOrBuilder(); } else { return complexOptionType5_; } } /** * <code>optional group ComplexOptionType5 = 2 { ... }</code> */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder> getComplexOptionType5FieldBuilder() { if (complexOptionType5Builder_ == null) { complexOptionType5Builder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5.Builder, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.ComplexOptionType5OrBuilder>( getComplexOptionType5(), getParentForChildren(), isClean()); complexOptionType5_ = null; } return complexOptionType5Builder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.ComplexOptionType3) } static { defaultInstance = new ComplexOptionType3(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.ComplexOptionType3) } public interface ComplexOpt6OrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.ComplexOpt6) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 xyzzy = 7593951;</code> */ boolean hasXyzzy(); /** * <code>optional int32 xyzzy = 7593951;</code> */ int getXyzzy(); } /** * Protobuf type {@code protobuf_unittest2.ComplexOpt6} */ public static final class ComplexOpt6 extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOpt6_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOpt6_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOpt6.class, protobuf_unittest2.UnittestCustomOptions.ComplexOpt6.Builder.class); } public static com.google.protobuf.Parser<ComplexOpt6> PARSER = new com.google.protobuf.AbstractParser<ComplexOpt6>() { 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<ComplexOpt6> getParserForType() { return PARSER; } private int bitField0_; public static final int XYZZY_FIELD_NUMBER = 7593951; private int xyzzy_; /** * <code>optional int32 xyzzy = 7593951;</code> */ public boolean hasXyzzy() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 xyzzy = 7593951;</code> */ 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.ComplexOpt6)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 other = (protobuf_unittest2.UnittestCustomOptions.ComplexOpt6) obj; boolean result = true; result = result && (hasXyzzy() == other.hasXyzzy()); if (hasXyzzy()) { result = result && (getXyzzy() == other.getXyzzy()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasXyzzy()) { hash = (37 * hash) + XYZZY_FIELD_NUMBER; hash = (53 * hash) + getXyzzy(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOpt6 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.ComplexOpt6} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.ComplexOpt6) protobuf_unittest2.UnittestCustomOptions.ComplexOpt6OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOpt6_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOpt6_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.ComplexOpt6.class, protobuf_unittest2.UnittestCustomOptions.ComplexOpt6.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_ComplexOpt6_descriptor; } public protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.ComplexOpt6.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 build() { protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 buildPartial() { protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 result = new protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOpt6) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.ComplexOpt6)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.ComplexOpt6 other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.ComplexOpt6 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.ComplexOpt6) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int xyzzy_ ; /** * <code>optional int32 xyzzy = 7593951;</code> */ public boolean hasXyzzy() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 xyzzy = 7593951;</code> */ public int getXyzzy() { return xyzzy_; } /** * <code>optional int32 xyzzy = 7593951;</code> */ public Builder setXyzzy(int value) { bitField0_ |= 0x00000001; xyzzy_ = value; onChanged(); return this; } /** * <code>optional int32 xyzzy = 7593951;</code> */ public Builder clearXyzzy() { bitField0_ = (bitField0_ & ~0x00000001); xyzzy_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.ComplexOpt6) } static { defaultInstance = new ComplexOpt6(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.ComplexOpt6) } public interface VariousComplexOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.VariousComplexOptions) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.VariousComplexOptions} * * <pre> * Note that we try various different ways of naming the same extension. * </pre> */ public static final class VariousComplexOptions extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_VariousComplexOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_VariousComplexOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions.class, protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions.Builder.class); } public static com.google.protobuf.Parser<VariousComplexOptions> PARSER = new com.google.protobuf.AbstractParser<VariousComplexOptions>() { 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<VariousComplexOptions> 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions other = (protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.VariousComplexOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.VariousComplexOptions} * * <pre> * Note that we try various different ways of naming the same extension. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.VariousComplexOptions) protobuf_unittest2.UnittestCustomOptions.VariousComplexOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_VariousComplexOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_VariousComplexOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions.class, protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_VariousComplexOptions_descriptor; } public protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions build() { protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions buildPartial() { protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions result = new protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.VariousComplexOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.VariousComplexOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.VariousComplexOptions) } static { defaultInstance = new VariousComplexOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.VariousComplexOptions) } public interface AggregateMessageSetOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.AggregateMessageSet) com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<AggregateMessageSet> { } /** * Protobuf type {@code protobuf_unittest2.AggregateMessageSet} */ public static final class AggregateMessageSet extends com.google.protobuf.GeneratedMessage.ExtendableMessage< AggregateMessageSet> implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.AggregateMessageSet) AggregateMessageSetOrBuilder { // Use AggregateMessageSet.newBuilder() to construct. private AggregateMessageSet(com.google.protobuf.GeneratedMessage.ExtendableBuilder<protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet, ?> 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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessageSet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessageSet_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.class, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.Builder.class); } public static com.google.protobuf.Parser<AggregateMessageSet> PARSER = new com.google.protobuf.AbstractParser<AggregateMessageSet>() { 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<AggregateMessageSet> 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<protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet>.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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet other = (protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); result = result && getExtensionFields().equals(other.getExtensionFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessageSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.AggregateMessageSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.AggregateMessageSet) protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessageSet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessageSet_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.class, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessageSet_descriptor; } public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet build() { protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet buildPartial() { protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet result = new protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessageSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.AggregateMessageSet) } static { defaultInstance = new AggregateMessageSet(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.AggregateMessageSet) } public interface AggregateMessageSetElementOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.AggregateMessageSetElement) com.google.protobuf.MessageOrBuilder { /** * <code>optional string s = 1;</code> */ boolean hasS(); /** * <code>optional string s = 1;</code> */ java.lang.String getS(); /** * <code>optional string s = 1;</code> */ com.google.protobuf.ByteString getSBytes(); } /** * Protobuf type {@code protobuf_unittest2.AggregateMessageSetElement} */ public static final class AggregateMessageSetElement extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessageSetElement_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessageSetElement_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement.class, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement.Builder.class); } public static com.google.protobuf.Parser<AggregateMessageSetElement> PARSER = new com.google.protobuf.AbstractParser<AggregateMessageSetElement>() { 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<AggregateMessageSetElement> getParserForType() { return PARSER; } private int bitField0_; public static final int S_FIELD_NUMBER = 1; private java.lang.Object s_; /** * <code>optional string s = 1;</code> */ public boolean hasS() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string s = 1;</code> */ 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; } } /** * <code>optional string s = 1;</code> */ 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement other = (protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement) obj; boolean result = true; result = result && (hasS() == other.hasS()); if (hasS()) { result = result && getS() .equals(other.getS()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasS()) { hash = (37 * hash) + S_FIELD_NUMBER; hash = (53 * hash) + getS().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessageSetElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.AggregateMessageSetElement} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.AggregateMessageSetElement) protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessageSetElement_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessageSetElement_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement.class, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessageSetElement_descriptor; } public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement build() { protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement buildPartial() { protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement result = new protobuf_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessageSetElement) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessageSetElement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object s_ = ""; /** * <code>optional string s = 1;</code> */ public boolean hasS() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string s = 1;</code> */ 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; } } /** * <code>optional string s = 1;</code> */ 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; } } /** * <code>optional string s = 1;</code> */ public Builder setS( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; s_ = value; onChanged(); return this; } /** * <code>optional string s = 1;</code> */ public Builder clearS() { bitField0_ = (bitField0_ & ~0x00000001); s_ = getDefaultInstance().getS(); onChanged(); return this; } /** * <code>optional string s = 1;</code> */ 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_unittest2.AggregateMessageSetElement) } static { defaultInstance = new AggregateMessageSetElement(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.AggregateMessageSetElement) public static final int MESSAGE_SET_EXTENSION_FIELD_NUMBER = 15447542; /** * <code>extend .protobuf_unittest2.AggregateMessageSet { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement> messageSetExtension = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement.getDefaultInstance(), 0, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement.class, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement.getDefaultInstance()); } public interface AggregateOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.Aggregate) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 i = 1;</code> */ boolean hasI(); /** * <code>optional int32 i = 1;</code> */ int getI(); /** * <code>optional string s = 2;</code> */ boolean hasS(); /** * <code>optional string s = 2;</code> */ java.lang.String getS(); /** * <code>optional string s = 2;</code> */ com.google.protobuf.ByteString getSBytes(); /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ boolean hasSub(); /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ protobuf_unittest2.UnittestCustomOptions.Aggregate getSub(); /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ protobuf_unittest2.UnittestCustomOptions.AggregateOrBuilder getSubOrBuilder(); /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ boolean hasFile(); /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ com.google.protobuf.DescriptorProtos.FileOptions getFile(); /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getFileOrBuilder(); /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ boolean hasMset(); /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet getMset(); /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetOrBuilder getMsetOrBuilder(); } /** * Protobuf type {@code protobuf_unittest2.Aggregate} * * <pre> * A helper type used to test aggregate option parsing * </pre> */ public static final class Aggregate extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.Aggregate.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = sub_.toBuilder(); } sub_ = input.readMessage(protobuf_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessageSet.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = mset_.toBuilder(); } mset_ = input.readMessage(protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_Aggregate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_Aggregate_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.Aggregate.class, protobuf_unittest2.UnittestCustomOptions.Aggregate.Builder.class); } public static com.google.protobuf.Parser<Aggregate> PARSER = new com.google.protobuf.AbstractParser<Aggregate>() { 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<Aggregate> getParserForType() { return PARSER; } private int bitField0_; public static final int I_FIELD_NUMBER = 1; private int i_; /** * <code>optional int32 i = 1;</code> */ public boolean hasI() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 i = 1;</code> */ public int getI() { return i_; } public static final int S_FIELD_NUMBER = 2; private java.lang.Object s_; /** * <code>optional string s = 2;</code> */ public boolean hasS() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string s = 2;</code> */ 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; } } /** * <code>optional string s = 2;</code> */ 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_unittest2.UnittestCustomOptions.Aggregate sub_; /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public boolean hasSub() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public protobuf_unittest2.UnittestCustomOptions.Aggregate getSub() { return sub_; } /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public protobuf_unittest2.UnittestCustomOptions.AggregateOrBuilder getSubOrBuilder() { return sub_; } public static final int FILE_FIELD_NUMBER = 4; private com.google.protobuf.DescriptorProtos.FileOptions file_; /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ public boolean hasFile() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ public com.google.protobuf.DescriptorProtos.FileOptions getFile() { return file_; } /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getFileOrBuilder() { return file_; } public static final int MSET_FIELD_NUMBER = 5; private protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet mset_; /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public boolean hasMset() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet getMset() { return mset_; } /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetOrBuilder getMsetOrBuilder() { return mset_; } private void initFields() { i_ = 0; s_ = ""; sub_ = protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance(); file_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); mset_ = protobuf_unittest2.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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.Aggregate)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.Aggregate other = (protobuf_unittest2.UnittestCustomOptions.Aggregate) obj; boolean result = true; result = result && (hasI() == other.hasI()); if (hasI()) { result = result && (getI() == other.getI()); } result = result && (hasS() == other.hasS()); if (hasS()) { result = result && getS() .equals(other.getS()); } result = result && (hasSub() == other.hasSub()); if (hasSub()) { result = result && getSub() .equals(other.getSub()); } result = result && (hasFile() == other.hasFile()); if (hasFile()) { result = result && getFile() .equals(other.getFile()); } result = result && (hasMset() == other.hasMset()); if (hasMset()) { result = result && getMset() .equals(other.getMset()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasI()) { hash = (37 * hash) + I_FIELD_NUMBER; hash = (53 * hash) + getI(); } if (hasS()) { hash = (37 * hash) + S_FIELD_NUMBER; hash = (53 * hash) + getS().hashCode(); } if (hasSub()) { hash = (37 * hash) + SUB_FIELD_NUMBER; hash = (53 * hash) + getSub().hashCode(); } if (hasFile()) { hash = (37 * hash) + FILE_FIELD_NUMBER; hash = (53 * hash) + getFile().hashCode(); } if (hasMset()) { hash = (37 * hash) + MSET_FIELD_NUMBER; hash = (53 * hash) + getMset().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.Aggregate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.Aggregate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.Aggregate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.Aggregate parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.Aggregate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.Aggregate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.Aggregate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.Aggregate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.Aggregate} * * <pre> * A helper type used to test aggregate option parsing * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.Aggregate) protobuf_unittest2.UnittestCustomOptions.AggregateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_Aggregate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_Aggregate_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.Aggregate.class, protobuf_unittest2.UnittestCustomOptions.Aggregate.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.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_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_Aggregate_descriptor; } public protobuf_unittest2.UnittestCustomOptions.Aggregate getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.Aggregate build() { protobuf_unittest2.UnittestCustomOptions.Aggregate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.Aggregate buildPartial() { protobuf_unittest2.UnittestCustomOptions.Aggregate result = new protobuf_unittest2.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_unittest2.UnittestCustomOptions.Aggregate) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.Aggregate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.Aggregate other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.Aggregate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.Aggregate) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int i_ ; /** * <code>optional int32 i = 1;</code> */ public boolean hasI() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 i = 1;</code> */ public int getI() { return i_; } /** * <code>optional int32 i = 1;</code> */ public Builder setI(int value) { bitField0_ |= 0x00000001; i_ = value; onChanged(); return this; } /** * <code>optional int32 i = 1;</code> */ public Builder clearI() { bitField0_ = (bitField0_ & ~0x00000001); i_ = 0; onChanged(); return this; } private java.lang.Object s_ = ""; /** * <code>optional string s = 2;</code> */ public boolean hasS() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string s = 2;</code> */ 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; } } /** * <code>optional string s = 2;</code> */ 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; } } /** * <code>optional string s = 2;</code> */ public Builder setS( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; s_ = value; onChanged(); return this; } /** * <code>optional string s = 2;</code> */ public Builder clearS() { bitField0_ = (bitField0_ & ~0x00000002); s_ = getDefaultInstance().getS(); onChanged(); return this; } /** * <code>optional string s = 2;</code> */ public Builder setSBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; s_ = value; onChanged(); return this; } private protobuf_unittest2.UnittestCustomOptions.Aggregate sub_ = protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.Aggregate, protobuf_unittest2.UnittestCustomOptions.Aggregate.Builder, protobuf_unittest2.UnittestCustomOptions.AggregateOrBuilder> subBuilder_; /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public boolean hasSub() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public protobuf_unittest2.UnittestCustomOptions.Aggregate getSub() { if (subBuilder_ == null) { return sub_; } else { return subBuilder_.getMessage(); } } /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public Builder setSub(protobuf_unittest2.UnittestCustomOptions.Aggregate value) { if (subBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sub_ = value; onChanged(); } else { subBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public Builder setSub( protobuf_unittest2.UnittestCustomOptions.Aggregate.Builder builderForValue) { if (subBuilder_ == null) { sub_ = builderForValue.build(); onChanged(); } else { subBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public Builder mergeSub(protobuf_unittest2.UnittestCustomOptions.Aggregate value) { if (subBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && sub_ != protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance()) { sub_ = protobuf_unittest2.UnittestCustomOptions.Aggregate.newBuilder(sub_).mergeFrom(value).buildPartial(); } else { sub_ = value; } onChanged(); } else { subBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public Builder clearSub() { if (subBuilder_ == null) { sub_ = protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance(); onChanged(); } else { subBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public protobuf_unittest2.UnittestCustomOptions.Aggregate.Builder getSubBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSubFieldBuilder().getBuilder(); } /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ public protobuf_unittest2.UnittestCustomOptions.AggregateOrBuilder getSubOrBuilder() { if (subBuilder_ != null) { return subBuilder_.getMessageOrBuilder(); } else { return sub_; } } /** * <code>optional .protobuf_unittest2.Aggregate sub = 3;</code> * * <pre> * A nested object * </pre> */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.Aggregate, protobuf_unittest2.UnittestCustomOptions.Aggregate.Builder, protobuf_unittest2.UnittestCustomOptions.AggregateOrBuilder> getSubFieldBuilder() { if (subBuilder_ == null) { subBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.Aggregate, protobuf_unittest2.UnittestCustomOptions.Aggregate.Builder, protobuf_unittest2.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_; /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ public boolean hasFile() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ public com.google.protobuf.DescriptorProtos.FileOptions getFile() { if (fileBuilder_ == null) { return file_; } else { return fileBuilder_.getMessage(); } } /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ 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; } /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ 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; } /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ 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; } /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ public Builder clearFile() { if (fileBuilder_ == null) { file_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); onChanged(); } else { fileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ public com.google.protobuf.DescriptorProtos.FileOptions.Builder getFileBuilder() { bitField0_ |= 0x00000008; onChanged(); return getFileFieldBuilder().getBuilder(); } /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getFileOrBuilder() { if (fileBuilder_ != null) { return fileBuilder_.getMessageOrBuilder(); } else { return file_; } } /** * <code>optional .google.protobuf.FileOptions file = 4;</code> * * <pre> * To test the parsing of extensions inside aggregate values * </pre> */ 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_unittest2.UnittestCustomOptions.AggregateMessageSet mset_ = protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.Builder, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetOrBuilder> msetBuilder_; /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public boolean hasMset() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet getMset() { if (msetBuilder_ == null) { return mset_; } else { return msetBuilder_.getMessage(); } } /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public Builder setMset(protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet value) { if (msetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mset_ = value; onChanged(); } else { msetBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public Builder setMset( protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.Builder builderForValue) { if (msetBuilder_ == null) { mset_ = builderForValue.build(); onChanged(); } else { msetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public Builder mergeMset(protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet value) { if (msetBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && mset_ != protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.getDefaultInstance()) { mset_ = protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.newBuilder(mset_).mergeFrom(value).buildPartial(); } else { mset_ = value; } onChanged(); } else { msetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public Builder clearMset() { if (msetBuilder_ == null) { mset_ = protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.getDefaultInstance(); onChanged(); } else { msetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.Builder getMsetBuilder() { bitField0_ |= 0x00000010; onChanged(); return getMsetFieldBuilder().getBuilder(); } /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ public protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetOrBuilder getMsetOrBuilder() { if (msetBuilder_ != null) { return msetBuilder_.getMessageOrBuilder(); } else { return mset_; } } /** * <code>optional .protobuf_unittest2.AggregateMessageSet mset = 5;</code> * * <pre> * An embedded message set * </pre> */ private com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.Builder, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetOrBuilder> getMsetFieldBuilder() { if (msetBuilder_ == null) { msetBuilder_ = new com.google.protobuf.SingleFieldBuilder< protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSet.Builder, protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetOrBuilder>( getMset(), getParentForChildren(), isClean()); mset_ = null; } return msetBuilder_; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.Aggregate) } static { defaultInstance = new Aggregate(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.Aggregate) public static final int NESTED_FIELD_NUMBER = 15476903; /** * <code>extend .google.protobuf.FileOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, protobuf_unittest2.UnittestCustomOptions.Aggregate> nested = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance(), 0, protobuf_unittest2.UnittestCustomOptions.Aggregate.class, protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance()); } public interface AggregateMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.AggregateMessage) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 fieldname = 1;</code> */ boolean hasFieldname(); /** * <code>optional int32 fieldname = 1;</code> */ int getFieldname(); } /** * Protobuf type {@code protobuf_unittest2.AggregateMessage} */ public static final class AggregateMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.AggregateMessage.class, protobuf_unittest2.UnittestCustomOptions.AggregateMessage.Builder.class); } public static com.google.protobuf.Parser<AggregateMessage> PARSER = new com.google.protobuf.AbstractParser<AggregateMessage>() { 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<AggregateMessage> getParserForType() { return PARSER; } private int bitField0_; public static final int FIELDNAME_FIELD_NUMBER = 1; private int fieldname_; /** * <code>optional int32 fieldname = 1;</code> */ public boolean hasFieldname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 fieldname = 1;</code> */ 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.AggregateMessage)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.AggregateMessage other = (protobuf_unittest2.UnittestCustomOptions.AggregateMessage) obj; boolean result = true; result = result && (hasFieldname() == other.hasFieldname()); if (hasFieldname()) { result = result && (getFieldname() == other.getFieldname()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFieldname()) { hash = (37 * hash) + FIELDNAME_FIELD_NUMBER; hash = (53 * hash) + getFieldname(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.AggregateMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.AggregateMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.AggregateMessage) protobuf_unittest2.UnittestCustomOptions.AggregateMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.AggregateMessage.class, protobuf_unittest2.UnittestCustomOptions.AggregateMessage.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_AggregateMessage_descriptor; } public protobuf_unittest2.UnittestCustomOptions.AggregateMessage getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.AggregateMessage.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.AggregateMessage build() { protobuf_unittest2.UnittestCustomOptions.AggregateMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.AggregateMessage buildPartial() { protobuf_unittest2.UnittestCustomOptions.AggregateMessage result = new protobuf_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessage) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.AggregateMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.AggregateMessage other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.AggregateMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int fieldname_ ; /** * <code>optional int32 fieldname = 1;</code> */ public boolean hasFieldname() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 fieldname = 1;</code> */ public int getFieldname() { return fieldname_; } /** * <code>optional int32 fieldname = 1;</code> */ public Builder setFieldname(int value) { bitField0_ |= 0x00000001; fieldname_ = value; onChanged(); return this; } /** * <code>optional int32 fieldname = 1;</code> */ public Builder clearFieldname() { bitField0_ = (bitField0_ & ~0x00000001); fieldname_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.AggregateMessage) } static { defaultInstance = new AggregateMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.AggregateMessage) } public interface NestedOptionTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.NestedOptionType) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code protobuf_unittest2.NestedOptionType} * * <pre> * Test custom options for nested type. * </pre> */ public static final class NestedOptionType extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_NestedOptionType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_NestedOptionType_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.NestedOptionType.class, protobuf_unittest2.UnittestCustomOptions.NestedOptionType.Builder.class); } public static com.google.protobuf.Parser<NestedOptionType> PARSER = new com.google.protobuf.AbstractParser<NestedOptionType>() { 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<NestedOptionType> getParserForType() { return PARSER; } /** * Protobuf enum {@code protobuf_unittest2.NestedOptionType.NestedEnum} */ public enum NestedEnum implements com.google.protobuf.ProtocolMessageEnum { /** * <code>NESTED_ENUM_VALUE = 1;</code> */ NESTED_ENUM_VALUE(0, 1), ; /** * <code>NESTED_ENUM_VALUE = 1;</code> */ 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<NestedEnum> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<NestedEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<NestedEnum>() { 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_unittest2.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_unittest2.NestedOptionType.NestedEnum) } public interface NestedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest2.NestedOptionType.NestedMessage) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 nested_field = 1;</code> */ boolean hasNestedField(); /** * <code>optional int32 nested_field = 1;</code> */ int getNestedField(); } /** * Protobuf type {@code protobuf_unittest2.NestedOptionType.NestedMessage} */ public static final class NestedMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_NestedOptionType_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_NestedOptionType_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage.class, protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage.Builder.class); } public static com.google.protobuf.Parser<NestedMessage> PARSER = new com.google.protobuf.AbstractParser<NestedMessage>() { 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<NestedMessage> getParserForType() { return PARSER; } private int bitField0_; public static final int NESTED_FIELD_FIELD_NUMBER = 1; private int nestedField_; /** * <code>optional int32 nested_field = 1;</code> */ public boolean hasNestedField() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 nested_field = 1;</code> */ 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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage other = (protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage) obj; boolean result = true; result = result && (hasNestedField() == other.hasNestedField()); if (hasNestedField()) { result = result && (getNestedField() == other.getNestedField()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasNestedField()) { hash = (37 * hash) + NESTED_FIELD_FIELD_NUMBER; hash = (53 * hash) + getNestedField(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.NestedOptionType.NestedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.NestedOptionType.NestedMessage) protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_NestedOptionType_NestedMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_NestedOptionType_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage.class, protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_NestedOptionType_NestedMessage_descriptor; } public protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage build() { protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage buildPartial() { protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage result = new protobuf_unittest2.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_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.NestedOptionType.NestedMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int nestedField_ ; /** * <code>optional int32 nested_field = 1;</code> */ public boolean hasNestedField() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 nested_field = 1;</code> */ public int getNestedField() { return nestedField_; } /** * <code>optional int32 nested_field = 1;</code> */ public Builder setNestedField(int value) { bitField0_ |= 0x00000001; nestedField_ = value; onChanged(); return this; } /** * <code>optional int32 nested_field = 1;</code> */ public Builder clearNestedField() { bitField0_ = (bitField0_ & ~0x00000001); nestedField_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.NestedOptionType.NestedMessage) } static { defaultInstance = new NestedMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.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(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof protobuf_unittest2.UnittestCustomOptions.NestedOptionType)) { return super.equals(obj); } protobuf_unittest2.UnittestCustomOptions.NestedOptionType other = (protobuf_unittest2.UnittestCustomOptions.NestedOptionType) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static protobuf_unittest2.UnittestCustomOptions.NestedOptionType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.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_unittest2.UnittestCustomOptions.NestedOptionType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protobuf_unittest2.UnittestCustomOptions.NestedOptionType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.NestedOptionType parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.NestedOptionType parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.NestedOptionType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protobuf_unittest2.UnittestCustomOptions.NestedOptionType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protobuf_unittest2.UnittestCustomOptions.NestedOptionType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protobuf_unittest2.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_unittest2.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_unittest2.NestedOptionType} * * <pre> * Test custom options for nested type. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest2.NestedOptionType) protobuf_unittest2.UnittestCustomOptions.NestedOptionTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_NestedOptionType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protobuf_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_NestedOptionType_fieldAccessorTable .ensureFieldAccessorsInitialized( protobuf_unittest2.UnittestCustomOptions.NestedOptionType.class, protobuf_unittest2.UnittestCustomOptions.NestedOptionType.Builder.class); } // Construct using protobuf_unittest2.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_unittest2.UnittestCustomOptions.internal_static_protobuf_unittest2_NestedOptionType_descriptor; } public protobuf_unittest2.UnittestCustomOptions.NestedOptionType getDefaultInstanceForType() { return protobuf_unittest2.UnittestCustomOptions.NestedOptionType.getDefaultInstance(); } public protobuf_unittest2.UnittestCustomOptions.NestedOptionType build() { protobuf_unittest2.UnittestCustomOptions.NestedOptionType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protobuf_unittest2.UnittestCustomOptions.NestedOptionType buildPartial() { protobuf_unittest2.UnittestCustomOptions.NestedOptionType result = new protobuf_unittest2.UnittestCustomOptions.NestedOptionType(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protobuf_unittest2.UnittestCustomOptions.NestedOptionType) { return mergeFrom((protobuf_unittest2.UnittestCustomOptions.NestedOptionType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protobuf_unittest2.UnittestCustomOptions.NestedOptionType other) { if (other == protobuf_unittest2.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_unittest2.UnittestCustomOptions.NestedOptionType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protobuf_unittest2.UnittestCustomOptions.NestedOptionType) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest2.NestedOptionType) } static { defaultInstance = new NestedOptionType(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest2.NestedOptionType) public static final int NESTED_EXTENSION_FIELD_NUMBER = 7912573; /** * <code>extend .google.protobuf.FileOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, java.lang.Integer> nestedExtension = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.NestedOptionType.getDefaultInstance(), 0, java.lang.Integer.class, null); } /** * Protobuf service {@code protobuf_unittest2.Service1} */ public static abstract class Service1 implements com.google.protobuf.Service { protected Service1() {} public interface Interface { } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new Service1() { }; } 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()) { 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()) { 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()) { default: throw new java.lang.AssertionError("Can't get here."); } } }; } public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return protobuf_unittest2.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()) { 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()) { 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()) { 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_unittest2.UnittestCustomOptions.Service1 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 static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface {} private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; } // @@protoc_insertion_point(class_scope:protobuf_unittest2.Service1) } /** * Protobuf service {@code protobuf_unittest2.TestServiceWithCustomOptions} */ public static abstract class TestServiceWithCustomOptions implements com.google.protobuf.Service { protected TestServiceWithCustomOptions() {} public interface Interface { /** * <code>rpc Foo(.protobuf_unittest2.CustomOptionFooRequest) returns (.protobuf_unittest2.CustomOptionFooResponse);</code> */ public abstract void foo( com.google.protobuf.RpcController controller, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest request, com.google.protobuf.RpcCallback<protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse> 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_unittest2.UnittestCustomOptions.CustomOptionFooRequest request, com.google.protobuf.RpcCallback<protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse> 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_unittest2.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_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } /** * <code>rpc Foo(.protobuf_unittest2.CustomOptionFooRequest) returns (.protobuf_unittest2.CustomOptionFooResponse);</code> */ public abstract void foo( com.google.protobuf.RpcController controller, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest request, com.google.protobuf.RpcCallback<protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse> done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return protobuf_unittest2.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.foo(controller, (protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest)request, com.google.protobuf.RpcUtil.<protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse>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_unittest2.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_unittest2.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_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooRequest request, com.google.protobuf.RpcCallback<protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse> done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse.class, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse foo( com.google.protobuf.RpcController controller, protobuf_unittest2.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_unittest2.UnittestCustomOptions.CustomOptionFooResponse foo( com.google.protobuf.RpcController controller, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooRequest request) throws com.google.protobuf.ServiceException { return (protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, protobuf_unittest2.UnittestCustomOptions.CustomOptionFooResponse.getDefaultInstance()); } } // @@protoc_insertion_point(class_scope:protobuf_unittest2.TestServiceWithCustomOptions) } /** * Protobuf service {@code protobuf_unittest2.AggregateService} */ public static abstract class AggregateService implements com.google.protobuf.Service { protected AggregateService() {} public interface Interface { /** * <code>rpc Method(.protobuf_unittest2.AggregateMessage) returns (.protobuf_unittest2.AggregateMessage);</code> */ public abstract void method( com.google.protobuf.RpcController controller, protobuf_unittest2.UnittestCustomOptions.AggregateMessage request, com.google.protobuf.RpcCallback<protobuf_unittest2.UnittestCustomOptions.AggregateMessage> 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_unittest2.UnittestCustomOptions.AggregateMessage request, com.google.protobuf.RpcCallback<protobuf_unittest2.UnittestCustomOptions.AggregateMessage> 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_unittest2.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_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessage.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } /** * <code>rpc Method(.protobuf_unittest2.AggregateMessage) returns (.protobuf_unittest2.AggregateMessage);</code> */ public abstract void method( com.google.protobuf.RpcController controller, protobuf_unittest2.UnittestCustomOptions.AggregateMessage request, com.google.protobuf.RpcCallback<protobuf_unittest2.UnittestCustomOptions.AggregateMessage> done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return protobuf_unittest2.UnittestCustomOptions.getDescriptor().getServices().get(2); } 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_unittest2.UnittestCustomOptions.AggregateMessage)request, com.google.protobuf.RpcUtil.<protobuf_unittest2.UnittestCustomOptions.AggregateMessage>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_unittest2.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_unittest2.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_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessage request, com.google.protobuf.RpcCallback<protobuf_unittest2.UnittestCustomOptions.AggregateMessage> done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, protobuf_unittest2.UnittestCustomOptions.AggregateMessage.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, protobuf_unittest2.UnittestCustomOptions.AggregateMessage.class, protobuf_unittest2.UnittestCustomOptions.AggregateMessage.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public protobuf_unittest2.UnittestCustomOptions.AggregateMessage method( com.google.protobuf.RpcController controller, protobuf_unittest2.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_unittest2.UnittestCustomOptions.AggregateMessage method( com.google.protobuf.RpcController controller, protobuf_unittest2.UnittestCustomOptions.AggregateMessage request) throws com.google.protobuf.ServiceException { return (protobuf_unittest2.UnittestCustomOptions.AggregateMessage) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, protobuf_unittest2.UnittestCustomOptions.AggregateMessage.getDefaultInstance()); } } // @@protoc_insertion_point(class_scope:protobuf_unittest2.AggregateService) } public static final int FILE_OPT33_FIELD_NUMBER = 7736975; /** * <code>extend .google.protobuf.FileOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, java.lang.Long> fileOpt33 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int FILE_OPT34_FIELD_NUMBER = 7736976; /** * <code>extend .google.protobuf.FileOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, java.lang.Long> fileOpt34 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int FILE_OPT1_FIELD_NUMBER = 7736974; /** * <code>extend .google.protobuf.FileOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.FieldOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.FieldOptions { ... }</code> * * <pre> * This is useful for testing that we correctly register default values for * extension options. * </pre> */ 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; /** * <code>extend .google.protobuf.EnumOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.EnumValueOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.ServiceOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MethodOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, protobuf_unittest2.UnittestCustomOptions.MethodOpt1> methodOpt1 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.MethodOpt1.class, null); public static final int BOOL_OPT_FIELD_NUMBER = 7706090; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ 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; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum.TestEnumType> enumOpt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.DummyMessageContainingEnum.TestEnumType.class, null); public static final int MESSAGE_TYPE_OPT_FIELD_NUMBER = 7665967; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType> messageTypeOpt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType.class, protobuf_unittest2.UnittestCustomOptions.DummyMessageInvalidAsOptionType.getDefaultInstance()); public static final int QUUX_FIELD_NUMBER = 7663707; /** * <code>extend .protobuf_unittest2.ComplexOptionType1 { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1, java.lang.Integer> quux = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int CORGE_FIELD_NUMBER = 7663442; /** * <code>extend .protobuf_unittest2.ComplexOptionType1 { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3> corge = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.getDefaultInstance()); public static final int GRAULT_FIELD_NUMBER = 7650927; /** * <code>extend .protobuf_unittest2.ComplexOptionType2 { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2, java.lang.Integer> grault = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int GARPLY_FIELD_NUMBER = 7649992; /** * <code>extend .protobuf_unittest2.ComplexOptionType2 { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1> garply = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance()); public static final int COMPLEX_OPT1_FIELD_NUMBER = 7646756; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1> complexOpt1 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType1.getDefaultInstance()); public static final int COMPLEX_OPT2_FIELD_NUMBER = 7636949; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2> complexOpt2 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.getDefaultInstance()); public static final int COMPLEX_OPT3_FIELD_NUMBER = 7636463; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3> complexOpt3 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.class, protobuf_unittest2.UnittestCustomOptions.ComplexOptionType3.getDefaultInstance()); public static final int COMPLEXOPT6_FIELD_NUMBER = 7595468; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest2.UnittestCustomOptions.ComplexOpt6> complexOpt6 = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.ComplexOpt6.class, protobuf_unittest2.UnittestCustomOptions.ComplexOpt6.getDefaultInstance()); public static final int FILEOPT_FIELD_NUMBER = 15478479; /** * <code>extend .google.protobuf.FileOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, protobuf_unittest2.UnittestCustomOptions.Aggregate> fileopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.Aggregate.class, protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int MSGOPT_FIELD_NUMBER = 15480088; /** * <code>extend .google.protobuf.MessageOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, protobuf_unittest2.UnittestCustomOptions.Aggregate> msgopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.Aggregate.class, protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int FIELDOPT_FIELD_NUMBER = 15481374; /** * <code>extend .google.protobuf.FieldOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, protobuf_unittest2.UnittestCustomOptions.Aggregate> fieldopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.Aggregate.class, protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int ENUMOPT_FIELD_NUMBER = 15483218; /** * <code>extend .google.protobuf.EnumOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumOptions, protobuf_unittest2.UnittestCustomOptions.Aggregate> enumopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.Aggregate.class, protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int ENUMVALOPT_FIELD_NUMBER = 15486921; /** * <code>extend .google.protobuf.EnumValueOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumValueOptions, protobuf_unittest2.UnittestCustomOptions.Aggregate> enumvalopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.Aggregate.class, protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int SERVICEOPT_FIELD_NUMBER = 15497145; /** * <code>extend .google.protobuf.ServiceOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.ServiceOptions, protobuf_unittest2.UnittestCustomOptions.Aggregate> serviceopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.Aggregate.class, protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance()); public static final int METHODOPT_FIELD_NUMBER = 15512713; /** * <code>extend .google.protobuf.MethodOptions { ... }</code> */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MethodOptions, protobuf_unittest2.UnittestCustomOptions.Aggregate> methodopt = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( protobuf_unittest2.UnittestCustomOptions.Aggregate.class, protobuf_unittest2.UnittestCustomOptions.Aggregate.getDefaultInstance()); private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_CommentsTest1_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_CommentsTest1_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_TestMessageWithCustomOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_TestMessageWithCustomOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_CustomOptionFooRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_CustomOptionFooRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_CustomOptionFooResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_CustomOptionFooResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_CustomOptionFooClientMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_CustomOptionFooClientMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_CustomOptionFooServerMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_CustomOptionFooServerMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_DummyMessageContainingEnum_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_DummyMessageContainingEnum_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_DummyMessageInvalidAsOptionType_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_DummyMessageInvalidAsOptionType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_CustomOptionMinIntegerValues_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_CustomOptionMinIntegerValues_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_CustomOptionMaxIntegerValues_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_CustomOptionMaxIntegerValues_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_CustomOptionOtherValues_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_CustomOptionOtherValues_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_SettingRealsFromPositiveInts_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_SettingRealsFromPositiveInts_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_SettingRealsFromNegativeInts_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_SettingRealsFromNegativeInts_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_ComplexOptionType1_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_ComplexOptionType1_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_ComplexOptionType2_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_ComplexOptionType2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_ComplexOptionType2_ComplexOptionType4_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_ComplexOptionType2_ComplexOptionType4_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_ComplexOptionType3_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_ComplexOptionType3_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_ComplexOptionType3_ComplexOptionType5_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_ComplexOptionType3_ComplexOptionType5_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_ComplexOpt6_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_ComplexOpt6_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_VariousComplexOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_VariousComplexOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_AggregateMessageSet_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_AggregateMessageSet_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_AggregateMessageSetElement_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_AggregateMessageSetElement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_Aggregate_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_Aggregate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_AggregateMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_AggregateMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_NestedOptionType_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_NestedOptionType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest2_NestedOptionType_NestedMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protobuf_unittest2_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#tests/unittest_custom_options.proto\022\022p" + "rotobuf_unittest2\032 google/protobuf/descr" + "iptor.proto\032\036tests/test space1/test 1.pr" + "oto\"/\n\rCommentsTest1\022\016\n\006field1\030\001 \001(\t\022\016\n\006" + "field2\030\002 \001(\r\"\225\001\n\034TestMessageWithCustomOp" + "tions\022&\n\006field1\030\001 \001(\t:\006hello2B\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\"G\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*" + "\010\010d\020\200\200\200\200\002\"\304\002\n\022ComplexOptionType2\0223\n\003bar\030", "\001 \001(\0132&.protobuf_unittest2.ComplexOption" + "Type1\022\013\n\003baz\030\002 \001(\005\022G\n\004fred\030\003 \001(\01329.proto" + "buf_unittest2.ComplexOptionType2.Complex" + "OptionType4\032\230\001\n\022ComplexOptionType4\022\r\n\005wa" + "ldo\030\001 \001(\0052s\n\014complex_opt4\022\037.google.proto" + "buf.MessageOptions\030\212\365\321\003 \001(\01329.protobuf_u" + "nittest2.ComplexOptionType2.ComplexOptio" + "nType4*\010\010d\020\200\200\200\200\002\"\235\001\n\022ComplexOptionType3\022" + "\013\n\003qux\030\001 \001(\005\022U\n\022complexoptiontype5\030\002 \001(\n" + "29.protobuf_unittest2.ComplexOptionType3", ".ComplexOptionType5\032#\n\022ComplexOptionType" + "5\022\r\n\005plugh\030\003 \001(\005\"\037\n\013ComplexOpt6\022\020\n\005xyzzy" + "\030\337\277\317\003 \001(\005\"\320\001\n\025VariousComplexOptions:\266\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\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\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\023AggregateMessage" + "Set*\010\010\004\020\377\377\377\377\007:\002\010\001\"\242\001\n\032AggregateMessageSe" + "tElement\022\t\n\001s\030\001 \001(\t2y\n\025message_set_exten", "sion\022\'.protobuf_unittest2.AggregateMessa" + "geSet\030\366\353\256\007 \001(\0132..protobuf_unittest2.Aggr" + "egateMessageSetElement\"\200\002\n\tAggregate\022\t\n\001" + "i\030\001 \001(\005\022\t\n\001s\030\002 \001(\t\022*\n\003sub\030\003 \001(\0132\035.protob" + "uf_unittest2.Aggregate\022*\n\004file\030\004 \001(\0132\034.g" + "oogle.protobuf.FileOptions\0225\n\004mset\030\005 \001(\013" + "2\'.protobuf_unittest2.AggregateMessageSe" + "t2N\n\006nested\022\034.google.protobuf.FileOption" + "s\030\247\321\260\007 \001(\0132\035.protobuf_unittest2.Aggregat" + "e\"Y\n\020AggregateMessage\022)\n\tfieldname\030\001 \001(\005", "B\026\362\241\207;\021\022\017FieldAnnotation:\032\302\321\206;\025\010e\022\021Messa" + "geAnnotation\"\311\001\n\020NestedOptionType\032;\n\rNes" + "tedMessage\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_E" + "NUM_VALUE\020\001\032\006\260\206\372\005\354\007\032\010\305\366\311\035\353\003\000\0002A\n\020nested_" + "extension\022\034.google.protobuf.FileOptions\030" + "\375\370\342\003 \001(\005B\006\310\213\312\035\355\007*\037\n\nbadIDsEnum\022\t\n\005eNum1\020" + "\001\022\006\n\002e2\020\002*6\n\nMethodOpt1\022\023\n\017METHODOPT1_VA" + "L1\020\001\022\023\n\017METHODOPT1_VAL2\020\002*M\n\rAggregateEn" + "um\022%\n\005VALUE\020\001\032\032\312\374\211;\025\022\023EnumValueAnnotatio", "n\032\025\222\225\210;\020\022\016EnumAnnotation2\n\n\010Service12\220\001\n" + "\034TestServiceWithCustomOptions\022e\n\003Foo\022*.p" + "rotobuf_unittest2.CustomOptionFooRequest" + "\032+.protobuf_unittest2.CustomOptionFooRes" + "ponse\"\005\340\372\214\036\002\032\t\220\262\213\036\323\333\200\313I2\233\001\n\020AggregateSer" + "vice\022m\n\006Method\022$.protobuf_unittest2.Aggr" + "egateMessage\032$.protobuf_unittest2.Aggreg" + "ateMessage\"\027\312\310\226;\022\022\020MethodAnnotation\032\030\312\373\216" + ";\023\022\021ServiceAnnotation:3\n\nfile_opt33\022\034.go" + "ogle.protobuf.FileOptions\030\217\235\330\003 \001(\004:3\n\nfi", "le_opt34\022\034.google.protobuf.FileOptions\030\220" + "\235\330\003 \001(\004:2\n\tfile_opt1\022\034.google.protobuf.F" + "ileOptions\030\216\235\330\003 \001(\004:8\n\014message_opt1\022\037.go" + "ogle.protobuf.MessageOptions\030\234\255\330\003 \001(\005:4\n" + "\nfield_opt1\022\035.google.protobuf.FieldOptio" + "ns\030\210\274\330\003 \001(\006:8\n\nfield_opt2\022\035.google.proto" + "buf.FieldOptions\030\271\241\331\003 \001(\005:\00242:2\n\tenum_op" + "t1\022\034.google.protobuf.EnumOptions\030\350\236\331\003 \001(" + "\017:<\n\017enum_value_opt1\022!.google.protobuf.E" + "numValueOptions\030\346\240_ \001(\005:8\n\014service_opt1\022", "\037.google.protobuf.ServiceOptions\030\242\266\341\003 \001(" + "\022:V\n\013method_opt1\022\036.google.protobuf.Metho" + "dOptions\030\254\317\341\003 \001(\0162\036.protobuf_unittest2.M" + "ethodOpt1:4\n\010bool_opt\022\037.google.protobuf." + "MessageOptions\030\352\253\326\003 \001(\010:5\n\tint32_opt\022\037.g" + "oogle.protobuf.MessageOptions\030\355\250\326\003 \001(\005:5" + "\n\tint64_opt\022\037.google.protobuf.MessageOpt" + "ions\030\306\247\326\003 \001(\003:6\n\nuint32_opt\022\037.google.pro" + "tobuf.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.Me" + "ssageOptions\030\300\210\326\003 \001(\021:6\n\nsint64_opt\022\037.go" + "ogle.protobuf.MessageOptions\030\377\202\326\003 \001(\022:7\n" + "\013fixed32_opt\022\037.google.protobuf.MessageOp" + "tions\030\323\376\325\003 \001(\007:7\n\013fixed64_opt\022\037.google.p" + "rotobuf.MessageOptions\030\342\375\325\003 \001(\006:8\n\014sfixe" + "d32_opt\022\037.google.protobuf.MessageOptions" + "\030\325\361\325\003 \001(\017:8\n\014sfixed64_opt\022\037.google.proto" + "buf.MessageOptions\030\343\212\325\003 \001(\020:5\n\tfloat_opt" + "\022\037.google.protobuf.MessageOptions\030\376\273\324\003 \001", "(\002:6\n\ndouble_opt\022\037.google.protobuf.Messa" + "geOptions\030\315\253\324\003 \001(\001:6\n\nstring_opt\022\037.googl" + "e.protobuf.MessageOptions\030\305\253\324\003 \001(\t:5\n\tby" + "tes_opt\022\037.google.protobuf.MessageOptions" + "\030\226\253\324\003 \001(\014:q\n\010enum_opt\022\037.google.protobuf." + "MessageOptions\030\221\253\324\003 \001(\0162;.protobuf_unitt" + "est2.DummyMessageContainingEnum.TestEnum" + "Type:q\n\020message_type_opt\022\037.google.protob" + "uf.MessageOptions\030\257\362\323\003 \001(\01323.protobuf_un" + "ittest2.DummyMessageInvalidAsOptionType:", "7\n\004quux\022&.protobuf_unittest2.ComplexOpti" + "onType1\030\333\340\323\003 \001(\005:`\n\005corge\022&.protobuf_uni" + "ttest2.ComplexOptionType1\030\322\336\323\003 \001(\0132&.pro" + "tobuf_unittest2.ComplexOptionType3:9\n\006gr" + "ault\022&.protobuf_unittest2.ComplexOptionT" + "ype2\030\357\374\322\003 \001(\005:a\n\006garply\022&.protobuf_unitt" + "est2.ComplexOptionType2\030\310\365\322\003 \001(\0132&.proto" + "buf_unittest2.ComplexOptionType1:`\n\014comp" + "lex_opt1\022\037.google.protobuf.MessageOption" + "s\030\244\334\322\003 \001(\0132&.protobuf_unittest2.ComplexO", "ptionType1:`\n\014complex_opt2\022\037.google.prot" + "obuf.MessageOptions\030\325\217\322\003 \001(\0132&.protobuf_" + "unittest2.ComplexOptionType2:`\n\014complex_" + "opt3\022\037.google.protobuf.MessageOptions\030\357\213" + "\322\003 \001(\0132&.protobuf_unittest2.ComplexOptio" + "nType3:X\n\013complexopt6\022\037.google.protobuf." + "MessageOptions\030\314\313\317\003 \001(\n2\037.protobuf_unitt" + "est2.ComplexOpt6:O\n\007fileopt\022\034.google.pro" + "tobuf.FileOptions\030\317\335\260\007 \001(\0132\035.protobuf_un" + "ittest2.Aggregate:Q\n\006msgopt\022\037.google.pro", "tobuf.MessageOptions\030\230\352\260\007 \001(\0132\035.protobuf" + "_unittest2.Aggregate:Q\n\010fieldopt\022\035.googl" + "e.protobuf.FieldOptions\030\236\364\260\007 \001(\0132\035.proto" + "buf_unittest2.Aggregate:O\n\007enumopt\022\034.goo" + "gle.protobuf.EnumOptions\030\322\202\261\007 \001(\0132\035.prot" + "obuf_unittest2.Aggregate:W\n\nenumvalopt\022!" + ".google.protobuf.EnumValueOptions\030\311\237\261\007 \001" + "(\0132\035.protobuf_unittest2.Aggregate:U\n\nser" + "viceopt\022\037.google.protobuf.ServiceOptions" + "\030\271\357\261\007 \001(\0132\035.protobuf_unittest2.Aggregate", ":S\n\tmethodopt\022\036.google.protobuf.MethodOp" + "tions\030\211\351\262\007 \001(\0132\035.protobuf_unittest2.Aggr" + "egateB\212\001\200\001\001\210\001\001\220\001\001\240\001\001\360\350\301\035\352\255\300\345$\372\354\205;p\010d\022\016Fi" + "leAnnotation\032\026\022\024NestedFileAnnotation\"\036\372\354" + "\205;\031\022\027FileExtensionAnnotation*$\013\020\366\353\256\007\032\033\n\031" + "EmbeddedMessageSetElement\014P\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DescriptorProtos.getDescriptor(), protobufel1.test1.Test1.getDescriptor(), }, assigner); internal_static_protobuf_unittest2_CommentsTest1_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protobuf_unittest2_CommentsTest1_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_CommentsTest1_descriptor, new java.lang.String[] { "Field1", "Field2", }); internal_static_protobuf_unittest2_TestMessageWithCustomOptions_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protobuf_unittest2_TestMessageWithCustomOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_TestMessageWithCustomOptions_descriptor, new java.lang.String[] { "Field1", }); internal_static_protobuf_unittest2_CustomOptionFooRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protobuf_unittest2_CustomOptionFooRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_CustomOptionFooRequest_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_CustomOptionFooResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protobuf_unittest2_CustomOptionFooResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_CustomOptionFooResponse_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_CustomOptionFooClientMessage_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_protobuf_unittest2_CustomOptionFooClientMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_CustomOptionFooClientMessage_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_CustomOptionFooServerMessage_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_protobuf_unittest2_CustomOptionFooServerMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_CustomOptionFooServerMessage_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_DummyMessageContainingEnum_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_protobuf_unittest2_DummyMessageContainingEnum_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_DummyMessageContainingEnum_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_DummyMessageInvalidAsOptionType_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_protobuf_unittest2_DummyMessageInvalidAsOptionType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_DummyMessageInvalidAsOptionType_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_CustomOptionMinIntegerValues_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_protobuf_unittest2_CustomOptionMinIntegerValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_CustomOptionMinIntegerValues_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_CustomOptionMaxIntegerValues_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_protobuf_unittest2_CustomOptionMaxIntegerValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_CustomOptionMaxIntegerValues_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_CustomOptionOtherValues_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_protobuf_unittest2_CustomOptionOtherValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_CustomOptionOtherValues_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_SettingRealsFromPositiveInts_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_protobuf_unittest2_SettingRealsFromPositiveInts_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_SettingRealsFromPositiveInts_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_SettingRealsFromNegativeInts_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_protobuf_unittest2_SettingRealsFromNegativeInts_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_SettingRealsFromNegativeInts_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_ComplexOptionType1_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_protobuf_unittest2_ComplexOptionType1_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_ComplexOptionType1_descriptor, new java.lang.String[] { "Foo", "Foo2", "Foo3", }); internal_static_protobuf_unittest2_ComplexOptionType2_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_protobuf_unittest2_ComplexOptionType2_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_ComplexOptionType2_descriptor, new java.lang.String[] { "Bar", "Baz", "Fred", }); internal_static_protobuf_unittest2_ComplexOptionType2_ComplexOptionType4_descriptor = internal_static_protobuf_unittest2_ComplexOptionType2_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest2_ComplexOptionType2_ComplexOptionType4_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_ComplexOptionType2_ComplexOptionType4_descriptor, new java.lang.String[] { "Waldo", }); internal_static_protobuf_unittest2_ComplexOptionType3_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_protobuf_unittest2_ComplexOptionType3_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_ComplexOptionType3_descriptor, new java.lang.String[] { "Qux", "ComplexOptionType5", }); internal_static_protobuf_unittest2_ComplexOptionType3_ComplexOptionType5_descriptor = internal_static_protobuf_unittest2_ComplexOptionType3_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest2_ComplexOptionType3_ComplexOptionType5_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_ComplexOptionType3_ComplexOptionType5_descriptor, new java.lang.String[] { "Plugh", }); internal_static_protobuf_unittest2_ComplexOpt6_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_protobuf_unittest2_ComplexOpt6_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_ComplexOpt6_descriptor, new java.lang.String[] { "Xyzzy", }); internal_static_protobuf_unittest2_VariousComplexOptions_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_protobuf_unittest2_VariousComplexOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_VariousComplexOptions_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_AggregateMessageSet_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_protobuf_unittest2_AggregateMessageSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_AggregateMessageSet_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_AggregateMessageSetElement_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_protobuf_unittest2_AggregateMessageSetElement_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_AggregateMessageSetElement_descriptor, new java.lang.String[] { "S", }); internal_static_protobuf_unittest2_Aggregate_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_protobuf_unittest2_Aggregate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_Aggregate_descriptor, new java.lang.String[] { "I", "S", "Sub", "File", "Mset", }); internal_static_protobuf_unittest2_AggregateMessage_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_protobuf_unittest2_AggregateMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_AggregateMessage_descriptor, new java.lang.String[] { "Fieldname", }); internal_static_protobuf_unittest2_NestedOptionType_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_protobuf_unittest2_NestedOptionType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_NestedOptionType_descriptor, new java.lang.String[] { }); internal_static_protobuf_unittest2_NestedOptionType_NestedMessage_descriptor = internal_static_protobuf_unittest2_NestedOptionType_descriptor.getNestedTypes().get(0); internal_static_protobuf_unittest2_NestedOptionType_NestedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protobuf_unittest2_NestedOptionType_NestedMessage_descriptor, new java.lang.String[] { "NestedField", }); fileOpt33.internalInit(descriptor.getExtensions().get(0)); fileOpt34.internalInit(descriptor.getExtensions().get(1)); fileOpt1.internalInit(descriptor.getExtensions().get(2)); messageOpt1.internalInit(descriptor.getExtensions().get(3)); fieldOpt1.internalInit(descriptor.getExtensions().get(4)); fieldOpt2.internalInit(descriptor.getExtensions().get(5)); enumOpt1.internalInit(descriptor.getExtensions().get(6)); enumValueOpt1.internalInit(descriptor.getExtensions().get(7)); serviceOpt1.internalInit(descriptor.getExtensions().get(8)); methodOpt1.internalInit(descriptor.getExtensions().get(9)); boolOpt.internalInit(descriptor.getExtensions().get(10)); int32Opt.internalInit(descriptor.getExtensions().get(11)); int64Opt.internalInit(descriptor.getExtensions().get(12)); uint32Opt.internalInit(descriptor.getExtensions().get(13)); uint64Opt.internalInit(descriptor.getExtensions().get(14)); sint32Opt.internalInit(descriptor.getExtensions().get(15)); sint64Opt.internalInit(descriptor.getExtensions().get(16)); fixed32Opt.internalInit(descriptor.getExtensions().get(17)); fixed64Opt.internalInit(descriptor.getExtensions().get(18)); sfixed32Opt.internalInit(descriptor.getExtensions().get(19)); sfixed64Opt.internalInit(descriptor.getExtensions().get(20)); floatOpt.internalInit(descriptor.getExtensions().get(21)); doubleOpt.internalInit(descriptor.getExtensions().get(22)); stringOpt.internalInit(descriptor.getExtensions().get(23)); bytesOpt.internalInit(descriptor.getExtensions().get(24)); enumOpt.internalInit(descriptor.getExtensions().get(25)); messageTypeOpt.internalInit(descriptor.getExtensions().get(26)); quux.internalInit(descriptor.getExtensions().get(27)); corge.internalInit(descriptor.getExtensions().get(28)); grault.internalInit(descriptor.getExtensions().get(29)); garply.internalInit(descriptor.getExtensions().get(30)); complexOpt1.internalInit(descriptor.getExtensions().get(31)); complexOpt2.internalInit(descriptor.getExtensions().get(32)); complexOpt3.internalInit(descriptor.getExtensions().get(33)); complexOpt6.internalInit(descriptor.getExtensions().get(34)); fileopt.internalInit(descriptor.getExtensions().get(35)); msgopt.internalInit(descriptor.getExtensions().get(36)); fieldopt.internalInit(descriptor.getExtensions().get(37)); enumopt.internalInit(descriptor.getExtensions().get(38)); enumvalopt.internalInit(descriptor.getExtensions().get(39)); serviceopt.internalInit(descriptor.getExtensions().get(40)); methodopt.internalInit(descriptor.getExtensions().get(41)); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(protobuf_unittest2.UnittestCustomOptions.fieldOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.enumValueOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.enumOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.messageOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.sfixed64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.sfixed32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.fixed64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.fixed32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.sint64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.sint32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.uint64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.uint32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.int64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.int32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.boolOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.sfixed64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.sfixed32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.fixed64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.fixed32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.sint64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.sint32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.uint64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.uint32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.int64Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.int32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.boolOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.enumOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.bytesOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.stringOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.doubleOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.floatOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.int32Opt); registry.add(protobuf_unittest2.UnittestCustomOptions.doubleOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.floatOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.doubleOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.floatOpt); registry.add(protobuf_unittest2.UnittestCustomOptions.complexOpt6); registry.add(protobuf_unittest2.UnittestCustomOptions.ComplexOptionType2.ComplexOptionType4.complexOpt4); registry.add(protobuf_unittest2.UnittestCustomOptions.complexOpt3); registry.add(protobuf_unittest2.UnittestCustomOptions.complexOpt2); registry.add(protobuf_unittest2.UnittestCustomOptions.corge); registry.add(protobuf_unittest2.UnittestCustomOptions.quux); registry.add(protobuf_unittest2.UnittestCustomOptions.garply); registry.add(protobuf_unittest2.UnittestCustomOptions.corge); registry.add(protobuf_unittest2.UnittestCustomOptions.quux); registry.add(protobuf_unittest2.UnittestCustomOptions.grault); registry.add(protobuf_unittest2.UnittestCustomOptions.complexOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.corge); registry.add(protobuf_unittest2.UnittestCustomOptions.quux); registry.add(protobuf_unittest2.UnittestCustomOptions.fieldopt); registry.add(protobuf_unittest2.UnittestCustomOptions.msgopt); registry.add(protobuf_unittest2.UnittestCustomOptions.fieldOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.messageOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.enumValueOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.enumOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.fieldOpt2); registry.add(protobuf_unittest2.UnittestCustomOptions.enumvalopt); registry.add(protobuf_unittest2.UnittestCustomOptions.enumopt); registry.add(protobuf_unittest2.UnittestCustomOptions.methodOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.serviceOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.methodopt); registry.add(protobuf_unittest2.UnittestCustomOptions.serviceopt); registry.add(protobuf_unittest2.UnittestCustomOptions.fileOpt1); registry.add(protobuf_unittest2.UnittestCustomOptions.fileopt); registry.add(protobuf_unittest2.UnittestCustomOptions.fileopt); registry.add(protobuf_unittest2.UnittestCustomOptions.AggregateMessageSetElement.messageSetExtension); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.DescriptorProtos.getDescriptor(); protobufel1.test1.Test1.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }