PK !&oŸ22META-INF/MANIFEST.MFManifest-Version: 1.0 Created-By: 1.6.0 (protoc) PK !9.¢JÊ\Ê\+com/google/protobuf/UnittestImportLite.java// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/unittest_import_lite.proto // Protobuf Java Version: 3.25.0 package com.google.protobuf; public final class UnittestImportLite { private UnittestImportLite() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code protobuf_unittest_import.ImportEnumLite} */ public enum ImportEnumLite implements com.google.protobuf.ProtocolMessageEnum { /** * IMPORT_LITE_FOO = 7; */ IMPORT_LITE_FOO(7), /** * IMPORT_LITE_BAR = 8; */ IMPORT_LITE_BAR(8), /** * IMPORT_LITE_BAZ = 9; */ IMPORT_LITE_BAZ(9), ; /** * IMPORT_LITE_FOO = 7; */ public static final int IMPORT_LITE_FOO_VALUE = 7; /** * IMPORT_LITE_BAR = 8; */ public static final int IMPORT_LITE_BAR_VALUE = 8; /** * IMPORT_LITE_BAZ = 9; */ public static final int IMPORT_LITE_BAZ_VALUE = 9; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ImportEnumLite valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ImportEnumLite forNumber(int value) { switch (value) { case 7: return IMPORT_LITE_FOO; case 8: return IMPORT_LITE_BAR; case 9: return IMPORT_LITE_BAZ; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ImportEnumLite> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ImportEnumLite findValueByNumber(int number) { return ImportEnumLite.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.UnittestImportLite.getDescriptor().getEnumTypes().get(0); } private static final ImportEnumLite[] VALUES = values(); public static ImportEnumLite 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 value; private ImportEnumLite(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protobuf_unittest_import.ImportEnumLite) } public interface ImportMessageLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest_import.ImportMessageLite) com.google.protobuf.MessageOrBuilder { /** * optional int32 d = 1; * @return Whether the d field is set. */ boolean hasD(); /** * optional int32 d = 1; * @return The d. */ int getD(); } /** * Protobuf type {@code protobuf_unittest_import.ImportMessageLite} */ public static final class ImportMessageLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protobuf_unittest_import.ImportMessageLite) ImportMessageLiteOrBuilder { private static final long serialVersionUID = 0L; // Use ImportMessageLite.newBuilder() to construct. private ImportMessageLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImportMessageLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ImportMessageLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestImportLite.internal_static_protobuf_unittest_import_ImportMessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestImportLite.internal_static_protobuf_unittest_import_ImportMessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestImportLite.ImportMessageLite.class, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder.class); } private int bitField0_; public static final int D_FIELD_NUMBER = 1; private int d_ = 0; /** * optional int32 d = 1; * @return Whether the d field is set. */ @java.lang.Override public boolean hasD() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 d = 1; * @return The d. */ @java.lang.Override public int getD() { return d_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, d_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, d_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestImportLite.ImportMessageLite)) { return super.equals(obj); } com.google.protobuf.UnittestImportLite.ImportMessageLite other = (com.google.protobuf.UnittestImportLite.ImportMessageLite) obj; if (hasD() != other.hasD()) return false; if (hasD()) { if (getD() != other.getD()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasD()) { hash = (37 * hash) + D_FIELD_NUMBER; hash = (53 * hash) + getD(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestImportLite.ImportMessageLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest_import.ImportMessageLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest_import.ImportMessageLite) com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestImportLite.internal_static_protobuf_unittest_import_ImportMessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestImportLite.internal_static_protobuf_unittest_import_ImportMessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestImportLite.ImportMessageLite.class, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder.class); } // Construct using com.google.protobuf.UnittestImportLite.ImportMessageLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; d_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestImportLite.internal_static_protobuf_unittest_import_ImportMessageLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportMessageLite getDefaultInstanceForType() { return com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportMessageLite build() { com.google.protobuf.UnittestImportLite.ImportMessageLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportMessageLite buildPartial() { com.google.protobuf.UnittestImportLite.ImportMessageLite result = new com.google.protobuf.UnittestImportLite.ImportMessageLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestImportLite.ImportMessageLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.d_ = d_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestImportLite.ImportMessageLite) { return mergeFrom((com.google.protobuf.UnittestImportLite.ImportMessageLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestImportLite.ImportMessageLite other) { if (other == com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance()) return this; if (other.hasD()) { setD(other.getD()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { d_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int d_ ; /** * optional int32 d = 1; * @return Whether the d field is set. */ @java.lang.Override public boolean hasD() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 d = 1; * @return The d. */ @java.lang.Override public int getD() { return d_; } /** * optional int32 d = 1; * @param value The d to set. * @return This builder for chaining. */ public Builder setD(int value) { d_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 d = 1; * @return This builder for chaining. */ public Builder clearD() { bitField0_ = (bitField0_ & ~0x00000001); d_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protobuf_unittest_import.ImportMessageLite) } // @@protoc_insertion_point(class_scope:protobuf_unittest_import.ImportMessageLite) private static final com.google.protobuf.UnittestImportLite.ImportMessageLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestImportLite.ImportMessageLite(); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImportMessageLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportMessageLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_import_ImportMessageLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protobuf_unittest_import_ImportMessageLite_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n*google/protobuf/unittest_import_lite.p" + "roto\022\030protobuf_unittest_import\0321google/p" + "rotobuf/unittest_import_public_lite.prot" + "o\"\036\n\021ImportMessageLite\022\t\n\001d\030\001 \001(\005*O\n\016Imp" + "ortEnumLite\022\023\n\017IMPORT_LITE_FOO\020\007\022\023\n\017IMPO" + "RT_LITE_BAR\020\010\022\023\n\017IMPORT_LITE_BAZ\020\tB\027\n\023co" + "m.google.protobufH\003P\000" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.UnittestImportPublicLite.getDescriptor(), }); internal_static_protobuf_unittest_import_ImportMessageLite_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protobuf_unittest_import_ImportMessageLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protobuf_unittest_import_ImportMessageLite_descriptor, new java.lang.String[] { "D", }); com.google.protobuf.UnittestImportPublicLite.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) } PK !áI%×ôQôQ1com/google/protobuf/UnittestImportPublicLite.java// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/unittest_import_public_lite.proto // Protobuf Java Version: 3.25.0 package com.google.protobuf; public final class UnittestImportPublicLite { private UnittestImportPublicLite() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface PublicImportMessageLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:protobuf_unittest_import.PublicImportMessageLite) com.google.protobuf.MessageOrBuilder { /** * optional int32 e = 1; * @return Whether the e field is set. */ boolean hasE(); /** * optional int32 e = 1; * @return The e. */ int getE(); } /** * Protobuf type {@code protobuf_unittest_import.PublicImportMessageLite} */ public static final class PublicImportMessageLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protobuf_unittest_import.PublicImportMessageLite) PublicImportMessageLiteOrBuilder { private static final long serialVersionUID = 0L; // Use PublicImportMessageLite.newBuilder() to construct. private PublicImportMessageLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PublicImportMessageLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PublicImportMessageLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestImportPublicLite.internal_static_protobuf_unittest_import_PublicImportMessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestImportPublicLite.internal_static_protobuf_unittest_import_PublicImportMessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.class, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder.class); } private int bitField0_; public static final int E_FIELD_NUMBER = 1; private int e_ = 0; /** * optional int32 e = 1; * @return Whether the e field is set. */ @java.lang.Override public boolean hasE() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 e = 1; * @return The e. */ @java.lang.Override public int getE() { return e_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, e_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, e_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite)) { return super.equals(obj); } com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite other = (com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite) obj; if (hasE() != other.hasE()) return false; if (hasE()) { if (getE() != other.getE()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasE()) { hash = (37 * hash) + E_FIELD_NUMBER; hash = (53 * hash) + getE(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code protobuf_unittest_import.PublicImportMessageLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protobuf_unittest_import.PublicImportMessageLite) com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestImportPublicLite.internal_static_protobuf_unittest_import_PublicImportMessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestImportPublicLite.internal_static_protobuf_unittest_import_PublicImportMessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.class, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder.class); } // Construct using com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; e_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestImportPublicLite.internal_static_protobuf_unittest_import_PublicImportMessageLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getDefaultInstanceForType() { return com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite build() { com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite buildPartial() { com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite result = new com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.e_ = e_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite) { return mergeFrom((com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite other) { if (other == com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance()) return this; if (other.hasE()) { setE(other.getE()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { e_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int e_ ; /** * optional int32 e = 1; * @return Whether the e field is set. */ @java.lang.Override public boolean hasE() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 e = 1; * @return The e. */ @java.lang.Override public int getE() { return e_; } /** * optional int32 e = 1; * @param value The e to set. * @return This builder for chaining. */ public Builder setE(int value) { e_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 e = 1; * @return This builder for chaining. */ public Builder clearE() { bitField0_ = (bitField0_ & ~0x00000001); e_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protobuf_unittest_import.PublicImportMessageLite) } // @@protoc_insertion_point(class_scope:protobuf_unittest_import.PublicImportMessageLite) private static final com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite(); } public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PublicImportMessageLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protobuf_unittest_import_PublicImportMessageLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protobuf_unittest_import_PublicImportMessageLite_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n1google/protobuf/unittest_import_public" + "_lite.proto\022\030protobuf_unittest_import\"$\n" + "\027PublicImportMessageLite\022\t\n\001e\030\001 \001(\005B\027\n\023c" + "om.google.protobufH\003" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_protobuf_unittest_import_PublicImportMessageLite_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protobuf_unittest_import_PublicImportMessageLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protobuf_unittest_import_PublicImportMessageLite_descriptor, new java.lang.String[] { "E", }); } // @@protoc_insertion_point(outer_class_scope) } PK !„£>¤>¤%com/google/protobuf/UnittestLite.java// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/unittest_lite.proto // Protobuf Java Version: 3.25.0 package com.google.protobuf; public final class UnittestLite { private UnittestLite() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { registry.add(com.google.protobuf.UnittestLite.optionalInt32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalInt64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalUint32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalUint64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalSint32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalSint64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalFixed32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalFixed64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalSfixed32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalSfixed64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalFloatExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalDoubleExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalBoolExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalStringExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalBytesExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalGroupExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalNestedMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalForeignMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalImportMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalNestedEnumExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalForeignEnumExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalImportEnumExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalStringPieceExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalCordExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalPublicImportMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalLazyMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.optionalUnverifiedLazyMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedInt32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedInt64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedUint32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedUint64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedSint32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedSint64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedFixed32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedFixed64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedSfixed32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedSfixed64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedFloatExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedDoubleExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedBoolExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedStringExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedBytesExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedGroupExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedNestedMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedForeignMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedImportMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedNestedEnumExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedForeignEnumExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedImportEnumExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedStringPieceExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedCordExtensionLite); registry.add(com.google.protobuf.UnittestLite.repeatedLazyMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultInt32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultInt64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultUint32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultUint64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultSint32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultSint64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultFixed32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultFixed64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultSfixed32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultSfixed64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultFloatExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultDoubleExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultBoolExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultStringExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultBytesExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultNestedEnumExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultForeignEnumExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultImportEnumExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultStringPieceExtensionLite); registry.add(com.google.protobuf.UnittestLite.defaultCordExtensionLite); registry.add(com.google.protobuf.UnittestLite.oneofUint32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.oneofNestedMessageExtensionLite); registry.add(com.google.protobuf.UnittestLite.oneofStringExtensionLite); registry.add(com.google.protobuf.UnittestLite.oneofBytesExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedInt32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedInt64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedUint32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedUint64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedSint32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedSint64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedFixed32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedFixed64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedSfixed32ExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedSfixed64ExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedFloatExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedDoubleExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedBoolExtensionLite); registry.add(com.google.protobuf.UnittestLite.packedEnumExtensionLite); registry.add(com.google.protobuf.UnittestLite.testAllTypesLite); registry.add(com.google.protobuf.UnittestLite.TestNestedExtensionLite.nestedExtension); registry.add(com.google.protobuf.UnittestLite.TestParsingMergeLite.optionalExt); registry.add(com.google.protobuf.UnittestLite.TestParsingMergeLite.repeatedExt); } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code proto2_unittest.ForeignEnumLite} */ public enum ForeignEnumLite implements com.google.protobuf.ProtocolMessageEnum { /** * FOREIGN_LITE_FOO = 4; */ FOREIGN_LITE_FOO(4), /** * FOREIGN_LITE_BAZ = 6; */ FOREIGN_LITE_BAZ(6), /** * FOREIGN_LITE_BAR = 5; */ FOREIGN_LITE_BAR(5), ; /** * FOREIGN_LITE_FOO = 4; */ public static final int FOREIGN_LITE_FOO_VALUE = 4; /** * FOREIGN_LITE_BAZ = 6; */ public static final int FOREIGN_LITE_BAZ_VALUE = 6; /** * FOREIGN_LITE_BAR = 5; */ public static final int FOREIGN_LITE_BAR_VALUE = 5; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ForeignEnumLite valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ForeignEnumLite forNumber(int value) { switch (value) { case 4: return FOREIGN_LITE_FOO; case 6: return FOREIGN_LITE_BAZ; case 5: return FOREIGN_LITE_BAR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ForeignEnumLite> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ForeignEnumLite findValueByNumber(int number) { return ForeignEnumLite.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.UnittestLite.getDescriptor().getEnumTypes().get(0); } private static final ForeignEnumLite[] VALUES = values(); public static ForeignEnumLite 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 value; private ForeignEnumLite(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto2_unittest.ForeignEnumLite) } /** * Protobuf enum {@code proto2_unittest.V1EnumLite} */ public enum V1EnumLite implements com.google.protobuf.ProtocolMessageEnum { /** * V1_FIRST = 1; */ V1_FIRST(1), ; /** * V1_FIRST = 1; */ public static final int V1_FIRST_VALUE = 1; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static V1EnumLite valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static V1EnumLite forNumber(int value) { switch (value) { case 1: return V1_FIRST; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< V1EnumLite> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public V1EnumLite findValueByNumber(int number) { return V1EnumLite.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.UnittestLite.getDescriptor().getEnumTypes().get(1); } private static final V1EnumLite[] VALUES = values(); public static V1EnumLite 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 value; private V1EnumLite(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto2_unittest.V1EnumLite) } /** * Protobuf enum {@code proto2_unittest.V2EnumLite} */ public enum V2EnumLite implements com.google.protobuf.ProtocolMessageEnum { /** * V2_FIRST = 1; */ V2_FIRST(1), /** * V2_SECOND = 2; */ V2_SECOND(2), ; /** * V2_FIRST = 1; */ public static final int V2_FIRST_VALUE = 1; /** * V2_SECOND = 2; */ public static final int V2_SECOND_VALUE = 2; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static V2EnumLite valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static V2EnumLite forNumber(int value) { switch (value) { case 1: return V2_FIRST; case 2: return V2_SECOND; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< V2EnumLite> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public V2EnumLite findValueByNumber(int number) { return V2EnumLite.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.UnittestLite.getDescriptor().getEnumTypes().get(2); } private static final V2EnumLite[] VALUES = values(); public static V2EnumLite 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 value; private V2EnumLite(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto2_unittest.V2EnumLite) } public interface TestAllTypesLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestAllTypesLite) com.google.protobuf.MessageOrBuilder { /** *
     * Singular
     * 
* * optional int32 optional_int32 = 1; * @return Whether the optionalInt32 field is set. */ boolean hasOptionalInt32(); /** *
     * Singular
     * 
* * optional int32 optional_int32 = 1; * @return The optionalInt32. */ int getOptionalInt32(); /** * optional int64 optional_int64 = 2; * @return Whether the optionalInt64 field is set. */ boolean hasOptionalInt64(); /** * optional int64 optional_int64 = 2; * @return The optionalInt64. */ long getOptionalInt64(); /** * optional uint32 optional_uint32 = 3; * @return Whether the optionalUint32 field is set. */ boolean hasOptionalUint32(); /** * optional uint32 optional_uint32 = 3; * @return The optionalUint32. */ int getOptionalUint32(); /** * optional uint64 optional_uint64 = 4; * @return Whether the optionalUint64 field is set. */ boolean hasOptionalUint64(); /** * optional uint64 optional_uint64 = 4; * @return The optionalUint64. */ long getOptionalUint64(); /** * optional sint32 optional_sint32 = 5; * @return Whether the optionalSint32 field is set. */ boolean hasOptionalSint32(); /** * optional sint32 optional_sint32 = 5; * @return The optionalSint32. */ int getOptionalSint32(); /** * optional sint64 optional_sint64 = 6; * @return Whether the optionalSint64 field is set. */ boolean hasOptionalSint64(); /** * optional sint64 optional_sint64 = 6; * @return The optionalSint64. */ long getOptionalSint64(); /** * optional fixed32 optional_fixed32 = 7; * @return Whether the optionalFixed32 field is set. */ boolean hasOptionalFixed32(); /** * optional fixed32 optional_fixed32 = 7; * @return The optionalFixed32. */ int getOptionalFixed32(); /** * optional fixed64 optional_fixed64 = 8; * @return Whether the optionalFixed64 field is set. */ boolean hasOptionalFixed64(); /** * optional fixed64 optional_fixed64 = 8; * @return The optionalFixed64. */ long getOptionalFixed64(); /** * optional sfixed32 optional_sfixed32 = 9; * @return Whether the optionalSfixed32 field is set. */ boolean hasOptionalSfixed32(); /** * optional sfixed32 optional_sfixed32 = 9; * @return The optionalSfixed32. */ int getOptionalSfixed32(); /** * optional sfixed64 optional_sfixed64 = 10; * @return Whether the optionalSfixed64 field is set. */ boolean hasOptionalSfixed64(); /** * optional sfixed64 optional_sfixed64 = 10; * @return The optionalSfixed64. */ long getOptionalSfixed64(); /** * optional float optional_float = 11; * @return Whether the optionalFloat field is set. */ boolean hasOptionalFloat(); /** * optional float optional_float = 11; * @return The optionalFloat. */ float getOptionalFloat(); /** * optional double optional_double = 12; * @return Whether the optionalDouble field is set. */ boolean hasOptionalDouble(); /** * optional double optional_double = 12; * @return The optionalDouble. */ double getOptionalDouble(); /** * optional bool optional_bool = 13; * @return Whether the optionalBool field is set. */ boolean hasOptionalBool(); /** * optional bool optional_bool = 13; * @return The optionalBool. */ boolean getOptionalBool(); /** * optional string optional_string = 14; * @return Whether the optionalString field is set. */ boolean hasOptionalString(); /** * optional string optional_string = 14; * @return The optionalString. */ java.lang.String getOptionalString(); /** * optional string optional_string = 14; * @return The bytes for optionalString. */ com.google.protobuf.ByteString getOptionalStringBytes(); /** * optional bytes optional_bytes = 15; * @return Whether the optionalBytes field is set. */ boolean hasOptionalBytes(); /** * optional bytes optional_bytes = 15; * @return The optionalBytes. */ com.google.protobuf.ByteString getOptionalBytes(); /** * optional group OptionalGroup = 16 { ... } * @return Whether the optionalgroup field is set. */ boolean hasOptionalGroup(); /** * optional group OptionalGroup = 16 { ... } * @return The optionalgroup. */ com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup getOptionalGroup(); /** * optional group OptionalGroup = 16 { ... } */ com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder getOptionalGroupOrBuilder(); /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; * @return Whether the optionalNestedMessage field is set. */ boolean hasOptionalNestedMessage(); /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; * @return The optionalNestedMessage. */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalNestedMessage(); /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder(); /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; * @return Whether the optionalForeignMessage field is set. */ boolean hasOptionalForeignMessage(); /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; * @return The optionalForeignMessage. */ com.google.protobuf.UnittestLite.ForeignMessageLite getOptionalForeignMessage(); /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; */ com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getOptionalForeignMessageOrBuilder(); /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; * @return Whether the optionalImportMessage field is set. */ boolean hasOptionalImportMessage(); /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; * @return The optionalImportMessage. */ com.google.protobuf.UnittestImportLite.ImportMessageLite getOptionalImportMessage(); /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; */ com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder getOptionalImportMessageOrBuilder(); /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21; * @return Whether the optionalNestedEnum field is set. */ boolean hasOptionalNestedEnum(); /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21; * @return The optionalNestedEnum. */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getOptionalNestedEnum(); /** * optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22; * @return Whether the optionalForeignEnum field is set. */ boolean hasOptionalForeignEnum(); /** * optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22; * @return The optionalForeignEnum. */ com.google.protobuf.UnittestLite.ForeignEnumLite getOptionalForeignEnum(); /** * optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23; * @return Whether the optionalImportEnum field is set. */ boolean hasOptionalImportEnum(); /** * optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23; * @return The optionalImportEnum. */ com.google.protobuf.UnittestImportLite.ImportEnumLite getOptionalImportEnum(); /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @return Whether the optionalStringPiece field is set. */ boolean hasOptionalStringPiece(); /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @return The optionalStringPiece. */ java.lang.String getOptionalStringPiece(); /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @return The bytes for optionalStringPiece. */ com.google.protobuf.ByteString getOptionalStringPieceBytes(); /** * optional string optional_cord = 25 [ctype = CORD]; * @return Whether the optionalCord field is set. */ boolean hasOptionalCord(); /** * optional string optional_cord = 25 [ctype = CORD]; * @return The optionalCord. */ java.lang.String getOptionalCord(); /** * optional string optional_cord = 25 [ctype = CORD]; * @return The bytes for optionalCord. */ com.google.protobuf.ByteString getOptionalCordBytes(); /** *
     * Defined in unittest_import_public.proto
     * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; * @return Whether the optionalPublicImportMessage field is set. */ boolean hasOptionalPublicImportMessage(); /** *
     * Defined in unittest_import_public.proto
     * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; * @return The optionalPublicImportMessage. */ com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getOptionalPublicImportMessage(); /** *
     * Defined in unittest_import_public.proto
     * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; */ com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder getOptionalPublicImportMessageOrBuilder(); /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; * @return Whether the optionalLazyMessage field is set. */ boolean hasOptionalLazyMessage(); /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; * @return The optionalLazyMessage. */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalLazyMessage(); /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder(); /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; * @return Whether the optionalUnverifiedLazyMessage field is set. */ boolean hasOptionalUnverifiedLazyMessage(); /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; * @return The optionalUnverifiedLazyMessage. */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalUnverifiedLazyMessage(); /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalUnverifiedLazyMessageOrBuilder(); /** *
     * Repeated
     * 
* * repeated int32 repeated_int32 = 31; * @return A list containing the repeatedInt32. */ java.util.List getRepeatedInt32List(); /** *
     * Repeated
     * 
* * repeated int32 repeated_int32 = 31; * @return The count of repeatedInt32. */ int getRepeatedInt32Count(); /** *
     * Repeated
     * 
* * repeated int32 repeated_int32 = 31; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ int getRepeatedInt32(int index); /** * repeated int64 repeated_int64 = 32; * @return A list containing the repeatedInt64. */ java.util.List getRepeatedInt64List(); /** * repeated int64 repeated_int64 = 32; * @return The count of repeatedInt64. */ int getRepeatedInt64Count(); /** * repeated int64 repeated_int64 = 32; * @param index The index of the element to return. * @return The repeatedInt64 at the given index. */ long getRepeatedInt64(int index); /** * repeated uint32 repeated_uint32 = 33; * @return A list containing the repeatedUint32. */ java.util.List getRepeatedUint32List(); /** * repeated uint32 repeated_uint32 = 33; * @return The count of repeatedUint32. */ int getRepeatedUint32Count(); /** * repeated uint32 repeated_uint32 = 33; * @param index The index of the element to return. * @return The repeatedUint32 at the given index. */ int getRepeatedUint32(int index); /** * repeated uint64 repeated_uint64 = 34; * @return A list containing the repeatedUint64. */ java.util.List getRepeatedUint64List(); /** * repeated uint64 repeated_uint64 = 34; * @return The count of repeatedUint64. */ int getRepeatedUint64Count(); /** * repeated uint64 repeated_uint64 = 34; * @param index The index of the element to return. * @return The repeatedUint64 at the given index. */ long getRepeatedUint64(int index); /** * repeated sint32 repeated_sint32 = 35; * @return A list containing the repeatedSint32. */ java.util.List getRepeatedSint32List(); /** * repeated sint32 repeated_sint32 = 35; * @return The count of repeatedSint32. */ int getRepeatedSint32Count(); /** * repeated sint32 repeated_sint32 = 35; * @param index The index of the element to return. * @return The repeatedSint32 at the given index. */ int getRepeatedSint32(int index); /** * repeated sint64 repeated_sint64 = 36; * @return A list containing the repeatedSint64. */ java.util.List getRepeatedSint64List(); /** * repeated sint64 repeated_sint64 = 36; * @return The count of repeatedSint64. */ int getRepeatedSint64Count(); /** * repeated sint64 repeated_sint64 = 36; * @param index The index of the element to return. * @return The repeatedSint64 at the given index. */ long getRepeatedSint64(int index); /** * repeated fixed32 repeated_fixed32 = 37; * @return A list containing the repeatedFixed32. */ java.util.List getRepeatedFixed32List(); /** * repeated fixed32 repeated_fixed32 = 37; * @return The count of repeatedFixed32. */ int getRepeatedFixed32Count(); /** * repeated fixed32 repeated_fixed32 = 37; * @param index The index of the element to return. * @return The repeatedFixed32 at the given index. */ int getRepeatedFixed32(int index); /** * repeated fixed64 repeated_fixed64 = 38; * @return A list containing the repeatedFixed64. */ java.util.List getRepeatedFixed64List(); /** * repeated fixed64 repeated_fixed64 = 38; * @return The count of repeatedFixed64. */ int getRepeatedFixed64Count(); /** * repeated fixed64 repeated_fixed64 = 38; * @param index The index of the element to return. * @return The repeatedFixed64 at the given index. */ long getRepeatedFixed64(int index); /** * repeated sfixed32 repeated_sfixed32 = 39; * @return A list containing the repeatedSfixed32. */ java.util.List getRepeatedSfixed32List(); /** * repeated sfixed32 repeated_sfixed32 = 39; * @return The count of repeatedSfixed32. */ int getRepeatedSfixed32Count(); /** * repeated sfixed32 repeated_sfixed32 = 39; * @param index The index of the element to return. * @return The repeatedSfixed32 at the given index. */ int getRepeatedSfixed32(int index); /** * repeated sfixed64 repeated_sfixed64 = 40; * @return A list containing the repeatedSfixed64. */ java.util.List getRepeatedSfixed64List(); /** * repeated sfixed64 repeated_sfixed64 = 40; * @return The count of repeatedSfixed64. */ int getRepeatedSfixed64Count(); /** * repeated sfixed64 repeated_sfixed64 = 40; * @param index The index of the element to return. * @return The repeatedSfixed64 at the given index. */ long getRepeatedSfixed64(int index); /** * repeated float repeated_float = 41; * @return A list containing the repeatedFloat. */ java.util.List getRepeatedFloatList(); /** * repeated float repeated_float = 41; * @return The count of repeatedFloat. */ int getRepeatedFloatCount(); /** * repeated float repeated_float = 41; * @param index The index of the element to return. * @return The repeatedFloat at the given index. */ float getRepeatedFloat(int index); /** * repeated double repeated_double = 42; * @return A list containing the repeatedDouble. */ java.util.List getRepeatedDoubleList(); /** * repeated double repeated_double = 42; * @return The count of repeatedDouble. */ int getRepeatedDoubleCount(); /** * repeated double repeated_double = 42; * @param index The index of the element to return. * @return The repeatedDouble at the given index. */ double getRepeatedDouble(int index); /** * repeated bool repeated_bool = 43; * @return A list containing the repeatedBool. */ java.util.List getRepeatedBoolList(); /** * repeated bool repeated_bool = 43; * @return The count of repeatedBool. */ int getRepeatedBoolCount(); /** * repeated bool repeated_bool = 43; * @param index The index of the element to return. * @return The repeatedBool at the given index. */ boolean getRepeatedBool(int index); /** * repeated string repeated_string = 44; * @return A list containing the repeatedString. */ java.util.List getRepeatedStringList(); /** * repeated string repeated_string = 44; * @return The count of repeatedString. */ int getRepeatedStringCount(); /** * repeated string repeated_string = 44; * @param index The index of the element to return. * @return The repeatedString at the given index. */ java.lang.String getRepeatedString(int index); /** * repeated string repeated_string = 44; * @param index The index of the value to return. * @return The bytes of the repeatedString at the given index. */ com.google.protobuf.ByteString getRepeatedStringBytes(int index); /** * repeated bytes repeated_bytes = 45; * @return A list containing the repeatedBytes. */ java.util.List getRepeatedBytesList(); /** * repeated bytes repeated_bytes = 45; * @return The count of repeatedBytes. */ int getRepeatedBytesCount(); /** * repeated bytes repeated_bytes = 45; * @param index The index of the element to return. * @return The repeatedBytes at the given index. */ com.google.protobuf.ByteString getRepeatedBytes(int index); /** * repeated group RepeatedGroup = 46 { ... } */ java.util.List getRepeatedGroupList(); /** * repeated group RepeatedGroup = 46 { ... } */ com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup getRepeatedGroup(int index); /** * repeated group RepeatedGroup = 46 { ... } */ int getRepeatedGroupCount(); /** * repeated group RepeatedGroup = 46 { ... } */ java.util.List getRepeatedGroupOrBuilderList(); /** * repeated group RepeatedGroup = 46 { ... } */ com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index); /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ java.util.List getRepeatedNestedMessageList(); /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedNestedMessage(int index); /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ int getRepeatedNestedMessageCount(); /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ java.util.List getRepeatedNestedMessageOrBuilderList(); /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder( int index); /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ java.util.List getRepeatedForeignMessageList(); /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ com.google.protobuf.UnittestLite.ForeignMessageLite getRepeatedForeignMessage(int index); /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ int getRepeatedForeignMessageCount(); /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ java.util.List getRepeatedForeignMessageOrBuilderList(); /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getRepeatedForeignMessageOrBuilder( int index); /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ java.util.List getRepeatedImportMessageList(); /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ com.google.protobuf.UnittestImportLite.ImportMessageLite getRepeatedImportMessage(int index); /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ int getRepeatedImportMessageCount(); /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ java.util.List getRepeatedImportMessageOrBuilderList(); /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder getRepeatedImportMessageOrBuilder( int index); /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @return A list containing the repeatedNestedEnum. */ java.util.List getRepeatedNestedEnumList(); /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @return The count of repeatedNestedEnum. */ int getRepeatedNestedEnumCount(); /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @param index The index of the element to return. * @return The repeatedNestedEnum at the given index. */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getRepeatedNestedEnum(int index); /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @return A list containing the repeatedForeignEnum. */ java.util.List getRepeatedForeignEnumList(); /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @return The count of repeatedForeignEnum. */ int getRepeatedForeignEnumCount(); /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @param index The index of the element to return. * @return The repeatedForeignEnum at the given index. */ com.google.protobuf.UnittestLite.ForeignEnumLite getRepeatedForeignEnum(int index); /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @return A list containing the repeatedImportEnum. */ java.util.List getRepeatedImportEnumList(); /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @return The count of repeatedImportEnum. */ int getRepeatedImportEnumCount(); /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @param index The index of the element to return. * @return The repeatedImportEnum at the given index. */ com.google.protobuf.UnittestImportLite.ImportEnumLite getRepeatedImportEnum(int index); /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @return A list containing the repeatedStringPiece. */ java.util.List getRepeatedStringPieceList(); /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @return The count of repeatedStringPiece. */ int getRepeatedStringPieceCount(); /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @param index The index of the element to return. * @return The repeatedStringPiece at the given index. */ java.lang.String getRepeatedStringPiece(int index); /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @param index The index of the value to return. * @return The bytes of the repeatedStringPiece at the given index. */ com.google.protobuf.ByteString getRepeatedStringPieceBytes(int index); /** * repeated string repeated_cord = 55 [ctype = CORD]; * @return A list containing the repeatedCord. */ java.util.List getRepeatedCordList(); /** * repeated string repeated_cord = 55 [ctype = CORD]; * @return The count of repeatedCord. */ int getRepeatedCordCount(); /** * repeated string repeated_cord = 55 [ctype = CORD]; * @param index The index of the element to return. * @return The repeatedCord at the given index. */ java.lang.String getRepeatedCord(int index); /** * repeated string repeated_cord = 55 [ctype = CORD]; * @param index The index of the value to return. * @return The bytes of the repeatedCord at the given index. */ com.google.protobuf.ByteString getRepeatedCordBytes(int index); /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ java.util.List getRepeatedLazyMessageList(); /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedLazyMessage(int index); /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ int getRepeatedLazyMessageCount(); /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ java.util.List getRepeatedLazyMessageOrBuilderList(); /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder( int index); /** *
     * Singular with defaults
     * 
* * optional int32 default_int32 = 61 [default = 41]; * @return Whether the defaultInt32 field is set. */ boolean hasDefaultInt32(); /** *
     * Singular with defaults
     * 
* * optional int32 default_int32 = 61 [default = 41]; * @return The defaultInt32. */ int getDefaultInt32(); /** * optional int64 default_int64 = 62 [default = 42]; * @return Whether the defaultInt64 field is set. */ boolean hasDefaultInt64(); /** * optional int64 default_int64 = 62 [default = 42]; * @return The defaultInt64. */ long getDefaultInt64(); /** * optional uint32 default_uint32 = 63 [default = 43]; * @return Whether the defaultUint32 field is set. */ boolean hasDefaultUint32(); /** * optional uint32 default_uint32 = 63 [default = 43]; * @return The defaultUint32. */ int getDefaultUint32(); /** * optional uint64 default_uint64 = 64 [default = 44]; * @return Whether the defaultUint64 field is set. */ boolean hasDefaultUint64(); /** * optional uint64 default_uint64 = 64 [default = 44]; * @return The defaultUint64. */ long getDefaultUint64(); /** * optional sint32 default_sint32 = 65 [default = -45]; * @return Whether the defaultSint32 field is set. */ boolean hasDefaultSint32(); /** * optional sint32 default_sint32 = 65 [default = -45]; * @return The defaultSint32. */ int getDefaultSint32(); /** * optional sint64 default_sint64 = 66 [default = 46]; * @return Whether the defaultSint64 field is set. */ boolean hasDefaultSint64(); /** * optional sint64 default_sint64 = 66 [default = 46]; * @return The defaultSint64. */ long getDefaultSint64(); /** * optional fixed32 default_fixed32 = 67 [default = 47]; * @return Whether the defaultFixed32 field is set. */ boolean hasDefaultFixed32(); /** * optional fixed32 default_fixed32 = 67 [default = 47]; * @return The defaultFixed32. */ int getDefaultFixed32(); /** * optional fixed64 default_fixed64 = 68 [default = 48]; * @return Whether the defaultFixed64 field is set. */ boolean hasDefaultFixed64(); /** * optional fixed64 default_fixed64 = 68 [default = 48]; * @return The defaultFixed64. */ long getDefaultFixed64(); /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; * @return Whether the defaultSfixed32 field is set. */ boolean hasDefaultSfixed32(); /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; * @return The defaultSfixed32. */ int getDefaultSfixed32(); /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; * @return Whether the defaultSfixed64 field is set. */ boolean hasDefaultSfixed64(); /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; * @return The defaultSfixed64. */ long getDefaultSfixed64(); /** * optional float default_float = 71 [default = 51.5]; * @return Whether the defaultFloat field is set. */ boolean hasDefaultFloat(); /** * optional float default_float = 71 [default = 51.5]; * @return The defaultFloat. */ float getDefaultFloat(); /** * optional double default_double = 72 [default = 52000]; * @return Whether the defaultDouble field is set. */ boolean hasDefaultDouble(); /** * optional double default_double = 72 [default = 52000]; * @return The defaultDouble. */ double getDefaultDouble(); /** * optional bool default_bool = 73 [default = true]; * @return Whether the defaultBool field is set. */ boolean hasDefaultBool(); /** * optional bool default_bool = 73 [default = true]; * @return The defaultBool. */ boolean getDefaultBool(); /** * optional string default_string = 74 [default = "hello"]; * @return Whether the defaultString field is set. */ boolean hasDefaultString(); /** * optional string default_string = 74 [default = "hello"]; * @return The defaultString. */ java.lang.String getDefaultString(); /** * optional string default_string = 74 [default = "hello"]; * @return The bytes for defaultString. */ com.google.protobuf.ByteString getDefaultStringBytes(); /** * optional bytes default_bytes = 75 [default = "world"]; * @return Whether the defaultBytes field is set. */ boolean hasDefaultBytes(); /** * optional bytes default_bytes = 75 [default = "world"]; * @return The defaultBytes. */ com.google.protobuf.ByteString getDefaultBytes(); /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR]; * @return Whether the defaultNestedEnum field is set. */ boolean hasDefaultNestedEnum(); /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR]; * @return The defaultNestedEnum. */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getDefaultNestedEnum(); /** * optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR]; * @return Whether the defaultForeignEnum field is set. */ boolean hasDefaultForeignEnum(); /** * optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR]; * @return The defaultForeignEnum. */ com.google.protobuf.UnittestLite.ForeignEnumLite getDefaultForeignEnum(); /** * optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR]; * @return Whether the defaultImportEnum field is set. */ boolean hasDefaultImportEnum(); /** * optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR]; * @return The defaultImportEnum. */ com.google.protobuf.UnittestImportLite.ImportEnumLite getDefaultImportEnum(); /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @return Whether the defaultStringPiece field is set. */ boolean hasDefaultStringPiece(); /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @return The defaultStringPiece. */ java.lang.String getDefaultStringPiece(); /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @return The bytes for defaultStringPiece. */ com.google.protobuf.ByteString getDefaultStringPieceBytes(); /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @return Whether the defaultCord field is set. */ boolean hasDefaultCord(); /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @return The defaultCord. */ java.lang.String getDefaultCord(); /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @return The bytes for defaultCord. */ com.google.protobuf.ByteString getDefaultCordBytes(); /** * uint32 oneof_uint32 = 111; * @return Whether the oneofUint32 field is set. */ boolean hasOneofUint32(); /** * uint32 oneof_uint32 = 111; * @return The oneofUint32. */ int getOneofUint32(); /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; * @return Whether the oneofNestedMessage field is set. */ boolean hasOneofNestedMessage(); /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; * @return The oneofNestedMessage. */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofNestedMessage(); /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOneofNestedMessageOrBuilder(); /** * string oneof_string = 113; * @return Whether the oneofString field is set. */ boolean hasOneofString(); /** * string oneof_string = 113; * @return The oneofString. */ java.lang.String getOneofString(); /** * string oneof_string = 113; * @return The bytes for oneofString. */ com.google.protobuf.ByteString getOneofStringBytes(); /** * bytes oneof_bytes = 114; * @return Whether the oneofBytes field is set. */ boolean hasOneofBytes(); /** * bytes oneof_bytes = 114; * @return The oneofBytes. */ com.google.protobuf.ByteString getOneofBytes(); /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; * @return Whether the oneofLazyNestedMessage field is set. */ boolean hasOneofLazyNestedMessage(); /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; * @return The oneofLazyNestedMessage. */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofLazyNestedMessage(); /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOneofLazyNestedMessageOrBuilder(); /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; * @return Whether the oneofNestedMessage2 field is set. */ boolean hasOneofNestedMessage2(); /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; * @return The oneofNestedMessage2. */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 getOneofNestedMessage2(); /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; */ com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder getOneofNestedMessage2OrBuilder(); /** *
     * Tests toString for non-repeated fields with a list suffix
     * 
* * optional int32 deceptively_named_list = 116; * @return Whether the deceptivelyNamedList field is set. */ boolean hasDeceptivelyNamedList(); /** *
     * Tests toString for non-repeated fields with a list suffix
     * 
* * optional int32 deceptively_named_list = 116; * @return The deceptivelyNamedList. */ int getDeceptivelyNamedList(); com.google.protobuf.UnittestLite.TestAllTypesLite.OneofFieldCase getOneofFieldCase(); } /** *
   * Same as TestAllTypes but with the lite runtime.
   * 
* * Protobuf type {@code proto2_unittest.TestAllTypesLite} */ public static final class TestAllTypesLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestAllTypesLite) TestAllTypesLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestAllTypesLite.newBuilder() to construct. private TestAllTypesLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestAllTypesLite() { optionalString_ = ""; optionalBytes_ = com.google.protobuf.ByteString.EMPTY; optionalNestedEnum_ = 1; optionalForeignEnum_ = 4; optionalImportEnum_ = 7; optionalStringPiece_ = ""; optionalCord_ = ""; repeatedInt32_ = emptyIntList(); repeatedInt64_ = emptyLongList(); repeatedUint32_ = emptyIntList(); repeatedUint64_ = emptyLongList(); repeatedSint32_ = emptyIntList(); repeatedSint64_ = emptyLongList(); repeatedFixed32_ = emptyIntList(); repeatedFixed64_ = emptyLongList(); repeatedSfixed32_ = emptyIntList(); repeatedSfixed64_ = emptyLongList(); repeatedFloat_ = emptyFloatList(); repeatedDouble_ = emptyDoubleList(); repeatedBool_ = emptyBooleanList(); repeatedString_ = com.google.protobuf.LazyStringArrayList.emptyList(); repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class); repeatedGroup_ = java.util.Collections.emptyList(); repeatedNestedMessage_ = java.util.Collections.emptyList(); repeatedForeignMessage_ = java.util.Collections.emptyList(); repeatedImportMessage_ = java.util.Collections.emptyList(); repeatedNestedEnum_ = java.util.Collections.emptyList(); repeatedForeignEnum_ = java.util.Collections.emptyList(); repeatedImportEnum_ = java.util.Collections.emptyList(); repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.emptyList(); repeatedCord_ = com.google.protobuf.LazyStringArrayList.emptyList(); repeatedLazyMessage_ = java.util.Collections.emptyList(); defaultInt32_ = 41; defaultInt64_ = 42L; defaultUint32_ = 43; defaultUint64_ = 44L; defaultSint32_ = -45; defaultSint64_ = 46L; defaultFixed32_ = 47; defaultFixed64_ = 48L; defaultSfixed32_ = 49; defaultSfixed64_ = -50L; defaultFloat_ = 51.5F; defaultDouble_ = 52000D; defaultBool_ = true; defaultString_ = "hello"; defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world"); defaultNestedEnum_ = 2; defaultForeignEnum_ = 5; defaultImportEnum_ = 8; defaultStringPiece_ = "abc"; defaultCord_ = "123"; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestAllTypesLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllTypesLite.class, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder.class); } /** * Protobuf enum {@code proto2_unittest.TestAllTypesLite.NestedEnum} */ public enum NestedEnum implements com.google.protobuf.ProtocolMessageEnum { /** * FOO = 1; */ FOO(1), /** * BAR = 2; */ BAR(2), /** * BAZ = 3; */ BAZ(3), ; /** * FOO = 1; */ public static final int FOO_VALUE = 1; /** * BAR = 2; */ public static final int BAR_VALUE = 2; /** * BAZ = 3; */ public static final int BAZ_VALUE = 3; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static NestedEnum valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static NestedEnum forNumber(int value) { switch (value) { case 1: return FOO; case 2: return BAR; case 3: return BAZ; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< NestedEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public NestedEnum findValueByNumber(int number) { return NestedEnum.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.UnittestLite.TestAllTypesLite.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 value; private NestedEnum(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto2_unittest.TestAllTypesLite.NestedEnum) } public interface NestedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestAllTypesLite.NestedMessage) com.google.protobuf.MessageOrBuilder { /** * optional int32 bb = 1; * @return Whether the bb field is set. */ boolean hasBb(); /** * optional int32 bb = 1; * @return The bb. */ int getBb(); /** * optional int64 cc = 2; * @return Whether the cc field is set. */ boolean hasCc(); /** * optional int64 cc = 2; * @return The cc. */ long getCc(); /** * repeated int32 dd = 3 [packed = true]; * @return A list containing the dd. */ java.util.List getDdList(); /** * repeated int32 dd = 3 [packed = true]; * @return The count of dd. */ int getDdCount(); /** * repeated int32 dd = 3 [packed = true]; * @param index The index of the element to return. * @return The dd at the given index. */ int getDd(int index); } /** * Protobuf type {@code proto2_unittest.TestAllTypesLite.NestedMessage} */ public static final class NestedMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestAllTypesLite.NestedMessage) NestedMessageOrBuilder { private static final long serialVersionUID = 0L; // Use NestedMessage.newBuilder() to construct. private NestedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NestedMessage() { dd_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NestedMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_NestedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.class, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder.class); } private int bitField0_; public static final int BB_FIELD_NUMBER = 1; private int bb_ = 0; /** * optional int32 bb = 1; * @return Whether the bb field is set. */ @java.lang.Override public boolean hasBb() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 bb = 1; * @return The bb. */ @java.lang.Override public int getBb() { return bb_; } public static final int CC_FIELD_NUMBER = 2; private long cc_ = 0L; /** * optional int64 cc = 2; * @return Whether the cc field is set. */ @java.lang.Override public boolean hasCc() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 cc = 2; * @return The cc. */ @java.lang.Override public long getCc() { return cc_; } public static final int DD_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList dd_ = emptyIntList(); /** * repeated int32 dd = 3 [packed = true]; * @return A list containing the dd. */ @java.lang.Override public java.util.List getDdList() { return dd_; } /** * repeated int32 dd = 3 [packed = true]; * @return The count of dd. */ public int getDdCount() { return dd_.size(); } /** * repeated int32 dd = 3 [packed = true]; * @param index The index of the element to return. * @return The dd at the given index. */ public int getDd(int index) { return dd_.getInt(index); } private int ddMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, bb_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, cc_); } if (getDdList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(ddMemoizedSerializedSize); } for (int i = 0; i < dd_.size(); i++) { output.writeInt32NoTag(dd_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, bb_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, cc_); } { int dataSize = 0; for (int i = 0; i < dd_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dd_.getInt(i)); } size += dataSize; if (!getDdList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } ddMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage other = (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) obj; if (hasBb() != other.hasBb()) return false; if (hasBb()) { if (getBb() != other.getBb()) return false; } if (hasCc() != other.hasCc()) return false; if (hasCc()) { if (getCc() != other.getCc()) return false; } if (!getDdList() .equals(other.getDdList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBb()) { hash = (37 * hash) + BB_FIELD_NUMBER; hash = (53 * hash) + getBb(); } if (hasCc()) { hash = (37 * hash) + CC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCc()); } if (getDdCount() > 0) { hash = (37 * hash) + DD_FIELD_NUMBER; hash = (53 * hash) + getDdList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestAllTypesLite.NestedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestAllTypesLite.NestedMessage) com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_NestedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_NestedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.class, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bb_ = 0; cc_ = 0L; dd_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_NestedMessage_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage build() { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage buildPartial() { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage result = new com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.bb_ = bb_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.cc_ = cc_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { dd_.makeImmutable(); result.dd_ = dd_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) { return mergeFrom((com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage other) { if (other == com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) return this; if (other.hasBb()) { setBb(other.getBb()); } if (other.hasCc()) { setCc(other.getCc()); } if (!other.dd_.isEmpty()) { if (dd_.isEmpty()) { dd_ = other.dd_; dd_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensureDdIsMutable(); dd_.addAll(other.dd_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { bb_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { cc_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { int v = input.readInt32(); ensureDdIsMutable(); dd_.addInt(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureDdIsMutable(); while (input.getBytesUntilLimit() > 0) { dd_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int bb_ ; /** * optional int32 bb = 1; * @return Whether the bb field is set. */ @java.lang.Override public boolean hasBb() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 bb = 1; * @return The bb. */ @java.lang.Override public int getBb() { return bb_; } /** * optional int32 bb = 1; * @param value The bb to set. * @return This builder for chaining. */ public Builder setBb(int value) { bb_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 bb = 1; * @return This builder for chaining. */ public Builder clearBb() { bitField0_ = (bitField0_ & ~0x00000001); bb_ = 0; onChanged(); return this; } private long cc_ ; /** * optional int64 cc = 2; * @return Whether the cc field is set. */ @java.lang.Override public boolean hasCc() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 cc = 2; * @return The cc. */ @java.lang.Override public long getCc() { return cc_; } /** * optional int64 cc = 2; * @param value The cc to set. * @return This builder for chaining. */ public Builder setCc(long value) { cc_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int64 cc = 2; * @return This builder for chaining. */ public Builder clearCc() { bitField0_ = (bitField0_ & ~0x00000002); cc_ = 0L; onChanged(); return this; } private com.google.protobuf.Internal.IntList dd_ = emptyIntList(); private void ensureDdIsMutable() { if (!dd_.isModifiable()) { dd_ = makeMutableCopy(dd_); } bitField0_ |= 0x00000004; } /** * repeated int32 dd = 3 [packed = true]; * @return A list containing the dd. */ public java.util.List getDdList() { dd_.makeImmutable(); return dd_; } /** * repeated int32 dd = 3 [packed = true]; * @return The count of dd. */ public int getDdCount() { return dd_.size(); } /** * repeated int32 dd = 3 [packed = true]; * @param index The index of the element to return. * @return The dd at the given index. */ public int getDd(int index) { return dd_.getInt(index); } /** * repeated int32 dd = 3 [packed = true]; * @param index The index to set the value at. * @param value The dd to set. * @return This builder for chaining. */ public Builder setDd( int index, int value) { ensureDdIsMutable(); dd_.setInt(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated int32 dd = 3 [packed = true]; * @param value The dd to add. * @return This builder for chaining. */ public Builder addDd(int value) { ensureDdIsMutable(); dd_.addInt(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated int32 dd = 3 [packed = true]; * @param values The dd to add. * @return This builder for chaining. */ public Builder addAllDd( java.lang.Iterable values) { ensureDdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dd_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated int32 dd = 3 [packed = true]; * @return This builder for chaining. */ public Builder clearDd() { dd_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestAllTypesLite.NestedMessage) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestAllTypesLite.NestedMessage) private static final com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage(); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NestedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NestedMessage2OrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestAllTypesLite.NestedMessage2) com.google.protobuf.MessageOrBuilder { /** * optional int32 dd = 1; * @return Whether the dd field is set. */ boolean hasDd(); /** * optional int32 dd = 1; * @return The dd. */ int getDd(); } /** * Protobuf type {@code proto2_unittest.TestAllTypesLite.NestedMessage2} */ public static final class NestedMessage2 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestAllTypesLite.NestedMessage2) NestedMessage2OrBuilder { private static final long serialVersionUID = 0L; // Use NestedMessage2.newBuilder() to construct. private NestedMessage2(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NestedMessage2() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NestedMessage2(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_NestedMessage2_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_NestedMessage2_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.class, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder.class); } private int bitField0_; public static final int DD_FIELD_NUMBER = 1; private int dd_ = 0; /** * optional int32 dd = 1; * @return Whether the dd field is set. */ @java.lang.Override public boolean hasDd() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 dd = 1; * @return The dd. */ @java.lang.Override public int getDd() { return dd_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, dd_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, dd_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 other = (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) obj; if (hasDd() != other.hasDd()) return false; if (hasDd()) { if (getDd() != other.getDd()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDd()) { hash = (37 * hash) + DD_FIELD_NUMBER; hash = (53 * hash) + getDd(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestAllTypesLite.NestedMessage2} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestAllTypesLite.NestedMessage2) com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_NestedMessage2_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_NestedMessage2_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.class, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; dd_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_NestedMessage2_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 build() { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 buildPartial() { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 result = new com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.dd_ = dd_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) { return mergeFrom((com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 other) { if (other == com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance()) return this; if (other.hasDd()) { setDd(other.getDd()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { dd_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int dd_ ; /** * optional int32 dd = 1; * @return Whether the dd field is set. */ @java.lang.Override public boolean hasDd() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 dd = 1; * @return The dd. */ @java.lang.Override public int getDd() { return dd_; } /** * optional int32 dd = 1; * @param value The dd to set. * @return This builder for chaining. */ public Builder setDd(int value) { dd_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 dd = 1; * @return This builder for chaining. */ public Builder clearDd() { bitField0_ = (bitField0_ & ~0x00000001); dd_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestAllTypesLite.NestedMessage2) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestAllTypesLite.NestedMessage2) private static final com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2(); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NestedMessage2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestAllTypesLite.OptionalGroup) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 17; * @return Whether the a field is set. */ boolean hasA(); /** * optional int32 a = 17; * @return The a. */ int getA(); } /** * Protobuf type {@code proto2_unittest.TestAllTypesLite.OptionalGroup} */ public static final class OptionalGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestAllTypesLite.OptionalGroup) OptionalGroupOrBuilder { private static final long serialVersionUID = 0L; // Use OptionalGroup.newBuilder() to construct. private OptionalGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionalGroup() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptionalGroup(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_OptionalGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_OptionalGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.class, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder.class); } private int bitField0_; public static final int A_FIELD_NUMBER = 17; private int a_ = 0; /** * optional int32 a = 17; * @return Whether the a field is set. */ @java.lang.Override public boolean hasA() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 a = 17; * @return The a. */ @java.lang.Override public int getA() { return a_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(17, a_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, a_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup other = (com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup) obj; if (hasA() != other.hasA()) return false; if (hasA()) { if (getA() != other.getA()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasA()) { hash = (37 * hash) + A_FIELD_NUMBER; hash = (53 * hash) + getA(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestAllTypesLite.OptionalGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestAllTypesLite.OptionalGroup) com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_OptionalGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_OptionalGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.class, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; a_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_OptionalGroup_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup build() { com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup buildPartial() { com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup result = new com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.a_ = a_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup) { return mergeFrom((com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup other) { if (other == com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 136: { a_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 136 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 17; * @return Whether the a field is set. */ @java.lang.Override public boolean hasA() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 a = 17; * @return The a. */ @java.lang.Override public int getA() { return a_; } /** * optional int32 a = 17; * @param value The a to set. * @return This builder for chaining. */ public Builder setA(int value) { a_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 a = 17; * @return This builder for chaining. */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestAllTypesLite.OptionalGroup) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestAllTypesLite.OptionalGroup) private static final com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup(); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionalGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RepeatedGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestAllTypesLite.RepeatedGroup) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 47; * @return Whether the a field is set. */ boolean hasA(); /** * optional int32 a = 47; * @return The a. */ int getA(); } /** * Protobuf type {@code proto2_unittest.TestAllTypesLite.RepeatedGroup} */ public static final class RepeatedGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestAllTypesLite.RepeatedGroup) RepeatedGroupOrBuilder { private static final long serialVersionUID = 0L; // Use RepeatedGroup.newBuilder() to construct. private RepeatedGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RepeatedGroup() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RepeatedGroup(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_RepeatedGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_RepeatedGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.class, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder.class); } private int bitField0_; public static final int A_FIELD_NUMBER = 47; private int a_ = 0; /** * optional int32 a = 47; * @return Whether the a field is set. */ @java.lang.Override public boolean hasA() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 a = 47; * @return The a. */ @java.lang.Override public int getA() { return a_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(47, a_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(47, a_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup other = (com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup) obj; if (hasA() != other.hasA()) return false; if (hasA()) { if (getA() != other.getA()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasA()) { hash = (37 * hash) + A_FIELD_NUMBER; hash = (53 * hash) + getA(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestAllTypesLite.RepeatedGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestAllTypesLite.RepeatedGroup) com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_RepeatedGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_RepeatedGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.class, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; a_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_RepeatedGroup_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup build() { com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup buildPartial() { com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup result = new com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.a_ = a_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup) { return mergeFrom((com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup other) { if (other == com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 376: { a_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 376 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 47; * @return Whether the a field is set. */ @java.lang.Override public boolean hasA() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 a = 47; * @return The a. */ @java.lang.Override public int getA() { return a_; } /** * optional int32 a = 47; * @param value The a to set. * @return This builder for chaining. */ public Builder setA(int value) { a_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 a = 47; * @return This builder for chaining. */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestAllTypesLite.RepeatedGroup) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestAllTypesLite.RepeatedGroup) private static final com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup(); } public static com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RepeatedGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int bitField1_; private int oneofFieldCase_ = 0; @SuppressWarnings("serial") private java.lang.Object oneofField_; public enum OneofFieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ONEOF_UINT32(111), ONEOF_NESTED_MESSAGE(112), ONEOF_STRING(113), ONEOF_BYTES(114), ONEOF_LAZY_NESTED_MESSAGE(115), ONEOF_NESTED_MESSAGE2(117), ONEOFFIELD_NOT_SET(0); private final int value; private OneofFieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static OneofFieldCase valueOf(int value) { return forNumber(value); } public static OneofFieldCase forNumber(int value) { switch (value) { case 111: return ONEOF_UINT32; case 112: return ONEOF_NESTED_MESSAGE; case 113: return ONEOF_STRING; case 114: return ONEOF_BYTES; case 115: return ONEOF_LAZY_NESTED_MESSAGE; case 117: return ONEOF_NESTED_MESSAGE2; case 0: return ONEOFFIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public OneofFieldCase getOneofFieldCase() { return OneofFieldCase.forNumber( oneofFieldCase_); } public static final int OPTIONAL_INT32_FIELD_NUMBER = 1; private int optionalInt32_ = 0; /** *
     * Singular
     * 
* * optional int32 optional_int32 = 1; * @return Whether the optionalInt32 field is set. */ @java.lang.Override public boolean hasOptionalInt32() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Singular
     * 
* * optional int32 optional_int32 = 1; * @return The optionalInt32. */ @java.lang.Override public int getOptionalInt32() { return optionalInt32_; } public static final int OPTIONAL_INT64_FIELD_NUMBER = 2; private long optionalInt64_ = 0L; /** * optional int64 optional_int64 = 2; * @return Whether the optionalInt64 field is set. */ @java.lang.Override public boolean hasOptionalInt64() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 optional_int64 = 2; * @return The optionalInt64. */ @java.lang.Override public long getOptionalInt64() { return optionalInt64_; } public static final int OPTIONAL_UINT32_FIELD_NUMBER = 3; private int optionalUint32_ = 0; /** * optional uint32 optional_uint32 = 3; * @return Whether the optionalUint32 field is set. */ @java.lang.Override public boolean hasOptionalUint32() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 optional_uint32 = 3; * @return The optionalUint32. */ @java.lang.Override public int getOptionalUint32() { return optionalUint32_; } public static final int OPTIONAL_UINT64_FIELD_NUMBER = 4; private long optionalUint64_ = 0L; /** * optional uint64 optional_uint64 = 4; * @return Whether the optionalUint64 field is set. */ @java.lang.Override public boolean hasOptionalUint64() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint64 optional_uint64 = 4; * @return The optionalUint64. */ @java.lang.Override public long getOptionalUint64() { return optionalUint64_; } public static final int OPTIONAL_SINT32_FIELD_NUMBER = 5; private int optionalSint32_ = 0; /** * optional sint32 optional_sint32 = 5; * @return Whether the optionalSint32 field is set. */ @java.lang.Override public boolean hasOptionalSint32() { return ((bitField0_ & 0x00000010) != 0); } /** * optional sint32 optional_sint32 = 5; * @return The optionalSint32. */ @java.lang.Override public int getOptionalSint32() { return optionalSint32_; } public static final int OPTIONAL_SINT64_FIELD_NUMBER = 6; private long optionalSint64_ = 0L; /** * optional sint64 optional_sint64 = 6; * @return Whether the optionalSint64 field is set. */ @java.lang.Override public boolean hasOptionalSint64() { return ((bitField0_ & 0x00000020) != 0); } /** * optional sint64 optional_sint64 = 6; * @return The optionalSint64. */ @java.lang.Override public long getOptionalSint64() { return optionalSint64_; } public static final int OPTIONAL_FIXED32_FIELD_NUMBER = 7; private int optionalFixed32_ = 0; /** * optional fixed32 optional_fixed32 = 7; * @return Whether the optionalFixed32 field is set. */ @java.lang.Override public boolean hasOptionalFixed32() { return ((bitField0_ & 0x00000040) != 0); } /** * optional fixed32 optional_fixed32 = 7; * @return The optionalFixed32. */ @java.lang.Override public int getOptionalFixed32() { return optionalFixed32_; } public static final int OPTIONAL_FIXED64_FIELD_NUMBER = 8; private long optionalFixed64_ = 0L; /** * optional fixed64 optional_fixed64 = 8; * @return Whether the optionalFixed64 field is set. */ @java.lang.Override public boolean hasOptionalFixed64() { return ((bitField0_ & 0x00000080) != 0); } /** * optional fixed64 optional_fixed64 = 8; * @return The optionalFixed64. */ @java.lang.Override public long getOptionalFixed64() { return optionalFixed64_; } public static final int OPTIONAL_SFIXED32_FIELD_NUMBER = 9; private int optionalSfixed32_ = 0; /** * optional sfixed32 optional_sfixed32 = 9; * @return Whether the optionalSfixed32 field is set. */ @java.lang.Override public boolean hasOptionalSfixed32() { return ((bitField0_ & 0x00000100) != 0); } /** * optional sfixed32 optional_sfixed32 = 9; * @return The optionalSfixed32. */ @java.lang.Override public int getOptionalSfixed32() { return optionalSfixed32_; } public static final int OPTIONAL_SFIXED64_FIELD_NUMBER = 10; private long optionalSfixed64_ = 0L; /** * optional sfixed64 optional_sfixed64 = 10; * @return Whether the optionalSfixed64 field is set. */ @java.lang.Override public boolean hasOptionalSfixed64() { return ((bitField0_ & 0x00000200) != 0); } /** * optional sfixed64 optional_sfixed64 = 10; * @return The optionalSfixed64. */ @java.lang.Override public long getOptionalSfixed64() { return optionalSfixed64_; } public static final int OPTIONAL_FLOAT_FIELD_NUMBER = 11; private float optionalFloat_ = 0F; /** * optional float optional_float = 11; * @return Whether the optionalFloat field is set. */ @java.lang.Override public boolean hasOptionalFloat() { return ((bitField0_ & 0x00000400) != 0); } /** * optional float optional_float = 11; * @return The optionalFloat. */ @java.lang.Override public float getOptionalFloat() { return optionalFloat_; } public static final int OPTIONAL_DOUBLE_FIELD_NUMBER = 12; private double optionalDouble_ = 0D; /** * optional double optional_double = 12; * @return Whether the optionalDouble field is set. */ @java.lang.Override public boolean hasOptionalDouble() { return ((bitField0_ & 0x00000800) != 0); } /** * optional double optional_double = 12; * @return The optionalDouble. */ @java.lang.Override public double getOptionalDouble() { return optionalDouble_; } public static final int OPTIONAL_BOOL_FIELD_NUMBER = 13; private boolean optionalBool_ = false; /** * optional bool optional_bool = 13; * @return Whether the optionalBool field is set. */ @java.lang.Override public boolean hasOptionalBool() { return ((bitField0_ & 0x00001000) != 0); } /** * optional bool optional_bool = 13; * @return The optionalBool. */ @java.lang.Override public boolean getOptionalBool() { return optionalBool_; } public static final int OPTIONAL_STRING_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object optionalString_ = ""; /** * optional string optional_string = 14; * @return Whether the optionalString field is set. */ @java.lang.Override public boolean hasOptionalString() { return ((bitField0_ & 0x00002000) != 0); } /** * optional string optional_string = 14; * @return The optionalString. */ @java.lang.Override public java.lang.String getOptionalString() { java.lang.Object ref = optionalString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalString_ = s; } return s; } } /** * optional string optional_string = 14; * @return The bytes for optionalString. */ @java.lang.Override public com.google.protobuf.ByteString getOptionalStringBytes() { java.lang.Object ref = optionalString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONAL_BYTES_FIELD_NUMBER = 15; private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes optional_bytes = 15; * @return Whether the optionalBytes field is set. */ @java.lang.Override public boolean hasOptionalBytes() { return ((bitField0_ & 0x00004000) != 0); } /** * optional bytes optional_bytes = 15; * @return The optionalBytes. */ @java.lang.Override public com.google.protobuf.ByteString getOptionalBytes() { return optionalBytes_; } public static final int OPTIONALGROUP_FIELD_NUMBER = 16; private com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup optionalGroup_; /** * optional group OptionalGroup = 16 { ... } * @return Whether the optionalgroup field is set. */ @java.lang.Override public boolean hasOptionalGroup() { return ((bitField0_ & 0x00008000) != 0); } /** * optional group OptionalGroup = 16 { ... } * @return The optionalgroup. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup getOptionalGroup() { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } /** * optional group OptionalGroup = 16 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder getOptionalGroupOrBuilder() { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } public static final int OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER = 18; private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalNestedMessage_; /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; * @return Whether the optionalNestedMessage field is set. */ @java.lang.Override public boolean hasOptionalNestedMessage() { return ((bitField0_ & 0x00010000) != 0); } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; * @return The optionalNestedMessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalNestedMessage() { return optionalNestedMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalNestedMessage_; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() { return optionalNestedMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalNestedMessage_; } public static final int OPTIONAL_FOREIGN_MESSAGE_FIELD_NUMBER = 19; private com.google.protobuf.UnittestLite.ForeignMessageLite optionalForeignMessage_; /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; * @return Whether the optionalForeignMessage field is set. */ @java.lang.Override public boolean hasOptionalForeignMessage() { return ((bitField0_ & 0x00020000) != 0); } /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; * @return The optionalForeignMessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLite getOptionalForeignMessage() { return optionalForeignMessage_ == null ? com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance() : optionalForeignMessage_; } /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getOptionalForeignMessageOrBuilder() { return optionalForeignMessage_ == null ? com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance() : optionalForeignMessage_; } public static final int OPTIONAL_IMPORT_MESSAGE_FIELD_NUMBER = 20; private com.google.protobuf.UnittestImportLite.ImportMessageLite optionalImportMessage_; /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; * @return Whether the optionalImportMessage field is set. */ @java.lang.Override public boolean hasOptionalImportMessage() { return ((bitField0_ & 0x00040000) != 0); } /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; * @return The optionalImportMessage. */ @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportMessageLite getOptionalImportMessage() { return optionalImportMessage_ == null ? com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance() : optionalImportMessage_; } /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; */ @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder getOptionalImportMessageOrBuilder() { return optionalImportMessage_ == null ? com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance() : optionalImportMessage_; } public static final int OPTIONAL_NESTED_ENUM_FIELD_NUMBER = 21; private int optionalNestedEnum_ = 1; /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21; * @return Whether the optionalNestedEnum field is set. */ @java.lang.Override public boolean hasOptionalNestedEnum() { return ((bitField0_ & 0x00080000) != 0); } /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21; * @return The optionalNestedEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getOptionalNestedEnum() { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum result = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(optionalNestedEnum_); return result == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.FOO : result; } public static final int OPTIONAL_FOREIGN_ENUM_FIELD_NUMBER = 22; private int optionalForeignEnum_ = 4; /** * optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22; * @return Whether the optionalForeignEnum field is set. */ @java.lang.Override public boolean hasOptionalForeignEnum() { return ((bitField0_ & 0x00100000) != 0); } /** * optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22; * @return The optionalForeignEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignEnumLite getOptionalForeignEnum() { com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(optionalForeignEnum_); return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO : result; } public static final int OPTIONAL_IMPORT_ENUM_FIELD_NUMBER = 23; private int optionalImportEnum_ = 7; /** * optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23; * @return Whether the optionalImportEnum field is set. */ @java.lang.Override public boolean hasOptionalImportEnum() { return ((bitField0_ & 0x00200000) != 0); } /** * optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23; * @return The optionalImportEnum. */ @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportEnumLite getOptionalImportEnum() { com.google.protobuf.UnittestImportLite.ImportEnumLite result = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(optionalImportEnum_); return result == null ? com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_FOO : result; } public static final int OPTIONAL_STRING_PIECE_FIELD_NUMBER = 24; @SuppressWarnings("serial") private volatile java.lang.Object optionalStringPiece_ = ""; /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @return Whether the optionalStringPiece field is set. */ @java.lang.Override public boolean hasOptionalStringPiece() { return ((bitField0_ & 0x00400000) != 0); } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @return The optionalStringPiece. */ @java.lang.Override public java.lang.String getOptionalStringPiece() { java.lang.Object ref = optionalStringPiece_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalStringPiece_ = s; } return s; } } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @return The bytes for optionalStringPiece. */ @java.lang.Override public com.google.protobuf.ByteString getOptionalStringPieceBytes() { java.lang.Object ref = optionalStringPiece_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalStringPiece_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONAL_CORD_FIELD_NUMBER = 25; @SuppressWarnings("serial") private volatile java.lang.Object optionalCord_ = ""; /** * optional string optional_cord = 25 [ctype = CORD]; * @return Whether the optionalCord field is set. */ @java.lang.Override public boolean hasOptionalCord() { return ((bitField0_ & 0x00800000) != 0); } /** * optional string optional_cord = 25 [ctype = CORD]; * @return The optionalCord. */ @java.lang.Override public java.lang.String getOptionalCord() { java.lang.Object ref = optionalCord_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalCord_ = s; } return s; } } /** * optional string optional_cord = 25 [ctype = CORD]; * @return The bytes for optionalCord. */ @java.lang.Override public com.google.protobuf.ByteString getOptionalCordBytes() { java.lang.Object ref = optionalCord_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalCord_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONAL_PUBLIC_IMPORT_MESSAGE_FIELD_NUMBER = 26; private com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite optionalPublicImportMessage_; /** *
     * Defined in unittest_import_public.proto
     * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; * @return Whether the optionalPublicImportMessage field is set. */ @java.lang.Override public boolean hasOptionalPublicImportMessage() { return ((bitField0_ & 0x01000000) != 0); } /** *
     * Defined in unittest_import_public.proto
     * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; * @return The optionalPublicImportMessage. */ @java.lang.Override public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getOptionalPublicImportMessage() { return optionalPublicImportMessage_ == null ? com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance() : optionalPublicImportMessage_; } /** *
     * Defined in unittest_import_public.proto
     * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; */ @java.lang.Override public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder getOptionalPublicImportMessageOrBuilder() { return optionalPublicImportMessage_ == null ? com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance() : optionalPublicImportMessage_; } public static final int OPTIONAL_LAZY_MESSAGE_FIELD_NUMBER = 27; private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalLazyMessage_; /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; * @return Whether the optionalLazyMessage field is set. */ @java.lang.Override public boolean hasOptionalLazyMessage() { return ((bitField0_ & 0x02000000) != 0); } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; * @return The optionalLazyMessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalLazyMessage() { return optionalLazyMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalLazyMessage_; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() { return optionalLazyMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalLazyMessage_; } public static final int OPTIONAL_UNVERIFIED_LAZY_MESSAGE_FIELD_NUMBER = 28; private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalUnverifiedLazyMessage_; /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; * @return Whether the optionalUnverifiedLazyMessage field is set. */ @java.lang.Override public boolean hasOptionalUnverifiedLazyMessage() { return ((bitField0_ & 0x04000000) != 0); } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; * @return The optionalUnverifiedLazyMessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalUnverifiedLazyMessage() { return optionalUnverifiedLazyMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalUnverifiedLazyMessage_; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalUnverifiedLazyMessageOrBuilder() { return optionalUnverifiedLazyMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalUnverifiedLazyMessage_; } public static final int REPEATED_INT32_FIELD_NUMBER = 31; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList repeatedInt32_ = emptyIntList(); /** *
     * Repeated
     * 
* * repeated int32 repeated_int32 = 31; * @return A list containing the repeatedInt32. */ @java.lang.Override public java.util.List getRepeatedInt32List() { return repeatedInt32_; } /** *
     * Repeated
     * 
* * repeated int32 repeated_int32 = 31; * @return The count of repeatedInt32. */ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** *
     * Repeated
     * 
* * repeated int32 repeated_int32 = 31; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ public int getRepeatedInt32(int index) { return repeatedInt32_.getInt(index); } public static final int REPEATED_INT64_FIELD_NUMBER = 32; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList repeatedInt64_ = emptyLongList(); /** * repeated int64 repeated_int64 = 32; * @return A list containing the repeatedInt64. */ @java.lang.Override public java.util.List getRepeatedInt64List() { return repeatedInt64_; } /** * repeated int64 repeated_int64 = 32; * @return The count of repeatedInt64. */ public int getRepeatedInt64Count() { return repeatedInt64_.size(); } /** * repeated int64 repeated_int64 = 32; * @param index The index of the element to return. * @return The repeatedInt64 at the given index. */ public long getRepeatedInt64(int index) { return repeatedInt64_.getLong(index); } public static final int REPEATED_UINT32_FIELD_NUMBER = 33; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList repeatedUint32_ = emptyIntList(); /** * repeated uint32 repeated_uint32 = 33; * @return A list containing the repeatedUint32. */ @java.lang.Override public java.util.List getRepeatedUint32List() { return repeatedUint32_; } /** * repeated uint32 repeated_uint32 = 33; * @return The count of repeatedUint32. */ public int getRepeatedUint32Count() { return repeatedUint32_.size(); } /** * repeated uint32 repeated_uint32 = 33; * @param index The index of the element to return. * @return The repeatedUint32 at the given index. */ public int getRepeatedUint32(int index) { return repeatedUint32_.getInt(index); } public static final int REPEATED_UINT64_FIELD_NUMBER = 34; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList repeatedUint64_ = emptyLongList(); /** * repeated uint64 repeated_uint64 = 34; * @return A list containing the repeatedUint64. */ @java.lang.Override public java.util.List getRepeatedUint64List() { return repeatedUint64_; } /** * repeated uint64 repeated_uint64 = 34; * @return The count of repeatedUint64. */ public int getRepeatedUint64Count() { return repeatedUint64_.size(); } /** * repeated uint64 repeated_uint64 = 34; * @param index The index of the element to return. * @return The repeatedUint64 at the given index. */ public long getRepeatedUint64(int index) { return repeatedUint64_.getLong(index); } public static final int REPEATED_SINT32_FIELD_NUMBER = 35; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList repeatedSint32_ = emptyIntList(); /** * repeated sint32 repeated_sint32 = 35; * @return A list containing the repeatedSint32. */ @java.lang.Override public java.util.List getRepeatedSint32List() { return repeatedSint32_; } /** * repeated sint32 repeated_sint32 = 35; * @return The count of repeatedSint32. */ public int getRepeatedSint32Count() { return repeatedSint32_.size(); } /** * repeated sint32 repeated_sint32 = 35; * @param index The index of the element to return. * @return The repeatedSint32 at the given index. */ public int getRepeatedSint32(int index) { return repeatedSint32_.getInt(index); } public static final int REPEATED_SINT64_FIELD_NUMBER = 36; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList repeatedSint64_ = emptyLongList(); /** * repeated sint64 repeated_sint64 = 36; * @return A list containing the repeatedSint64. */ @java.lang.Override public java.util.List getRepeatedSint64List() { return repeatedSint64_; } /** * repeated sint64 repeated_sint64 = 36; * @return The count of repeatedSint64. */ public int getRepeatedSint64Count() { return repeatedSint64_.size(); } /** * repeated sint64 repeated_sint64 = 36; * @param index The index of the element to return. * @return The repeatedSint64 at the given index. */ public long getRepeatedSint64(int index) { return repeatedSint64_.getLong(index); } public static final int REPEATED_FIXED32_FIELD_NUMBER = 37; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList repeatedFixed32_ = emptyIntList(); /** * repeated fixed32 repeated_fixed32 = 37; * @return A list containing the repeatedFixed32. */ @java.lang.Override public java.util.List getRepeatedFixed32List() { return repeatedFixed32_; } /** * repeated fixed32 repeated_fixed32 = 37; * @return The count of repeatedFixed32. */ public int getRepeatedFixed32Count() { return repeatedFixed32_.size(); } /** * repeated fixed32 repeated_fixed32 = 37; * @param index The index of the element to return. * @return The repeatedFixed32 at the given index. */ public int getRepeatedFixed32(int index) { return repeatedFixed32_.getInt(index); } public static final int REPEATED_FIXED64_FIELD_NUMBER = 38; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList repeatedFixed64_ = emptyLongList(); /** * repeated fixed64 repeated_fixed64 = 38; * @return A list containing the repeatedFixed64. */ @java.lang.Override public java.util.List getRepeatedFixed64List() { return repeatedFixed64_; } /** * repeated fixed64 repeated_fixed64 = 38; * @return The count of repeatedFixed64. */ public int getRepeatedFixed64Count() { return repeatedFixed64_.size(); } /** * repeated fixed64 repeated_fixed64 = 38; * @param index The index of the element to return. * @return The repeatedFixed64 at the given index. */ public long getRepeatedFixed64(int index) { return repeatedFixed64_.getLong(index); } public static final int REPEATED_SFIXED32_FIELD_NUMBER = 39; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList repeatedSfixed32_ = emptyIntList(); /** * repeated sfixed32 repeated_sfixed32 = 39; * @return A list containing the repeatedSfixed32. */ @java.lang.Override public java.util.List getRepeatedSfixed32List() { return repeatedSfixed32_; } /** * repeated sfixed32 repeated_sfixed32 = 39; * @return The count of repeatedSfixed32. */ public int getRepeatedSfixed32Count() { return repeatedSfixed32_.size(); } /** * repeated sfixed32 repeated_sfixed32 = 39; * @param index The index of the element to return. * @return The repeatedSfixed32 at the given index. */ public int getRepeatedSfixed32(int index) { return repeatedSfixed32_.getInt(index); } public static final int REPEATED_SFIXED64_FIELD_NUMBER = 40; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList repeatedSfixed64_ = emptyLongList(); /** * repeated sfixed64 repeated_sfixed64 = 40; * @return A list containing the repeatedSfixed64. */ @java.lang.Override public java.util.List getRepeatedSfixed64List() { return repeatedSfixed64_; } /** * repeated sfixed64 repeated_sfixed64 = 40; * @return The count of repeatedSfixed64. */ public int getRepeatedSfixed64Count() { return repeatedSfixed64_.size(); } /** * repeated sfixed64 repeated_sfixed64 = 40; * @param index The index of the element to return. * @return The repeatedSfixed64 at the given index. */ public long getRepeatedSfixed64(int index) { return repeatedSfixed64_.getLong(index); } public static final int REPEATED_FLOAT_FIELD_NUMBER = 41; @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList repeatedFloat_ = emptyFloatList(); /** * repeated float repeated_float = 41; * @return A list containing the repeatedFloat. */ @java.lang.Override public java.util.List getRepeatedFloatList() { return repeatedFloat_; } /** * repeated float repeated_float = 41; * @return The count of repeatedFloat. */ public int getRepeatedFloatCount() { return repeatedFloat_.size(); } /** * repeated float repeated_float = 41; * @param index The index of the element to return. * @return The repeatedFloat at the given index. */ public float getRepeatedFloat(int index) { return repeatedFloat_.getFloat(index); } public static final int REPEATED_DOUBLE_FIELD_NUMBER = 42; @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList repeatedDouble_ = emptyDoubleList(); /** * repeated double repeated_double = 42; * @return A list containing the repeatedDouble. */ @java.lang.Override public java.util.List getRepeatedDoubleList() { return repeatedDouble_; } /** * repeated double repeated_double = 42; * @return The count of repeatedDouble. */ public int getRepeatedDoubleCount() { return repeatedDouble_.size(); } /** * repeated double repeated_double = 42; * @param index The index of the element to return. * @return The repeatedDouble at the given index. */ public double getRepeatedDouble(int index) { return repeatedDouble_.getDouble(index); } public static final int REPEATED_BOOL_FIELD_NUMBER = 43; @SuppressWarnings("serial") private com.google.protobuf.Internal.BooleanList repeatedBool_ = emptyBooleanList(); /** * repeated bool repeated_bool = 43; * @return A list containing the repeatedBool. */ @java.lang.Override public java.util.List getRepeatedBoolList() { return repeatedBool_; } /** * repeated bool repeated_bool = 43; * @return The count of repeatedBool. */ public int getRepeatedBoolCount() { return repeatedBool_.size(); } /** * repeated bool repeated_bool = 43; * @param index The index of the element to return. * @return The repeatedBool at the given index. */ public boolean getRepeatedBool(int index) { return repeatedBool_.getBoolean(index); } public static final int REPEATED_STRING_FIELD_NUMBER = 44; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList repeatedString_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string repeated_string = 44; * @return A list containing the repeatedString. */ public com.google.protobuf.ProtocolStringList getRepeatedStringList() { return repeatedString_; } /** * repeated string repeated_string = 44; * @return The count of repeatedString. */ public int getRepeatedStringCount() { return repeatedString_.size(); } /** * repeated string repeated_string = 44; * @param index The index of the element to return. * @return The repeatedString at the given index. */ public java.lang.String getRepeatedString(int index) { return repeatedString_.get(index); } /** * repeated string repeated_string = 44; * @param index The index of the value to return. * @return The bytes of the repeatedString at the given index. */ public com.google.protobuf.ByteString getRepeatedStringBytes(int index) { return repeatedString_.getByteString(index); } public static final int REPEATED_BYTES_FIELD_NUMBER = 45; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class); /** * repeated bytes repeated_bytes = 45; * @return A list containing the repeatedBytes. */ @java.lang.Override public java.util.List getRepeatedBytesList() { return repeatedBytes_; } /** * repeated bytes repeated_bytes = 45; * @return The count of repeatedBytes. */ public int getRepeatedBytesCount() { return repeatedBytes_.size(); } /** * repeated bytes repeated_bytes = 45; * @param index The index of the element to return. * @return The repeatedBytes at the given index. */ public com.google.protobuf.ByteString getRepeatedBytes(int index) { return repeatedBytes_.get(index); } public static final int REPEATEDGROUP_FIELD_NUMBER = 46; @SuppressWarnings("serial") private java.util.List repeatedGroup_; /** * repeated group RepeatedGroup = 46 { ... } */ @java.lang.Override public java.util.List getRepeatedGroupList() { return repeatedGroup_; } /** * repeated group RepeatedGroup = 46 { ... } */ @java.lang.Override public java.util.List getRepeatedGroupOrBuilderList() { return repeatedGroup_; } /** * repeated group RepeatedGroup = 46 { ... } */ @java.lang.Override public int getRepeatedGroupCount() { return repeatedGroup_.size(); } /** * repeated group RepeatedGroup = 46 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup getRepeatedGroup(int index) { return repeatedGroup_.get(index); } /** * repeated group RepeatedGroup = 46 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index) { return repeatedGroup_.get(index); } public static final int REPEATED_NESTED_MESSAGE_FIELD_NUMBER = 48; @SuppressWarnings("serial") private java.util.List repeatedNestedMessage_; /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ @java.lang.Override public java.util.List getRepeatedNestedMessageList() { return repeatedNestedMessage_; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ @java.lang.Override public java.util.List getRepeatedNestedMessageOrBuilderList() { return repeatedNestedMessage_; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ @java.lang.Override public int getRepeatedNestedMessageCount() { return repeatedNestedMessage_.size(); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedNestedMessage(int index) { return repeatedNestedMessage_.get(index); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder( int index) { return repeatedNestedMessage_.get(index); } public static final int REPEATED_FOREIGN_MESSAGE_FIELD_NUMBER = 49; @SuppressWarnings("serial") private java.util.List repeatedForeignMessage_; /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ @java.lang.Override public java.util.List getRepeatedForeignMessageList() { return repeatedForeignMessage_; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ @java.lang.Override public java.util.List getRepeatedForeignMessageOrBuilderList() { return repeatedForeignMessage_; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ @java.lang.Override public int getRepeatedForeignMessageCount() { return repeatedForeignMessage_.size(); } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLite getRepeatedForeignMessage(int index) { return repeatedForeignMessage_.get(index); } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getRepeatedForeignMessageOrBuilder( int index) { return repeatedForeignMessage_.get(index); } public static final int REPEATED_IMPORT_MESSAGE_FIELD_NUMBER = 50; @SuppressWarnings("serial") private java.util.List repeatedImportMessage_; /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ @java.lang.Override public java.util.List getRepeatedImportMessageList() { return repeatedImportMessage_; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ @java.lang.Override public java.util.List getRepeatedImportMessageOrBuilderList() { return repeatedImportMessage_; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ @java.lang.Override public int getRepeatedImportMessageCount() { return repeatedImportMessage_.size(); } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportMessageLite getRepeatedImportMessage(int index) { return repeatedImportMessage_.get(index); } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder getRepeatedImportMessageOrBuilder( int index) { return repeatedImportMessage_.get(index); } public static final int REPEATED_NESTED_ENUM_FIELD_NUMBER = 51; @SuppressWarnings("serial") private java.util.List repeatedNestedEnum_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum> repeatedNestedEnum_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum>() { public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum convert(java.lang.Integer from) { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum result = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(from); return result == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.FOO : result; } }; /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @return A list containing the repeatedNestedEnum. */ @java.lang.Override public java.util.List getRepeatedNestedEnumList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum>(repeatedNestedEnum_, repeatedNestedEnum_converter_); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @return The count of repeatedNestedEnum. */ @java.lang.Override public int getRepeatedNestedEnumCount() { return repeatedNestedEnum_.size(); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @param index The index of the element to return. * @return The repeatedNestedEnum at the given index. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getRepeatedNestedEnum(int index) { return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index)); } public static final int REPEATED_FOREIGN_ENUM_FIELD_NUMBER = 52; @SuppressWarnings("serial") private java.util.List repeatedForeignEnum_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite> repeatedForeignEnum_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite>() { public com.google.protobuf.UnittestLite.ForeignEnumLite convert(java.lang.Integer from) { com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(from); return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO : result; } }; /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @return A list containing the repeatedForeignEnum. */ @java.lang.Override public java.util.List getRepeatedForeignEnumList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite>(repeatedForeignEnum_, repeatedForeignEnum_converter_); } /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @return The count of repeatedForeignEnum. */ @java.lang.Override public int getRepeatedForeignEnumCount() { return repeatedForeignEnum_.size(); } /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @param index The index of the element to return. * @return The repeatedForeignEnum at the given index. */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignEnumLite getRepeatedForeignEnum(int index) { return repeatedForeignEnum_converter_.convert(repeatedForeignEnum_.get(index)); } public static final int REPEATED_IMPORT_ENUM_FIELD_NUMBER = 53; @SuppressWarnings("serial") private java.util.List repeatedImportEnum_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.protobuf.UnittestImportLite.ImportEnumLite> repeatedImportEnum_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.protobuf.UnittestImportLite.ImportEnumLite>() { public com.google.protobuf.UnittestImportLite.ImportEnumLite convert(java.lang.Integer from) { com.google.protobuf.UnittestImportLite.ImportEnumLite result = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(from); return result == null ? com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_FOO : result; } }; /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @return A list containing the repeatedImportEnum. */ @java.lang.Override public java.util.List getRepeatedImportEnumList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.protobuf.UnittestImportLite.ImportEnumLite>(repeatedImportEnum_, repeatedImportEnum_converter_); } /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @return The count of repeatedImportEnum. */ @java.lang.Override public int getRepeatedImportEnumCount() { return repeatedImportEnum_.size(); } /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @param index The index of the element to return. * @return The repeatedImportEnum at the given index. */ @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportEnumLite getRepeatedImportEnum(int index) { return repeatedImportEnum_converter_.convert(repeatedImportEnum_.get(index)); } public static final int REPEATED_STRING_PIECE_FIELD_NUMBER = 54; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @return A list containing the repeatedStringPiece. */ public com.google.protobuf.ProtocolStringList getRepeatedStringPieceList() { return repeatedStringPiece_; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @return The count of repeatedStringPiece. */ public int getRepeatedStringPieceCount() { return repeatedStringPiece_.size(); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @param index The index of the element to return. * @return The repeatedStringPiece at the given index. */ public java.lang.String getRepeatedStringPiece(int index) { return repeatedStringPiece_.get(index); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @param index The index of the value to return. * @return The bytes of the repeatedStringPiece at the given index. */ public com.google.protobuf.ByteString getRepeatedStringPieceBytes(int index) { return repeatedStringPiece_.getByteString(index); } public static final int REPEATED_CORD_FIELD_NUMBER = 55; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList repeatedCord_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string repeated_cord = 55 [ctype = CORD]; * @return A list containing the repeatedCord. */ public com.google.protobuf.ProtocolStringList getRepeatedCordList() { return repeatedCord_; } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @return The count of repeatedCord. */ public int getRepeatedCordCount() { return repeatedCord_.size(); } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @param index The index of the element to return. * @return The repeatedCord at the given index. */ public java.lang.String getRepeatedCord(int index) { return repeatedCord_.get(index); } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @param index The index of the value to return. * @return The bytes of the repeatedCord at the given index. */ public com.google.protobuf.ByteString getRepeatedCordBytes(int index) { return repeatedCord_.getByteString(index); } public static final int REPEATED_LAZY_MESSAGE_FIELD_NUMBER = 57; @SuppressWarnings("serial") private java.util.List repeatedLazyMessage_; /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ @java.lang.Override public java.util.List getRepeatedLazyMessageList() { return repeatedLazyMessage_; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ @java.lang.Override public java.util.List getRepeatedLazyMessageOrBuilderList() { return repeatedLazyMessage_; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ @java.lang.Override public int getRepeatedLazyMessageCount() { return repeatedLazyMessage_.size(); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedLazyMessage(int index) { return repeatedLazyMessage_.get(index); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder( int index) { return repeatedLazyMessage_.get(index); } public static final int DEFAULT_INT32_FIELD_NUMBER = 61; private int defaultInt32_ = 41; /** *
     * Singular with defaults
     * 
* * optional int32 default_int32 = 61 [default = 41]; * @return Whether the defaultInt32 field is set. */ @java.lang.Override public boolean hasDefaultInt32() { return ((bitField0_ & 0x08000000) != 0); } /** *
     * Singular with defaults
     * 
* * optional int32 default_int32 = 61 [default = 41]; * @return The defaultInt32. */ @java.lang.Override public int getDefaultInt32() { return defaultInt32_; } public static final int DEFAULT_INT64_FIELD_NUMBER = 62; private long defaultInt64_ = 42L; /** * optional int64 default_int64 = 62 [default = 42]; * @return Whether the defaultInt64 field is set. */ @java.lang.Override public boolean hasDefaultInt64() { return ((bitField0_ & 0x10000000) != 0); } /** * optional int64 default_int64 = 62 [default = 42]; * @return The defaultInt64. */ @java.lang.Override public long getDefaultInt64() { return defaultInt64_; } public static final int DEFAULT_UINT32_FIELD_NUMBER = 63; private int defaultUint32_ = 43; /** * optional uint32 default_uint32 = 63 [default = 43]; * @return Whether the defaultUint32 field is set. */ @java.lang.Override public boolean hasDefaultUint32() { return ((bitField0_ & 0x20000000) != 0); } /** * optional uint32 default_uint32 = 63 [default = 43]; * @return The defaultUint32. */ @java.lang.Override public int getDefaultUint32() { return defaultUint32_; } public static final int DEFAULT_UINT64_FIELD_NUMBER = 64; private long defaultUint64_ = 44L; /** * optional uint64 default_uint64 = 64 [default = 44]; * @return Whether the defaultUint64 field is set. */ @java.lang.Override public boolean hasDefaultUint64() { return ((bitField0_ & 0x40000000) != 0); } /** * optional uint64 default_uint64 = 64 [default = 44]; * @return The defaultUint64. */ @java.lang.Override public long getDefaultUint64() { return defaultUint64_; } public static final int DEFAULT_SINT32_FIELD_NUMBER = 65; private int defaultSint32_ = -45; /** * optional sint32 default_sint32 = 65 [default = -45]; * @return Whether the defaultSint32 field is set. */ @java.lang.Override public boolean hasDefaultSint32() { return ((bitField0_ & 0x80000000) != 0); } /** * optional sint32 default_sint32 = 65 [default = -45]; * @return The defaultSint32. */ @java.lang.Override public int getDefaultSint32() { return defaultSint32_; } public static final int DEFAULT_SINT64_FIELD_NUMBER = 66; private long defaultSint64_ = 46L; /** * optional sint64 default_sint64 = 66 [default = 46]; * @return Whether the defaultSint64 field is set. */ @java.lang.Override public boolean hasDefaultSint64() { return ((bitField1_ & 0x00000001) != 0); } /** * optional sint64 default_sint64 = 66 [default = 46]; * @return The defaultSint64. */ @java.lang.Override public long getDefaultSint64() { return defaultSint64_; } public static final int DEFAULT_FIXED32_FIELD_NUMBER = 67; private int defaultFixed32_ = 47; /** * optional fixed32 default_fixed32 = 67 [default = 47]; * @return Whether the defaultFixed32 field is set. */ @java.lang.Override public boolean hasDefaultFixed32() { return ((bitField1_ & 0x00000002) != 0); } /** * optional fixed32 default_fixed32 = 67 [default = 47]; * @return The defaultFixed32. */ @java.lang.Override public int getDefaultFixed32() { return defaultFixed32_; } public static final int DEFAULT_FIXED64_FIELD_NUMBER = 68; private long defaultFixed64_ = 48L; /** * optional fixed64 default_fixed64 = 68 [default = 48]; * @return Whether the defaultFixed64 field is set. */ @java.lang.Override public boolean hasDefaultFixed64() { return ((bitField1_ & 0x00000004) != 0); } /** * optional fixed64 default_fixed64 = 68 [default = 48]; * @return The defaultFixed64. */ @java.lang.Override public long getDefaultFixed64() { return defaultFixed64_; } public static final int DEFAULT_SFIXED32_FIELD_NUMBER = 69; private int defaultSfixed32_ = 49; /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; * @return Whether the defaultSfixed32 field is set. */ @java.lang.Override public boolean hasDefaultSfixed32() { return ((bitField1_ & 0x00000008) != 0); } /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; * @return The defaultSfixed32. */ @java.lang.Override public int getDefaultSfixed32() { return defaultSfixed32_; } public static final int DEFAULT_SFIXED64_FIELD_NUMBER = 70; private long defaultSfixed64_ = -50L; /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; * @return Whether the defaultSfixed64 field is set. */ @java.lang.Override public boolean hasDefaultSfixed64() { return ((bitField1_ & 0x00000010) != 0); } /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; * @return The defaultSfixed64. */ @java.lang.Override public long getDefaultSfixed64() { return defaultSfixed64_; } public static final int DEFAULT_FLOAT_FIELD_NUMBER = 71; private float defaultFloat_ = 51.5F; /** * optional float default_float = 71 [default = 51.5]; * @return Whether the defaultFloat field is set. */ @java.lang.Override public boolean hasDefaultFloat() { return ((bitField1_ & 0x00000020) != 0); } /** * optional float default_float = 71 [default = 51.5]; * @return The defaultFloat. */ @java.lang.Override public float getDefaultFloat() { return defaultFloat_; } public static final int DEFAULT_DOUBLE_FIELD_NUMBER = 72; private double defaultDouble_ = 52000D; /** * optional double default_double = 72 [default = 52000]; * @return Whether the defaultDouble field is set. */ @java.lang.Override public boolean hasDefaultDouble() { return ((bitField1_ & 0x00000040) != 0); } /** * optional double default_double = 72 [default = 52000]; * @return The defaultDouble. */ @java.lang.Override public double getDefaultDouble() { return defaultDouble_; } public static final int DEFAULT_BOOL_FIELD_NUMBER = 73; private boolean defaultBool_ = true; /** * optional bool default_bool = 73 [default = true]; * @return Whether the defaultBool field is set. */ @java.lang.Override public boolean hasDefaultBool() { return ((bitField1_ & 0x00000080) != 0); } /** * optional bool default_bool = 73 [default = true]; * @return The defaultBool. */ @java.lang.Override public boolean getDefaultBool() { return defaultBool_; } public static final int DEFAULT_STRING_FIELD_NUMBER = 74; @SuppressWarnings("serial") private volatile java.lang.Object defaultString_ = "hello"; /** * optional string default_string = 74 [default = "hello"]; * @return Whether the defaultString field is set. */ @java.lang.Override public boolean hasDefaultString() { return ((bitField1_ & 0x00000100) != 0); } /** * optional string default_string = 74 [default = "hello"]; * @return The defaultString. */ @java.lang.Override public java.lang.String getDefaultString() { java.lang.Object ref = defaultString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultString_ = s; } return s; } } /** * optional string default_string = 74 [default = "hello"]; * @return The bytes for defaultString. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultStringBytes() { java.lang.Object ref = defaultString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_BYTES_FIELD_NUMBER = 75; private com.google.protobuf.ByteString defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world"); /** * optional bytes default_bytes = 75 [default = "world"]; * @return Whether the defaultBytes field is set. */ @java.lang.Override public boolean hasDefaultBytes() { return ((bitField1_ & 0x00000200) != 0); } /** * optional bytes default_bytes = 75 [default = "world"]; * @return The defaultBytes. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultBytes() { return defaultBytes_; } public static final int DEFAULT_NESTED_ENUM_FIELD_NUMBER = 81; private int defaultNestedEnum_ = 2; /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR]; * @return Whether the defaultNestedEnum field is set. */ @java.lang.Override public boolean hasDefaultNestedEnum() { return ((bitField1_ & 0x00000400) != 0); } /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR]; * @return The defaultNestedEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getDefaultNestedEnum() { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum result = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(defaultNestedEnum_); return result == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.BAR : result; } public static final int DEFAULT_FOREIGN_ENUM_FIELD_NUMBER = 82; private int defaultForeignEnum_ = 5; /** * optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR]; * @return Whether the defaultForeignEnum field is set. */ @java.lang.Override public boolean hasDefaultForeignEnum() { return ((bitField1_ & 0x00000800) != 0); } /** * optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR]; * @return The defaultForeignEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignEnumLite getDefaultForeignEnum() { com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(defaultForeignEnum_); return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_BAR : result; } public static final int DEFAULT_IMPORT_ENUM_FIELD_NUMBER = 83; private int defaultImportEnum_ = 8; /** * optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR]; * @return Whether the defaultImportEnum field is set. */ @java.lang.Override public boolean hasDefaultImportEnum() { return ((bitField1_ & 0x00001000) != 0); } /** * optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR]; * @return The defaultImportEnum. */ @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportEnumLite getDefaultImportEnum() { com.google.protobuf.UnittestImportLite.ImportEnumLite result = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(defaultImportEnum_); return result == null ? com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_BAR : result; } public static final int DEFAULT_STRING_PIECE_FIELD_NUMBER = 84; @SuppressWarnings("serial") private volatile java.lang.Object defaultStringPiece_ = "abc"; /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @return Whether the defaultStringPiece field is set. */ @java.lang.Override public boolean hasDefaultStringPiece() { return ((bitField1_ & 0x00002000) != 0); } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @return The defaultStringPiece. */ @java.lang.Override public java.lang.String getDefaultStringPiece() { java.lang.Object ref = defaultStringPiece_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultStringPiece_ = s; } return s; } } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @return The bytes for defaultStringPiece. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultStringPieceBytes() { java.lang.Object ref = defaultStringPiece_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultStringPiece_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_CORD_FIELD_NUMBER = 85; @SuppressWarnings("serial") private volatile java.lang.Object defaultCord_ = "123"; /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @return Whether the defaultCord field is set. */ @java.lang.Override public boolean hasDefaultCord() { return ((bitField1_ & 0x00004000) != 0); } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @return The defaultCord. */ @java.lang.Override public java.lang.String getDefaultCord() { java.lang.Object ref = defaultCord_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultCord_ = s; } return s; } } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @return The bytes for defaultCord. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultCordBytes() { java.lang.Object ref = defaultCord_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultCord_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONEOF_UINT32_FIELD_NUMBER = 111; /** * uint32 oneof_uint32 = 111; * @return Whether the oneofUint32 field is set. */ @java.lang.Override public boolean hasOneofUint32() { return oneofFieldCase_ == 111; } /** * uint32 oneof_uint32 = 111; * @return The oneofUint32. */ @java.lang.Override public int getOneofUint32() { if (oneofFieldCase_ == 111) { return (java.lang.Integer) oneofField_; } return 0; } public static final int ONEOF_NESTED_MESSAGE_FIELD_NUMBER = 112; /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; * @return Whether the oneofNestedMessage field is set. */ @java.lang.Override public boolean hasOneofNestedMessage() { return oneofFieldCase_ == 112; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; * @return The oneofNestedMessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofNestedMessage() { if (oneofFieldCase_ == 112) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOneofNestedMessageOrBuilder() { if (oneofFieldCase_ == 112) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } public static final int ONEOF_STRING_FIELD_NUMBER = 113; /** * string oneof_string = 113; * @return Whether the oneofString field is set. */ public boolean hasOneofString() { return oneofFieldCase_ == 113; } /** * string oneof_string = 113; * @return The oneofString. */ public java.lang.String getOneofString() { java.lang.Object ref = ""; if (oneofFieldCase_ == 113) { ref = oneofField_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8() && (oneofFieldCase_ == 113)) { oneofField_ = s; } return s; } } /** * string oneof_string = 113; * @return The bytes for oneofString. */ public com.google.protobuf.ByteString getOneofStringBytes() { java.lang.Object ref = ""; if (oneofFieldCase_ == 113) { ref = oneofField_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 113) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONEOF_BYTES_FIELD_NUMBER = 114; /** * bytes oneof_bytes = 114; * @return Whether the oneofBytes field is set. */ @java.lang.Override public boolean hasOneofBytes() { return oneofFieldCase_ == 114; } /** * bytes oneof_bytes = 114; * @return The oneofBytes. */ @java.lang.Override public com.google.protobuf.ByteString getOneofBytes() { if (oneofFieldCase_ == 114) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.ByteString.EMPTY; } public static final int ONEOF_LAZY_NESTED_MESSAGE_FIELD_NUMBER = 115; /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; * @return Whether the oneofLazyNestedMessage field is set. */ @java.lang.Override public boolean hasOneofLazyNestedMessage() { return oneofFieldCase_ == 115; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; * @return The oneofLazyNestedMessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofLazyNestedMessage() { if (oneofFieldCase_ == 115) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOneofLazyNestedMessageOrBuilder() { if (oneofFieldCase_ == 115) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } public static final int ONEOF_NESTED_MESSAGE2_FIELD_NUMBER = 117; /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; * @return Whether the oneofNestedMessage2 field is set. */ @java.lang.Override public boolean hasOneofNestedMessage2() { return oneofFieldCase_ == 117; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; * @return The oneofNestedMessage2. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 getOneofNestedMessage2() { if (oneofFieldCase_ == 117) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance(); } /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder getOneofNestedMessage2OrBuilder() { if (oneofFieldCase_ == 117) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance(); } public static final int DECEPTIVELY_NAMED_LIST_FIELD_NUMBER = 116; private int deceptivelyNamedList_ = 0; /** *
     * Tests toString for non-repeated fields with a list suffix
     * 
* * optional int32 deceptively_named_list = 116; * @return Whether the deceptivelyNamedList field is set. */ @java.lang.Override public boolean hasDeceptivelyNamedList() { return ((bitField1_ & 0x00008000) != 0); } /** *
     * Tests toString for non-repeated fields with a list suffix
     * 
* * optional int32 deceptively_named_list = 116; * @return The deceptivelyNamedList. */ @java.lang.Override public int getDeceptivelyNamedList() { return deceptivelyNamedList_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, optionalInt32_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, optionalInt64_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, optionalUint32_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt64(4, optionalUint64_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeSInt32(5, optionalSint32_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeSInt64(6, optionalSint64_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeFixed32(7, optionalFixed32_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeFixed64(8, optionalFixed64_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeSFixed32(9, optionalSfixed32_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeSFixed64(10, optionalSfixed64_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeFloat(11, optionalFloat_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeDouble(12, optionalDouble_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(13, optionalBool_); } if (((bitField0_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, optionalString_); } if (((bitField0_ & 0x00004000) != 0)) { output.writeBytes(15, optionalBytes_); } if (((bitField0_ & 0x00008000) != 0)) { output.writeGroup(16, getOptionalGroup()); } if (((bitField0_ & 0x00010000) != 0)) { output.writeMessage(18, getOptionalNestedMessage()); } if (((bitField0_ & 0x00020000) != 0)) { output.writeMessage(19, getOptionalForeignMessage()); } if (((bitField0_ & 0x00040000) != 0)) { output.writeMessage(20, getOptionalImportMessage()); } if (((bitField0_ & 0x00080000) != 0)) { output.writeEnum(21, optionalNestedEnum_); } if (((bitField0_ & 0x00100000) != 0)) { output.writeEnum(22, optionalForeignEnum_); } if (((bitField0_ & 0x00200000) != 0)) { output.writeEnum(23, optionalImportEnum_); } if (((bitField0_ & 0x00400000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, optionalStringPiece_); } if (((bitField0_ & 0x00800000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, optionalCord_); } if (((bitField0_ & 0x01000000) != 0)) { output.writeMessage(26, getOptionalPublicImportMessage()); } if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(27, getOptionalLazyMessage()); } if (((bitField0_ & 0x04000000) != 0)) { output.writeMessage(28, getOptionalUnverifiedLazyMessage()); } for (int i = 0; i < repeatedInt32_.size(); i++) { output.writeInt32(31, repeatedInt32_.getInt(i)); } for (int i = 0; i < repeatedInt64_.size(); i++) { output.writeInt64(32, repeatedInt64_.getLong(i)); } for (int i = 0; i < repeatedUint32_.size(); i++) { output.writeUInt32(33, repeatedUint32_.getInt(i)); } for (int i = 0; i < repeatedUint64_.size(); i++) { output.writeUInt64(34, repeatedUint64_.getLong(i)); } for (int i = 0; i < repeatedSint32_.size(); i++) { output.writeSInt32(35, repeatedSint32_.getInt(i)); } for (int i = 0; i < repeatedSint64_.size(); i++) { output.writeSInt64(36, repeatedSint64_.getLong(i)); } for (int i = 0; i < repeatedFixed32_.size(); i++) { output.writeFixed32(37, repeatedFixed32_.getInt(i)); } for (int i = 0; i < repeatedFixed64_.size(); i++) { output.writeFixed64(38, repeatedFixed64_.getLong(i)); } for (int i = 0; i < repeatedSfixed32_.size(); i++) { output.writeSFixed32(39, repeatedSfixed32_.getInt(i)); } for (int i = 0; i < repeatedSfixed64_.size(); i++) { output.writeSFixed64(40, repeatedSfixed64_.getLong(i)); } for (int i = 0; i < repeatedFloat_.size(); i++) { output.writeFloat(41, repeatedFloat_.getFloat(i)); } for (int i = 0; i < repeatedDouble_.size(); i++) { output.writeDouble(42, repeatedDouble_.getDouble(i)); } for (int i = 0; i < repeatedBool_.size(); i++) { output.writeBool(43, repeatedBool_.getBoolean(i)); } for (int i = 0; i < repeatedString_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 44, repeatedString_.getRaw(i)); } for (int i = 0; i < repeatedBytes_.size(); i++) { output.writeBytes(45, repeatedBytes_.get(i)); } for (int i = 0; i < repeatedGroup_.size(); i++) { output.writeGroup(46, repeatedGroup_.get(i)); } for (int i = 0; i < repeatedNestedMessage_.size(); i++) { output.writeMessage(48, repeatedNestedMessage_.get(i)); } for (int i = 0; i < repeatedForeignMessage_.size(); i++) { output.writeMessage(49, repeatedForeignMessage_.get(i)); } for (int i = 0; i < repeatedImportMessage_.size(); i++) { output.writeMessage(50, repeatedImportMessage_.get(i)); } for (int i = 0; i < repeatedNestedEnum_.size(); i++) { output.writeEnum(51, repeatedNestedEnum_.get(i)); } for (int i = 0; i < repeatedForeignEnum_.size(); i++) { output.writeEnum(52, repeatedForeignEnum_.get(i)); } for (int i = 0; i < repeatedImportEnum_.size(); i++) { output.writeEnum(53, repeatedImportEnum_.get(i)); } for (int i = 0; i < repeatedStringPiece_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 54, repeatedStringPiece_.getRaw(i)); } for (int i = 0; i < repeatedCord_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 55, repeatedCord_.getRaw(i)); } for (int i = 0; i < repeatedLazyMessage_.size(); i++) { output.writeMessage(57, repeatedLazyMessage_.get(i)); } if (((bitField0_ & 0x08000000) != 0)) { output.writeInt32(61, defaultInt32_); } if (((bitField0_ & 0x10000000) != 0)) { output.writeInt64(62, defaultInt64_); } if (((bitField0_ & 0x20000000) != 0)) { output.writeUInt32(63, defaultUint32_); } if (((bitField0_ & 0x40000000) != 0)) { output.writeUInt64(64, defaultUint64_); } if (((bitField0_ & 0x80000000) != 0)) { output.writeSInt32(65, defaultSint32_); } if (((bitField1_ & 0x00000001) != 0)) { output.writeSInt64(66, defaultSint64_); } if (((bitField1_ & 0x00000002) != 0)) { output.writeFixed32(67, defaultFixed32_); } if (((bitField1_ & 0x00000004) != 0)) { output.writeFixed64(68, defaultFixed64_); } if (((bitField1_ & 0x00000008) != 0)) { output.writeSFixed32(69, defaultSfixed32_); } if (((bitField1_ & 0x00000010) != 0)) { output.writeSFixed64(70, defaultSfixed64_); } if (((bitField1_ & 0x00000020) != 0)) { output.writeFloat(71, defaultFloat_); } if (((bitField1_ & 0x00000040) != 0)) { output.writeDouble(72, defaultDouble_); } if (((bitField1_ & 0x00000080) != 0)) { output.writeBool(73, defaultBool_); } if (((bitField1_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 74, defaultString_); } if (((bitField1_ & 0x00000200) != 0)) { output.writeBytes(75, defaultBytes_); } if (((bitField1_ & 0x00000400) != 0)) { output.writeEnum(81, defaultNestedEnum_); } if (((bitField1_ & 0x00000800) != 0)) { output.writeEnum(82, defaultForeignEnum_); } if (((bitField1_ & 0x00001000) != 0)) { output.writeEnum(83, defaultImportEnum_); } if (((bitField1_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 84, defaultStringPiece_); } if (((bitField1_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 85, defaultCord_); } if (oneofFieldCase_ == 111) { output.writeUInt32( 111, (int)((java.lang.Integer) oneofField_)); } if (oneofFieldCase_ == 112) { output.writeMessage(112, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_); } if (oneofFieldCase_ == 113) { com.google.protobuf.GeneratedMessageV3.writeString(output, 113, oneofField_); } if (oneofFieldCase_ == 114) { output.writeBytes( 114, (com.google.protobuf.ByteString) oneofField_); } if (oneofFieldCase_ == 115) { output.writeMessage(115, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_); } if (((bitField1_ & 0x00008000) != 0)) { output.writeInt32(116, deceptivelyNamedList_); } if (oneofFieldCase_ == 117) { output.writeMessage(117, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, optionalInt32_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, optionalInt64_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, optionalUint32_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, optionalUint64_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(5, optionalSint32_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(6, optionalSint64_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFixed32Size(7, optionalFixed32_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(8, optionalFixed64_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size(9, optionalSfixed32_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(10, optionalSfixed64_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(11, optionalFloat_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(12, optionalDouble_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, optionalBool_); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, optionalString_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, optionalBytes_); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(16, getOptionalGroup()); } if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getOptionalNestedMessage()); } if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, getOptionalForeignMessage()); } if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getOptionalImportMessage()); } if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(21, optionalNestedEnum_); } if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(22, optionalForeignEnum_); } if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(23, optionalImportEnum_); } if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, optionalStringPiece_); } if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, optionalCord_); } if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, getOptionalPublicImportMessage()); } if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, getOptionalLazyMessage()); } if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, getOptionalUnverifiedLazyMessage()); } { int dataSize = 0; for (int i = 0; i < repeatedInt32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(repeatedInt32_.getInt(i)); } size += dataSize; size += 2 * getRepeatedInt32List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedInt64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(repeatedInt64_.getLong(i)); } size += dataSize; size += 2 * getRepeatedInt64List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedUint32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(repeatedUint32_.getInt(i)); } size += dataSize; size += 2 * getRepeatedUint32List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedUint64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(repeatedUint64_.getLong(i)); } size += dataSize; size += 2 * getRepeatedUint64List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedSint32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt32SizeNoTag(repeatedSint32_.getInt(i)); } size += dataSize; size += 2 * getRepeatedSint32List().size(); } { int dataSize = 0; for (int i = 0; i < repeatedSint64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt64SizeNoTag(repeatedSint64_.getLong(i)); } size += dataSize; size += 2 * getRepeatedSint64List().size(); } { int dataSize = 0; dataSize = 4 * getRepeatedFixed32List().size(); size += dataSize; size += 2 * getRepeatedFixed32List().size(); } { int dataSize = 0; dataSize = 8 * getRepeatedFixed64List().size(); size += dataSize; size += 2 * getRepeatedFixed64List().size(); } { int dataSize = 0; dataSize = 4 * getRepeatedSfixed32List().size(); size += dataSize; size += 2 * getRepeatedSfixed32List().size(); } { int dataSize = 0; dataSize = 8 * getRepeatedSfixed64List().size(); size += dataSize; size += 2 * getRepeatedSfixed64List().size(); } { int dataSize = 0; dataSize = 4 * getRepeatedFloatList().size(); size += dataSize; size += 2 * getRepeatedFloatList().size(); } { int dataSize = 0; dataSize = 8 * getRepeatedDoubleList().size(); size += dataSize; size += 2 * getRepeatedDoubleList().size(); } { int dataSize = 0; dataSize = 1 * getRepeatedBoolList().size(); size += dataSize; size += 2 * getRepeatedBoolList().size(); } { int dataSize = 0; for (int i = 0; i < repeatedString_.size(); i++) { dataSize += computeStringSizeNoTag(repeatedString_.getRaw(i)); } size += dataSize; size += 2 * getRepeatedStringList().size(); } { int dataSize = 0; for (int i = 0; i < repeatedBytes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(repeatedBytes_.get(i)); } size += dataSize; size += 2 * getRepeatedBytesList().size(); } for (int i = 0; i < repeatedGroup_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(46, repeatedGroup_.get(i)); } for (int i = 0; i < repeatedNestedMessage_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(48, repeatedNestedMessage_.get(i)); } for (int i = 0; i < repeatedForeignMessage_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(49, repeatedForeignMessage_.get(i)); } for (int i = 0; i < repeatedImportMessage_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(50, repeatedImportMessage_.get(i)); } { int dataSize = 0; for (int i = 0; i < repeatedNestedEnum_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(repeatedNestedEnum_.get(i)); } size += dataSize; size += 2 * repeatedNestedEnum_.size(); } { int dataSize = 0; for (int i = 0; i < repeatedForeignEnum_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(repeatedForeignEnum_.get(i)); } size += dataSize; size += 2 * repeatedForeignEnum_.size(); } { int dataSize = 0; for (int i = 0; i < repeatedImportEnum_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(repeatedImportEnum_.get(i)); } size += dataSize; size += 2 * repeatedImportEnum_.size(); } { int dataSize = 0; for (int i = 0; i < repeatedStringPiece_.size(); i++) { dataSize += computeStringSizeNoTag(repeatedStringPiece_.getRaw(i)); } size += dataSize; size += 2 * getRepeatedStringPieceList().size(); } { int dataSize = 0; for (int i = 0; i < repeatedCord_.size(); i++) { dataSize += computeStringSizeNoTag(repeatedCord_.getRaw(i)); } size += dataSize; size += 2 * getRepeatedCordList().size(); } for (int i = 0; i < repeatedLazyMessage_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(57, repeatedLazyMessage_.get(i)); } if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(61, defaultInt32_); } if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(62, defaultInt64_); } if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(63, defaultUint32_); } if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(64, defaultUint64_); } if (((bitField0_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(65, defaultSint32_); } if (((bitField1_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(66, defaultSint64_); } if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFixed32Size(67, defaultFixed32_); } if (((bitField1_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(68, defaultFixed64_); } if (((bitField1_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size(69, defaultSfixed32_); } if (((bitField1_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(70, defaultSfixed64_); } if (((bitField1_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(71, defaultFloat_); } if (((bitField1_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(72, defaultDouble_); } if (((bitField1_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(73, defaultBool_); } if (((bitField1_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(74, defaultString_); } if (((bitField1_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(75, defaultBytes_); } if (((bitField1_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(81, defaultNestedEnum_); } if (((bitField1_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(82, defaultForeignEnum_); } if (((bitField1_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(83, defaultImportEnum_); } if (((bitField1_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(84, defaultStringPiece_); } if (((bitField1_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(85, defaultCord_); } if (oneofFieldCase_ == 111) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 111, (int)((java.lang.Integer) oneofField_)); } if (oneofFieldCase_ == 112) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(112, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_); } if (oneofFieldCase_ == 113) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(113, oneofField_); } if (oneofFieldCase_ == 114) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 114, (com.google.protobuf.ByteString) oneofField_); } if (oneofFieldCase_ == 115) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(115, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_); } if (((bitField1_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(116, deceptivelyNamedList_); } if (oneofFieldCase_ == 117) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(117, (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestAllTypesLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestAllTypesLite other = (com.google.protobuf.UnittestLite.TestAllTypesLite) obj; if (hasOptionalInt32() != other.hasOptionalInt32()) return false; if (hasOptionalInt32()) { if (getOptionalInt32() != other.getOptionalInt32()) return false; } if (hasOptionalInt64() != other.hasOptionalInt64()) return false; if (hasOptionalInt64()) { if (getOptionalInt64() != other.getOptionalInt64()) return false; } if (hasOptionalUint32() != other.hasOptionalUint32()) return false; if (hasOptionalUint32()) { if (getOptionalUint32() != other.getOptionalUint32()) return false; } if (hasOptionalUint64() != other.hasOptionalUint64()) return false; if (hasOptionalUint64()) { if (getOptionalUint64() != other.getOptionalUint64()) return false; } if (hasOptionalSint32() != other.hasOptionalSint32()) return false; if (hasOptionalSint32()) { if (getOptionalSint32() != other.getOptionalSint32()) return false; } if (hasOptionalSint64() != other.hasOptionalSint64()) return false; if (hasOptionalSint64()) { if (getOptionalSint64() != other.getOptionalSint64()) return false; } if (hasOptionalFixed32() != other.hasOptionalFixed32()) return false; if (hasOptionalFixed32()) { if (getOptionalFixed32() != other.getOptionalFixed32()) return false; } if (hasOptionalFixed64() != other.hasOptionalFixed64()) return false; if (hasOptionalFixed64()) { if (getOptionalFixed64() != other.getOptionalFixed64()) return false; } if (hasOptionalSfixed32() != other.hasOptionalSfixed32()) return false; if (hasOptionalSfixed32()) { if (getOptionalSfixed32() != other.getOptionalSfixed32()) return false; } if (hasOptionalSfixed64() != other.hasOptionalSfixed64()) return false; if (hasOptionalSfixed64()) { if (getOptionalSfixed64() != other.getOptionalSfixed64()) return false; } if (hasOptionalFloat() != other.hasOptionalFloat()) return false; if (hasOptionalFloat()) { if (java.lang.Float.floatToIntBits(getOptionalFloat()) != java.lang.Float.floatToIntBits( other.getOptionalFloat())) return false; } if (hasOptionalDouble() != other.hasOptionalDouble()) return false; if (hasOptionalDouble()) { if (java.lang.Double.doubleToLongBits(getOptionalDouble()) != java.lang.Double.doubleToLongBits( other.getOptionalDouble())) return false; } if (hasOptionalBool() != other.hasOptionalBool()) return false; if (hasOptionalBool()) { if (getOptionalBool() != other.getOptionalBool()) return false; } if (hasOptionalString() != other.hasOptionalString()) return false; if (hasOptionalString()) { if (!getOptionalString() .equals(other.getOptionalString())) return false; } if (hasOptionalBytes() != other.hasOptionalBytes()) return false; if (hasOptionalBytes()) { if (!getOptionalBytes() .equals(other.getOptionalBytes())) return false; } if (hasOptionalGroup() != other.hasOptionalGroup()) return false; if (hasOptionalGroup()) { if (!getOptionalGroup() .equals(other.getOptionalGroup())) return false; } if (hasOptionalNestedMessage() != other.hasOptionalNestedMessage()) return false; if (hasOptionalNestedMessage()) { if (!getOptionalNestedMessage() .equals(other.getOptionalNestedMessage())) return false; } if (hasOptionalForeignMessage() != other.hasOptionalForeignMessage()) return false; if (hasOptionalForeignMessage()) { if (!getOptionalForeignMessage() .equals(other.getOptionalForeignMessage())) return false; } if (hasOptionalImportMessage() != other.hasOptionalImportMessage()) return false; if (hasOptionalImportMessage()) { if (!getOptionalImportMessage() .equals(other.getOptionalImportMessage())) return false; } if (hasOptionalNestedEnum() != other.hasOptionalNestedEnum()) return false; if (hasOptionalNestedEnum()) { if (optionalNestedEnum_ != other.optionalNestedEnum_) return false; } if (hasOptionalForeignEnum() != other.hasOptionalForeignEnum()) return false; if (hasOptionalForeignEnum()) { if (optionalForeignEnum_ != other.optionalForeignEnum_) return false; } if (hasOptionalImportEnum() != other.hasOptionalImportEnum()) return false; if (hasOptionalImportEnum()) { if (optionalImportEnum_ != other.optionalImportEnum_) return false; } if (hasOptionalStringPiece() != other.hasOptionalStringPiece()) return false; if (hasOptionalStringPiece()) { if (!getOptionalStringPiece() .equals(other.getOptionalStringPiece())) return false; } if (hasOptionalCord() != other.hasOptionalCord()) return false; if (hasOptionalCord()) { if (!getOptionalCord() .equals(other.getOptionalCord())) return false; } if (hasOptionalPublicImportMessage() != other.hasOptionalPublicImportMessage()) return false; if (hasOptionalPublicImportMessage()) { if (!getOptionalPublicImportMessage() .equals(other.getOptionalPublicImportMessage())) return false; } if (hasOptionalLazyMessage() != other.hasOptionalLazyMessage()) return false; if (hasOptionalLazyMessage()) { if (!getOptionalLazyMessage() .equals(other.getOptionalLazyMessage())) return false; } if (hasOptionalUnverifiedLazyMessage() != other.hasOptionalUnverifiedLazyMessage()) return false; if (hasOptionalUnverifiedLazyMessage()) { if (!getOptionalUnverifiedLazyMessage() .equals(other.getOptionalUnverifiedLazyMessage())) return false; } if (!getRepeatedInt32List() .equals(other.getRepeatedInt32List())) return false; if (!getRepeatedInt64List() .equals(other.getRepeatedInt64List())) return false; if (!getRepeatedUint32List() .equals(other.getRepeatedUint32List())) return false; if (!getRepeatedUint64List() .equals(other.getRepeatedUint64List())) return false; if (!getRepeatedSint32List() .equals(other.getRepeatedSint32List())) return false; if (!getRepeatedSint64List() .equals(other.getRepeatedSint64List())) return false; if (!getRepeatedFixed32List() .equals(other.getRepeatedFixed32List())) return false; if (!getRepeatedFixed64List() .equals(other.getRepeatedFixed64List())) return false; if (!getRepeatedSfixed32List() .equals(other.getRepeatedSfixed32List())) return false; if (!getRepeatedSfixed64List() .equals(other.getRepeatedSfixed64List())) return false; if (!getRepeatedFloatList() .equals(other.getRepeatedFloatList())) return false; if (!getRepeatedDoubleList() .equals(other.getRepeatedDoubleList())) return false; if (!getRepeatedBoolList() .equals(other.getRepeatedBoolList())) return false; if (!getRepeatedStringList() .equals(other.getRepeatedStringList())) return false; if (!getRepeatedBytesList() .equals(other.getRepeatedBytesList())) return false; if (!getRepeatedGroupList() .equals(other.getRepeatedGroupList())) return false; if (!getRepeatedNestedMessageList() .equals(other.getRepeatedNestedMessageList())) return false; if (!getRepeatedForeignMessageList() .equals(other.getRepeatedForeignMessageList())) return false; if (!getRepeatedImportMessageList() .equals(other.getRepeatedImportMessageList())) return false; if (!repeatedNestedEnum_.equals(other.repeatedNestedEnum_)) return false; if (!repeatedForeignEnum_.equals(other.repeatedForeignEnum_)) return false; if (!repeatedImportEnum_.equals(other.repeatedImportEnum_)) return false; if (!getRepeatedStringPieceList() .equals(other.getRepeatedStringPieceList())) return false; if (!getRepeatedCordList() .equals(other.getRepeatedCordList())) return false; if (!getRepeatedLazyMessageList() .equals(other.getRepeatedLazyMessageList())) return false; if (hasDefaultInt32() != other.hasDefaultInt32()) return false; if (hasDefaultInt32()) { if (getDefaultInt32() != other.getDefaultInt32()) return false; } if (hasDefaultInt64() != other.hasDefaultInt64()) return false; if (hasDefaultInt64()) { if (getDefaultInt64() != other.getDefaultInt64()) return false; } if (hasDefaultUint32() != other.hasDefaultUint32()) return false; if (hasDefaultUint32()) { if (getDefaultUint32() != other.getDefaultUint32()) return false; } if (hasDefaultUint64() != other.hasDefaultUint64()) return false; if (hasDefaultUint64()) { if (getDefaultUint64() != other.getDefaultUint64()) return false; } if (hasDefaultSint32() != other.hasDefaultSint32()) return false; if (hasDefaultSint32()) { if (getDefaultSint32() != other.getDefaultSint32()) return false; } if (hasDefaultSint64() != other.hasDefaultSint64()) return false; if (hasDefaultSint64()) { if (getDefaultSint64() != other.getDefaultSint64()) return false; } if (hasDefaultFixed32() != other.hasDefaultFixed32()) return false; if (hasDefaultFixed32()) { if (getDefaultFixed32() != other.getDefaultFixed32()) return false; } if (hasDefaultFixed64() != other.hasDefaultFixed64()) return false; if (hasDefaultFixed64()) { if (getDefaultFixed64() != other.getDefaultFixed64()) return false; } if (hasDefaultSfixed32() != other.hasDefaultSfixed32()) return false; if (hasDefaultSfixed32()) { if (getDefaultSfixed32() != other.getDefaultSfixed32()) return false; } if (hasDefaultSfixed64() != other.hasDefaultSfixed64()) return false; if (hasDefaultSfixed64()) { if (getDefaultSfixed64() != other.getDefaultSfixed64()) return false; } if (hasDefaultFloat() != other.hasDefaultFloat()) return false; if (hasDefaultFloat()) { if (java.lang.Float.floatToIntBits(getDefaultFloat()) != java.lang.Float.floatToIntBits( other.getDefaultFloat())) return false; } if (hasDefaultDouble() != other.hasDefaultDouble()) return false; if (hasDefaultDouble()) { if (java.lang.Double.doubleToLongBits(getDefaultDouble()) != java.lang.Double.doubleToLongBits( other.getDefaultDouble())) return false; } if (hasDefaultBool() != other.hasDefaultBool()) return false; if (hasDefaultBool()) { if (getDefaultBool() != other.getDefaultBool()) return false; } if (hasDefaultString() != other.hasDefaultString()) return false; if (hasDefaultString()) { if (!getDefaultString() .equals(other.getDefaultString())) return false; } if (hasDefaultBytes() != other.hasDefaultBytes()) return false; if (hasDefaultBytes()) { if (!getDefaultBytes() .equals(other.getDefaultBytes())) return false; } if (hasDefaultNestedEnum() != other.hasDefaultNestedEnum()) return false; if (hasDefaultNestedEnum()) { if (defaultNestedEnum_ != other.defaultNestedEnum_) return false; } if (hasDefaultForeignEnum() != other.hasDefaultForeignEnum()) return false; if (hasDefaultForeignEnum()) { if (defaultForeignEnum_ != other.defaultForeignEnum_) return false; } if (hasDefaultImportEnum() != other.hasDefaultImportEnum()) return false; if (hasDefaultImportEnum()) { if (defaultImportEnum_ != other.defaultImportEnum_) return false; } if (hasDefaultStringPiece() != other.hasDefaultStringPiece()) return false; if (hasDefaultStringPiece()) { if (!getDefaultStringPiece() .equals(other.getDefaultStringPiece())) return false; } if (hasDefaultCord() != other.hasDefaultCord()) return false; if (hasDefaultCord()) { if (!getDefaultCord() .equals(other.getDefaultCord())) return false; } if (hasDeceptivelyNamedList() != other.hasDeceptivelyNamedList()) return false; if (hasDeceptivelyNamedList()) { if (getDeceptivelyNamedList() != other.getDeceptivelyNamedList()) return false; } if (!getOneofFieldCase().equals(other.getOneofFieldCase())) return false; switch (oneofFieldCase_) { case 111: if (getOneofUint32() != other.getOneofUint32()) return false; break; case 112: if (!getOneofNestedMessage() .equals(other.getOneofNestedMessage())) return false; break; case 113: if (!getOneofString() .equals(other.getOneofString())) return false; break; case 114: if (!getOneofBytes() .equals(other.getOneofBytes())) return false; break; case 115: if (!getOneofLazyNestedMessage() .equals(other.getOneofLazyNestedMessage())) return false; break; case 117: if (!getOneofNestedMessage2() .equals(other.getOneofNestedMessage2())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOptionalInt32()) { hash = (37 * hash) + OPTIONAL_INT32_FIELD_NUMBER; hash = (53 * hash) + getOptionalInt32(); } if (hasOptionalInt64()) { hash = (37 * hash) + OPTIONAL_INT64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOptionalInt64()); } if (hasOptionalUint32()) { hash = (37 * hash) + OPTIONAL_UINT32_FIELD_NUMBER; hash = (53 * hash) + getOptionalUint32(); } if (hasOptionalUint64()) { hash = (37 * hash) + OPTIONAL_UINT64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOptionalUint64()); } if (hasOptionalSint32()) { hash = (37 * hash) + OPTIONAL_SINT32_FIELD_NUMBER; hash = (53 * hash) + getOptionalSint32(); } if (hasOptionalSint64()) { hash = (37 * hash) + OPTIONAL_SINT64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOptionalSint64()); } if (hasOptionalFixed32()) { hash = (37 * hash) + OPTIONAL_FIXED32_FIELD_NUMBER; hash = (53 * hash) + getOptionalFixed32(); } if (hasOptionalFixed64()) { hash = (37 * hash) + OPTIONAL_FIXED64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOptionalFixed64()); } if (hasOptionalSfixed32()) { hash = (37 * hash) + OPTIONAL_SFIXED32_FIELD_NUMBER; hash = (53 * hash) + getOptionalSfixed32(); } if (hasOptionalSfixed64()) { hash = (37 * hash) + OPTIONAL_SFIXED64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOptionalSfixed64()); } if (hasOptionalFloat()) { hash = (37 * hash) + OPTIONAL_FLOAT_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getOptionalFloat()); } if (hasOptionalDouble()) { hash = (37 * hash) + OPTIONAL_DOUBLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getOptionalDouble())); } if (hasOptionalBool()) { hash = (37 * hash) + OPTIONAL_BOOL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getOptionalBool()); } if (hasOptionalString()) { hash = (37 * hash) + OPTIONAL_STRING_FIELD_NUMBER; hash = (53 * hash) + getOptionalString().hashCode(); } if (hasOptionalBytes()) { hash = (37 * hash) + OPTIONAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + getOptionalBytes().hashCode(); } if (hasOptionalGroup()) { hash = (37 * hash) + OPTIONALGROUP_FIELD_NUMBER; hash = (53 * hash) + getOptionalGroup().hashCode(); } if (hasOptionalNestedMessage()) { hash = (37 * hash) + OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getOptionalNestedMessage().hashCode(); } if (hasOptionalForeignMessage()) { hash = (37 * hash) + OPTIONAL_FOREIGN_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getOptionalForeignMessage().hashCode(); } if (hasOptionalImportMessage()) { hash = (37 * hash) + OPTIONAL_IMPORT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getOptionalImportMessage().hashCode(); } if (hasOptionalNestedEnum()) { hash = (37 * hash) + OPTIONAL_NESTED_ENUM_FIELD_NUMBER; hash = (53 * hash) + optionalNestedEnum_; } if (hasOptionalForeignEnum()) { hash = (37 * hash) + OPTIONAL_FOREIGN_ENUM_FIELD_NUMBER; hash = (53 * hash) + optionalForeignEnum_; } if (hasOptionalImportEnum()) { hash = (37 * hash) + OPTIONAL_IMPORT_ENUM_FIELD_NUMBER; hash = (53 * hash) + optionalImportEnum_; } if (hasOptionalStringPiece()) { hash = (37 * hash) + OPTIONAL_STRING_PIECE_FIELD_NUMBER; hash = (53 * hash) + getOptionalStringPiece().hashCode(); } if (hasOptionalCord()) { hash = (37 * hash) + OPTIONAL_CORD_FIELD_NUMBER; hash = (53 * hash) + getOptionalCord().hashCode(); } if (hasOptionalPublicImportMessage()) { hash = (37 * hash) + OPTIONAL_PUBLIC_IMPORT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getOptionalPublicImportMessage().hashCode(); } if (hasOptionalLazyMessage()) { hash = (37 * hash) + OPTIONAL_LAZY_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getOptionalLazyMessage().hashCode(); } if (hasOptionalUnverifiedLazyMessage()) { hash = (37 * hash) + OPTIONAL_UNVERIFIED_LAZY_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getOptionalUnverifiedLazyMessage().hashCode(); } if (getRepeatedInt32Count() > 0) { hash = (37 * hash) + REPEATED_INT32_FIELD_NUMBER; hash = (53 * hash) + getRepeatedInt32List().hashCode(); } if (getRepeatedInt64Count() > 0) { hash = (37 * hash) + REPEATED_INT64_FIELD_NUMBER; hash = (53 * hash) + getRepeatedInt64List().hashCode(); } if (getRepeatedUint32Count() > 0) { hash = (37 * hash) + REPEATED_UINT32_FIELD_NUMBER; hash = (53 * hash) + getRepeatedUint32List().hashCode(); } if (getRepeatedUint64Count() > 0) { hash = (37 * hash) + REPEATED_UINT64_FIELD_NUMBER; hash = (53 * hash) + getRepeatedUint64List().hashCode(); } if (getRepeatedSint32Count() > 0) { hash = (37 * hash) + REPEATED_SINT32_FIELD_NUMBER; hash = (53 * hash) + getRepeatedSint32List().hashCode(); } if (getRepeatedSint64Count() > 0) { hash = (37 * hash) + REPEATED_SINT64_FIELD_NUMBER; hash = (53 * hash) + getRepeatedSint64List().hashCode(); } if (getRepeatedFixed32Count() > 0) { hash = (37 * hash) + REPEATED_FIXED32_FIELD_NUMBER; hash = (53 * hash) + getRepeatedFixed32List().hashCode(); } if (getRepeatedFixed64Count() > 0) { hash = (37 * hash) + REPEATED_FIXED64_FIELD_NUMBER; hash = (53 * hash) + getRepeatedFixed64List().hashCode(); } if (getRepeatedSfixed32Count() > 0) { hash = (37 * hash) + REPEATED_SFIXED32_FIELD_NUMBER; hash = (53 * hash) + getRepeatedSfixed32List().hashCode(); } if (getRepeatedSfixed64Count() > 0) { hash = (37 * hash) + REPEATED_SFIXED64_FIELD_NUMBER; hash = (53 * hash) + getRepeatedSfixed64List().hashCode(); } if (getRepeatedFloatCount() > 0) { hash = (37 * hash) + REPEATED_FLOAT_FIELD_NUMBER; hash = (53 * hash) + getRepeatedFloatList().hashCode(); } if (getRepeatedDoubleCount() > 0) { hash = (37 * hash) + REPEATED_DOUBLE_FIELD_NUMBER; hash = (53 * hash) + getRepeatedDoubleList().hashCode(); } if (getRepeatedBoolCount() > 0) { hash = (37 * hash) + REPEATED_BOOL_FIELD_NUMBER; hash = (53 * hash) + getRepeatedBoolList().hashCode(); } if (getRepeatedStringCount() > 0) { hash = (37 * hash) + REPEATED_STRING_FIELD_NUMBER; hash = (53 * hash) + getRepeatedStringList().hashCode(); } if (getRepeatedBytesCount() > 0) { hash = (37 * hash) + REPEATED_BYTES_FIELD_NUMBER; hash = (53 * hash) + getRepeatedBytesList().hashCode(); } if (getRepeatedGroupCount() > 0) { hash = (37 * hash) + REPEATEDGROUP_FIELD_NUMBER; hash = (53 * hash) + getRepeatedGroupList().hashCode(); } if (getRepeatedNestedMessageCount() > 0) { hash = (37 * hash) + REPEATED_NESTED_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getRepeatedNestedMessageList().hashCode(); } if (getRepeatedForeignMessageCount() > 0) { hash = (37 * hash) + REPEATED_FOREIGN_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getRepeatedForeignMessageList().hashCode(); } if (getRepeatedImportMessageCount() > 0) { hash = (37 * hash) + REPEATED_IMPORT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getRepeatedImportMessageList().hashCode(); } if (getRepeatedNestedEnumCount() > 0) { hash = (37 * hash) + REPEATED_NESTED_ENUM_FIELD_NUMBER; hash = (53 * hash) + repeatedNestedEnum_.hashCode(); } if (getRepeatedForeignEnumCount() > 0) { hash = (37 * hash) + REPEATED_FOREIGN_ENUM_FIELD_NUMBER; hash = (53 * hash) + repeatedForeignEnum_.hashCode(); } if (getRepeatedImportEnumCount() > 0) { hash = (37 * hash) + REPEATED_IMPORT_ENUM_FIELD_NUMBER; hash = (53 * hash) + repeatedImportEnum_.hashCode(); } if (getRepeatedStringPieceCount() > 0) { hash = (37 * hash) + REPEATED_STRING_PIECE_FIELD_NUMBER; hash = (53 * hash) + getRepeatedStringPieceList().hashCode(); } if (getRepeatedCordCount() > 0) { hash = (37 * hash) + REPEATED_CORD_FIELD_NUMBER; hash = (53 * hash) + getRepeatedCordList().hashCode(); } if (getRepeatedLazyMessageCount() > 0) { hash = (37 * hash) + REPEATED_LAZY_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getRepeatedLazyMessageList().hashCode(); } if (hasDefaultInt32()) { hash = (37 * hash) + DEFAULT_INT32_FIELD_NUMBER; hash = (53 * hash) + getDefaultInt32(); } if (hasDefaultInt64()) { hash = (37 * hash) + DEFAULT_INT64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDefaultInt64()); } if (hasDefaultUint32()) { hash = (37 * hash) + DEFAULT_UINT32_FIELD_NUMBER; hash = (53 * hash) + getDefaultUint32(); } if (hasDefaultUint64()) { hash = (37 * hash) + DEFAULT_UINT64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDefaultUint64()); } if (hasDefaultSint32()) { hash = (37 * hash) + DEFAULT_SINT32_FIELD_NUMBER; hash = (53 * hash) + getDefaultSint32(); } if (hasDefaultSint64()) { hash = (37 * hash) + DEFAULT_SINT64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDefaultSint64()); } if (hasDefaultFixed32()) { hash = (37 * hash) + DEFAULT_FIXED32_FIELD_NUMBER; hash = (53 * hash) + getDefaultFixed32(); } if (hasDefaultFixed64()) { hash = (37 * hash) + DEFAULT_FIXED64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDefaultFixed64()); } if (hasDefaultSfixed32()) { hash = (37 * hash) + DEFAULT_SFIXED32_FIELD_NUMBER; hash = (53 * hash) + getDefaultSfixed32(); } if (hasDefaultSfixed64()) { hash = (37 * hash) + DEFAULT_SFIXED64_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDefaultSfixed64()); } if (hasDefaultFloat()) { hash = (37 * hash) + DEFAULT_FLOAT_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getDefaultFloat()); } if (hasDefaultDouble()) { hash = (37 * hash) + DEFAULT_DOUBLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDefaultDouble())); } if (hasDefaultBool()) { hash = (37 * hash) + DEFAULT_BOOL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDefaultBool()); } if (hasDefaultString()) { hash = (37 * hash) + DEFAULT_STRING_FIELD_NUMBER; hash = (53 * hash) + getDefaultString().hashCode(); } if (hasDefaultBytes()) { hash = (37 * hash) + DEFAULT_BYTES_FIELD_NUMBER; hash = (53 * hash) + getDefaultBytes().hashCode(); } if (hasDefaultNestedEnum()) { hash = (37 * hash) + DEFAULT_NESTED_ENUM_FIELD_NUMBER; hash = (53 * hash) + defaultNestedEnum_; } if (hasDefaultForeignEnum()) { hash = (37 * hash) + DEFAULT_FOREIGN_ENUM_FIELD_NUMBER; hash = (53 * hash) + defaultForeignEnum_; } if (hasDefaultImportEnum()) { hash = (37 * hash) + DEFAULT_IMPORT_ENUM_FIELD_NUMBER; hash = (53 * hash) + defaultImportEnum_; } if (hasDefaultStringPiece()) { hash = (37 * hash) + DEFAULT_STRING_PIECE_FIELD_NUMBER; hash = (53 * hash) + getDefaultStringPiece().hashCode(); } if (hasDefaultCord()) { hash = (37 * hash) + DEFAULT_CORD_FIELD_NUMBER; hash = (53 * hash) + getDefaultCord().hashCode(); } if (hasDeceptivelyNamedList()) { hash = (37 * hash) + DECEPTIVELY_NAMED_LIST_FIELD_NUMBER; hash = (53 * hash) + getDeceptivelyNamedList(); } switch (oneofFieldCase_) { case 111: hash = (37 * hash) + ONEOF_UINT32_FIELD_NUMBER; hash = (53 * hash) + getOneofUint32(); break; case 112: hash = (37 * hash) + ONEOF_NESTED_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getOneofNestedMessage().hashCode(); break; case 113: hash = (37 * hash) + ONEOF_STRING_FIELD_NUMBER; hash = (53 * hash) + getOneofString().hashCode(); break; case 114: hash = (37 * hash) + ONEOF_BYTES_FIELD_NUMBER; hash = (53 * hash) + getOneofBytes().hashCode(); break; case 115: hash = (37 * hash) + ONEOF_LAZY_NESTED_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getOneofLazyNestedMessage().hashCode(); break; case 117: hash = (37 * hash) + ONEOF_NESTED_MESSAGE2_FIELD_NUMBER; hash = (53 * hash) + getOneofNestedMessage2().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllTypesLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestAllTypesLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Same as TestAllTypes but with the lite runtime.
     * 
* * Protobuf type {@code proto2_unittest.TestAllTypesLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestAllTypesLite) com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllTypesLite.class, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestAllTypesLite.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionalGroupFieldBuilder(); getOptionalNestedMessageFieldBuilder(); getOptionalForeignMessageFieldBuilder(); getOptionalImportMessageFieldBuilder(); getOptionalPublicImportMessageFieldBuilder(); getOptionalLazyMessageFieldBuilder(); getOptionalUnverifiedLazyMessageFieldBuilder(); getRepeatedGroupFieldBuilder(); getRepeatedNestedMessageFieldBuilder(); getRepeatedForeignMessageFieldBuilder(); getRepeatedImportMessageFieldBuilder(); getRepeatedLazyMessageFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bitField1_ = 0; bitField2_ = 0; optionalInt32_ = 0; optionalInt64_ = 0L; optionalUint32_ = 0; optionalUint64_ = 0L; optionalSint32_ = 0; optionalSint64_ = 0L; optionalFixed32_ = 0; optionalFixed64_ = 0L; optionalSfixed32_ = 0; optionalSfixed64_ = 0L; optionalFloat_ = 0F; optionalDouble_ = 0D; optionalBool_ = false; optionalString_ = ""; optionalBytes_ = com.google.protobuf.ByteString.EMPTY; optionalGroup_ = null; if (optionalGroupBuilder_ != null) { optionalGroupBuilder_.dispose(); optionalGroupBuilder_ = null; } optionalNestedMessage_ = null; if (optionalNestedMessageBuilder_ != null) { optionalNestedMessageBuilder_.dispose(); optionalNestedMessageBuilder_ = null; } optionalForeignMessage_ = null; if (optionalForeignMessageBuilder_ != null) { optionalForeignMessageBuilder_.dispose(); optionalForeignMessageBuilder_ = null; } optionalImportMessage_ = null; if (optionalImportMessageBuilder_ != null) { optionalImportMessageBuilder_.dispose(); optionalImportMessageBuilder_ = null; } optionalNestedEnum_ = 1; optionalForeignEnum_ = 4; optionalImportEnum_ = 7; optionalStringPiece_ = ""; optionalCord_ = ""; optionalPublicImportMessage_ = null; if (optionalPublicImportMessageBuilder_ != null) { optionalPublicImportMessageBuilder_.dispose(); optionalPublicImportMessageBuilder_ = null; } optionalLazyMessage_ = null; if (optionalLazyMessageBuilder_ != null) { optionalLazyMessageBuilder_.dispose(); optionalLazyMessageBuilder_ = null; } optionalUnverifiedLazyMessage_ = null; if (optionalUnverifiedLazyMessageBuilder_ != null) { optionalUnverifiedLazyMessageBuilder_.dispose(); optionalUnverifiedLazyMessageBuilder_ = null; } repeatedInt32_ = emptyIntList(); repeatedInt64_ = emptyLongList(); repeatedUint32_ = emptyIntList(); repeatedUint64_ = emptyLongList(); repeatedSint32_ = emptyIntList(); repeatedSint64_ = emptyLongList(); repeatedFixed32_ = emptyIntList(); repeatedFixed64_ = emptyLongList(); repeatedSfixed32_ = emptyIntList(); repeatedSfixed64_ = emptyLongList(); repeatedFloat_ = emptyFloatList(); repeatedDouble_ = emptyDoubleList(); repeatedBool_ = emptyBooleanList(); repeatedString_ = com.google.protobuf.LazyStringArrayList.emptyList(); repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class); if (repeatedGroupBuilder_ == null) { repeatedGroup_ = java.util.Collections.emptyList(); } else { repeatedGroup_ = null; repeatedGroupBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000400); if (repeatedNestedMessageBuilder_ == null) { repeatedNestedMessage_ = java.util.Collections.emptyList(); } else { repeatedNestedMessage_ = null; repeatedNestedMessageBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000800); if (repeatedForeignMessageBuilder_ == null) { repeatedForeignMessage_ = java.util.Collections.emptyList(); } else { repeatedForeignMessage_ = null; repeatedForeignMessageBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00001000); if (repeatedImportMessageBuilder_ == null) { repeatedImportMessage_ = java.util.Collections.emptyList(); } else { repeatedImportMessage_ = null; repeatedImportMessageBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00002000); repeatedNestedEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00004000); repeatedForeignEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00008000); repeatedImportEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00010000); repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.emptyList(); repeatedCord_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (repeatedLazyMessageBuilder_ == null) { repeatedLazyMessage_ = java.util.Collections.emptyList(); } else { repeatedLazyMessage_ = null; repeatedLazyMessageBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00080000); defaultInt32_ = 41; defaultInt64_ = 42L; defaultUint32_ = 43; defaultUint64_ = 44L; defaultSint32_ = -45; defaultSint64_ = 46L; defaultFixed32_ = 47; defaultFixed64_ = 48L; defaultSfixed32_ = 49; defaultSfixed64_ = -50L; defaultFloat_ = 51.5F; defaultDouble_ = 52000D; defaultBool_ = true; defaultString_ = "hello"; defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world"); defaultNestedEnum_ = 2; defaultForeignEnum_ = 5; defaultImportEnum_ = 8; defaultStringPiece_ = "abc"; defaultCord_ = "123"; if (oneofNestedMessageBuilder_ != null) { oneofNestedMessageBuilder_.clear(); } if (oneofLazyNestedMessageBuilder_ != null) { oneofLazyNestedMessageBuilder_.clear(); } if (oneofNestedMessage2Builder_ != null) { oneofNestedMessage2Builder_.clear(); } deceptivelyNamedList_ = 0; oneofFieldCase_ = 0; oneofField_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllTypesLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite build() { com.google.protobuf.UnittestLite.TestAllTypesLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite buildPartial() { com.google.protobuf.UnittestLite.TestAllTypesLite result = new com.google.protobuf.UnittestLite.TestAllTypesLite(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } if (bitField1_ != 0) { buildPartial1(result); } if (bitField2_ != 0) { buildPartial2(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.protobuf.UnittestLite.TestAllTypesLite result) { if (repeatedGroupBuilder_ == null) { if (((bitField1_ & 0x00000400) != 0)) { repeatedGroup_ = java.util.Collections.unmodifiableList(repeatedGroup_); bitField1_ = (bitField1_ & ~0x00000400); } result.repeatedGroup_ = repeatedGroup_; } else { result.repeatedGroup_ = repeatedGroupBuilder_.build(); } if (repeatedNestedMessageBuilder_ == null) { if (((bitField1_ & 0x00000800) != 0)) { repeatedNestedMessage_ = java.util.Collections.unmodifiableList(repeatedNestedMessage_); bitField1_ = (bitField1_ & ~0x00000800); } result.repeatedNestedMessage_ = repeatedNestedMessage_; } else { result.repeatedNestedMessage_ = repeatedNestedMessageBuilder_.build(); } if (repeatedForeignMessageBuilder_ == null) { if (((bitField1_ & 0x00001000) != 0)) { repeatedForeignMessage_ = java.util.Collections.unmodifiableList(repeatedForeignMessage_); bitField1_ = (bitField1_ & ~0x00001000); } result.repeatedForeignMessage_ = repeatedForeignMessage_; } else { result.repeatedForeignMessage_ = repeatedForeignMessageBuilder_.build(); } if (repeatedImportMessageBuilder_ == null) { if (((bitField1_ & 0x00002000) != 0)) { repeatedImportMessage_ = java.util.Collections.unmodifiableList(repeatedImportMessage_); bitField1_ = (bitField1_ & ~0x00002000); } result.repeatedImportMessage_ = repeatedImportMessage_; } else { result.repeatedImportMessage_ = repeatedImportMessageBuilder_.build(); } if (((bitField1_ & 0x00004000) != 0)) { repeatedNestedEnum_ = java.util.Collections.unmodifiableList(repeatedNestedEnum_); bitField1_ = (bitField1_ & ~0x00004000); } result.repeatedNestedEnum_ = repeatedNestedEnum_; if (((bitField1_ & 0x00008000) != 0)) { repeatedForeignEnum_ = java.util.Collections.unmodifiableList(repeatedForeignEnum_); bitField1_ = (bitField1_ & ~0x00008000); } result.repeatedForeignEnum_ = repeatedForeignEnum_; if (((bitField1_ & 0x00010000) != 0)) { repeatedImportEnum_ = java.util.Collections.unmodifiableList(repeatedImportEnum_); bitField1_ = (bitField1_ & ~0x00010000); } result.repeatedImportEnum_ = repeatedImportEnum_; if (repeatedLazyMessageBuilder_ == null) { if (((bitField1_ & 0x00080000) != 0)) { repeatedLazyMessage_ = java.util.Collections.unmodifiableList(repeatedLazyMessage_); bitField1_ = (bitField1_ & ~0x00080000); } result.repeatedLazyMessage_ = repeatedLazyMessage_; } else { result.repeatedLazyMessage_ = repeatedLazyMessageBuilder_.build(); } } private void buildPartial0(com.google.protobuf.UnittestLite.TestAllTypesLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.optionalInt32_ = optionalInt32_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.optionalInt64_ = optionalInt64_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.optionalUint32_ = optionalUint32_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.optionalUint64_ = optionalUint64_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.optionalSint32_ = optionalSint32_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.optionalSint64_ = optionalSint64_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.optionalFixed32_ = optionalFixed32_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.optionalFixed64_ = optionalFixed64_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.optionalSfixed32_ = optionalSfixed32_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.optionalSfixed64_ = optionalSfixed64_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { result.optionalFloat_ = optionalFloat_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { result.optionalDouble_ = optionalDouble_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { result.optionalBool_ = optionalBool_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00002000) != 0)) { result.optionalString_ = optionalString_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00004000) != 0)) { result.optionalBytes_ = optionalBytes_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00008000) != 0)) { result.optionalGroup_ = optionalGroupBuilder_ == null ? optionalGroup_ : optionalGroupBuilder_.build(); to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00010000) != 0)) { result.optionalNestedMessage_ = optionalNestedMessageBuilder_ == null ? optionalNestedMessage_ : optionalNestedMessageBuilder_.build(); to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00020000) != 0)) { result.optionalForeignMessage_ = optionalForeignMessageBuilder_ == null ? optionalForeignMessage_ : optionalForeignMessageBuilder_.build(); to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00040000) != 0)) { result.optionalImportMessage_ = optionalImportMessageBuilder_ == null ? optionalImportMessage_ : optionalImportMessageBuilder_.build(); to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00080000) != 0)) { result.optionalNestedEnum_ = optionalNestedEnum_; to_bitField0_ |= 0x00080000; } if (((from_bitField0_ & 0x00100000) != 0)) { result.optionalForeignEnum_ = optionalForeignEnum_; to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x00200000) != 0)) { result.optionalImportEnum_ = optionalImportEnum_; to_bitField0_ |= 0x00200000; } if (((from_bitField0_ & 0x00400000) != 0)) { result.optionalStringPiece_ = optionalStringPiece_; to_bitField0_ |= 0x00400000; } if (((from_bitField0_ & 0x00800000) != 0)) { result.optionalCord_ = optionalCord_; to_bitField0_ |= 0x00800000; } if (((from_bitField0_ & 0x01000000) != 0)) { result.optionalPublicImportMessage_ = optionalPublicImportMessageBuilder_ == null ? optionalPublicImportMessage_ : optionalPublicImportMessageBuilder_.build(); to_bitField0_ |= 0x01000000; } if (((from_bitField0_ & 0x02000000) != 0)) { result.optionalLazyMessage_ = optionalLazyMessageBuilder_ == null ? optionalLazyMessage_ : optionalLazyMessageBuilder_.build(); to_bitField0_ |= 0x02000000; } if (((from_bitField0_ & 0x04000000) != 0)) { result.optionalUnverifiedLazyMessage_ = optionalUnverifiedLazyMessageBuilder_ == null ? optionalUnverifiedLazyMessage_ : optionalUnverifiedLazyMessageBuilder_.build(); to_bitField0_ |= 0x04000000; } if (((from_bitField0_ & 0x08000000) != 0)) { repeatedInt32_.makeImmutable(); result.repeatedInt32_ = repeatedInt32_; } if (((from_bitField0_ & 0x10000000) != 0)) { repeatedInt64_.makeImmutable(); result.repeatedInt64_ = repeatedInt64_; } if (((from_bitField0_ & 0x20000000) != 0)) { repeatedUint32_.makeImmutable(); result.repeatedUint32_ = repeatedUint32_; } if (((from_bitField0_ & 0x40000000) != 0)) { repeatedUint64_.makeImmutable(); result.repeatedUint64_ = repeatedUint64_; } if (((from_bitField0_ & 0x80000000) != 0)) { repeatedSint32_.makeImmutable(); result.repeatedSint32_ = repeatedSint32_; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.google.protobuf.UnittestLite.TestAllTypesLite result) { int from_bitField1_ = bitField1_; if (((from_bitField1_ & 0x00000001) != 0)) { repeatedSint64_.makeImmutable(); result.repeatedSint64_ = repeatedSint64_; } if (((from_bitField1_ & 0x00000002) != 0)) { repeatedFixed32_.makeImmutable(); result.repeatedFixed32_ = repeatedFixed32_; } if (((from_bitField1_ & 0x00000004) != 0)) { repeatedFixed64_.makeImmutable(); result.repeatedFixed64_ = repeatedFixed64_; } if (((from_bitField1_ & 0x00000008) != 0)) { repeatedSfixed32_.makeImmutable(); result.repeatedSfixed32_ = repeatedSfixed32_; } if (((from_bitField1_ & 0x00000010) != 0)) { repeatedSfixed64_.makeImmutable(); result.repeatedSfixed64_ = repeatedSfixed64_; } if (((from_bitField1_ & 0x00000020) != 0)) { repeatedFloat_.makeImmutable(); result.repeatedFloat_ = repeatedFloat_; } if (((from_bitField1_ & 0x00000040) != 0)) { repeatedDouble_.makeImmutable(); result.repeatedDouble_ = repeatedDouble_; } if (((from_bitField1_ & 0x00000080) != 0)) { repeatedBool_.makeImmutable(); result.repeatedBool_ = repeatedBool_; } if (((from_bitField1_ & 0x00000100) != 0)) { repeatedString_.makeImmutable(); result.repeatedString_ = repeatedString_; } if (((from_bitField1_ & 0x00000200) != 0)) { repeatedBytes_.makeImmutable(); result.repeatedBytes_ = repeatedBytes_; } if (((from_bitField1_ & 0x00020000) != 0)) { repeatedStringPiece_.makeImmutable(); result.repeatedStringPiece_ = repeatedStringPiece_; } if (((from_bitField1_ & 0x00040000) != 0)) { repeatedCord_.makeImmutable(); result.repeatedCord_ = repeatedCord_; } int to_bitField0_ = 0; if (((from_bitField1_ & 0x00100000) != 0)) { result.defaultInt32_ = defaultInt32_; to_bitField0_ |= 0x08000000; } if (((from_bitField1_ & 0x00200000) != 0)) { result.defaultInt64_ = defaultInt64_; to_bitField0_ |= 0x10000000; } if (((from_bitField1_ & 0x00400000) != 0)) { result.defaultUint32_ = defaultUint32_; to_bitField0_ |= 0x20000000; } if (((from_bitField1_ & 0x00800000) != 0)) { result.defaultUint64_ = defaultUint64_; to_bitField0_ |= 0x40000000; } if (((from_bitField1_ & 0x01000000) != 0)) { result.defaultSint32_ = defaultSint32_; to_bitField0_ |= 0x80000000; } int to_bitField1_ = 0; if (((from_bitField1_ & 0x02000000) != 0)) { result.defaultSint64_ = defaultSint64_; to_bitField1_ |= 0x00000001; } if (((from_bitField1_ & 0x04000000) != 0)) { result.defaultFixed32_ = defaultFixed32_; to_bitField1_ |= 0x00000002; } if (((from_bitField1_ & 0x08000000) != 0)) { result.defaultFixed64_ = defaultFixed64_; to_bitField1_ |= 0x00000004; } if (((from_bitField1_ & 0x10000000) != 0)) { result.defaultSfixed32_ = defaultSfixed32_; to_bitField1_ |= 0x00000008; } if (((from_bitField1_ & 0x20000000) != 0)) { result.defaultSfixed64_ = defaultSfixed64_; to_bitField1_ |= 0x00000010; } if (((from_bitField1_ & 0x40000000) != 0)) { result.defaultFloat_ = defaultFloat_; to_bitField1_ |= 0x00000020; } if (((from_bitField1_ & 0x80000000) != 0)) { result.defaultDouble_ = defaultDouble_; to_bitField1_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; } private void buildPartial2(com.google.protobuf.UnittestLite.TestAllTypesLite result) { int from_bitField2_ = bitField2_; int to_bitField1_ = 0; if (((from_bitField2_ & 0x00000001) != 0)) { result.defaultBool_ = defaultBool_; to_bitField1_ |= 0x00000080; } if (((from_bitField2_ & 0x00000002) != 0)) { result.defaultString_ = defaultString_; to_bitField1_ |= 0x00000100; } if (((from_bitField2_ & 0x00000004) != 0)) { result.defaultBytes_ = defaultBytes_; to_bitField1_ |= 0x00000200; } if (((from_bitField2_ & 0x00000008) != 0)) { result.defaultNestedEnum_ = defaultNestedEnum_; to_bitField1_ |= 0x00000400; } if (((from_bitField2_ & 0x00000010) != 0)) { result.defaultForeignEnum_ = defaultForeignEnum_; to_bitField1_ |= 0x00000800; } if (((from_bitField2_ & 0x00000020) != 0)) { result.defaultImportEnum_ = defaultImportEnum_; to_bitField1_ |= 0x00001000; } if (((from_bitField2_ & 0x00000040) != 0)) { result.defaultStringPiece_ = defaultStringPiece_; to_bitField1_ |= 0x00002000; } if (((from_bitField2_ & 0x00000080) != 0)) { result.defaultCord_ = defaultCord_; to_bitField1_ |= 0x00004000; } if (((from_bitField2_ & 0x00004000) != 0)) { result.deceptivelyNamedList_ = deceptivelyNamedList_; to_bitField1_ |= 0x00008000; } result.bitField1_ |= to_bitField1_; } private void buildPartialOneofs(com.google.protobuf.UnittestLite.TestAllTypesLite result) { result.oneofFieldCase_ = oneofFieldCase_; result.oneofField_ = this.oneofField_; if (oneofFieldCase_ == 112 && oneofNestedMessageBuilder_ != null) { result.oneofField_ = oneofNestedMessageBuilder_.build(); } if (oneofFieldCase_ == 115 && oneofLazyNestedMessageBuilder_ != null) { result.oneofField_ = oneofLazyNestedMessageBuilder_.build(); } if (oneofFieldCase_ == 117 && oneofNestedMessage2Builder_ != null) { result.oneofField_ = oneofNestedMessage2Builder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestAllTypesLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestAllTypesLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllTypesLite other) { if (other == com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()) return this; if (other.hasOptionalInt32()) { setOptionalInt32(other.getOptionalInt32()); } if (other.hasOptionalInt64()) { setOptionalInt64(other.getOptionalInt64()); } if (other.hasOptionalUint32()) { setOptionalUint32(other.getOptionalUint32()); } if (other.hasOptionalUint64()) { setOptionalUint64(other.getOptionalUint64()); } if (other.hasOptionalSint32()) { setOptionalSint32(other.getOptionalSint32()); } if (other.hasOptionalSint64()) { setOptionalSint64(other.getOptionalSint64()); } if (other.hasOptionalFixed32()) { setOptionalFixed32(other.getOptionalFixed32()); } if (other.hasOptionalFixed64()) { setOptionalFixed64(other.getOptionalFixed64()); } if (other.hasOptionalSfixed32()) { setOptionalSfixed32(other.getOptionalSfixed32()); } if (other.hasOptionalSfixed64()) { setOptionalSfixed64(other.getOptionalSfixed64()); } if (other.hasOptionalFloat()) { setOptionalFloat(other.getOptionalFloat()); } if (other.hasOptionalDouble()) { setOptionalDouble(other.getOptionalDouble()); } if (other.hasOptionalBool()) { setOptionalBool(other.getOptionalBool()); } if (other.hasOptionalString()) { optionalString_ = other.optionalString_; bitField0_ |= 0x00002000; onChanged(); } if (other.hasOptionalBytes()) { setOptionalBytes(other.getOptionalBytes()); } if (other.hasOptionalGroup()) { mergeOptionalGroup(other.getOptionalGroup()); } if (other.hasOptionalNestedMessage()) { mergeOptionalNestedMessage(other.getOptionalNestedMessage()); } if (other.hasOptionalForeignMessage()) { mergeOptionalForeignMessage(other.getOptionalForeignMessage()); } if (other.hasOptionalImportMessage()) { mergeOptionalImportMessage(other.getOptionalImportMessage()); } if (other.hasOptionalNestedEnum()) { setOptionalNestedEnum(other.getOptionalNestedEnum()); } if (other.hasOptionalForeignEnum()) { setOptionalForeignEnum(other.getOptionalForeignEnum()); } if (other.hasOptionalImportEnum()) { setOptionalImportEnum(other.getOptionalImportEnum()); } if (other.hasOptionalStringPiece()) { optionalStringPiece_ = other.optionalStringPiece_; bitField0_ |= 0x00400000; onChanged(); } if (other.hasOptionalCord()) { optionalCord_ = other.optionalCord_; bitField0_ |= 0x00800000; onChanged(); } if (other.hasOptionalPublicImportMessage()) { mergeOptionalPublicImportMessage(other.getOptionalPublicImportMessage()); } if (other.hasOptionalLazyMessage()) { mergeOptionalLazyMessage(other.getOptionalLazyMessage()); } if (other.hasOptionalUnverifiedLazyMessage()) { mergeOptionalUnverifiedLazyMessage(other.getOptionalUnverifiedLazyMessage()); } if (!other.repeatedInt32_.isEmpty()) { if (repeatedInt32_.isEmpty()) { repeatedInt32_ = other.repeatedInt32_; repeatedInt32_.makeImmutable(); bitField0_ |= 0x08000000; } else { ensureRepeatedInt32IsMutable(); repeatedInt32_.addAll(other.repeatedInt32_); } onChanged(); } if (!other.repeatedInt64_.isEmpty()) { if (repeatedInt64_.isEmpty()) { repeatedInt64_ = other.repeatedInt64_; repeatedInt64_.makeImmutable(); bitField0_ |= 0x10000000; } else { ensureRepeatedInt64IsMutable(); repeatedInt64_.addAll(other.repeatedInt64_); } onChanged(); } if (!other.repeatedUint32_.isEmpty()) { if (repeatedUint32_.isEmpty()) { repeatedUint32_ = other.repeatedUint32_; repeatedUint32_.makeImmutable(); bitField0_ |= 0x20000000; } else { ensureRepeatedUint32IsMutable(); repeatedUint32_.addAll(other.repeatedUint32_); } onChanged(); } if (!other.repeatedUint64_.isEmpty()) { if (repeatedUint64_.isEmpty()) { repeatedUint64_ = other.repeatedUint64_; repeatedUint64_.makeImmutable(); bitField0_ |= 0x40000000; } else { ensureRepeatedUint64IsMutable(); repeatedUint64_.addAll(other.repeatedUint64_); } onChanged(); } if (!other.repeatedSint32_.isEmpty()) { if (repeatedSint32_.isEmpty()) { repeatedSint32_ = other.repeatedSint32_; repeatedSint32_.makeImmutable(); bitField0_ |= 0x80000000; } else { ensureRepeatedSint32IsMutable(); repeatedSint32_.addAll(other.repeatedSint32_); } onChanged(); } if (!other.repeatedSint64_.isEmpty()) { if (repeatedSint64_.isEmpty()) { repeatedSint64_ = other.repeatedSint64_; repeatedSint64_.makeImmutable(); bitField1_ |= 0x00000001; } else { ensureRepeatedSint64IsMutable(); repeatedSint64_.addAll(other.repeatedSint64_); } onChanged(); } if (!other.repeatedFixed32_.isEmpty()) { if (repeatedFixed32_.isEmpty()) { repeatedFixed32_ = other.repeatedFixed32_; repeatedFixed32_.makeImmutable(); bitField1_ |= 0x00000002; } else { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addAll(other.repeatedFixed32_); } onChanged(); } if (!other.repeatedFixed64_.isEmpty()) { if (repeatedFixed64_.isEmpty()) { repeatedFixed64_ = other.repeatedFixed64_; repeatedFixed64_.makeImmutable(); bitField1_ |= 0x00000004; } else { ensureRepeatedFixed64IsMutable(); repeatedFixed64_.addAll(other.repeatedFixed64_); } onChanged(); } if (!other.repeatedSfixed32_.isEmpty()) { if (repeatedSfixed32_.isEmpty()) { repeatedSfixed32_ = other.repeatedSfixed32_; repeatedSfixed32_.makeImmutable(); bitField1_ |= 0x00000008; } else { ensureRepeatedSfixed32IsMutable(); repeatedSfixed32_.addAll(other.repeatedSfixed32_); } onChanged(); } if (!other.repeatedSfixed64_.isEmpty()) { if (repeatedSfixed64_.isEmpty()) { repeatedSfixed64_ = other.repeatedSfixed64_; repeatedSfixed64_.makeImmutable(); bitField1_ |= 0x00000010; } else { ensureRepeatedSfixed64IsMutable(); repeatedSfixed64_.addAll(other.repeatedSfixed64_); } onChanged(); } if (!other.repeatedFloat_.isEmpty()) { if (repeatedFloat_.isEmpty()) { repeatedFloat_ = other.repeatedFloat_; repeatedFloat_.makeImmutable(); bitField1_ |= 0x00000020; } else { ensureRepeatedFloatIsMutable(); repeatedFloat_.addAll(other.repeatedFloat_); } onChanged(); } if (!other.repeatedDouble_.isEmpty()) { if (repeatedDouble_.isEmpty()) { repeatedDouble_ = other.repeatedDouble_; repeatedDouble_.makeImmutable(); bitField1_ |= 0x00000040; } else { ensureRepeatedDoubleIsMutable(); repeatedDouble_.addAll(other.repeatedDouble_); } onChanged(); } if (!other.repeatedBool_.isEmpty()) { if (repeatedBool_.isEmpty()) { repeatedBool_ = other.repeatedBool_; repeatedBool_.makeImmutable(); bitField1_ |= 0x00000080; } else { ensureRepeatedBoolIsMutable(); repeatedBool_.addAll(other.repeatedBool_); } onChanged(); } if (!other.repeatedString_.isEmpty()) { if (repeatedString_.isEmpty()) { repeatedString_ = other.repeatedString_; bitField1_ |= 0x00000100; } else { ensureRepeatedStringIsMutable(); repeatedString_.addAll(other.repeatedString_); } onChanged(); } if (!other.repeatedBytes_.isEmpty()) { if (repeatedBytes_.isEmpty()) { repeatedBytes_ = other.repeatedBytes_; repeatedBytes_.makeImmutable(); bitField1_ |= 0x00000200; } else { ensureRepeatedBytesIsMutable(); repeatedBytes_.addAll(other.repeatedBytes_); } onChanged(); } if (repeatedGroupBuilder_ == null) { if (!other.repeatedGroup_.isEmpty()) { if (repeatedGroup_.isEmpty()) { repeatedGroup_ = other.repeatedGroup_; bitField1_ = (bitField1_ & ~0x00000400); } else { ensureRepeatedGroupIsMutable(); repeatedGroup_.addAll(other.repeatedGroup_); } onChanged(); } } else { if (!other.repeatedGroup_.isEmpty()) { if (repeatedGroupBuilder_.isEmpty()) { repeatedGroupBuilder_.dispose(); repeatedGroupBuilder_ = null; repeatedGroup_ = other.repeatedGroup_; bitField1_ = (bitField1_ & ~0x00000400); repeatedGroupBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepeatedGroupFieldBuilder() : null; } else { repeatedGroupBuilder_.addAllMessages(other.repeatedGroup_); } } } if (repeatedNestedMessageBuilder_ == null) { if (!other.repeatedNestedMessage_.isEmpty()) { if (repeatedNestedMessage_.isEmpty()) { repeatedNestedMessage_ = other.repeatedNestedMessage_; bitField1_ = (bitField1_ & ~0x00000800); } else { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.addAll(other.repeatedNestedMessage_); } onChanged(); } } else { if (!other.repeatedNestedMessage_.isEmpty()) { if (repeatedNestedMessageBuilder_.isEmpty()) { repeatedNestedMessageBuilder_.dispose(); repeatedNestedMessageBuilder_ = null; repeatedNestedMessage_ = other.repeatedNestedMessage_; bitField1_ = (bitField1_ & ~0x00000800); repeatedNestedMessageBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepeatedNestedMessageFieldBuilder() : null; } else { repeatedNestedMessageBuilder_.addAllMessages(other.repeatedNestedMessage_); } } } if (repeatedForeignMessageBuilder_ == null) { if (!other.repeatedForeignMessage_.isEmpty()) { if (repeatedForeignMessage_.isEmpty()) { repeatedForeignMessage_ = other.repeatedForeignMessage_; bitField1_ = (bitField1_ & ~0x00001000); } else { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.addAll(other.repeatedForeignMessage_); } onChanged(); } } else { if (!other.repeatedForeignMessage_.isEmpty()) { if (repeatedForeignMessageBuilder_.isEmpty()) { repeatedForeignMessageBuilder_.dispose(); repeatedForeignMessageBuilder_ = null; repeatedForeignMessage_ = other.repeatedForeignMessage_; bitField1_ = (bitField1_ & ~0x00001000); repeatedForeignMessageBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepeatedForeignMessageFieldBuilder() : null; } else { repeatedForeignMessageBuilder_.addAllMessages(other.repeatedForeignMessage_); } } } if (repeatedImportMessageBuilder_ == null) { if (!other.repeatedImportMessage_.isEmpty()) { if (repeatedImportMessage_.isEmpty()) { repeatedImportMessage_ = other.repeatedImportMessage_; bitField1_ = (bitField1_ & ~0x00002000); } else { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.addAll(other.repeatedImportMessage_); } onChanged(); } } else { if (!other.repeatedImportMessage_.isEmpty()) { if (repeatedImportMessageBuilder_.isEmpty()) { repeatedImportMessageBuilder_.dispose(); repeatedImportMessageBuilder_ = null; repeatedImportMessage_ = other.repeatedImportMessage_; bitField1_ = (bitField1_ & ~0x00002000); repeatedImportMessageBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepeatedImportMessageFieldBuilder() : null; } else { repeatedImportMessageBuilder_.addAllMessages(other.repeatedImportMessage_); } } } if (!other.repeatedNestedEnum_.isEmpty()) { if (repeatedNestedEnum_.isEmpty()) { repeatedNestedEnum_ = other.repeatedNestedEnum_; bitField1_ = (bitField1_ & ~0x00004000); } else { ensureRepeatedNestedEnumIsMutable(); repeatedNestedEnum_.addAll(other.repeatedNestedEnum_); } onChanged(); } if (!other.repeatedForeignEnum_.isEmpty()) { if (repeatedForeignEnum_.isEmpty()) { repeatedForeignEnum_ = other.repeatedForeignEnum_; bitField1_ = (bitField1_ & ~0x00008000); } else { ensureRepeatedForeignEnumIsMutable(); repeatedForeignEnum_.addAll(other.repeatedForeignEnum_); } onChanged(); } if (!other.repeatedImportEnum_.isEmpty()) { if (repeatedImportEnum_.isEmpty()) { repeatedImportEnum_ = other.repeatedImportEnum_; bitField1_ = (bitField1_ & ~0x00010000); } else { ensureRepeatedImportEnumIsMutable(); repeatedImportEnum_.addAll(other.repeatedImportEnum_); } onChanged(); } if (!other.repeatedStringPiece_.isEmpty()) { if (repeatedStringPiece_.isEmpty()) { repeatedStringPiece_ = other.repeatedStringPiece_; bitField1_ |= 0x00020000; } else { ensureRepeatedStringPieceIsMutable(); repeatedStringPiece_.addAll(other.repeatedStringPiece_); } onChanged(); } if (!other.repeatedCord_.isEmpty()) { if (repeatedCord_.isEmpty()) { repeatedCord_ = other.repeatedCord_; bitField1_ |= 0x00040000; } else { ensureRepeatedCordIsMutable(); repeatedCord_.addAll(other.repeatedCord_); } onChanged(); } if (repeatedLazyMessageBuilder_ == null) { if (!other.repeatedLazyMessage_.isEmpty()) { if (repeatedLazyMessage_.isEmpty()) { repeatedLazyMessage_ = other.repeatedLazyMessage_; bitField1_ = (bitField1_ & ~0x00080000); } else { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.addAll(other.repeatedLazyMessage_); } onChanged(); } } else { if (!other.repeatedLazyMessage_.isEmpty()) { if (repeatedLazyMessageBuilder_.isEmpty()) { repeatedLazyMessageBuilder_.dispose(); repeatedLazyMessageBuilder_ = null; repeatedLazyMessage_ = other.repeatedLazyMessage_; bitField1_ = (bitField1_ & ~0x00080000); repeatedLazyMessageBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepeatedLazyMessageFieldBuilder() : null; } else { repeatedLazyMessageBuilder_.addAllMessages(other.repeatedLazyMessage_); } } } if (other.hasDefaultInt32()) { setDefaultInt32(other.getDefaultInt32()); } if (other.hasDefaultInt64()) { setDefaultInt64(other.getDefaultInt64()); } if (other.hasDefaultUint32()) { setDefaultUint32(other.getDefaultUint32()); } if (other.hasDefaultUint64()) { setDefaultUint64(other.getDefaultUint64()); } if (other.hasDefaultSint32()) { setDefaultSint32(other.getDefaultSint32()); } if (other.hasDefaultSint64()) { setDefaultSint64(other.getDefaultSint64()); } if (other.hasDefaultFixed32()) { setDefaultFixed32(other.getDefaultFixed32()); } if (other.hasDefaultFixed64()) { setDefaultFixed64(other.getDefaultFixed64()); } if (other.hasDefaultSfixed32()) { setDefaultSfixed32(other.getDefaultSfixed32()); } if (other.hasDefaultSfixed64()) { setDefaultSfixed64(other.getDefaultSfixed64()); } if (other.hasDefaultFloat()) { setDefaultFloat(other.getDefaultFloat()); } if (other.hasDefaultDouble()) { setDefaultDouble(other.getDefaultDouble()); } if (other.hasDefaultBool()) { setDefaultBool(other.getDefaultBool()); } if (other.hasDefaultString()) { defaultString_ = other.defaultString_; bitField2_ |= 0x00000002; onChanged(); } if (other.hasDefaultBytes()) { setDefaultBytes(other.getDefaultBytes()); } if (other.hasDefaultNestedEnum()) { setDefaultNestedEnum(other.getDefaultNestedEnum()); } if (other.hasDefaultForeignEnum()) { setDefaultForeignEnum(other.getDefaultForeignEnum()); } if (other.hasDefaultImportEnum()) { setDefaultImportEnum(other.getDefaultImportEnum()); } if (other.hasDefaultStringPiece()) { defaultStringPiece_ = other.defaultStringPiece_; bitField2_ |= 0x00000040; onChanged(); } if (other.hasDefaultCord()) { defaultCord_ = other.defaultCord_; bitField2_ |= 0x00000080; onChanged(); } if (other.hasDeceptivelyNamedList()) { setDeceptivelyNamedList(other.getDeceptivelyNamedList()); } switch (other.getOneofFieldCase()) { case ONEOF_UINT32: { setOneofUint32(other.getOneofUint32()); break; } case ONEOF_NESTED_MESSAGE: { mergeOneofNestedMessage(other.getOneofNestedMessage()); break; } case ONEOF_STRING: { oneofFieldCase_ = 113; oneofField_ = other.oneofField_; onChanged(); break; } case ONEOF_BYTES: { setOneofBytes(other.getOneofBytes()); break; } case ONEOF_LAZY_NESTED_MESSAGE: { mergeOneofLazyNestedMessage(other.getOneofLazyNestedMessage()); break; } case ONEOF_NESTED_MESSAGE2: { mergeOneofNestedMessage2(other.getOneofNestedMessage2()); break; } case ONEOFFIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { optionalInt32_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { optionalInt64_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { optionalUint32_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { optionalUint64_ = input.readUInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { optionalSint32_ = input.readSInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { optionalSint64_ = input.readSInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 61: { optionalFixed32_ = input.readFixed32(); bitField0_ |= 0x00000040; break; } // case 61 case 65: { optionalFixed64_ = input.readFixed64(); bitField0_ |= 0x00000080; break; } // case 65 case 77: { optionalSfixed32_ = input.readSFixed32(); bitField0_ |= 0x00000100; break; } // case 77 case 81: { optionalSfixed64_ = input.readSFixed64(); bitField0_ |= 0x00000200; break; } // case 81 case 93: { optionalFloat_ = input.readFloat(); bitField0_ |= 0x00000400; break; } // case 93 case 97: { optionalDouble_ = input.readDouble(); bitField0_ |= 0x00000800; break; } // case 97 case 104: { optionalBool_ = input.readBool(); bitField0_ |= 0x00001000; break; } // case 104 case 114: { optionalString_ = input.readBytes(); bitField0_ |= 0x00002000; break; } // case 114 case 122: { optionalBytes_ = input.readBytes(); bitField0_ |= 0x00004000; break; } // case 122 case 131: { input.readGroup(16, getOptionalGroupFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 131 case 146: { input.readMessage( getOptionalNestedMessageFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00010000; break; } // case 146 case 154: { input.readMessage( getOptionalForeignMessageFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00020000; break; } // case 154 case 162: { input.readMessage( getOptionalImportMessageFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00040000; break; } // case 162 case 168: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum tmpValue = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(21, tmpRaw); } else { optionalNestedEnum_ = tmpRaw; bitField0_ |= 0x00080000; } break; } // case 168 case 176: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(22, tmpRaw); } else { optionalForeignEnum_ = tmpRaw; bitField0_ |= 0x00100000; } break; } // case 176 case 184: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestImportLite.ImportEnumLite tmpValue = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(23, tmpRaw); } else { optionalImportEnum_ = tmpRaw; bitField0_ |= 0x00200000; } break; } // case 184 case 194: { optionalStringPiece_ = input.readBytes(); bitField0_ |= 0x00400000; break; } // case 194 case 202: { optionalCord_ = input.readBytes(); bitField0_ |= 0x00800000; break; } // case 202 case 210: { input.readMessage( getOptionalPublicImportMessageFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x01000000; break; } // case 210 case 218: { input.readMessage( getOptionalLazyMessageFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x02000000; break; } // case 218 case 226: { input.readMessage( getOptionalUnverifiedLazyMessageFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x04000000; break; } // case 226 case 248: { int v = input.readInt32(); ensureRepeatedInt32IsMutable(); repeatedInt32_.addInt(v); break; } // case 248 case 250: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRepeatedInt32IsMutable(); while (input.getBytesUntilLimit() > 0) { repeatedInt32_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 250 case 256: { long v = input.readInt64(); ensureRepeatedInt64IsMutable(); repeatedInt64_.addLong(v); break; } // case 256 case 258: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRepeatedInt64IsMutable(); while (input.getBytesUntilLimit() > 0) { repeatedInt64_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 258 case 264: { int v = input.readUInt32(); ensureRepeatedUint32IsMutable(); repeatedUint32_.addInt(v); break; } // case 264 case 266: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRepeatedUint32IsMutable(); while (input.getBytesUntilLimit() > 0) { repeatedUint32_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 266 case 272: { long v = input.readUInt64(); ensureRepeatedUint64IsMutable(); repeatedUint64_.addLong(v); break; } // case 272 case 274: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRepeatedUint64IsMutable(); while (input.getBytesUntilLimit() > 0) { repeatedUint64_.addLong(input.readUInt64()); } input.popLimit(limit); break; } // case 274 case 280: { int v = input.readSInt32(); ensureRepeatedSint32IsMutable(); repeatedSint32_.addInt(v); break; } // case 280 case 282: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRepeatedSint32IsMutable(); while (input.getBytesUntilLimit() > 0) { repeatedSint32_.addInt(input.readSInt32()); } input.popLimit(limit); break; } // case 282 case 288: { long v = input.readSInt64(); ensureRepeatedSint64IsMutable(); repeatedSint64_.addLong(v); break; } // case 288 case 290: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRepeatedSint64IsMutable(); while (input.getBytesUntilLimit() > 0) { repeatedSint64_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 290 case 301: { int v = input.readFixed32(); ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addInt(v); break; } // case 301 case 298: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureRepeatedFixed32IsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { repeatedFixed32_.addInt(input.readFixed32()); } input.popLimit(limit); break; } // case 298 case 305: { long v = input.readFixed64(); ensureRepeatedFixed64IsMutable(); repeatedFixed64_.addLong(v); break; } // case 305 case 306: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureRepeatedFixed64IsMutable(alloc / 8); while (input.getBytesUntilLimit() > 0) { repeatedFixed64_.addLong(input.readFixed64()); } input.popLimit(limit); break; } // case 306 case 317: { int v = input.readSFixed32(); ensureRepeatedSfixed32IsMutable(); repeatedSfixed32_.addInt(v); break; } // case 317 case 314: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureRepeatedSfixed32IsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { repeatedSfixed32_.addInt(input.readSFixed32()); } input.popLimit(limit); break; } // case 314 case 321: { long v = input.readSFixed64(); ensureRepeatedSfixed64IsMutable(); repeatedSfixed64_.addLong(v); break; } // case 321 case 322: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureRepeatedSfixed64IsMutable(alloc / 8); while (input.getBytesUntilLimit() > 0) { repeatedSfixed64_.addLong(input.readSFixed64()); } input.popLimit(limit); break; } // case 322 case 333: { float v = input.readFloat(); ensureRepeatedFloatIsMutable(); repeatedFloat_.addFloat(v); break; } // case 333 case 330: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureRepeatedFloatIsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { repeatedFloat_.addFloat(input.readFloat()); } input.popLimit(limit); break; } // case 330 case 337: { double v = input.readDouble(); ensureRepeatedDoubleIsMutable(); repeatedDouble_.addDouble(v); break; } // case 337 case 338: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureRepeatedDoubleIsMutable(alloc / 8); while (input.getBytesUntilLimit() > 0) { repeatedDouble_.addDouble(input.readDouble()); } input.popLimit(limit); break; } // case 338 case 344: { boolean v = input.readBool(); ensureRepeatedBoolIsMutable(); repeatedBool_.addBoolean(v); break; } // case 344 case 346: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureRepeatedBoolIsMutable(alloc / 1); while (input.getBytesUntilLimit() > 0) { repeatedBool_.addBoolean(input.readBool()); } input.popLimit(limit); break; } // case 346 case 354: { com.google.protobuf.ByteString bs = input.readBytes(); ensureRepeatedStringIsMutable(); repeatedString_.add(bs); break; } // case 354 case 362: { com.google.protobuf.ByteString v = input.readBytes(); ensureRepeatedBytesIsMutable(); repeatedBytes_.add(v); break; } // case 362 case 371: { com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup m = input.readGroup(46, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.PARSER, extensionRegistry); if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.add(m); } else { repeatedGroupBuilder_.addMessage(m); } break; } // case 371 case 386: { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage m = input.readMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.PARSER, extensionRegistry); if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.add(m); } else { repeatedNestedMessageBuilder_.addMessage(m); } break; } // case 386 case 394: { com.google.protobuf.UnittestLite.ForeignMessageLite m = input.readMessage( com.google.protobuf.UnittestLite.ForeignMessageLite.PARSER, extensionRegistry); if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.add(m); } else { repeatedForeignMessageBuilder_.addMessage(m); } break; } // case 394 case 402: { com.google.protobuf.UnittestImportLite.ImportMessageLite m = input.readMessage( com.google.protobuf.UnittestImportLite.ImportMessageLite.PARSER, extensionRegistry); if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.add(m); } else { repeatedImportMessageBuilder_.addMessage(m); } break; } // case 402 case 408: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum tmpValue = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(51, tmpRaw); } else { ensureRepeatedNestedEnumIsMutable(); repeatedNestedEnum_.add(tmpRaw); } break; } // case 408 case 410: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum tmpValue = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(51, tmpRaw); } else { ensureRepeatedNestedEnumIsMutable(); repeatedNestedEnum_.add(tmpRaw); } } input.popLimit(oldLimit); break; } // case 410 case 416: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(52, tmpRaw); } else { ensureRepeatedForeignEnumIsMutable(); repeatedForeignEnum_.add(tmpRaw); } break; } // case 416 case 418: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(52, tmpRaw); } else { ensureRepeatedForeignEnumIsMutable(); repeatedForeignEnum_.add(tmpRaw); } } input.popLimit(oldLimit); break; } // case 418 case 424: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestImportLite.ImportEnumLite tmpValue = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(53, tmpRaw); } else { ensureRepeatedImportEnumIsMutable(); repeatedImportEnum_.add(tmpRaw); } break; } // case 424 case 426: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestImportLite.ImportEnumLite tmpValue = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(53, tmpRaw); } else { ensureRepeatedImportEnumIsMutable(); repeatedImportEnum_.add(tmpRaw); } } input.popLimit(oldLimit); break; } // case 426 case 434: { com.google.protobuf.ByteString bs = input.readBytes(); ensureRepeatedStringPieceIsMutable(); repeatedStringPiece_.add(bs); break; } // case 434 case 442: { com.google.protobuf.ByteString bs = input.readBytes(); ensureRepeatedCordIsMutable(); repeatedCord_.add(bs); break; } // case 442 case 458: { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage m = input.readMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.PARSER, extensionRegistry); if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.add(m); } else { repeatedLazyMessageBuilder_.addMessage(m); } break; } // case 458 case 488: { defaultInt32_ = input.readInt32(); bitField1_ |= 0x00100000; break; } // case 488 case 496: { defaultInt64_ = input.readInt64(); bitField1_ |= 0x00200000; break; } // case 496 case 504: { defaultUint32_ = input.readUInt32(); bitField1_ |= 0x00400000; break; } // case 504 case 512: { defaultUint64_ = input.readUInt64(); bitField1_ |= 0x00800000; break; } // case 512 case 520: { defaultSint32_ = input.readSInt32(); bitField1_ |= 0x01000000; break; } // case 520 case 528: { defaultSint64_ = input.readSInt64(); bitField1_ |= 0x02000000; break; } // case 528 case 541: { defaultFixed32_ = input.readFixed32(); bitField1_ |= 0x04000000; break; } // case 541 case 545: { defaultFixed64_ = input.readFixed64(); bitField1_ |= 0x08000000; break; } // case 545 case 557: { defaultSfixed32_ = input.readSFixed32(); bitField1_ |= 0x10000000; break; } // case 557 case 561: { defaultSfixed64_ = input.readSFixed64(); bitField1_ |= 0x20000000; break; } // case 561 case 573: { defaultFloat_ = input.readFloat(); bitField1_ |= 0x40000000; break; } // case 573 case 577: { defaultDouble_ = input.readDouble(); bitField1_ |= 0x80000000; break; } // case 577 case 584: { defaultBool_ = input.readBool(); bitField2_ |= 0x00000001; break; } // case 584 case 594: { defaultString_ = input.readBytes(); bitField2_ |= 0x00000002; break; } // case 594 case 602: { defaultBytes_ = input.readBytes(); bitField2_ |= 0x00000004; break; } // case 602 case 648: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum tmpValue = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(81, tmpRaw); } else { defaultNestedEnum_ = tmpRaw; bitField2_ |= 0x00000008; } break; } // case 648 case 656: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(82, tmpRaw); } else { defaultForeignEnum_ = tmpRaw; bitField2_ |= 0x00000010; } break; } // case 656 case 664: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestImportLite.ImportEnumLite tmpValue = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(83, tmpRaw); } else { defaultImportEnum_ = tmpRaw; bitField2_ |= 0x00000020; } break; } // case 664 case 674: { defaultStringPiece_ = input.readBytes(); bitField2_ |= 0x00000040; break; } // case 674 case 682: { defaultCord_ = input.readBytes(); bitField2_ |= 0x00000080; break; } // case 682 case 888: { oneofField_ = input.readUInt32(); oneofFieldCase_ = 111; break; } // case 888 case 898: { input.readMessage( getOneofNestedMessageFieldBuilder().getBuilder(), extensionRegistry); oneofFieldCase_ = 112; break; } // case 898 case 906: { com.google.protobuf.ByteString bs = input.readBytes(); oneofFieldCase_ = 113; oneofField_ = bs; break; } // case 906 case 914: { oneofField_ = input.readBytes(); oneofFieldCase_ = 114; break; } // case 914 case 922: { input.readMessage( getOneofLazyNestedMessageFieldBuilder().getBuilder(), extensionRegistry); oneofFieldCase_ = 115; break; } // case 922 case 928: { deceptivelyNamedList_ = input.readInt32(); bitField2_ |= 0x00004000; break; } // case 928 case 938: { input.readMessage( getOneofNestedMessage2FieldBuilder().getBuilder(), extensionRegistry); oneofFieldCase_ = 117; break; } // case 938 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int oneofFieldCase_ = 0; private java.lang.Object oneofField_; public OneofFieldCase getOneofFieldCase() { return OneofFieldCase.forNumber( oneofFieldCase_); } public Builder clearOneofField() { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); return this; } private int bitField0_; private int bitField1_; private int bitField2_; private int optionalInt32_ ; /** *
       * Singular
       * 
* * optional int32 optional_int32 = 1; * @return Whether the optionalInt32 field is set. */ @java.lang.Override public boolean hasOptionalInt32() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Singular
       * 
* * optional int32 optional_int32 = 1; * @return The optionalInt32. */ @java.lang.Override public int getOptionalInt32() { return optionalInt32_; } /** *
       * Singular
       * 
* * optional int32 optional_int32 = 1; * @param value The optionalInt32 to set. * @return This builder for chaining. */ public Builder setOptionalInt32(int value) { optionalInt32_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Singular
       * 
* * optional int32 optional_int32 = 1; * @return This builder for chaining. */ public Builder clearOptionalInt32() { bitField0_ = (bitField0_ & ~0x00000001); optionalInt32_ = 0; onChanged(); return this; } private long optionalInt64_ ; /** * optional int64 optional_int64 = 2; * @return Whether the optionalInt64 field is set. */ @java.lang.Override public boolean hasOptionalInt64() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 optional_int64 = 2; * @return The optionalInt64. */ @java.lang.Override public long getOptionalInt64() { return optionalInt64_; } /** * optional int64 optional_int64 = 2; * @param value The optionalInt64 to set. * @return This builder for chaining. */ public Builder setOptionalInt64(long value) { optionalInt64_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int64 optional_int64 = 2; * @return This builder for chaining. */ public Builder clearOptionalInt64() { bitField0_ = (bitField0_ & ~0x00000002); optionalInt64_ = 0L; onChanged(); return this; } private int optionalUint32_ ; /** * optional uint32 optional_uint32 = 3; * @return Whether the optionalUint32 field is set. */ @java.lang.Override public boolean hasOptionalUint32() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 optional_uint32 = 3; * @return The optionalUint32. */ @java.lang.Override public int getOptionalUint32() { return optionalUint32_; } /** * optional uint32 optional_uint32 = 3; * @param value The optionalUint32 to set. * @return This builder for chaining. */ public Builder setOptionalUint32(int value) { optionalUint32_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional uint32 optional_uint32 = 3; * @return This builder for chaining. */ public Builder clearOptionalUint32() { bitField0_ = (bitField0_ & ~0x00000004); optionalUint32_ = 0; onChanged(); return this; } private long optionalUint64_ ; /** * optional uint64 optional_uint64 = 4; * @return Whether the optionalUint64 field is set. */ @java.lang.Override public boolean hasOptionalUint64() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint64 optional_uint64 = 4; * @return The optionalUint64. */ @java.lang.Override public long getOptionalUint64() { return optionalUint64_; } /** * optional uint64 optional_uint64 = 4; * @param value The optionalUint64 to set. * @return This builder for chaining. */ public Builder setOptionalUint64(long value) { optionalUint64_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional uint64 optional_uint64 = 4; * @return This builder for chaining. */ public Builder clearOptionalUint64() { bitField0_ = (bitField0_ & ~0x00000008); optionalUint64_ = 0L; onChanged(); return this; } private int optionalSint32_ ; /** * optional sint32 optional_sint32 = 5; * @return Whether the optionalSint32 field is set. */ @java.lang.Override public boolean hasOptionalSint32() { return ((bitField0_ & 0x00000010) != 0); } /** * optional sint32 optional_sint32 = 5; * @return The optionalSint32. */ @java.lang.Override public int getOptionalSint32() { return optionalSint32_; } /** * optional sint32 optional_sint32 = 5; * @param value The optionalSint32 to set. * @return This builder for chaining. */ public Builder setOptionalSint32(int value) { optionalSint32_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional sint32 optional_sint32 = 5; * @return This builder for chaining. */ public Builder clearOptionalSint32() { bitField0_ = (bitField0_ & ~0x00000010); optionalSint32_ = 0; onChanged(); return this; } private long optionalSint64_ ; /** * optional sint64 optional_sint64 = 6; * @return Whether the optionalSint64 field is set. */ @java.lang.Override public boolean hasOptionalSint64() { return ((bitField0_ & 0x00000020) != 0); } /** * optional sint64 optional_sint64 = 6; * @return The optionalSint64. */ @java.lang.Override public long getOptionalSint64() { return optionalSint64_; } /** * optional sint64 optional_sint64 = 6; * @param value The optionalSint64 to set. * @return This builder for chaining. */ public Builder setOptionalSint64(long value) { optionalSint64_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional sint64 optional_sint64 = 6; * @return This builder for chaining. */ public Builder clearOptionalSint64() { bitField0_ = (bitField0_ & ~0x00000020); optionalSint64_ = 0L; onChanged(); return this; } private int optionalFixed32_ ; /** * optional fixed32 optional_fixed32 = 7; * @return Whether the optionalFixed32 field is set. */ @java.lang.Override public boolean hasOptionalFixed32() { return ((bitField0_ & 0x00000040) != 0); } /** * optional fixed32 optional_fixed32 = 7; * @return The optionalFixed32. */ @java.lang.Override public int getOptionalFixed32() { return optionalFixed32_; } /** * optional fixed32 optional_fixed32 = 7; * @param value The optionalFixed32 to set. * @return This builder for chaining. */ public Builder setOptionalFixed32(int value) { optionalFixed32_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional fixed32 optional_fixed32 = 7; * @return This builder for chaining. */ public Builder clearOptionalFixed32() { bitField0_ = (bitField0_ & ~0x00000040); optionalFixed32_ = 0; onChanged(); return this; } private long optionalFixed64_ ; /** * optional fixed64 optional_fixed64 = 8; * @return Whether the optionalFixed64 field is set. */ @java.lang.Override public boolean hasOptionalFixed64() { return ((bitField0_ & 0x00000080) != 0); } /** * optional fixed64 optional_fixed64 = 8; * @return The optionalFixed64. */ @java.lang.Override public long getOptionalFixed64() { return optionalFixed64_; } /** * optional fixed64 optional_fixed64 = 8; * @param value The optionalFixed64 to set. * @return This builder for chaining. */ public Builder setOptionalFixed64(long value) { optionalFixed64_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional fixed64 optional_fixed64 = 8; * @return This builder for chaining. */ public Builder clearOptionalFixed64() { bitField0_ = (bitField0_ & ~0x00000080); optionalFixed64_ = 0L; onChanged(); return this; } private int optionalSfixed32_ ; /** * optional sfixed32 optional_sfixed32 = 9; * @return Whether the optionalSfixed32 field is set. */ @java.lang.Override public boolean hasOptionalSfixed32() { return ((bitField0_ & 0x00000100) != 0); } /** * optional sfixed32 optional_sfixed32 = 9; * @return The optionalSfixed32. */ @java.lang.Override public int getOptionalSfixed32() { return optionalSfixed32_; } /** * optional sfixed32 optional_sfixed32 = 9; * @param value The optionalSfixed32 to set. * @return This builder for chaining. */ public Builder setOptionalSfixed32(int value) { optionalSfixed32_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional sfixed32 optional_sfixed32 = 9; * @return This builder for chaining. */ public Builder clearOptionalSfixed32() { bitField0_ = (bitField0_ & ~0x00000100); optionalSfixed32_ = 0; onChanged(); return this; } private long optionalSfixed64_ ; /** * optional sfixed64 optional_sfixed64 = 10; * @return Whether the optionalSfixed64 field is set. */ @java.lang.Override public boolean hasOptionalSfixed64() { return ((bitField0_ & 0x00000200) != 0); } /** * optional sfixed64 optional_sfixed64 = 10; * @return The optionalSfixed64. */ @java.lang.Override public long getOptionalSfixed64() { return optionalSfixed64_; } /** * optional sfixed64 optional_sfixed64 = 10; * @param value The optionalSfixed64 to set. * @return This builder for chaining. */ public Builder setOptionalSfixed64(long value) { optionalSfixed64_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * optional sfixed64 optional_sfixed64 = 10; * @return This builder for chaining. */ public Builder clearOptionalSfixed64() { bitField0_ = (bitField0_ & ~0x00000200); optionalSfixed64_ = 0L; onChanged(); return this; } private float optionalFloat_ ; /** * optional float optional_float = 11; * @return Whether the optionalFloat field is set. */ @java.lang.Override public boolean hasOptionalFloat() { return ((bitField0_ & 0x00000400) != 0); } /** * optional float optional_float = 11; * @return The optionalFloat. */ @java.lang.Override public float getOptionalFloat() { return optionalFloat_; } /** * optional float optional_float = 11; * @param value The optionalFloat to set. * @return This builder for chaining. */ public Builder setOptionalFloat(float value) { optionalFloat_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * optional float optional_float = 11; * @return This builder for chaining. */ public Builder clearOptionalFloat() { bitField0_ = (bitField0_ & ~0x00000400); optionalFloat_ = 0F; onChanged(); return this; } private double optionalDouble_ ; /** * optional double optional_double = 12; * @return Whether the optionalDouble field is set. */ @java.lang.Override public boolean hasOptionalDouble() { return ((bitField0_ & 0x00000800) != 0); } /** * optional double optional_double = 12; * @return The optionalDouble. */ @java.lang.Override public double getOptionalDouble() { return optionalDouble_; } /** * optional double optional_double = 12; * @param value The optionalDouble to set. * @return This builder for chaining. */ public Builder setOptionalDouble(double value) { optionalDouble_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * optional double optional_double = 12; * @return This builder for chaining. */ public Builder clearOptionalDouble() { bitField0_ = (bitField0_ & ~0x00000800); optionalDouble_ = 0D; onChanged(); return this; } private boolean optionalBool_ ; /** * optional bool optional_bool = 13; * @return Whether the optionalBool field is set. */ @java.lang.Override public boolean hasOptionalBool() { return ((bitField0_ & 0x00001000) != 0); } /** * optional bool optional_bool = 13; * @return The optionalBool. */ @java.lang.Override public boolean getOptionalBool() { return optionalBool_; } /** * optional bool optional_bool = 13; * @param value The optionalBool to set. * @return This builder for chaining. */ public Builder setOptionalBool(boolean value) { optionalBool_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * optional bool optional_bool = 13; * @return This builder for chaining. */ public Builder clearOptionalBool() { bitField0_ = (bitField0_ & ~0x00001000); optionalBool_ = false; onChanged(); return this; } private java.lang.Object optionalString_ = ""; /** * optional string optional_string = 14; * @return Whether the optionalString field is set. */ public boolean hasOptionalString() { return ((bitField0_ & 0x00002000) != 0); } /** * optional string optional_string = 14; * @return The optionalString. */ public java.lang.String getOptionalString() { java.lang.Object ref = optionalString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string optional_string = 14; * @return The bytes for optionalString. */ public com.google.protobuf.ByteString getOptionalStringBytes() { java.lang.Object ref = optionalString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string optional_string = 14; * @param value The optionalString to set. * @return This builder for chaining. */ public Builder setOptionalString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } optionalString_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * optional string optional_string = 14; * @return This builder for chaining. */ public Builder clearOptionalString() { optionalString_ = getDefaultInstance().getOptionalString(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** * optional string optional_string = 14; * @param value The bytes for optionalString to set. * @return This builder for chaining. */ public Builder setOptionalStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } optionalString_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes optional_bytes = 15; * @return Whether the optionalBytes field is set. */ @java.lang.Override public boolean hasOptionalBytes() { return ((bitField0_ & 0x00004000) != 0); } /** * optional bytes optional_bytes = 15; * @return The optionalBytes. */ @java.lang.Override public com.google.protobuf.ByteString getOptionalBytes() { return optionalBytes_; } /** * optional bytes optional_bytes = 15; * @param value The optionalBytes to set. * @return This builder for chaining. */ public Builder setOptionalBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } optionalBytes_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * optional bytes optional_bytes = 15; * @return This builder for chaining. */ public Builder clearOptionalBytes() { bitField0_ = (bitField0_ & ~0x00004000); optionalBytes_ = getDefaultInstance().getOptionalBytes(); onChanged(); return this; } private com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup optionalGroup_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder> optionalGroupBuilder_; /** * optional group OptionalGroup = 16 { ... } * @return Whether the optionalgroup field is set. */ public boolean hasOptionalGroup() { return ((bitField0_ & 0x00008000) != 0); } /** * optional group OptionalGroup = 16 { ... } * @return The optionalgroup. */ public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup getOptionalGroup() { if (optionalGroupBuilder_ == null) { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } else { return optionalGroupBuilder_.getMessage(); } } /** * optional group OptionalGroup = 16 { ... } */ public Builder setOptionalGroup(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup value) { if (optionalGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalGroup_ = value; } else { optionalGroupBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** * optional group OptionalGroup = 16 { ... } */ public Builder setOptionalGroup( com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder builderForValue) { if (optionalGroupBuilder_ == null) { optionalGroup_ = builderForValue.build(); } else { optionalGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** * optional group OptionalGroup = 16 { ... } */ public Builder mergeOptionalGroup(com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup value) { if (optionalGroupBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && optionalGroup_ != null && optionalGroup_ != com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance()) { getOptionalGroupBuilder().mergeFrom(value); } else { optionalGroup_ = value; } } else { optionalGroupBuilder_.mergeFrom(value); } if (optionalGroup_ != null) { bitField0_ |= 0x00008000; onChanged(); } return this; } /** * optional group OptionalGroup = 16 { ... } */ public Builder clearOptionalGroup() { bitField0_ = (bitField0_ & ~0x00008000); optionalGroup_ = null; if (optionalGroupBuilder_ != null) { optionalGroupBuilder_.dispose(); optionalGroupBuilder_ = null; } onChanged(); return this; } /** * optional group OptionalGroup = 16 { ... } */ public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder getOptionalGroupBuilder() { bitField0_ |= 0x00008000; onChanged(); return getOptionalGroupFieldBuilder().getBuilder(); } /** * optional group OptionalGroup = 16 { ... } */ public com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder getOptionalGroupOrBuilder() { if (optionalGroupBuilder_ != null) { return optionalGroupBuilder_.getMessageOrBuilder(); } else { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } } /** * optional group OptionalGroup = 16 { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder> getOptionalGroupFieldBuilder() { if (optionalGroupBuilder_ == null) { optionalGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.OptionalGroupOrBuilder>( getOptionalGroup(), getParentForChildren(), isClean()); optionalGroup_ = null; } return optionalGroupBuilder_; } private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalNestedMessage_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> optionalNestedMessageBuilder_; /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; * @return Whether the optionalNestedMessage field is set. */ public boolean hasOptionalNestedMessage() { return ((bitField0_ & 0x00010000) != 0); } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; * @return The optionalNestedMessage. */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalNestedMessage() { if (optionalNestedMessageBuilder_ == null) { return optionalNestedMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalNestedMessage_; } else { return optionalNestedMessageBuilder_.getMessage(); } } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; */ public Builder setOptionalNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (optionalNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalNestedMessage_ = value; } else { optionalNestedMessageBuilder_.setMessage(value); } bitField0_ |= 0x00010000; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; */ public Builder setOptionalNestedMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (optionalNestedMessageBuilder_ == null) { optionalNestedMessage_ = builderForValue.build(); } else { optionalNestedMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; */ public Builder mergeOptionalNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (optionalNestedMessageBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0) && optionalNestedMessage_ != null && optionalNestedMessage_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) { getOptionalNestedMessageBuilder().mergeFrom(value); } else { optionalNestedMessage_ = value; } } else { optionalNestedMessageBuilder_.mergeFrom(value); } if (optionalNestedMessage_ != null) { bitField0_ |= 0x00010000; onChanged(); } return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; */ public Builder clearOptionalNestedMessage() { bitField0_ = (bitField0_ & ~0x00010000); optionalNestedMessage_ = null; if (optionalNestedMessageBuilder_ != null) { optionalNestedMessageBuilder_.dispose(); optionalNestedMessageBuilder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getOptionalNestedMessageBuilder() { bitField0_ |= 0x00010000; onChanged(); return getOptionalNestedMessageFieldBuilder().getBuilder(); } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() { if (optionalNestedMessageBuilder_ != null) { return optionalNestedMessageBuilder_.getMessageOrBuilder(); } else { return optionalNestedMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalNestedMessage_; } } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> getOptionalNestedMessageFieldBuilder() { if (optionalNestedMessageBuilder_ == null) { optionalNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>( getOptionalNestedMessage(), getParentForChildren(), isClean()); optionalNestedMessage_ = null; } return optionalNestedMessageBuilder_; } private com.google.protobuf.UnittestLite.ForeignMessageLite optionalForeignMessage_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder> optionalForeignMessageBuilder_; /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; * @return Whether the optionalForeignMessage field is set. */ public boolean hasOptionalForeignMessage() { return ((bitField0_ & 0x00020000) != 0); } /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; * @return The optionalForeignMessage. */ public com.google.protobuf.UnittestLite.ForeignMessageLite getOptionalForeignMessage() { if (optionalForeignMessageBuilder_ == null) { return optionalForeignMessage_ == null ? com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance() : optionalForeignMessage_; } else { return optionalForeignMessageBuilder_.getMessage(); } } /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; */ public Builder setOptionalForeignMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) { if (optionalForeignMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalForeignMessage_ = value; } else { optionalForeignMessageBuilder_.setMessage(value); } bitField0_ |= 0x00020000; onChanged(); return this; } /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; */ public Builder setOptionalForeignMessage( com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) { if (optionalForeignMessageBuilder_ == null) { optionalForeignMessage_ = builderForValue.build(); } else { optionalForeignMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; onChanged(); return this; } /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; */ public Builder mergeOptionalForeignMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) { if (optionalForeignMessageBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0) && optionalForeignMessage_ != null && optionalForeignMessage_ != com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()) { getOptionalForeignMessageBuilder().mergeFrom(value); } else { optionalForeignMessage_ = value; } } else { optionalForeignMessageBuilder_.mergeFrom(value); } if (optionalForeignMessage_ != null) { bitField0_ |= 0x00020000; onChanged(); } return this; } /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; */ public Builder clearOptionalForeignMessage() { bitField0_ = (bitField0_ & ~0x00020000); optionalForeignMessage_ = null; if (optionalForeignMessageBuilder_ != null) { optionalForeignMessageBuilder_.dispose(); optionalForeignMessageBuilder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; */ public com.google.protobuf.UnittestLite.ForeignMessageLite.Builder getOptionalForeignMessageBuilder() { bitField0_ |= 0x00020000; onChanged(); return getOptionalForeignMessageFieldBuilder().getBuilder(); } /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; */ public com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getOptionalForeignMessageOrBuilder() { if (optionalForeignMessageBuilder_ != null) { return optionalForeignMessageBuilder_.getMessageOrBuilder(); } else { return optionalForeignMessage_ == null ? com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance() : optionalForeignMessage_; } } /** * optional .proto2_unittest.ForeignMessageLite optional_foreign_message = 19; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder> getOptionalForeignMessageFieldBuilder() { if (optionalForeignMessageBuilder_ == null) { optionalForeignMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder>( getOptionalForeignMessage(), getParentForChildren(), isClean()); optionalForeignMessage_ = null; } return optionalForeignMessageBuilder_; } private com.google.protobuf.UnittestImportLite.ImportMessageLite optionalImportMessage_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder> optionalImportMessageBuilder_; /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; * @return Whether the optionalImportMessage field is set. */ public boolean hasOptionalImportMessage() { return ((bitField0_ & 0x00040000) != 0); } /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; * @return The optionalImportMessage. */ public com.google.protobuf.UnittestImportLite.ImportMessageLite getOptionalImportMessage() { if (optionalImportMessageBuilder_ == null) { return optionalImportMessage_ == null ? com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance() : optionalImportMessage_; } else { return optionalImportMessageBuilder_.getMessage(); } } /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; */ public Builder setOptionalImportMessage(com.google.protobuf.UnittestImportLite.ImportMessageLite value) { if (optionalImportMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalImportMessage_ = value; } else { optionalImportMessageBuilder_.setMessage(value); } bitField0_ |= 0x00040000; onChanged(); return this; } /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; */ public Builder setOptionalImportMessage( com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) { if (optionalImportMessageBuilder_ == null) { optionalImportMessage_ = builderForValue.build(); } else { optionalImportMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; onChanged(); return this; } /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; */ public Builder mergeOptionalImportMessage(com.google.protobuf.UnittestImportLite.ImportMessageLite value) { if (optionalImportMessageBuilder_ == null) { if (((bitField0_ & 0x00040000) != 0) && optionalImportMessage_ != null && optionalImportMessage_ != com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance()) { getOptionalImportMessageBuilder().mergeFrom(value); } else { optionalImportMessage_ = value; } } else { optionalImportMessageBuilder_.mergeFrom(value); } if (optionalImportMessage_ != null) { bitField0_ |= 0x00040000; onChanged(); } return this; } /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; */ public Builder clearOptionalImportMessage() { bitField0_ = (bitField0_ & ~0x00040000); optionalImportMessage_ = null; if (optionalImportMessageBuilder_ != null) { optionalImportMessageBuilder_.dispose(); optionalImportMessageBuilder_ = null; } onChanged(); return this; } /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; */ public com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder getOptionalImportMessageBuilder() { bitField0_ |= 0x00040000; onChanged(); return getOptionalImportMessageFieldBuilder().getBuilder(); } /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; */ public com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder getOptionalImportMessageOrBuilder() { if (optionalImportMessageBuilder_ != null) { return optionalImportMessageBuilder_.getMessageOrBuilder(); } else { return optionalImportMessage_ == null ? com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance() : optionalImportMessage_; } } /** * optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder> getOptionalImportMessageFieldBuilder() { if (optionalImportMessageBuilder_ == null) { optionalImportMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder>( getOptionalImportMessage(), getParentForChildren(), isClean()); optionalImportMessage_ = null; } return optionalImportMessageBuilder_; } private int optionalNestedEnum_ = 1; /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21; * @return Whether the optionalNestedEnum field is set. */ @java.lang.Override public boolean hasOptionalNestedEnum() { return ((bitField0_ & 0x00080000) != 0); } /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21; * @return The optionalNestedEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getOptionalNestedEnum() { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum result = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(optionalNestedEnum_); return result == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.FOO : result; } /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21; * @param value The optionalNestedEnum to set. * @return This builder for chaining. */ public Builder setOptionalNestedEnum(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; optionalNestedEnum_ = value.getNumber(); onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21; * @return This builder for chaining. */ public Builder clearOptionalNestedEnum() { bitField0_ = (bitField0_ & ~0x00080000); optionalNestedEnum_ = 1; onChanged(); return this; } private int optionalForeignEnum_ = 4; /** * optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22; * @return Whether the optionalForeignEnum field is set. */ @java.lang.Override public boolean hasOptionalForeignEnum() { return ((bitField0_ & 0x00100000) != 0); } /** * optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22; * @return The optionalForeignEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignEnumLite getOptionalForeignEnum() { com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(optionalForeignEnum_); return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO : result; } /** * optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22; * @param value The optionalForeignEnum to set. * @return This builder for chaining. */ public Builder setOptionalForeignEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00100000; optionalForeignEnum_ = value.getNumber(); onChanged(); return this; } /** * optional .proto2_unittest.ForeignEnumLite optional_foreign_enum = 22; * @return This builder for chaining. */ public Builder clearOptionalForeignEnum() { bitField0_ = (bitField0_ & ~0x00100000); optionalForeignEnum_ = 4; onChanged(); return this; } private int optionalImportEnum_ = 7; /** * optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23; * @return Whether the optionalImportEnum field is set. */ @java.lang.Override public boolean hasOptionalImportEnum() { return ((bitField0_ & 0x00200000) != 0); } /** * optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23; * @return The optionalImportEnum. */ @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportEnumLite getOptionalImportEnum() { com.google.protobuf.UnittestImportLite.ImportEnumLite result = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(optionalImportEnum_); return result == null ? com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_FOO : result; } /** * optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23; * @param value The optionalImportEnum to set. * @return This builder for chaining. */ public Builder setOptionalImportEnum(com.google.protobuf.UnittestImportLite.ImportEnumLite value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00200000; optionalImportEnum_ = value.getNumber(); onChanged(); return this; } /** * optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23; * @return This builder for chaining. */ public Builder clearOptionalImportEnum() { bitField0_ = (bitField0_ & ~0x00200000); optionalImportEnum_ = 7; onChanged(); return this; } private java.lang.Object optionalStringPiece_ = ""; /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @return Whether the optionalStringPiece field is set. */ public boolean hasOptionalStringPiece() { return ((bitField0_ & 0x00400000) != 0); } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @return The optionalStringPiece. */ public java.lang.String getOptionalStringPiece() { java.lang.Object ref = optionalStringPiece_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalStringPiece_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @return The bytes for optionalStringPiece. */ public com.google.protobuf.ByteString getOptionalStringPieceBytes() { java.lang.Object ref = optionalStringPiece_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalStringPiece_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @param value The optionalStringPiece to set. * @return This builder for chaining. */ public Builder setOptionalStringPiece( java.lang.String value) { if (value == null) { throw new NullPointerException(); } optionalStringPiece_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @return This builder for chaining. */ public Builder clearOptionalStringPiece() { optionalStringPiece_ = getDefaultInstance().getOptionalStringPiece(); bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } /** * optional string optional_string_piece = 24 [ctype = STRING_PIECE]; * @param value The bytes for optionalStringPiece to set. * @return This builder for chaining. */ public Builder setOptionalStringPieceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } optionalStringPiece_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } private java.lang.Object optionalCord_ = ""; /** * optional string optional_cord = 25 [ctype = CORD]; * @return Whether the optionalCord field is set. */ public boolean hasOptionalCord() { return ((bitField0_ & 0x00800000) != 0); } /** * optional string optional_cord = 25 [ctype = CORD]; * @return The optionalCord. */ public java.lang.String getOptionalCord() { java.lang.Object ref = optionalCord_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalCord_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string optional_cord = 25 [ctype = CORD]; * @return The bytes for optionalCord. */ public com.google.protobuf.ByteString getOptionalCordBytes() { java.lang.Object ref = optionalCord_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalCord_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string optional_cord = 25 [ctype = CORD]; * @param value The optionalCord to set. * @return This builder for chaining. */ public Builder setOptionalCord( java.lang.String value) { if (value == null) { throw new NullPointerException(); } optionalCord_ = value; bitField0_ |= 0x00800000; onChanged(); return this; } /** * optional string optional_cord = 25 [ctype = CORD]; * @return This builder for chaining. */ public Builder clearOptionalCord() { optionalCord_ = getDefaultInstance().getOptionalCord(); bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } /** * optional string optional_cord = 25 [ctype = CORD]; * @param value The bytes for optionalCord to set. * @return This builder for chaining. */ public Builder setOptionalCordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } optionalCord_ = value; bitField0_ |= 0x00800000; onChanged(); return this; } private com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite optionalPublicImportMessage_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder> optionalPublicImportMessageBuilder_; /** *
       * Defined in unittest_import_public.proto
       * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; * @return Whether the optionalPublicImportMessage field is set. */ public boolean hasOptionalPublicImportMessage() { return ((bitField0_ & 0x01000000) != 0); } /** *
       * Defined in unittest_import_public.proto
       * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; * @return The optionalPublicImportMessage. */ public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getOptionalPublicImportMessage() { if (optionalPublicImportMessageBuilder_ == null) { return optionalPublicImportMessage_ == null ? com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance() : optionalPublicImportMessage_; } else { return optionalPublicImportMessageBuilder_.getMessage(); } } /** *
       * Defined in unittest_import_public.proto
       * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; */ public Builder setOptionalPublicImportMessage(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite value) { if (optionalPublicImportMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalPublicImportMessage_ = value; } else { optionalPublicImportMessageBuilder_.setMessage(value); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
       * Defined in unittest_import_public.proto
       * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; */ public Builder setOptionalPublicImportMessage( com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder builderForValue) { if (optionalPublicImportMessageBuilder_ == null) { optionalPublicImportMessage_ = builderForValue.build(); } else { optionalPublicImportMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
       * Defined in unittest_import_public.proto
       * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; */ public Builder mergeOptionalPublicImportMessage(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite value) { if (optionalPublicImportMessageBuilder_ == null) { if (((bitField0_ & 0x01000000) != 0) && optionalPublicImportMessage_ != null && optionalPublicImportMessage_ != com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance()) { getOptionalPublicImportMessageBuilder().mergeFrom(value); } else { optionalPublicImportMessage_ = value; } } else { optionalPublicImportMessageBuilder_.mergeFrom(value); } if (optionalPublicImportMessage_ != null) { bitField0_ |= 0x01000000; onChanged(); } return this; } /** *
       * Defined in unittest_import_public.proto
       * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; */ public Builder clearOptionalPublicImportMessage() { bitField0_ = (bitField0_ & ~0x01000000); optionalPublicImportMessage_ = null; if (optionalPublicImportMessageBuilder_ != null) { optionalPublicImportMessageBuilder_.dispose(); optionalPublicImportMessageBuilder_ = null; } onChanged(); return this; } /** *
       * Defined in unittest_import_public.proto
       * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; */ public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder getOptionalPublicImportMessageBuilder() { bitField0_ |= 0x01000000; onChanged(); return getOptionalPublicImportMessageFieldBuilder().getBuilder(); } /** *
       * Defined in unittest_import_public.proto
       * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; */ public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder getOptionalPublicImportMessageOrBuilder() { if (optionalPublicImportMessageBuilder_ != null) { return optionalPublicImportMessageBuilder_.getMessageOrBuilder(); } else { return optionalPublicImportMessage_ == null ? com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance() : optionalPublicImportMessage_; } } /** *
       * Defined in unittest_import_public.proto
       * 
* * optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder> getOptionalPublicImportMessageFieldBuilder() { if (optionalPublicImportMessageBuilder_ == null) { optionalPublicImportMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.Builder, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder>( getOptionalPublicImportMessage(), getParentForChildren(), isClean()); optionalPublicImportMessage_ = null; } return optionalPublicImportMessageBuilder_; } private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalLazyMessage_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> optionalLazyMessageBuilder_; /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; * @return Whether the optionalLazyMessage field is set. */ public boolean hasOptionalLazyMessage() { return ((bitField0_ & 0x02000000) != 0); } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; * @return The optionalLazyMessage. */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalLazyMessage() { if (optionalLazyMessageBuilder_ == null) { return optionalLazyMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalLazyMessage_; } else { return optionalLazyMessageBuilder_.getMessage(); } } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public Builder setOptionalLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (optionalLazyMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalLazyMessage_ = value; } else { optionalLazyMessageBuilder_.setMessage(value); } bitField0_ |= 0x02000000; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public Builder setOptionalLazyMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (optionalLazyMessageBuilder_ == null) { optionalLazyMessage_ = builderForValue.build(); } else { optionalLazyMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x02000000; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public Builder mergeOptionalLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (optionalLazyMessageBuilder_ == null) { if (((bitField0_ & 0x02000000) != 0) && optionalLazyMessage_ != null && optionalLazyMessage_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) { getOptionalLazyMessageBuilder().mergeFrom(value); } else { optionalLazyMessage_ = value; } } else { optionalLazyMessageBuilder_.mergeFrom(value); } if (optionalLazyMessage_ != null) { bitField0_ |= 0x02000000; onChanged(); } return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public Builder clearOptionalLazyMessage() { bitField0_ = (bitField0_ & ~0x02000000); optionalLazyMessage_ = null; if (optionalLazyMessageBuilder_ != null) { optionalLazyMessageBuilder_.dispose(); optionalLazyMessageBuilder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getOptionalLazyMessageBuilder() { bitField0_ |= 0x02000000; onChanged(); return getOptionalLazyMessageFieldBuilder().getBuilder(); } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() { if (optionalLazyMessageBuilder_ != null) { return optionalLazyMessageBuilder_.getMessageOrBuilder(); } else { return optionalLazyMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalLazyMessage_; } } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> getOptionalLazyMessageFieldBuilder() { if (optionalLazyMessageBuilder_ == null) { optionalLazyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>( getOptionalLazyMessage(), getParentForChildren(), isClean()); optionalLazyMessage_ = null; } return optionalLazyMessageBuilder_; } private com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage optionalUnverifiedLazyMessage_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> optionalUnverifiedLazyMessageBuilder_; /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; * @return Whether the optionalUnverifiedLazyMessage field is set. */ public boolean hasOptionalUnverifiedLazyMessage() { return ((bitField0_ & 0x04000000) != 0); } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; * @return The optionalUnverifiedLazyMessage. */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOptionalUnverifiedLazyMessage() { if (optionalUnverifiedLazyMessageBuilder_ == null) { return optionalUnverifiedLazyMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalUnverifiedLazyMessage_; } else { return optionalUnverifiedLazyMessageBuilder_.getMessage(); } } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; */ public Builder setOptionalUnverifiedLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (optionalUnverifiedLazyMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalUnverifiedLazyMessage_ = value; } else { optionalUnverifiedLazyMessageBuilder_.setMessage(value); } bitField0_ |= 0x04000000; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; */ public Builder setOptionalUnverifiedLazyMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (optionalUnverifiedLazyMessageBuilder_ == null) { optionalUnverifiedLazyMessage_ = builderForValue.build(); } else { optionalUnverifiedLazyMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x04000000; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; */ public Builder mergeOptionalUnverifiedLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (optionalUnverifiedLazyMessageBuilder_ == null) { if (((bitField0_ & 0x04000000) != 0) && optionalUnverifiedLazyMessage_ != null && optionalUnverifiedLazyMessage_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) { getOptionalUnverifiedLazyMessageBuilder().mergeFrom(value); } else { optionalUnverifiedLazyMessage_ = value; } } else { optionalUnverifiedLazyMessageBuilder_.mergeFrom(value); } if (optionalUnverifiedLazyMessage_ != null) { bitField0_ |= 0x04000000; onChanged(); } return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; */ public Builder clearOptionalUnverifiedLazyMessage() { bitField0_ = (bitField0_ & ~0x04000000); optionalUnverifiedLazyMessage_ = null; if (optionalUnverifiedLazyMessageBuilder_ != null) { optionalUnverifiedLazyMessageBuilder_.dispose(); optionalUnverifiedLazyMessageBuilder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getOptionalUnverifiedLazyMessageBuilder() { bitField0_ |= 0x04000000; onChanged(); return getOptionalUnverifiedLazyMessageFieldBuilder().getBuilder(); } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOptionalUnverifiedLazyMessageOrBuilder() { if (optionalUnverifiedLazyMessageBuilder_ != null) { return optionalUnverifiedLazyMessageBuilder_.getMessageOrBuilder(); } else { return optionalUnverifiedLazyMessage_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance() : optionalUnverifiedLazyMessage_; } } /** * optional .proto2_unittest.TestAllTypesLite.NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> getOptionalUnverifiedLazyMessageFieldBuilder() { if (optionalUnverifiedLazyMessageBuilder_ == null) { optionalUnverifiedLazyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>( getOptionalUnverifiedLazyMessage(), getParentForChildren(), isClean()); optionalUnverifiedLazyMessage_ = null; } return optionalUnverifiedLazyMessageBuilder_; } private com.google.protobuf.Internal.IntList repeatedInt32_ = emptyIntList(); private void ensureRepeatedInt32IsMutable() { if (!repeatedInt32_.isModifiable()) { repeatedInt32_ = makeMutableCopy(repeatedInt32_); } bitField0_ |= 0x08000000; } /** *
       * Repeated
       * 
* * repeated int32 repeated_int32 = 31; * @return A list containing the repeatedInt32. */ public java.util.List getRepeatedInt32List() { repeatedInt32_.makeImmutable(); return repeatedInt32_; } /** *
       * Repeated
       * 
* * repeated int32 repeated_int32 = 31; * @return The count of repeatedInt32. */ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** *
       * Repeated
       * 
* * repeated int32 repeated_int32 = 31; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ public int getRepeatedInt32(int index) { return repeatedInt32_.getInt(index); } /** *
       * Repeated
       * 
* * repeated int32 repeated_int32 = 31; * @param index The index to set the value at. * @param value The repeatedInt32 to set. * @return This builder for chaining. */ public Builder setRepeatedInt32( int index, int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.setInt(index, value); bitField0_ |= 0x08000000; onChanged(); return this; } /** *
       * Repeated
       * 
* * repeated int32 repeated_int32 = 31; * @param value The repeatedInt32 to add. * @return This builder for chaining. */ public Builder addRepeatedInt32(int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.addInt(value); bitField0_ |= 0x08000000; onChanged(); return this; } /** *
       * Repeated
       * 
* * repeated int32 repeated_int32 = 31; * @param values The repeatedInt32 to add. * @return This builder for chaining. */ public Builder addAllRepeatedInt32( java.lang.Iterable values) { ensureRepeatedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedInt32_); bitField0_ |= 0x08000000; onChanged(); return this; } /** *
       * Repeated
       * 
* * repeated int32 repeated_int32 = 31; * @return This builder for chaining. */ public Builder clearRepeatedInt32() { repeatedInt32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x08000000); onChanged(); return this; } private com.google.protobuf.Internal.LongList repeatedInt64_ = emptyLongList(); private void ensureRepeatedInt64IsMutable() { if (!repeatedInt64_.isModifiable()) { repeatedInt64_ = makeMutableCopy(repeatedInt64_); } bitField0_ |= 0x10000000; } /** * repeated int64 repeated_int64 = 32; * @return A list containing the repeatedInt64. */ public java.util.List getRepeatedInt64List() { repeatedInt64_.makeImmutable(); return repeatedInt64_; } /** * repeated int64 repeated_int64 = 32; * @return The count of repeatedInt64. */ public int getRepeatedInt64Count() { return repeatedInt64_.size(); } /** * repeated int64 repeated_int64 = 32; * @param index The index of the element to return. * @return The repeatedInt64 at the given index. */ public long getRepeatedInt64(int index) { return repeatedInt64_.getLong(index); } /** * repeated int64 repeated_int64 = 32; * @param index The index to set the value at. * @param value The repeatedInt64 to set. * @return This builder for chaining. */ public Builder setRepeatedInt64( int index, long value) { ensureRepeatedInt64IsMutable(); repeatedInt64_.setLong(index, value); bitField0_ |= 0x10000000; onChanged(); return this; } /** * repeated int64 repeated_int64 = 32; * @param value The repeatedInt64 to add. * @return This builder for chaining. */ public Builder addRepeatedInt64(long value) { ensureRepeatedInt64IsMutable(); repeatedInt64_.addLong(value); bitField0_ |= 0x10000000; onChanged(); return this; } /** * repeated int64 repeated_int64 = 32; * @param values The repeatedInt64 to add. * @return This builder for chaining. */ public Builder addAllRepeatedInt64( java.lang.Iterable values) { ensureRepeatedInt64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedInt64_); bitField0_ |= 0x10000000; onChanged(); return this; } /** * repeated int64 repeated_int64 = 32; * @return This builder for chaining. */ public Builder clearRepeatedInt64() { repeatedInt64_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x10000000); onChanged(); return this; } private com.google.protobuf.Internal.IntList repeatedUint32_ = emptyIntList(); private void ensureRepeatedUint32IsMutable() { if (!repeatedUint32_.isModifiable()) { repeatedUint32_ = makeMutableCopy(repeatedUint32_); } bitField0_ |= 0x20000000; } /** * repeated uint32 repeated_uint32 = 33; * @return A list containing the repeatedUint32. */ public java.util.List getRepeatedUint32List() { repeatedUint32_.makeImmutable(); return repeatedUint32_; } /** * repeated uint32 repeated_uint32 = 33; * @return The count of repeatedUint32. */ public int getRepeatedUint32Count() { return repeatedUint32_.size(); } /** * repeated uint32 repeated_uint32 = 33; * @param index The index of the element to return. * @return The repeatedUint32 at the given index. */ public int getRepeatedUint32(int index) { return repeatedUint32_.getInt(index); } /** * repeated uint32 repeated_uint32 = 33; * @param index The index to set the value at. * @param value The repeatedUint32 to set. * @return This builder for chaining. */ public Builder setRepeatedUint32( int index, int value) { ensureRepeatedUint32IsMutable(); repeatedUint32_.setInt(index, value); bitField0_ |= 0x20000000; onChanged(); return this; } /** * repeated uint32 repeated_uint32 = 33; * @param value The repeatedUint32 to add. * @return This builder for chaining. */ public Builder addRepeatedUint32(int value) { ensureRepeatedUint32IsMutable(); repeatedUint32_.addInt(value); bitField0_ |= 0x20000000; onChanged(); return this; } /** * repeated uint32 repeated_uint32 = 33; * @param values The repeatedUint32 to add. * @return This builder for chaining. */ public Builder addAllRepeatedUint32( java.lang.Iterable values) { ensureRepeatedUint32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedUint32_); bitField0_ |= 0x20000000; onChanged(); return this; } /** * repeated uint32 repeated_uint32 = 33; * @return This builder for chaining. */ public Builder clearRepeatedUint32() { repeatedUint32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x20000000); onChanged(); return this; } private com.google.protobuf.Internal.LongList repeatedUint64_ = emptyLongList(); private void ensureRepeatedUint64IsMutable() { if (!repeatedUint64_.isModifiable()) { repeatedUint64_ = makeMutableCopy(repeatedUint64_); } bitField0_ |= 0x40000000; } /** * repeated uint64 repeated_uint64 = 34; * @return A list containing the repeatedUint64. */ public java.util.List getRepeatedUint64List() { repeatedUint64_.makeImmutable(); return repeatedUint64_; } /** * repeated uint64 repeated_uint64 = 34; * @return The count of repeatedUint64. */ public int getRepeatedUint64Count() { return repeatedUint64_.size(); } /** * repeated uint64 repeated_uint64 = 34; * @param index The index of the element to return. * @return The repeatedUint64 at the given index. */ public long getRepeatedUint64(int index) { return repeatedUint64_.getLong(index); } /** * repeated uint64 repeated_uint64 = 34; * @param index The index to set the value at. * @param value The repeatedUint64 to set. * @return This builder for chaining. */ public Builder setRepeatedUint64( int index, long value) { ensureRepeatedUint64IsMutable(); repeatedUint64_.setLong(index, value); bitField0_ |= 0x40000000; onChanged(); return this; } /** * repeated uint64 repeated_uint64 = 34; * @param value The repeatedUint64 to add. * @return This builder for chaining. */ public Builder addRepeatedUint64(long value) { ensureRepeatedUint64IsMutable(); repeatedUint64_.addLong(value); bitField0_ |= 0x40000000; onChanged(); return this; } /** * repeated uint64 repeated_uint64 = 34; * @param values The repeatedUint64 to add. * @return This builder for chaining. */ public Builder addAllRepeatedUint64( java.lang.Iterable values) { ensureRepeatedUint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedUint64_); bitField0_ |= 0x40000000; onChanged(); return this; } /** * repeated uint64 repeated_uint64 = 34; * @return This builder for chaining. */ public Builder clearRepeatedUint64() { repeatedUint64_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } private com.google.protobuf.Internal.IntList repeatedSint32_ = emptyIntList(); private void ensureRepeatedSint32IsMutable() { if (!repeatedSint32_.isModifiable()) { repeatedSint32_ = makeMutableCopy(repeatedSint32_); } bitField0_ |= 0x80000000; } /** * repeated sint32 repeated_sint32 = 35; * @return A list containing the repeatedSint32. */ public java.util.List getRepeatedSint32List() { repeatedSint32_.makeImmutable(); return repeatedSint32_; } /** * repeated sint32 repeated_sint32 = 35; * @return The count of repeatedSint32. */ public int getRepeatedSint32Count() { return repeatedSint32_.size(); } /** * repeated sint32 repeated_sint32 = 35; * @param index The index of the element to return. * @return The repeatedSint32 at the given index. */ public int getRepeatedSint32(int index) { return repeatedSint32_.getInt(index); } /** * repeated sint32 repeated_sint32 = 35; * @param index The index to set the value at. * @param value The repeatedSint32 to set. * @return This builder for chaining. */ public Builder setRepeatedSint32( int index, int value) { ensureRepeatedSint32IsMutable(); repeatedSint32_.setInt(index, value); bitField0_ |= 0x80000000; onChanged(); return this; } /** * repeated sint32 repeated_sint32 = 35; * @param value The repeatedSint32 to add. * @return This builder for chaining. */ public Builder addRepeatedSint32(int value) { ensureRepeatedSint32IsMutable(); repeatedSint32_.addInt(value); bitField0_ |= 0x80000000; onChanged(); return this; } /** * repeated sint32 repeated_sint32 = 35; * @param values The repeatedSint32 to add. * @return This builder for chaining. */ public Builder addAllRepeatedSint32( java.lang.Iterable values) { ensureRepeatedSint32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedSint32_); bitField0_ |= 0x80000000; onChanged(); return this; } /** * repeated sint32 repeated_sint32 = 35; * @return This builder for chaining. */ public Builder clearRepeatedSint32() { repeatedSint32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x80000000); onChanged(); return this; } private com.google.protobuf.Internal.LongList repeatedSint64_ = emptyLongList(); private void ensureRepeatedSint64IsMutable() { if (!repeatedSint64_.isModifiable()) { repeatedSint64_ = makeMutableCopy(repeatedSint64_); } bitField1_ |= 0x00000001; } /** * repeated sint64 repeated_sint64 = 36; * @return A list containing the repeatedSint64. */ public java.util.List getRepeatedSint64List() { repeatedSint64_.makeImmutable(); return repeatedSint64_; } /** * repeated sint64 repeated_sint64 = 36; * @return The count of repeatedSint64. */ public int getRepeatedSint64Count() { return repeatedSint64_.size(); } /** * repeated sint64 repeated_sint64 = 36; * @param index The index of the element to return. * @return The repeatedSint64 at the given index. */ public long getRepeatedSint64(int index) { return repeatedSint64_.getLong(index); } /** * repeated sint64 repeated_sint64 = 36; * @param index The index to set the value at. * @param value The repeatedSint64 to set. * @return This builder for chaining. */ public Builder setRepeatedSint64( int index, long value) { ensureRepeatedSint64IsMutable(); repeatedSint64_.setLong(index, value); bitField1_ |= 0x00000001; onChanged(); return this; } /** * repeated sint64 repeated_sint64 = 36; * @param value The repeatedSint64 to add. * @return This builder for chaining. */ public Builder addRepeatedSint64(long value) { ensureRepeatedSint64IsMutable(); repeatedSint64_.addLong(value); bitField1_ |= 0x00000001; onChanged(); return this; } /** * repeated sint64 repeated_sint64 = 36; * @param values The repeatedSint64 to add. * @return This builder for chaining. */ public Builder addAllRepeatedSint64( java.lang.Iterable values) { ensureRepeatedSint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedSint64_); bitField1_ |= 0x00000001; onChanged(); return this; } /** * repeated sint64 repeated_sint64 = 36; * @return This builder for chaining. */ public Builder clearRepeatedSint64() { repeatedSint64_ = emptyLongList(); bitField1_ = (bitField1_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.Internal.IntList repeatedFixed32_ = emptyIntList(); private void ensureRepeatedFixed32IsMutable() { if (!repeatedFixed32_.isModifiable()) { repeatedFixed32_ = makeMutableCopy(repeatedFixed32_); } bitField1_ |= 0x00000002; } private void ensureRepeatedFixed32IsMutable(int capacity) { if (!repeatedFixed32_.isModifiable()) { repeatedFixed32_ = makeMutableCopy(repeatedFixed32_, capacity); } bitField1_ |= 0x00000002; } /** * repeated fixed32 repeated_fixed32 = 37; * @return A list containing the repeatedFixed32. */ public java.util.List getRepeatedFixed32List() { repeatedFixed32_.makeImmutable(); return repeatedFixed32_; } /** * repeated fixed32 repeated_fixed32 = 37; * @return The count of repeatedFixed32. */ public int getRepeatedFixed32Count() { return repeatedFixed32_.size(); } /** * repeated fixed32 repeated_fixed32 = 37; * @param index The index of the element to return. * @return The repeatedFixed32 at the given index. */ public int getRepeatedFixed32(int index) { return repeatedFixed32_.getInt(index); } /** * repeated fixed32 repeated_fixed32 = 37; * @param index The index to set the value at. * @param value The repeatedFixed32 to set. * @return This builder for chaining. */ public Builder setRepeatedFixed32( int index, int value) { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.setInt(index, value); bitField1_ |= 0x00000002; onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 37; * @param value The repeatedFixed32 to add. * @return This builder for chaining. */ public Builder addRepeatedFixed32(int value) { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addInt(value); bitField1_ |= 0x00000002; onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 37; * @param values The repeatedFixed32 to add. * @return This builder for chaining. */ public Builder addAllRepeatedFixed32( java.lang.Iterable values) { ensureRepeatedFixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFixed32_); bitField1_ |= 0x00000002; onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 37; * @return This builder for chaining. */ public Builder clearRepeatedFixed32() { repeatedFixed32_ = emptyIntList(); bitField1_ = (bitField1_ & ~0x00000002); onChanged(); return this; } private com.google.protobuf.Internal.LongList repeatedFixed64_ = emptyLongList(); private void ensureRepeatedFixed64IsMutable() { if (!repeatedFixed64_.isModifiable()) { repeatedFixed64_ = makeMutableCopy(repeatedFixed64_); } bitField1_ |= 0x00000004; } private void ensureRepeatedFixed64IsMutable(int capacity) { if (!repeatedFixed64_.isModifiable()) { repeatedFixed64_ = makeMutableCopy(repeatedFixed64_, capacity); } bitField1_ |= 0x00000004; } /** * repeated fixed64 repeated_fixed64 = 38; * @return A list containing the repeatedFixed64. */ public java.util.List getRepeatedFixed64List() { repeatedFixed64_.makeImmutable(); return repeatedFixed64_; } /** * repeated fixed64 repeated_fixed64 = 38; * @return The count of repeatedFixed64. */ public int getRepeatedFixed64Count() { return repeatedFixed64_.size(); } /** * repeated fixed64 repeated_fixed64 = 38; * @param index The index of the element to return. * @return The repeatedFixed64 at the given index. */ public long getRepeatedFixed64(int index) { return repeatedFixed64_.getLong(index); } /** * repeated fixed64 repeated_fixed64 = 38; * @param index The index to set the value at. * @param value The repeatedFixed64 to set. * @return This builder for chaining. */ public Builder setRepeatedFixed64( int index, long value) { ensureRepeatedFixed64IsMutable(); repeatedFixed64_.setLong(index, value); bitField1_ |= 0x00000004; onChanged(); return this; } /** * repeated fixed64 repeated_fixed64 = 38; * @param value The repeatedFixed64 to add. * @return This builder for chaining. */ public Builder addRepeatedFixed64(long value) { ensureRepeatedFixed64IsMutable(); repeatedFixed64_.addLong(value); bitField1_ |= 0x00000004; onChanged(); return this; } /** * repeated fixed64 repeated_fixed64 = 38; * @param values The repeatedFixed64 to add. * @return This builder for chaining. */ public Builder addAllRepeatedFixed64( java.lang.Iterable values) { ensureRepeatedFixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFixed64_); bitField1_ |= 0x00000004; onChanged(); return this; } /** * repeated fixed64 repeated_fixed64 = 38; * @return This builder for chaining. */ public Builder clearRepeatedFixed64() { repeatedFixed64_ = emptyLongList(); bitField1_ = (bitField1_ & ~0x00000004); onChanged(); return this; } private com.google.protobuf.Internal.IntList repeatedSfixed32_ = emptyIntList(); private void ensureRepeatedSfixed32IsMutable() { if (!repeatedSfixed32_.isModifiable()) { repeatedSfixed32_ = makeMutableCopy(repeatedSfixed32_); } bitField1_ |= 0x00000008; } private void ensureRepeatedSfixed32IsMutable(int capacity) { if (!repeatedSfixed32_.isModifiable()) { repeatedSfixed32_ = makeMutableCopy(repeatedSfixed32_, capacity); } bitField1_ |= 0x00000008; } /** * repeated sfixed32 repeated_sfixed32 = 39; * @return A list containing the repeatedSfixed32. */ public java.util.List getRepeatedSfixed32List() { repeatedSfixed32_.makeImmutable(); return repeatedSfixed32_; } /** * repeated sfixed32 repeated_sfixed32 = 39; * @return The count of repeatedSfixed32. */ public int getRepeatedSfixed32Count() { return repeatedSfixed32_.size(); } /** * repeated sfixed32 repeated_sfixed32 = 39; * @param index The index of the element to return. * @return The repeatedSfixed32 at the given index. */ public int getRepeatedSfixed32(int index) { return repeatedSfixed32_.getInt(index); } /** * repeated sfixed32 repeated_sfixed32 = 39; * @param index The index to set the value at. * @param value The repeatedSfixed32 to set. * @return This builder for chaining. */ public Builder setRepeatedSfixed32( int index, int value) { ensureRepeatedSfixed32IsMutable(); repeatedSfixed32_.setInt(index, value); bitField1_ |= 0x00000008; onChanged(); return this; } /** * repeated sfixed32 repeated_sfixed32 = 39; * @param value The repeatedSfixed32 to add. * @return This builder for chaining. */ public Builder addRepeatedSfixed32(int value) { ensureRepeatedSfixed32IsMutable(); repeatedSfixed32_.addInt(value); bitField1_ |= 0x00000008; onChanged(); return this; } /** * repeated sfixed32 repeated_sfixed32 = 39; * @param values The repeatedSfixed32 to add. * @return This builder for chaining. */ public Builder addAllRepeatedSfixed32( java.lang.Iterable values) { ensureRepeatedSfixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedSfixed32_); bitField1_ |= 0x00000008; onChanged(); return this; } /** * repeated sfixed32 repeated_sfixed32 = 39; * @return This builder for chaining. */ public Builder clearRepeatedSfixed32() { repeatedSfixed32_ = emptyIntList(); bitField1_ = (bitField1_ & ~0x00000008); onChanged(); return this; } private com.google.protobuf.Internal.LongList repeatedSfixed64_ = emptyLongList(); private void ensureRepeatedSfixed64IsMutable() { if (!repeatedSfixed64_.isModifiable()) { repeatedSfixed64_ = makeMutableCopy(repeatedSfixed64_); } bitField1_ |= 0x00000010; } private void ensureRepeatedSfixed64IsMutable(int capacity) { if (!repeatedSfixed64_.isModifiable()) { repeatedSfixed64_ = makeMutableCopy(repeatedSfixed64_, capacity); } bitField1_ |= 0x00000010; } /** * repeated sfixed64 repeated_sfixed64 = 40; * @return A list containing the repeatedSfixed64. */ public java.util.List getRepeatedSfixed64List() { repeatedSfixed64_.makeImmutable(); return repeatedSfixed64_; } /** * repeated sfixed64 repeated_sfixed64 = 40; * @return The count of repeatedSfixed64. */ public int getRepeatedSfixed64Count() { return repeatedSfixed64_.size(); } /** * repeated sfixed64 repeated_sfixed64 = 40; * @param index The index of the element to return. * @return The repeatedSfixed64 at the given index. */ public long getRepeatedSfixed64(int index) { return repeatedSfixed64_.getLong(index); } /** * repeated sfixed64 repeated_sfixed64 = 40; * @param index The index to set the value at. * @param value The repeatedSfixed64 to set. * @return This builder for chaining. */ public Builder setRepeatedSfixed64( int index, long value) { ensureRepeatedSfixed64IsMutable(); repeatedSfixed64_.setLong(index, value); bitField1_ |= 0x00000010; onChanged(); return this; } /** * repeated sfixed64 repeated_sfixed64 = 40; * @param value The repeatedSfixed64 to add. * @return This builder for chaining. */ public Builder addRepeatedSfixed64(long value) { ensureRepeatedSfixed64IsMutable(); repeatedSfixed64_.addLong(value); bitField1_ |= 0x00000010; onChanged(); return this; } /** * repeated sfixed64 repeated_sfixed64 = 40; * @param values The repeatedSfixed64 to add. * @return This builder for chaining. */ public Builder addAllRepeatedSfixed64( java.lang.Iterable values) { ensureRepeatedSfixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedSfixed64_); bitField1_ |= 0x00000010; onChanged(); return this; } /** * repeated sfixed64 repeated_sfixed64 = 40; * @return This builder for chaining. */ public Builder clearRepeatedSfixed64() { repeatedSfixed64_ = emptyLongList(); bitField1_ = (bitField1_ & ~0x00000010); onChanged(); return this; } private com.google.protobuf.Internal.FloatList repeatedFloat_ = emptyFloatList(); private void ensureRepeatedFloatIsMutable() { if (!repeatedFloat_.isModifiable()) { repeatedFloat_ = makeMutableCopy(repeatedFloat_); } bitField1_ |= 0x00000020; } private void ensureRepeatedFloatIsMutable(int capacity) { if (!repeatedFloat_.isModifiable()) { repeatedFloat_ = makeMutableCopy(repeatedFloat_, capacity); } bitField1_ |= 0x00000020; } /** * repeated float repeated_float = 41; * @return A list containing the repeatedFloat. */ public java.util.List getRepeatedFloatList() { repeatedFloat_.makeImmutable(); return repeatedFloat_; } /** * repeated float repeated_float = 41; * @return The count of repeatedFloat. */ public int getRepeatedFloatCount() { return repeatedFloat_.size(); } /** * repeated float repeated_float = 41; * @param index The index of the element to return. * @return The repeatedFloat at the given index. */ public float getRepeatedFloat(int index) { return repeatedFloat_.getFloat(index); } /** * repeated float repeated_float = 41; * @param index The index to set the value at. * @param value The repeatedFloat to set. * @return This builder for chaining. */ public Builder setRepeatedFloat( int index, float value) { ensureRepeatedFloatIsMutable(); repeatedFloat_.setFloat(index, value); bitField1_ |= 0x00000020; onChanged(); return this; } /** * repeated float repeated_float = 41; * @param value The repeatedFloat to add. * @return This builder for chaining. */ public Builder addRepeatedFloat(float value) { ensureRepeatedFloatIsMutable(); repeatedFloat_.addFloat(value); bitField1_ |= 0x00000020; onChanged(); return this; } /** * repeated float repeated_float = 41; * @param values The repeatedFloat to add. * @return This builder for chaining. */ public Builder addAllRepeatedFloat( java.lang.Iterable values) { ensureRepeatedFloatIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFloat_); bitField1_ |= 0x00000020; onChanged(); return this; } /** * repeated float repeated_float = 41; * @return This builder for chaining. */ public Builder clearRepeatedFloat() { repeatedFloat_ = emptyFloatList(); bitField1_ = (bitField1_ & ~0x00000020); onChanged(); return this; } private com.google.protobuf.Internal.DoubleList repeatedDouble_ = emptyDoubleList(); private void ensureRepeatedDoubleIsMutable() { if (!repeatedDouble_.isModifiable()) { repeatedDouble_ = makeMutableCopy(repeatedDouble_); } bitField1_ |= 0x00000040; } private void ensureRepeatedDoubleIsMutable(int capacity) { if (!repeatedDouble_.isModifiable()) { repeatedDouble_ = makeMutableCopy(repeatedDouble_, capacity); } bitField1_ |= 0x00000040; } /** * repeated double repeated_double = 42; * @return A list containing the repeatedDouble. */ public java.util.List getRepeatedDoubleList() { repeatedDouble_.makeImmutable(); return repeatedDouble_; } /** * repeated double repeated_double = 42; * @return The count of repeatedDouble. */ public int getRepeatedDoubleCount() { return repeatedDouble_.size(); } /** * repeated double repeated_double = 42; * @param index The index of the element to return. * @return The repeatedDouble at the given index. */ public double getRepeatedDouble(int index) { return repeatedDouble_.getDouble(index); } /** * repeated double repeated_double = 42; * @param index The index to set the value at. * @param value The repeatedDouble to set. * @return This builder for chaining. */ public Builder setRepeatedDouble( int index, double value) { ensureRepeatedDoubleIsMutable(); repeatedDouble_.setDouble(index, value); bitField1_ |= 0x00000040; onChanged(); return this; } /** * repeated double repeated_double = 42; * @param value The repeatedDouble to add. * @return This builder for chaining. */ public Builder addRepeatedDouble(double value) { ensureRepeatedDoubleIsMutable(); repeatedDouble_.addDouble(value); bitField1_ |= 0x00000040; onChanged(); return this; } /** * repeated double repeated_double = 42; * @param values The repeatedDouble to add. * @return This builder for chaining. */ public Builder addAllRepeatedDouble( java.lang.Iterable values) { ensureRepeatedDoubleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedDouble_); bitField1_ |= 0x00000040; onChanged(); return this; } /** * repeated double repeated_double = 42; * @return This builder for chaining. */ public Builder clearRepeatedDouble() { repeatedDouble_ = emptyDoubleList(); bitField1_ = (bitField1_ & ~0x00000040); onChanged(); return this; } private com.google.protobuf.Internal.BooleanList repeatedBool_ = emptyBooleanList(); private void ensureRepeatedBoolIsMutable() { if (!repeatedBool_.isModifiable()) { repeatedBool_ = makeMutableCopy(repeatedBool_); } bitField1_ |= 0x00000080; } private void ensureRepeatedBoolIsMutable(int capacity) { if (!repeatedBool_.isModifiable()) { repeatedBool_ = makeMutableCopy(repeatedBool_, capacity); } bitField1_ |= 0x00000080; } /** * repeated bool repeated_bool = 43; * @return A list containing the repeatedBool. */ public java.util.List getRepeatedBoolList() { repeatedBool_.makeImmutable(); return repeatedBool_; } /** * repeated bool repeated_bool = 43; * @return The count of repeatedBool. */ public int getRepeatedBoolCount() { return repeatedBool_.size(); } /** * repeated bool repeated_bool = 43; * @param index The index of the element to return. * @return The repeatedBool at the given index. */ public boolean getRepeatedBool(int index) { return repeatedBool_.getBoolean(index); } /** * repeated bool repeated_bool = 43; * @param index The index to set the value at. * @param value The repeatedBool to set. * @return This builder for chaining. */ public Builder setRepeatedBool( int index, boolean value) { ensureRepeatedBoolIsMutable(); repeatedBool_.setBoolean(index, value); bitField1_ |= 0x00000080; onChanged(); return this; } /** * repeated bool repeated_bool = 43; * @param value The repeatedBool to add. * @return This builder for chaining. */ public Builder addRepeatedBool(boolean value) { ensureRepeatedBoolIsMutable(); repeatedBool_.addBoolean(value); bitField1_ |= 0x00000080; onChanged(); return this; } /** * repeated bool repeated_bool = 43; * @param values The repeatedBool to add. * @return This builder for chaining. */ public Builder addAllRepeatedBool( java.lang.Iterable values) { ensureRepeatedBoolIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedBool_); bitField1_ |= 0x00000080; onChanged(); return this; } /** * repeated bool repeated_bool = 43; * @return This builder for chaining. */ public Builder clearRepeatedBool() { repeatedBool_ = emptyBooleanList(); bitField1_ = (bitField1_ & ~0x00000080); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList repeatedString_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRepeatedStringIsMutable() { if (!repeatedString_.isModifiable()) { repeatedString_ = new com.google.protobuf.LazyStringArrayList(repeatedString_); } bitField1_ |= 0x00000100; } /** * repeated string repeated_string = 44; * @return A list containing the repeatedString. */ public com.google.protobuf.ProtocolStringList getRepeatedStringList() { repeatedString_.makeImmutable(); return repeatedString_; } /** * repeated string repeated_string = 44; * @return The count of repeatedString. */ public int getRepeatedStringCount() { return repeatedString_.size(); } /** * repeated string repeated_string = 44; * @param index The index of the element to return. * @return The repeatedString at the given index. */ public java.lang.String getRepeatedString(int index) { return repeatedString_.get(index); } /** * repeated string repeated_string = 44; * @param index The index of the value to return. * @return The bytes of the repeatedString at the given index. */ public com.google.protobuf.ByteString getRepeatedStringBytes(int index) { return repeatedString_.getByteString(index); } /** * repeated string repeated_string = 44; * @param index The index to set the value at. * @param value The repeatedString to set. * @return This builder for chaining. */ public Builder setRepeatedString( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringIsMutable(); repeatedString_.set(index, value); bitField1_ |= 0x00000100; onChanged(); return this; } /** * repeated string repeated_string = 44; * @param value The repeatedString to add. * @return This builder for chaining. */ public Builder addRepeatedString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringIsMutable(); repeatedString_.add(value); bitField1_ |= 0x00000100; onChanged(); return this; } /** * repeated string repeated_string = 44; * @param values The repeatedString to add. * @return This builder for chaining. */ public Builder addAllRepeatedString( java.lang.Iterable values) { ensureRepeatedStringIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedString_); bitField1_ |= 0x00000100; onChanged(); return this; } /** * repeated string repeated_string = 44; * @return This builder for chaining. */ public Builder clearRepeatedString() { repeatedString_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField1_ = (bitField1_ & ~0x00000100);; onChanged(); return this; } /** * repeated string repeated_string = 44; * @param value The bytes of the repeatedString to add. * @return This builder for chaining. */ public Builder addRepeatedStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringIsMutable(); repeatedString_.add(value); bitField1_ |= 0x00000100; onChanged(); return this; } private com.google.protobuf.Internal.ProtobufList repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class); private void ensureRepeatedBytesIsMutable() { if (!repeatedBytes_.isModifiable()) { repeatedBytes_ = makeMutableCopy(repeatedBytes_); } bitField1_ |= 0x00000200; } /** * repeated bytes repeated_bytes = 45; * @return A list containing the repeatedBytes. */ public java.util.List getRepeatedBytesList() { repeatedBytes_.makeImmutable(); return repeatedBytes_; } /** * repeated bytes repeated_bytes = 45; * @return The count of repeatedBytes. */ public int getRepeatedBytesCount() { return repeatedBytes_.size(); } /** * repeated bytes repeated_bytes = 45; * @param index The index of the element to return. * @return The repeatedBytes at the given index. */ public com.google.protobuf.ByteString getRepeatedBytes(int index) { return repeatedBytes_.get(index); } /** * repeated bytes repeated_bytes = 45; * @param index The index to set the value at. * @param value The repeatedBytes to set. * @return This builder for chaining. */ public Builder setRepeatedBytes( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedBytesIsMutable(); repeatedBytes_.set(index, value); bitField1_ |= 0x00000200; onChanged(); return this; } /** * repeated bytes repeated_bytes = 45; * @param value The repeatedBytes to add. * @return This builder for chaining. */ public Builder addRepeatedBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedBytesIsMutable(); repeatedBytes_.add(value); bitField1_ |= 0x00000200; onChanged(); return this; } /** * repeated bytes repeated_bytes = 45; * @param values The repeatedBytes to add. * @return This builder for chaining. */ public Builder addAllRepeatedBytes( java.lang.Iterable values) { ensureRepeatedBytesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedBytes_); bitField1_ |= 0x00000200; onChanged(); return this; } /** * repeated bytes repeated_bytes = 45; * @return This builder for chaining. */ public Builder clearRepeatedBytes() { repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class); bitField1_ = (bitField1_ & ~0x00000200); onChanged(); return this; } private java.util.List repeatedGroup_ = java.util.Collections.emptyList(); private void ensureRepeatedGroupIsMutable() { if (!((bitField1_ & 0x00000400) != 0)) { repeatedGroup_ = new java.util.ArrayList(repeatedGroup_); bitField1_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder> repeatedGroupBuilder_; /** * repeated group RepeatedGroup = 46 { ... } */ public java.util.List getRepeatedGroupList() { if (repeatedGroupBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedGroup_); } else { return repeatedGroupBuilder_.getMessageList(); } } /** * repeated group RepeatedGroup = 46 { ... } */ public int getRepeatedGroupCount() { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.size(); } else { return repeatedGroupBuilder_.getCount(); } } /** * repeated group RepeatedGroup = 46 { ... } */ public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup getRepeatedGroup(int index) { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.get(index); } else { return repeatedGroupBuilder_.getMessage(index); } } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder setRepeatedGroup( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup value) { if (repeatedGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedGroupIsMutable(); repeatedGroup_.set(index, value); onChanged(); } else { repeatedGroupBuilder_.setMessage(index, value); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder setRepeatedGroup( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.set(index, builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder addRepeatedGroup(com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup value) { if (repeatedGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedGroupIsMutable(); repeatedGroup_.add(value); onChanged(); } else { repeatedGroupBuilder_.addMessage(value); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder addRepeatedGroup( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup value) { if (repeatedGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedGroupIsMutable(); repeatedGroup_.add(index, value); onChanged(); } else { repeatedGroupBuilder_.addMessage(index, value); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder addRepeatedGroup( com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.add(builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder addRepeatedGroup( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.add(index, builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder addAllRepeatedGroup( java.lang.Iterable values) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedGroup_); onChanged(); } else { repeatedGroupBuilder_.addAllMessages(values); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder clearRepeatedGroup() { if (repeatedGroupBuilder_ == null) { repeatedGroup_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000400); onChanged(); } else { repeatedGroupBuilder_.clear(); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public Builder removeRepeatedGroup(int index) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.remove(index); onChanged(); } else { repeatedGroupBuilder_.remove(index); } return this; } /** * repeated group RepeatedGroup = 46 { ... } */ public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder getRepeatedGroupBuilder( int index) { return getRepeatedGroupFieldBuilder().getBuilder(index); } /** * repeated group RepeatedGroup = 46 { ... } */ public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index) { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.get(index); } else { return repeatedGroupBuilder_.getMessageOrBuilder(index); } } /** * repeated group RepeatedGroup = 46 { ... } */ public java.util.List getRepeatedGroupOrBuilderList() { if (repeatedGroupBuilder_ != null) { return repeatedGroupBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedGroup_); } } /** * repeated group RepeatedGroup = 46 { ... } */ public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder addRepeatedGroupBuilder() { return getRepeatedGroupFieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.getDefaultInstance()); } /** * repeated group RepeatedGroup = 46 { ... } */ public com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder addRepeatedGroupBuilder( int index) { return getRepeatedGroupFieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.getDefaultInstance()); } /** * repeated group RepeatedGroup = 46 { ... } */ public java.util.List getRepeatedGroupBuilderList() { return getRepeatedGroupFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder> getRepeatedGroupFieldBuilder() { if (repeatedGroupBuilder_ == null) { repeatedGroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroup.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.RepeatedGroupOrBuilder>( repeatedGroup_, ((bitField1_ & 0x00000400) != 0), getParentForChildren(), isClean()); repeatedGroup_ = null; } return repeatedGroupBuilder_; } private java.util.List repeatedNestedMessage_ = java.util.Collections.emptyList(); private void ensureRepeatedNestedMessageIsMutable() { if (!((bitField1_ & 0x00000800) != 0)) { repeatedNestedMessage_ = new java.util.ArrayList(repeatedNestedMessage_); bitField1_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> repeatedNestedMessageBuilder_; /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public java.util.List getRepeatedNestedMessageList() { if (repeatedNestedMessageBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedNestedMessage_); } else { return repeatedNestedMessageBuilder_.getMessageList(); } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public int getRepeatedNestedMessageCount() { if (repeatedNestedMessageBuilder_ == null) { return repeatedNestedMessage_.size(); } else { return repeatedNestedMessageBuilder_.getCount(); } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedNestedMessage(int index) { if (repeatedNestedMessageBuilder_ == null) { return repeatedNestedMessage_.get(index); } else { return repeatedNestedMessageBuilder_.getMessage(index); } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public Builder setRepeatedNestedMessage( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (repeatedNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.set(index, value); onChanged(); } else { repeatedNestedMessageBuilder_.setMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public Builder setRepeatedNestedMessage( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.set(index, builderForValue.build()); onChanged(); } else { repeatedNestedMessageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public Builder addRepeatedNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (repeatedNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.add(value); onChanged(); } else { repeatedNestedMessageBuilder_.addMessage(value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public Builder addRepeatedNestedMessage( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (repeatedNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.add(index, value); onChanged(); } else { repeatedNestedMessageBuilder_.addMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public Builder addRepeatedNestedMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.add(builderForValue.build()); onChanged(); } else { repeatedNestedMessageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public Builder addRepeatedNestedMessage( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.add(index, builderForValue.build()); onChanged(); } else { repeatedNestedMessageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public Builder addAllRepeatedNestedMessage( java.lang.Iterable values) { if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedNestedMessage_); onChanged(); } else { repeatedNestedMessageBuilder_.addAllMessages(values); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public Builder clearRepeatedNestedMessage() { if (repeatedNestedMessageBuilder_ == null) { repeatedNestedMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000800); onChanged(); } else { repeatedNestedMessageBuilder_.clear(); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public Builder removeRepeatedNestedMessage(int index) { if (repeatedNestedMessageBuilder_ == null) { ensureRepeatedNestedMessageIsMutable(); repeatedNestedMessage_.remove(index); onChanged(); } else { repeatedNestedMessageBuilder_.remove(index); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getRepeatedNestedMessageBuilder( int index) { return getRepeatedNestedMessageFieldBuilder().getBuilder(index); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder( int index) { if (repeatedNestedMessageBuilder_ == null) { return repeatedNestedMessage_.get(index); } else { return repeatedNestedMessageBuilder_.getMessageOrBuilder(index); } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public java.util.List getRepeatedNestedMessageOrBuilderList() { if (repeatedNestedMessageBuilder_ != null) { return repeatedNestedMessageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedNestedMessage_); } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder addRepeatedNestedMessageBuilder() { return getRepeatedNestedMessageFieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder addRepeatedNestedMessageBuilder( int index) { return getRepeatedNestedMessageFieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48; */ public java.util.List getRepeatedNestedMessageBuilderList() { return getRepeatedNestedMessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> getRepeatedNestedMessageFieldBuilder() { if (repeatedNestedMessageBuilder_ == null) { repeatedNestedMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>( repeatedNestedMessage_, ((bitField1_ & 0x00000800) != 0), getParentForChildren(), isClean()); repeatedNestedMessage_ = null; } return repeatedNestedMessageBuilder_; } private java.util.List repeatedForeignMessage_ = java.util.Collections.emptyList(); private void ensureRepeatedForeignMessageIsMutable() { if (!((bitField1_ & 0x00001000) != 0)) { repeatedForeignMessage_ = new java.util.ArrayList(repeatedForeignMessage_); bitField1_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder> repeatedForeignMessageBuilder_; /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public java.util.List getRepeatedForeignMessageList() { if (repeatedForeignMessageBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedForeignMessage_); } else { return repeatedForeignMessageBuilder_.getMessageList(); } } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public int getRepeatedForeignMessageCount() { if (repeatedForeignMessageBuilder_ == null) { return repeatedForeignMessage_.size(); } else { return repeatedForeignMessageBuilder_.getCount(); } } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public com.google.protobuf.UnittestLite.ForeignMessageLite getRepeatedForeignMessage(int index) { if (repeatedForeignMessageBuilder_ == null) { return repeatedForeignMessage_.get(index); } else { return repeatedForeignMessageBuilder_.getMessage(index); } } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public Builder setRepeatedForeignMessage( int index, com.google.protobuf.UnittestLite.ForeignMessageLite value) { if (repeatedForeignMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.set(index, value); onChanged(); } else { repeatedForeignMessageBuilder_.setMessage(index, value); } return this; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public Builder setRepeatedForeignMessage( int index, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) { if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.set(index, builderForValue.build()); onChanged(); } else { repeatedForeignMessageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public Builder addRepeatedForeignMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) { if (repeatedForeignMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.add(value); onChanged(); } else { repeatedForeignMessageBuilder_.addMessage(value); } return this; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public Builder addRepeatedForeignMessage( int index, com.google.protobuf.UnittestLite.ForeignMessageLite value) { if (repeatedForeignMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.add(index, value); onChanged(); } else { repeatedForeignMessageBuilder_.addMessage(index, value); } return this; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public Builder addRepeatedForeignMessage( com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) { if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.add(builderForValue.build()); onChanged(); } else { repeatedForeignMessageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public Builder addRepeatedForeignMessage( int index, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) { if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.add(index, builderForValue.build()); onChanged(); } else { repeatedForeignMessageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public Builder addAllRepeatedForeignMessage( java.lang.Iterable values) { if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedForeignMessage_); onChanged(); } else { repeatedForeignMessageBuilder_.addAllMessages(values); } return this; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public Builder clearRepeatedForeignMessage() { if (repeatedForeignMessageBuilder_ == null) { repeatedForeignMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00001000); onChanged(); } else { repeatedForeignMessageBuilder_.clear(); } return this; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public Builder removeRepeatedForeignMessage(int index) { if (repeatedForeignMessageBuilder_ == null) { ensureRepeatedForeignMessageIsMutable(); repeatedForeignMessage_.remove(index); onChanged(); } else { repeatedForeignMessageBuilder_.remove(index); } return this; } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public com.google.protobuf.UnittestLite.ForeignMessageLite.Builder getRepeatedForeignMessageBuilder( int index) { return getRepeatedForeignMessageFieldBuilder().getBuilder(index); } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getRepeatedForeignMessageOrBuilder( int index) { if (repeatedForeignMessageBuilder_ == null) { return repeatedForeignMessage_.get(index); } else { return repeatedForeignMessageBuilder_.getMessageOrBuilder(index); } } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public java.util.List getRepeatedForeignMessageOrBuilderList() { if (repeatedForeignMessageBuilder_ != null) { return repeatedForeignMessageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedForeignMessage_); } } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public com.google.protobuf.UnittestLite.ForeignMessageLite.Builder addRepeatedForeignMessageBuilder() { return getRepeatedForeignMessageFieldBuilder().addBuilder( com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()); } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public com.google.protobuf.UnittestLite.ForeignMessageLite.Builder addRepeatedForeignMessageBuilder( int index) { return getRepeatedForeignMessageFieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()); } /** * repeated .proto2_unittest.ForeignMessageLite repeated_foreign_message = 49; */ public java.util.List getRepeatedForeignMessageBuilderList() { return getRepeatedForeignMessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder> getRepeatedForeignMessageFieldBuilder() { if (repeatedForeignMessageBuilder_ == null) { repeatedForeignMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder>( repeatedForeignMessage_, ((bitField1_ & 0x00001000) != 0), getParentForChildren(), isClean()); repeatedForeignMessage_ = null; } return repeatedForeignMessageBuilder_; } private java.util.List repeatedImportMessage_ = java.util.Collections.emptyList(); private void ensureRepeatedImportMessageIsMutable() { if (!((bitField1_ & 0x00002000) != 0)) { repeatedImportMessage_ = new java.util.ArrayList(repeatedImportMessage_); bitField1_ |= 0x00002000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder> repeatedImportMessageBuilder_; /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public java.util.List getRepeatedImportMessageList() { if (repeatedImportMessageBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedImportMessage_); } else { return repeatedImportMessageBuilder_.getMessageList(); } } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public int getRepeatedImportMessageCount() { if (repeatedImportMessageBuilder_ == null) { return repeatedImportMessage_.size(); } else { return repeatedImportMessageBuilder_.getCount(); } } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public com.google.protobuf.UnittestImportLite.ImportMessageLite getRepeatedImportMessage(int index) { if (repeatedImportMessageBuilder_ == null) { return repeatedImportMessage_.get(index); } else { return repeatedImportMessageBuilder_.getMessage(index); } } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public Builder setRepeatedImportMessage( int index, com.google.protobuf.UnittestImportLite.ImportMessageLite value) { if (repeatedImportMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.set(index, value); onChanged(); } else { repeatedImportMessageBuilder_.setMessage(index, value); } return this; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public Builder setRepeatedImportMessage( int index, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) { if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.set(index, builderForValue.build()); onChanged(); } else { repeatedImportMessageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public Builder addRepeatedImportMessage(com.google.protobuf.UnittestImportLite.ImportMessageLite value) { if (repeatedImportMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.add(value); onChanged(); } else { repeatedImportMessageBuilder_.addMessage(value); } return this; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public Builder addRepeatedImportMessage( int index, com.google.protobuf.UnittestImportLite.ImportMessageLite value) { if (repeatedImportMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.add(index, value); onChanged(); } else { repeatedImportMessageBuilder_.addMessage(index, value); } return this; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public Builder addRepeatedImportMessage( com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) { if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.add(builderForValue.build()); onChanged(); } else { repeatedImportMessageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public Builder addRepeatedImportMessage( int index, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder builderForValue) { if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.add(index, builderForValue.build()); onChanged(); } else { repeatedImportMessageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public Builder addAllRepeatedImportMessage( java.lang.Iterable values) { if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedImportMessage_); onChanged(); } else { repeatedImportMessageBuilder_.addAllMessages(values); } return this; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public Builder clearRepeatedImportMessage() { if (repeatedImportMessageBuilder_ == null) { repeatedImportMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00002000); onChanged(); } else { repeatedImportMessageBuilder_.clear(); } return this; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public Builder removeRepeatedImportMessage(int index) { if (repeatedImportMessageBuilder_ == null) { ensureRepeatedImportMessageIsMutable(); repeatedImportMessage_.remove(index); onChanged(); } else { repeatedImportMessageBuilder_.remove(index); } return this; } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder getRepeatedImportMessageBuilder( int index) { return getRepeatedImportMessageFieldBuilder().getBuilder(index); } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder getRepeatedImportMessageOrBuilder( int index) { if (repeatedImportMessageBuilder_ == null) { return repeatedImportMessage_.get(index); } else { return repeatedImportMessageBuilder_.getMessageOrBuilder(index); } } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public java.util.List getRepeatedImportMessageOrBuilderList() { if (repeatedImportMessageBuilder_ != null) { return repeatedImportMessageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedImportMessage_); } } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder addRepeatedImportMessageBuilder() { return getRepeatedImportMessageFieldBuilder().addBuilder( com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance()); } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder addRepeatedImportMessageBuilder( int index) { return getRepeatedImportMessageFieldBuilder().addBuilder( index, com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance()); } /** * repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; */ public java.util.List getRepeatedImportMessageBuilderList() { return getRepeatedImportMessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder> getRepeatedImportMessageFieldBuilder() { if (repeatedImportMessageBuilder_ == null) { repeatedImportMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestImportLite.ImportMessageLite, com.google.protobuf.UnittestImportLite.ImportMessageLite.Builder, com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder>( repeatedImportMessage_, ((bitField1_ & 0x00002000) != 0), getParentForChildren(), isClean()); repeatedImportMessage_ = null; } return repeatedImportMessageBuilder_; } private java.util.List repeatedNestedEnum_ = java.util.Collections.emptyList(); private void ensureRepeatedNestedEnumIsMutable() { if (!((bitField1_ & 0x00004000) != 0)) { repeatedNestedEnum_ = new java.util.ArrayList(repeatedNestedEnum_); bitField1_ |= 0x00004000; } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @return A list containing the repeatedNestedEnum. */ public java.util.List getRepeatedNestedEnumList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum>(repeatedNestedEnum_, repeatedNestedEnum_converter_); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @return The count of repeatedNestedEnum. */ public int getRepeatedNestedEnumCount() { return repeatedNestedEnum_.size(); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @param index The index of the element to return. * @return The repeatedNestedEnum at the given index. */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getRepeatedNestedEnum(int index) { return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index)); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @param index The index to set the value at. * @param value The repeatedNestedEnum to set. * @return This builder for chaining. */ public Builder setRepeatedNestedEnum( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedNestedEnumIsMutable(); repeatedNestedEnum_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @param value The repeatedNestedEnum to add. * @return This builder for chaining. */ public Builder addRepeatedNestedEnum(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedNestedEnumIsMutable(); repeatedNestedEnum_.add(value.getNumber()); onChanged(); return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @param values The repeatedNestedEnum to add. * @return This builder for chaining. */ public Builder addAllRepeatedNestedEnum( java.lang.Iterable values) { ensureRepeatedNestedEnumIsMutable(); for (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value : values) { repeatedNestedEnum_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51; * @return This builder for chaining. */ public Builder clearRepeatedNestedEnum() { repeatedNestedEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00004000); onChanged(); return this; } private java.util.List repeatedForeignEnum_ = java.util.Collections.emptyList(); private void ensureRepeatedForeignEnumIsMutable() { if (!((bitField1_ & 0x00008000) != 0)) { repeatedForeignEnum_ = new java.util.ArrayList(repeatedForeignEnum_); bitField1_ |= 0x00008000; } } /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @return A list containing the repeatedForeignEnum. */ public java.util.List getRepeatedForeignEnumList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite>(repeatedForeignEnum_, repeatedForeignEnum_converter_); } /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @return The count of repeatedForeignEnum. */ public int getRepeatedForeignEnumCount() { return repeatedForeignEnum_.size(); } /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @param index The index of the element to return. * @return The repeatedForeignEnum at the given index. */ public com.google.protobuf.UnittestLite.ForeignEnumLite getRepeatedForeignEnum(int index) { return repeatedForeignEnum_converter_.convert(repeatedForeignEnum_.get(index)); } /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @param index The index to set the value at. * @param value The repeatedForeignEnum to set. * @return This builder for chaining. */ public Builder setRepeatedForeignEnum( int index, com.google.protobuf.UnittestLite.ForeignEnumLite value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedForeignEnumIsMutable(); repeatedForeignEnum_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @param value The repeatedForeignEnum to add. * @return This builder for chaining. */ public Builder addRepeatedForeignEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedForeignEnumIsMutable(); repeatedForeignEnum_.add(value.getNumber()); onChanged(); return this; } /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @param values The repeatedForeignEnum to add. * @return This builder for chaining. */ public Builder addAllRepeatedForeignEnum( java.lang.Iterable values) { ensureRepeatedForeignEnumIsMutable(); for (com.google.protobuf.UnittestLite.ForeignEnumLite value : values) { repeatedForeignEnum_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .proto2_unittest.ForeignEnumLite repeated_foreign_enum = 52; * @return This builder for chaining. */ public Builder clearRepeatedForeignEnum() { repeatedForeignEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00008000); onChanged(); return this; } private java.util.List repeatedImportEnum_ = java.util.Collections.emptyList(); private void ensureRepeatedImportEnumIsMutable() { if (!((bitField1_ & 0x00010000) != 0)) { repeatedImportEnum_ = new java.util.ArrayList(repeatedImportEnum_); bitField1_ |= 0x00010000; } } /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @return A list containing the repeatedImportEnum. */ public java.util.List getRepeatedImportEnumList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.protobuf.UnittestImportLite.ImportEnumLite>(repeatedImportEnum_, repeatedImportEnum_converter_); } /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @return The count of repeatedImportEnum. */ public int getRepeatedImportEnumCount() { return repeatedImportEnum_.size(); } /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @param index The index of the element to return. * @return The repeatedImportEnum at the given index. */ public com.google.protobuf.UnittestImportLite.ImportEnumLite getRepeatedImportEnum(int index) { return repeatedImportEnum_converter_.convert(repeatedImportEnum_.get(index)); } /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @param index The index to set the value at. * @param value The repeatedImportEnum to set. * @return This builder for chaining. */ public Builder setRepeatedImportEnum( int index, com.google.protobuf.UnittestImportLite.ImportEnumLite value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedImportEnumIsMutable(); repeatedImportEnum_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @param value The repeatedImportEnum to add. * @return This builder for chaining. */ public Builder addRepeatedImportEnum(com.google.protobuf.UnittestImportLite.ImportEnumLite value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedImportEnumIsMutable(); repeatedImportEnum_.add(value.getNumber()); onChanged(); return this; } /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @param values The repeatedImportEnum to add. * @return This builder for chaining. */ public Builder addAllRepeatedImportEnum( java.lang.Iterable values) { ensureRepeatedImportEnumIsMutable(); for (com.google.protobuf.UnittestImportLite.ImportEnumLite value : values) { repeatedImportEnum_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; * @return This builder for chaining. */ public Builder clearRepeatedImportEnum() { repeatedImportEnum_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00010000); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRepeatedStringPieceIsMutable() { if (!repeatedStringPiece_.isModifiable()) { repeatedStringPiece_ = new com.google.protobuf.LazyStringArrayList(repeatedStringPiece_); } bitField1_ |= 0x00020000; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @return A list containing the repeatedStringPiece. */ public com.google.protobuf.ProtocolStringList getRepeatedStringPieceList() { repeatedStringPiece_.makeImmutable(); return repeatedStringPiece_; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @return The count of repeatedStringPiece. */ public int getRepeatedStringPieceCount() { return repeatedStringPiece_.size(); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @param index The index of the element to return. * @return The repeatedStringPiece at the given index. */ public java.lang.String getRepeatedStringPiece(int index) { return repeatedStringPiece_.get(index); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @param index The index of the value to return. * @return The bytes of the repeatedStringPiece at the given index. */ public com.google.protobuf.ByteString getRepeatedStringPieceBytes(int index) { return repeatedStringPiece_.getByteString(index); } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @param index The index to set the value at. * @param value The repeatedStringPiece to set. * @return This builder for chaining. */ public Builder setRepeatedStringPiece( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringPieceIsMutable(); repeatedStringPiece_.set(index, value); bitField1_ |= 0x00020000; onChanged(); return this; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @param value The repeatedStringPiece to add. * @return This builder for chaining. */ public Builder addRepeatedStringPiece( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringPieceIsMutable(); repeatedStringPiece_.add(value); bitField1_ |= 0x00020000; onChanged(); return this; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @param values The repeatedStringPiece to add. * @return This builder for chaining. */ public Builder addAllRepeatedStringPiece( java.lang.Iterable values) { ensureRepeatedStringPieceIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedStringPiece_); bitField1_ |= 0x00020000; onChanged(); return this; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @return This builder for chaining. */ public Builder clearRepeatedStringPiece() { repeatedStringPiece_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField1_ = (bitField1_ & ~0x00020000);; onChanged(); return this; } /** * repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; * @param value The bytes of the repeatedStringPiece to add. * @return This builder for chaining. */ public Builder addRepeatedStringPieceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedStringPieceIsMutable(); repeatedStringPiece_.add(value); bitField1_ |= 0x00020000; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList repeatedCord_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRepeatedCordIsMutable() { if (!repeatedCord_.isModifiable()) { repeatedCord_ = new com.google.protobuf.LazyStringArrayList(repeatedCord_); } bitField1_ |= 0x00040000; } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @return A list containing the repeatedCord. */ public com.google.protobuf.ProtocolStringList getRepeatedCordList() { repeatedCord_.makeImmutable(); return repeatedCord_; } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @return The count of repeatedCord. */ public int getRepeatedCordCount() { return repeatedCord_.size(); } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @param index The index of the element to return. * @return The repeatedCord at the given index. */ public java.lang.String getRepeatedCord(int index) { return repeatedCord_.get(index); } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @param index The index of the value to return. * @return The bytes of the repeatedCord at the given index. */ public com.google.protobuf.ByteString getRepeatedCordBytes(int index) { return repeatedCord_.getByteString(index); } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @param index The index to set the value at. * @param value The repeatedCord to set. * @return This builder for chaining. */ public Builder setRepeatedCord( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedCordIsMutable(); repeatedCord_.set(index, value); bitField1_ |= 0x00040000; onChanged(); return this; } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @param value The repeatedCord to add. * @return This builder for chaining. */ public Builder addRepeatedCord( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedCordIsMutable(); repeatedCord_.add(value); bitField1_ |= 0x00040000; onChanged(); return this; } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @param values The repeatedCord to add. * @return This builder for chaining. */ public Builder addAllRepeatedCord( java.lang.Iterable values) { ensureRepeatedCordIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedCord_); bitField1_ |= 0x00040000; onChanged(); return this; } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @return This builder for chaining. */ public Builder clearRepeatedCord() { repeatedCord_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField1_ = (bitField1_ & ~0x00040000);; onChanged(); return this; } /** * repeated string repeated_cord = 55 [ctype = CORD]; * @param value The bytes of the repeatedCord to add. * @return This builder for chaining. */ public Builder addRepeatedCordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedCordIsMutable(); repeatedCord_.add(value); bitField1_ |= 0x00040000; onChanged(); return this; } private java.util.List repeatedLazyMessage_ = java.util.Collections.emptyList(); private void ensureRepeatedLazyMessageIsMutable() { if (!((bitField1_ & 0x00080000) != 0)) { repeatedLazyMessage_ = new java.util.ArrayList(repeatedLazyMessage_); bitField1_ |= 0x00080000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> repeatedLazyMessageBuilder_; /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public java.util.List getRepeatedLazyMessageList() { if (repeatedLazyMessageBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedLazyMessage_); } else { return repeatedLazyMessageBuilder_.getMessageList(); } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public int getRepeatedLazyMessageCount() { if (repeatedLazyMessageBuilder_ == null) { return repeatedLazyMessage_.size(); } else { return repeatedLazyMessageBuilder_.getCount(); } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getRepeatedLazyMessage(int index) { if (repeatedLazyMessageBuilder_ == null) { return repeatedLazyMessage_.get(index); } else { return repeatedLazyMessageBuilder_.getMessage(index); } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder setRepeatedLazyMessage( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (repeatedLazyMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.set(index, value); onChanged(); } else { repeatedLazyMessageBuilder_.setMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder setRepeatedLazyMessage( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.set(index, builderForValue.build()); onChanged(); } else { repeatedLazyMessageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder addRepeatedLazyMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (repeatedLazyMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.add(value); onChanged(); } else { repeatedLazyMessageBuilder_.addMessage(value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder addRepeatedLazyMessage( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (repeatedLazyMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.add(index, value); onChanged(); } else { repeatedLazyMessageBuilder_.addMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder addRepeatedLazyMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.add(builderForValue.build()); onChanged(); } else { repeatedLazyMessageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder addRepeatedLazyMessage( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.add(index, builderForValue.build()); onChanged(); } else { repeatedLazyMessageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder addAllRepeatedLazyMessage( java.lang.Iterable values) { if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedLazyMessage_); onChanged(); } else { repeatedLazyMessageBuilder_.addAllMessages(values); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder clearRepeatedLazyMessage() { if (repeatedLazyMessageBuilder_ == null) { repeatedLazyMessage_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00080000); onChanged(); } else { repeatedLazyMessageBuilder_.clear(); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public Builder removeRepeatedLazyMessage(int index) { if (repeatedLazyMessageBuilder_ == null) { ensureRepeatedLazyMessageIsMutable(); repeatedLazyMessage_.remove(index); onChanged(); } else { repeatedLazyMessageBuilder_.remove(index); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getRepeatedLazyMessageBuilder( int index) { return getRepeatedLazyMessageFieldBuilder().getBuilder(index); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getRepeatedLazyMessageOrBuilder( int index) { if (repeatedLazyMessageBuilder_ == null) { return repeatedLazyMessage_.get(index); } else { return repeatedLazyMessageBuilder_.getMessageOrBuilder(index); } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public java.util.List getRepeatedLazyMessageOrBuilderList() { if (repeatedLazyMessageBuilder_ != null) { return repeatedLazyMessageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedLazyMessage_); } } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder addRepeatedLazyMessageBuilder() { return getRepeatedLazyMessageFieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder addRepeatedLazyMessageBuilder( int index) { return getRepeatedLazyMessageFieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true]; */ public java.util.List getRepeatedLazyMessageBuilderList() { return getRepeatedLazyMessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> getRepeatedLazyMessageFieldBuilder() { if (repeatedLazyMessageBuilder_ == null) { repeatedLazyMessageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>( repeatedLazyMessage_, ((bitField1_ & 0x00080000) != 0), getParentForChildren(), isClean()); repeatedLazyMessage_ = null; } return repeatedLazyMessageBuilder_; } private int defaultInt32_ = 41; /** *
       * Singular with defaults
       * 
* * optional int32 default_int32 = 61 [default = 41]; * @return Whether the defaultInt32 field is set. */ @java.lang.Override public boolean hasDefaultInt32() { return ((bitField1_ & 0x00100000) != 0); } /** *
       * Singular with defaults
       * 
* * optional int32 default_int32 = 61 [default = 41]; * @return The defaultInt32. */ @java.lang.Override public int getDefaultInt32() { return defaultInt32_; } /** *
       * Singular with defaults
       * 
* * optional int32 default_int32 = 61 [default = 41]; * @param value The defaultInt32 to set. * @return This builder for chaining. */ public Builder setDefaultInt32(int value) { defaultInt32_ = value; bitField1_ |= 0x00100000; onChanged(); return this; } /** *
       * Singular with defaults
       * 
* * optional int32 default_int32 = 61 [default = 41]; * @return This builder for chaining. */ public Builder clearDefaultInt32() { bitField1_ = (bitField1_ & ~0x00100000); defaultInt32_ = 41; onChanged(); return this; } private long defaultInt64_ = 42L; /** * optional int64 default_int64 = 62 [default = 42]; * @return Whether the defaultInt64 field is set. */ @java.lang.Override public boolean hasDefaultInt64() { return ((bitField1_ & 0x00200000) != 0); } /** * optional int64 default_int64 = 62 [default = 42]; * @return The defaultInt64. */ @java.lang.Override public long getDefaultInt64() { return defaultInt64_; } /** * optional int64 default_int64 = 62 [default = 42]; * @param value The defaultInt64 to set. * @return This builder for chaining. */ public Builder setDefaultInt64(long value) { defaultInt64_ = value; bitField1_ |= 0x00200000; onChanged(); return this; } /** * optional int64 default_int64 = 62 [default = 42]; * @return This builder for chaining. */ public Builder clearDefaultInt64() { bitField1_ = (bitField1_ & ~0x00200000); defaultInt64_ = 42L; onChanged(); return this; } private int defaultUint32_ = 43; /** * optional uint32 default_uint32 = 63 [default = 43]; * @return Whether the defaultUint32 field is set. */ @java.lang.Override public boolean hasDefaultUint32() { return ((bitField1_ & 0x00400000) != 0); } /** * optional uint32 default_uint32 = 63 [default = 43]; * @return The defaultUint32. */ @java.lang.Override public int getDefaultUint32() { return defaultUint32_; } /** * optional uint32 default_uint32 = 63 [default = 43]; * @param value The defaultUint32 to set. * @return This builder for chaining. */ public Builder setDefaultUint32(int value) { defaultUint32_ = value; bitField1_ |= 0x00400000; onChanged(); return this; } /** * optional uint32 default_uint32 = 63 [default = 43]; * @return This builder for chaining. */ public Builder clearDefaultUint32() { bitField1_ = (bitField1_ & ~0x00400000); defaultUint32_ = 43; onChanged(); return this; } private long defaultUint64_ = 44L; /** * optional uint64 default_uint64 = 64 [default = 44]; * @return Whether the defaultUint64 field is set. */ @java.lang.Override public boolean hasDefaultUint64() { return ((bitField1_ & 0x00800000) != 0); } /** * optional uint64 default_uint64 = 64 [default = 44]; * @return The defaultUint64. */ @java.lang.Override public long getDefaultUint64() { return defaultUint64_; } /** * optional uint64 default_uint64 = 64 [default = 44]; * @param value The defaultUint64 to set. * @return This builder for chaining. */ public Builder setDefaultUint64(long value) { defaultUint64_ = value; bitField1_ |= 0x00800000; onChanged(); return this; } /** * optional uint64 default_uint64 = 64 [default = 44]; * @return This builder for chaining. */ public Builder clearDefaultUint64() { bitField1_ = (bitField1_ & ~0x00800000); defaultUint64_ = 44L; onChanged(); return this; } private int defaultSint32_ = -45; /** * optional sint32 default_sint32 = 65 [default = -45]; * @return Whether the defaultSint32 field is set. */ @java.lang.Override public boolean hasDefaultSint32() { return ((bitField1_ & 0x01000000) != 0); } /** * optional sint32 default_sint32 = 65 [default = -45]; * @return The defaultSint32. */ @java.lang.Override public int getDefaultSint32() { return defaultSint32_; } /** * optional sint32 default_sint32 = 65 [default = -45]; * @param value The defaultSint32 to set. * @return This builder for chaining. */ public Builder setDefaultSint32(int value) { defaultSint32_ = value; bitField1_ |= 0x01000000; onChanged(); return this; } /** * optional sint32 default_sint32 = 65 [default = -45]; * @return This builder for chaining. */ public Builder clearDefaultSint32() { bitField1_ = (bitField1_ & ~0x01000000); defaultSint32_ = -45; onChanged(); return this; } private long defaultSint64_ = 46L; /** * optional sint64 default_sint64 = 66 [default = 46]; * @return Whether the defaultSint64 field is set. */ @java.lang.Override public boolean hasDefaultSint64() { return ((bitField1_ & 0x02000000) != 0); } /** * optional sint64 default_sint64 = 66 [default = 46]; * @return The defaultSint64. */ @java.lang.Override public long getDefaultSint64() { return defaultSint64_; } /** * optional sint64 default_sint64 = 66 [default = 46]; * @param value The defaultSint64 to set. * @return This builder for chaining. */ public Builder setDefaultSint64(long value) { defaultSint64_ = value; bitField1_ |= 0x02000000; onChanged(); return this; } /** * optional sint64 default_sint64 = 66 [default = 46]; * @return This builder for chaining. */ public Builder clearDefaultSint64() { bitField1_ = (bitField1_ & ~0x02000000); defaultSint64_ = 46L; onChanged(); return this; } private int defaultFixed32_ = 47; /** * optional fixed32 default_fixed32 = 67 [default = 47]; * @return Whether the defaultFixed32 field is set. */ @java.lang.Override public boolean hasDefaultFixed32() { return ((bitField1_ & 0x04000000) != 0); } /** * optional fixed32 default_fixed32 = 67 [default = 47]; * @return The defaultFixed32. */ @java.lang.Override public int getDefaultFixed32() { return defaultFixed32_; } /** * optional fixed32 default_fixed32 = 67 [default = 47]; * @param value The defaultFixed32 to set. * @return This builder for chaining. */ public Builder setDefaultFixed32(int value) { defaultFixed32_ = value; bitField1_ |= 0x04000000; onChanged(); return this; } /** * optional fixed32 default_fixed32 = 67 [default = 47]; * @return This builder for chaining. */ public Builder clearDefaultFixed32() { bitField1_ = (bitField1_ & ~0x04000000); defaultFixed32_ = 47; onChanged(); return this; } private long defaultFixed64_ = 48L; /** * optional fixed64 default_fixed64 = 68 [default = 48]; * @return Whether the defaultFixed64 field is set. */ @java.lang.Override public boolean hasDefaultFixed64() { return ((bitField1_ & 0x08000000) != 0); } /** * optional fixed64 default_fixed64 = 68 [default = 48]; * @return The defaultFixed64. */ @java.lang.Override public long getDefaultFixed64() { return defaultFixed64_; } /** * optional fixed64 default_fixed64 = 68 [default = 48]; * @param value The defaultFixed64 to set. * @return This builder for chaining. */ public Builder setDefaultFixed64(long value) { defaultFixed64_ = value; bitField1_ |= 0x08000000; onChanged(); return this; } /** * optional fixed64 default_fixed64 = 68 [default = 48]; * @return This builder for chaining. */ public Builder clearDefaultFixed64() { bitField1_ = (bitField1_ & ~0x08000000); defaultFixed64_ = 48L; onChanged(); return this; } private int defaultSfixed32_ = 49; /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; * @return Whether the defaultSfixed32 field is set. */ @java.lang.Override public boolean hasDefaultSfixed32() { return ((bitField1_ & 0x10000000) != 0); } /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; * @return The defaultSfixed32. */ @java.lang.Override public int getDefaultSfixed32() { return defaultSfixed32_; } /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; * @param value The defaultSfixed32 to set. * @return This builder for chaining. */ public Builder setDefaultSfixed32(int value) { defaultSfixed32_ = value; bitField1_ |= 0x10000000; onChanged(); return this; } /** * optional sfixed32 default_sfixed32 = 69 [default = 49]; * @return This builder for chaining. */ public Builder clearDefaultSfixed32() { bitField1_ = (bitField1_ & ~0x10000000); defaultSfixed32_ = 49; onChanged(); return this; } private long defaultSfixed64_ = -50L; /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; * @return Whether the defaultSfixed64 field is set. */ @java.lang.Override public boolean hasDefaultSfixed64() { return ((bitField1_ & 0x20000000) != 0); } /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; * @return The defaultSfixed64. */ @java.lang.Override public long getDefaultSfixed64() { return defaultSfixed64_; } /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; * @param value The defaultSfixed64 to set. * @return This builder for chaining. */ public Builder setDefaultSfixed64(long value) { defaultSfixed64_ = value; bitField1_ |= 0x20000000; onChanged(); return this; } /** * optional sfixed64 default_sfixed64 = 70 [default = -50]; * @return This builder for chaining. */ public Builder clearDefaultSfixed64() { bitField1_ = (bitField1_ & ~0x20000000); defaultSfixed64_ = -50L; onChanged(); return this; } private float defaultFloat_ = 51.5F; /** * optional float default_float = 71 [default = 51.5]; * @return Whether the defaultFloat field is set. */ @java.lang.Override public boolean hasDefaultFloat() { return ((bitField1_ & 0x40000000) != 0); } /** * optional float default_float = 71 [default = 51.5]; * @return The defaultFloat. */ @java.lang.Override public float getDefaultFloat() { return defaultFloat_; } /** * optional float default_float = 71 [default = 51.5]; * @param value The defaultFloat to set. * @return This builder for chaining. */ public Builder setDefaultFloat(float value) { defaultFloat_ = value; bitField1_ |= 0x40000000; onChanged(); return this; } /** * optional float default_float = 71 [default = 51.5]; * @return This builder for chaining. */ public Builder clearDefaultFloat() { bitField1_ = (bitField1_ & ~0x40000000); defaultFloat_ = 51.5F; onChanged(); return this; } private double defaultDouble_ = 52000D; /** * optional double default_double = 72 [default = 52000]; * @return Whether the defaultDouble field is set. */ @java.lang.Override public boolean hasDefaultDouble() { return ((bitField1_ & 0x80000000) != 0); } /** * optional double default_double = 72 [default = 52000]; * @return The defaultDouble. */ @java.lang.Override public double getDefaultDouble() { return defaultDouble_; } /** * optional double default_double = 72 [default = 52000]; * @param value The defaultDouble to set. * @return This builder for chaining. */ public Builder setDefaultDouble(double value) { defaultDouble_ = value; bitField1_ |= 0x80000000; onChanged(); return this; } /** * optional double default_double = 72 [default = 52000]; * @return This builder for chaining. */ public Builder clearDefaultDouble() { bitField1_ = (bitField1_ & ~0x80000000); defaultDouble_ = 52000D; onChanged(); return this; } private boolean defaultBool_ = true; /** * optional bool default_bool = 73 [default = true]; * @return Whether the defaultBool field is set. */ @java.lang.Override public boolean hasDefaultBool() { return ((bitField2_ & 0x00000001) != 0); } /** * optional bool default_bool = 73 [default = true]; * @return The defaultBool. */ @java.lang.Override public boolean getDefaultBool() { return defaultBool_; } /** * optional bool default_bool = 73 [default = true]; * @param value The defaultBool to set. * @return This builder for chaining. */ public Builder setDefaultBool(boolean value) { defaultBool_ = value; bitField2_ |= 0x00000001; onChanged(); return this; } /** * optional bool default_bool = 73 [default = true]; * @return This builder for chaining. */ public Builder clearDefaultBool() { bitField2_ = (bitField2_ & ~0x00000001); defaultBool_ = true; onChanged(); return this; } private java.lang.Object defaultString_ = "hello"; /** * optional string default_string = 74 [default = "hello"]; * @return Whether the defaultString field is set. */ public boolean hasDefaultString() { return ((bitField2_ & 0x00000002) != 0); } /** * optional string default_string = 74 [default = "hello"]; * @return The defaultString. */ public java.lang.String getDefaultString() { java.lang.Object ref = defaultString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string default_string = 74 [default = "hello"]; * @return The bytes for defaultString. */ public com.google.protobuf.ByteString getDefaultStringBytes() { java.lang.Object ref = defaultString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string default_string = 74 [default = "hello"]; * @param value The defaultString to set. * @return This builder for chaining. */ public Builder setDefaultString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultString_ = value; bitField2_ |= 0x00000002; onChanged(); return this; } /** * optional string default_string = 74 [default = "hello"]; * @return This builder for chaining. */ public Builder clearDefaultString() { defaultString_ = getDefaultInstance().getDefaultString(); bitField2_ = (bitField2_ & ~0x00000002); onChanged(); return this; } /** * optional string default_string = 74 [default = "hello"]; * @param value The bytes for defaultString to set. * @return This builder for chaining. */ public Builder setDefaultStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } defaultString_ = value; bitField2_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.ByteString defaultBytes_ = com.google.protobuf.Internal.bytesDefaultValue("world"); /** * optional bytes default_bytes = 75 [default = "world"]; * @return Whether the defaultBytes field is set. */ @java.lang.Override public boolean hasDefaultBytes() { return ((bitField2_ & 0x00000004) != 0); } /** * optional bytes default_bytes = 75 [default = "world"]; * @return The defaultBytes. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultBytes() { return defaultBytes_; } /** * optional bytes default_bytes = 75 [default = "world"]; * @param value The defaultBytes to set. * @return This builder for chaining. */ public Builder setDefaultBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } defaultBytes_ = value; bitField2_ |= 0x00000004; onChanged(); return this; } /** * optional bytes default_bytes = 75 [default = "world"]; * @return This builder for chaining. */ public Builder clearDefaultBytes() { bitField2_ = (bitField2_ & ~0x00000004); defaultBytes_ = getDefaultInstance().getDefaultBytes(); onChanged(); return this; } private int defaultNestedEnum_ = 2; /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR]; * @return Whether the defaultNestedEnum field is set. */ @java.lang.Override public boolean hasDefaultNestedEnum() { return ((bitField2_ & 0x00000008) != 0); } /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR]; * @return The defaultNestedEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum getDefaultNestedEnum() { com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum result = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.forNumber(defaultNestedEnum_); return result == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.BAR : result; } /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR]; * @param value The defaultNestedEnum to set. * @return This builder for chaining. */ public Builder setDefaultNestedEnum(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000008; defaultNestedEnum_ = value.getNumber(); onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR]; * @return This builder for chaining. */ public Builder clearDefaultNestedEnum() { bitField2_ = (bitField2_ & ~0x00000008); defaultNestedEnum_ = 2; onChanged(); return this; } private int defaultForeignEnum_ = 5; /** * optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR]; * @return Whether the defaultForeignEnum field is set. */ @java.lang.Override public boolean hasDefaultForeignEnum() { return ((bitField2_ & 0x00000010) != 0); } /** * optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR]; * @return The defaultForeignEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignEnumLite getDefaultForeignEnum() { com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(defaultForeignEnum_); return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_BAR : result; } /** * optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR]; * @param value The defaultForeignEnum to set. * @return This builder for chaining. */ public Builder setDefaultForeignEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000010; defaultForeignEnum_ = value.getNumber(); onChanged(); return this; } /** * optional .proto2_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR]; * @return This builder for chaining. */ public Builder clearDefaultForeignEnum() { bitField2_ = (bitField2_ & ~0x00000010); defaultForeignEnum_ = 5; onChanged(); return this; } private int defaultImportEnum_ = 8; /** * optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR]; * @return Whether the defaultImportEnum field is set. */ @java.lang.Override public boolean hasDefaultImportEnum() { return ((bitField2_ & 0x00000020) != 0); } /** * optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR]; * @return The defaultImportEnum. */ @java.lang.Override public com.google.protobuf.UnittestImportLite.ImportEnumLite getDefaultImportEnum() { com.google.protobuf.UnittestImportLite.ImportEnumLite result = com.google.protobuf.UnittestImportLite.ImportEnumLite.forNumber(defaultImportEnum_); return result == null ? com.google.protobuf.UnittestImportLite.ImportEnumLite.IMPORT_LITE_BAR : result; } /** * optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR]; * @param value The defaultImportEnum to set. * @return This builder for chaining. */ public Builder setDefaultImportEnum(com.google.protobuf.UnittestImportLite.ImportEnumLite value) { if (value == null) { throw new NullPointerException(); } bitField2_ |= 0x00000020; defaultImportEnum_ = value.getNumber(); onChanged(); return this; } /** * optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR]; * @return This builder for chaining. */ public Builder clearDefaultImportEnum() { bitField2_ = (bitField2_ & ~0x00000020); defaultImportEnum_ = 8; onChanged(); return this; } private java.lang.Object defaultStringPiece_ = "abc"; /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @return Whether the defaultStringPiece field is set. */ public boolean hasDefaultStringPiece() { return ((bitField2_ & 0x00000040) != 0); } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @return The defaultStringPiece. */ public java.lang.String getDefaultStringPiece() { java.lang.Object ref = defaultStringPiece_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultStringPiece_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @return The bytes for defaultStringPiece. */ public com.google.protobuf.ByteString getDefaultStringPieceBytes() { java.lang.Object ref = defaultStringPiece_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultStringPiece_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @param value The defaultStringPiece to set. * @return This builder for chaining. */ public Builder setDefaultStringPiece( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultStringPiece_ = value; bitField2_ |= 0x00000040; onChanged(); return this; } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @return This builder for chaining. */ public Builder clearDefaultStringPiece() { defaultStringPiece_ = getDefaultInstance().getDefaultStringPiece(); bitField2_ = (bitField2_ & ~0x00000040); onChanged(); return this; } /** * optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE]; * @param value The bytes for defaultStringPiece to set. * @return This builder for chaining. */ public Builder setDefaultStringPieceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } defaultStringPiece_ = value; bitField2_ |= 0x00000040; onChanged(); return this; } private java.lang.Object defaultCord_ = "123"; /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @return Whether the defaultCord field is set. */ public boolean hasDefaultCord() { return ((bitField2_ & 0x00000080) != 0); } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @return The defaultCord. */ public java.lang.String getDefaultCord() { java.lang.Object ref = defaultCord_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultCord_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @return The bytes for defaultCord. */ public com.google.protobuf.ByteString getDefaultCordBytes() { java.lang.Object ref = defaultCord_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultCord_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @param value The defaultCord to set. * @return This builder for chaining. */ public Builder setDefaultCord( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultCord_ = value; bitField2_ |= 0x00000080; onChanged(); return this; } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @return This builder for chaining. */ public Builder clearDefaultCord() { defaultCord_ = getDefaultInstance().getDefaultCord(); bitField2_ = (bitField2_ & ~0x00000080); onChanged(); return this; } /** * optional string default_cord = 85 [default = "123", ctype = CORD]; * @param value The bytes for defaultCord to set. * @return This builder for chaining. */ public Builder setDefaultCordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } defaultCord_ = value; bitField2_ |= 0x00000080; onChanged(); return this; } /** * uint32 oneof_uint32 = 111; * @return Whether the oneofUint32 field is set. */ public boolean hasOneofUint32() { return oneofFieldCase_ == 111; } /** * uint32 oneof_uint32 = 111; * @return The oneofUint32. */ public int getOneofUint32() { if (oneofFieldCase_ == 111) { return (java.lang.Integer) oneofField_; } return 0; } /** * uint32 oneof_uint32 = 111; * @param value The oneofUint32 to set. * @return This builder for chaining. */ public Builder setOneofUint32(int value) { oneofFieldCase_ = 111; oneofField_ = value; onChanged(); return this; } /** * uint32 oneof_uint32 = 111; * @return This builder for chaining. */ public Builder clearOneofUint32() { if (oneofFieldCase_ == 111) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> oneofNestedMessageBuilder_; /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; * @return Whether the oneofNestedMessage field is set. */ @java.lang.Override public boolean hasOneofNestedMessage() { return oneofFieldCase_ == 112; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; * @return The oneofNestedMessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofNestedMessage() { if (oneofNestedMessageBuilder_ == null) { if (oneofFieldCase_ == 112) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } else { if (oneofFieldCase_ == 112) { return oneofNestedMessageBuilder_.getMessage(); } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; */ public Builder setOneofNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (oneofNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oneofField_ = value; onChanged(); } else { oneofNestedMessageBuilder_.setMessage(value); } oneofFieldCase_ = 112; return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; */ public Builder setOneofNestedMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (oneofNestedMessageBuilder_ == null) { oneofField_ = builderForValue.build(); onChanged(); } else { oneofNestedMessageBuilder_.setMessage(builderForValue.build()); } oneofFieldCase_ = 112; return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; */ public Builder mergeOneofNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (oneofNestedMessageBuilder_ == null) { if (oneofFieldCase_ == 112 && oneofField_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) { oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.newBuilder((com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_) .mergeFrom(value).buildPartial(); } else { oneofField_ = value; } onChanged(); } else { if (oneofFieldCase_ == 112) { oneofNestedMessageBuilder_.mergeFrom(value); } else { oneofNestedMessageBuilder_.setMessage(value); } } oneofFieldCase_ = 112; return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; */ public Builder clearOneofNestedMessage() { if (oneofNestedMessageBuilder_ == null) { if (oneofFieldCase_ == 112) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } } else { if (oneofFieldCase_ == 112) { oneofFieldCase_ = 0; oneofField_ = null; } oneofNestedMessageBuilder_.clear(); } return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getOneofNestedMessageBuilder() { return getOneofNestedMessageFieldBuilder().getBuilder(); } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOneofNestedMessageOrBuilder() { if ((oneofFieldCase_ == 112) && (oneofNestedMessageBuilder_ != null)) { return oneofNestedMessageBuilder_.getMessageOrBuilder(); } else { if (oneofFieldCase_ == 112) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> getOneofNestedMessageFieldBuilder() { if (oneofNestedMessageBuilder_ == null) { if (!(oneofFieldCase_ == 112)) { oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } oneofNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>( (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_, getParentForChildren(), isClean()); oneofField_ = null; } oneofFieldCase_ = 112; onChanged(); return oneofNestedMessageBuilder_; } /** * string oneof_string = 113; * @return Whether the oneofString field is set. */ @java.lang.Override public boolean hasOneofString() { return oneofFieldCase_ == 113; } /** * string oneof_string = 113; * @return The oneofString. */ @java.lang.Override public java.lang.String getOneofString() { java.lang.Object ref = ""; if (oneofFieldCase_ == 113) { ref = oneofField_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofFieldCase_ == 113) { if (bs.isValidUtf8()) { oneofField_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * string oneof_string = 113; * @return The bytes for oneofString. */ @java.lang.Override public com.google.protobuf.ByteString getOneofStringBytes() { java.lang.Object ref = ""; if (oneofFieldCase_ == 113) { ref = oneofField_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 113) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string oneof_string = 113; * @param value The oneofString to set. * @return This builder for chaining. */ public Builder setOneofString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 113; oneofField_ = value; onChanged(); return this; } /** * string oneof_string = 113; * @return This builder for chaining. */ public Builder clearOneofString() { if (oneofFieldCase_ == 113) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } /** * string oneof_string = 113; * @param value The bytes for oneofString to set. * @return This builder for chaining. */ public Builder setOneofStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 113; oneofField_ = value; onChanged(); return this; } /** * bytes oneof_bytes = 114; * @return Whether the oneofBytes field is set. */ public boolean hasOneofBytes() { return oneofFieldCase_ == 114; } /** * bytes oneof_bytes = 114; * @return The oneofBytes. */ public com.google.protobuf.ByteString getOneofBytes() { if (oneofFieldCase_ == 114) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes oneof_bytes = 114; * @param value The oneofBytes to set. * @return This builder for chaining. */ public Builder setOneofBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 114; oneofField_ = value; onChanged(); return this; } /** * bytes oneof_bytes = 114; * @return This builder for chaining. */ public Builder clearOneofBytes() { if (oneofFieldCase_ == 114) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> oneofLazyNestedMessageBuilder_; /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; * @return Whether the oneofLazyNestedMessage field is set. */ @java.lang.Override public boolean hasOneofLazyNestedMessage() { return oneofFieldCase_ == 115; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; * @return The oneofLazyNestedMessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage getOneofLazyNestedMessage() { if (oneofLazyNestedMessageBuilder_ == null) { if (oneofFieldCase_ == 115) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } else { if (oneofFieldCase_ == 115) { return oneofLazyNestedMessageBuilder_.getMessage(); } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; */ public Builder setOneofLazyNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (oneofLazyNestedMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oneofField_ = value; onChanged(); } else { oneofLazyNestedMessageBuilder_.setMessage(value); } oneofFieldCase_ = 115; return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; */ public Builder setOneofLazyNestedMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder builderForValue) { if (oneofLazyNestedMessageBuilder_ == null) { oneofField_ = builderForValue.build(); onChanged(); } else { oneofLazyNestedMessageBuilder_.setMessage(builderForValue.build()); } oneofFieldCase_ = 115; return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; */ public Builder mergeOneofLazyNestedMessage(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage value) { if (oneofLazyNestedMessageBuilder_ == null) { if (oneofFieldCase_ == 115 && oneofField_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()) { oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.newBuilder((com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_) .mergeFrom(value).buildPartial(); } else { oneofField_ = value; } onChanged(); } else { if (oneofFieldCase_ == 115) { oneofLazyNestedMessageBuilder_.mergeFrom(value); } else { oneofLazyNestedMessageBuilder_.setMessage(value); } } oneofFieldCase_ = 115; return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; */ public Builder clearOneofLazyNestedMessage() { if (oneofLazyNestedMessageBuilder_ == null) { if (oneofFieldCase_ == 115) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } } else { if (oneofFieldCase_ == 115) { oneofFieldCase_ = 0; oneofField_ = null; } oneofLazyNestedMessageBuilder_.clear(); } return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder getOneofLazyNestedMessageBuilder() { return getOneofLazyNestedMessageFieldBuilder().getBuilder(); } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder getOneofLazyNestedMessageOrBuilder() { if ((oneofFieldCase_ == 115) && (oneofLazyNestedMessageBuilder_ != null)) { return oneofLazyNestedMessageBuilder_.getMessageOrBuilder(); } else { if (oneofFieldCase_ == 115) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } } /** * .proto2_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder> getOneofLazyNestedMessageFieldBuilder() { if (oneofLazyNestedMessageBuilder_ == null) { if (!(oneofFieldCase_ == 115)) { oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance(); } oneofLazyNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessageOrBuilder>( (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage) oneofField_, getParentForChildren(), isClean()); oneofField_ = null; } oneofFieldCase_ = 115; onChanged(); return oneofLazyNestedMessageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder> oneofNestedMessage2Builder_; /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; * @return Whether the oneofNestedMessage2 field is set. */ @java.lang.Override public boolean hasOneofNestedMessage2() { return oneofFieldCase_ == 117; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; * @return The oneofNestedMessage2. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 getOneofNestedMessage2() { if (oneofNestedMessage2Builder_ == null) { if (oneofFieldCase_ == 117) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance(); } else { if (oneofFieldCase_ == 117) { return oneofNestedMessage2Builder_.getMessage(); } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance(); } } /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; */ public Builder setOneofNestedMessage2(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 value) { if (oneofNestedMessage2Builder_ == null) { if (value == null) { throw new NullPointerException(); } oneofField_ = value; onChanged(); } else { oneofNestedMessage2Builder_.setMessage(value); } oneofFieldCase_ = 117; return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; */ public Builder setOneofNestedMessage2( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder builderForValue) { if (oneofNestedMessage2Builder_ == null) { oneofField_ = builderForValue.build(); onChanged(); } else { oneofNestedMessage2Builder_.setMessage(builderForValue.build()); } oneofFieldCase_ = 117; return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; */ public Builder mergeOneofNestedMessage2(com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2 value) { if (oneofNestedMessage2Builder_ == null) { if (oneofFieldCase_ == 117 && oneofField_ != com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance()) { oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.newBuilder((com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_) .mergeFrom(value).buildPartial(); } else { oneofField_ = value; } onChanged(); } else { if (oneofFieldCase_ == 117) { oneofNestedMessage2Builder_.mergeFrom(value); } else { oneofNestedMessage2Builder_.setMessage(value); } } oneofFieldCase_ = 117; return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; */ public Builder clearOneofNestedMessage2() { if (oneofNestedMessage2Builder_ == null) { if (oneofFieldCase_ == 117) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } } else { if (oneofFieldCase_ == 117) { oneofFieldCase_ = 0; oneofField_ = null; } oneofNestedMessage2Builder_.clear(); } return this; } /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder getOneofNestedMessage2Builder() { return getOneofNestedMessage2FieldBuilder().getBuilder(); } /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder getOneofNestedMessage2OrBuilder() { if ((oneofFieldCase_ == 117) && (oneofNestedMessage2Builder_ != null)) { return oneofNestedMessage2Builder_.getMessageOrBuilder(); } else { if (oneofFieldCase_ == 117) { return (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance(); } } /** * .proto2_unittest.TestAllTypesLite.NestedMessage2 oneof_nested_message2 = 117; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder> getOneofNestedMessage2FieldBuilder() { if (oneofNestedMessage2Builder_ == null) { if (!(oneofFieldCase_ == 117)) { oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.getDefaultInstance(); } oneofNestedMessage2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2.Builder, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2OrBuilder>( (com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage2) oneofField_, getParentForChildren(), isClean()); oneofField_ = null; } oneofFieldCase_ = 117; onChanged(); return oneofNestedMessage2Builder_; } private int deceptivelyNamedList_ ; /** *
       * Tests toString for non-repeated fields with a list suffix
       * 
* * optional int32 deceptively_named_list = 116; * @return Whether the deceptivelyNamedList field is set. */ @java.lang.Override public boolean hasDeceptivelyNamedList() { return ((bitField2_ & 0x00004000) != 0); } /** *
       * Tests toString for non-repeated fields with a list suffix
       * 
* * optional int32 deceptively_named_list = 116; * @return The deceptivelyNamedList. */ @java.lang.Override public int getDeceptivelyNamedList() { return deceptivelyNamedList_; } /** *
       * Tests toString for non-repeated fields with a list suffix
       * 
* * optional int32 deceptively_named_list = 116; * @param value The deceptivelyNamedList to set. * @return This builder for chaining. */ public Builder setDeceptivelyNamedList(int value) { deceptivelyNamedList_ = value; bitField2_ |= 0x00004000; onChanged(); return this; } /** *
       * Tests toString for non-repeated fields with a list suffix
       * 
* * optional int32 deceptively_named_list = 116; * @return This builder for chaining. */ public Builder clearDeceptivelyNamedList() { bitField2_ = (bitField2_ & ~0x00004000); deceptivelyNamedList_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestAllTypesLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestAllTypesLite) private static final com.google.protobuf.UnittestLite.TestAllTypesLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestAllTypesLite(); } public static com.google.protobuf.UnittestLite.TestAllTypesLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestAllTypesLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ForeignMessageLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.ForeignMessageLite) com.google.protobuf.MessageOrBuilder { /** * optional int32 c = 1; * @return Whether the c field is set. */ boolean hasC(); /** * optional int32 c = 1; * @return The c. */ int getC(); } /** * Protobuf type {@code proto2_unittest.ForeignMessageLite} */ public static final class ForeignMessageLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.ForeignMessageLite) ForeignMessageLiteOrBuilder { private static final long serialVersionUID = 0L; // Use ForeignMessageLite.newBuilder() to construct. private ForeignMessageLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ForeignMessageLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ForeignMessageLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_ForeignMessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_ForeignMessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.ForeignMessageLite.class, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder.class); } private int bitField0_; public static final int C_FIELD_NUMBER = 1; private int c_ = 0; /** * optional int32 c = 1; * @return Whether the c field is set. */ @java.lang.Override public boolean hasC() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 c = 1; * @return The c. */ @java.lang.Override public int getC() { return c_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, c_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, c_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.ForeignMessageLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.ForeignMessageLite other = (com.google.protobuf.UnittestLite.ForeignMessageLite) obj; if (hasC() != other.hasC()) return false; if (hasC()) { if (getC() != other.getC()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasC()) { hash = (37 * hash) + C_FIELD_NUMBER; hash = (53 * hash) + getC(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.ForeignMessageLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.ForeignMessageLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.ForeignMessageLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.ForeignMessageLite) com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_ForeignMessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_ForeignMessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.ForeignMessageLite.class, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.ForeignMessageLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; c_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_ForeignMessageLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLite build() { com.google.protobuf.UnittestLite.ForeignMessageLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLite buildPartial() { com.google.protobuf.UnittestLite.ForeignMessageLite result = new com.google.protobuf.UnittestLite.ForeignMessageLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.ForeignMessageLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.c_ = c_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.ForeignMessageLite) { return mergeFrom((com.google.protobuf.UnittestLite.ForeignMessageLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.ForeignMessageLite other) { if (other == com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()) return this; if (other.hasC()) { setC(other.getC()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { c_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int c_ ; /** * optional int32 c = 1; * @return Whether the c field is set. */ @java.lang.Override public boolean hasC() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 c = 1; * @return The c. */ @java.lang.Override public int getC() { return c_; } /** * optional int32 c = 1; * @param value The c to set. * @return This builder for chaining. */ public Builder setC(int value) { c_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 c = 1; * @return This builder for chaining. */ public Builder clearC() { bitField0_ = (bitField0_ & ~0x00000001); c_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.ForeignMessageLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.ForeignMessageLite) private static final com.google.protobuf.UnittestLite.ForeignMessageLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.ForeignMessageLite(); } public static com.google.protobuf.UnittestLite.ForeignMessageLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ForeignMessageLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestPackedTypesLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestPackedTypesLite) com.google.protobuf.MessageOrBuilder { /** * repeated int32 packed_int32 = 90 [packed = true]; * @return A list containing the packedInt32. */ java.util.List getPackedInt32List(); /** * repeated int32 packed_int32 = 90 [packed = true]; * @return The count of packedInt32. */ int getPackedInt32Count(); /** * repeated int32 packed_int32 = 90 [packed = true]; * @param index The index of the element to return. * @return The packedInt32 at the given index. */ int getPackedInt32(int index); /** * repeated int64 packed_int64 = 91 [packed = true]; * @return A list containing the packedInt64. */ java.util.List getPackedInt64List(); /** * repeated int64 packed_int64 = 91 [packed = true]; * @return The count of packedInt64. */ int getPackedInt64Count(); /** * repeated int64 packed_int64 = 91 [packed = true]; * @param index The index of the element to return. * @return The packedInt64 at the given index. */ long getPackedInt64(int index); /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @return A list containing the packedUint32. */ java.util.List getPackedUint32List(); /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @return The count of packedUint32. */ int getPackedUint32Count(); /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @param index The index of the element to return. * @return The packedUint32 at the given index. */ int getPackedUint32(int index); /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @return A list containing the packedUint64. */ java.util.List getPackedUint64List(); /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @return The count of packedUint64. */ int getPackedUint64Count(); /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @param index The index of the element to return. * @return The packedUint64 at the given index. */ long getPackedUint64(int index); /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @return A list containing the packedSint32. */ java.util.List getPackedSint32List(); /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @return The count of packedSint32. */ int getPackedSint32Count(); /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @param index The index of the element to return. * @return The packedSint32 at the given index. */ int getPackedSint32(int index); /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @return A list containing the packedSint64. */ java.util.List getPackedSint64List(); /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @return The count of packedSint64. */ int getPackedSint64Count(); /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @param index The index of the element to return. * @return The packedSint64 at the given index. */ long getPackedSint64(int index); /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @return A list containing the packedFixed32. */ java.util.List getPackedFixed32List(); /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @return The count of packedFixed32. */ int getPackedFixed32Count(); /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @param index The index of the element to return. * @return The packedFixed32 at the given index. */ int getPackedFixed32(int index); /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @return A list containing the packedFixed64. */ java.util.List getPackedFixed64List(); /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @return The count of packedFixed64. */ int getPackedFixed64Count(); /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @param index The index of the element to return. * @return The packedFixed64 at the given index. */ long getPackedFixed64(int index); /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @return A list containing the packedSfixed32. */ java.util.List getPackedSfixed32List(); /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @return The count of packedSfixed32. */ int getPackedSfixed32Count(); /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @param index The index of the element to return. * @return The packedSfixed32 at the given index. */ int getPackedSfixed32(int index); /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @return A list containing the packedSfixed64. */ java.util.List getPackedSfixed64List(); /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @return The count of packedSfixed64. */ int getPackedSfixed64Count(); /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @param index The index of the element to return. * @return The packedSfixed64 at the given index. */ long getPackedSfixed64(int index); /** * repeated float packed_float = 100 [packed = true]; * @return A list containing the packedFloat. */ java.util.List getPackedFloatList(); /** * repeated float packed_float = 100 [packed = true]; * @return The count of packedFloat. */ int getPackedFloatCount(); /** * repeated float packed_float = 100 [packed = true]; * @param index The index of the element to return. * @return The packedFloat at the given index. */ float getPackedFloat(int index); /** * repeated double packed_double = 101 [packed = true]; * @return A list containing the packedDouble. */ java.util.List getPackedDoubleList(); /** * repeated double packed_double = 101 [packed = true]; * @return The count of packedDouble. */ int getPackedDoubleCount(); /** * repeated double packed_double = 101 [packed = true]; * @param index The index of the element to return. * @return The packedDouble at the given index. */ double getPackedDouble(int index); /** * repeated bool packed_bool = 102 [packed = true]; * @return A list containing the packedBool. */ java.util.List getPackedBoolList(); /** * repeated bool packed_bool = 102 [packed = true]; * @return The count of packedBool. */ int getPackedBoolCount(); /** * repeated bool packed_bool = 102 [packed = true]; * @param index The index of the element to return. * @return The packedBool at the given index. */ boolean getPackedBool(int index); /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @return A list containing the packedEnum. */ java.util.List getPackedEnumList(); /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @return The count of packedEnum. */ int getPackedEnumCount(); /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @param index The index of the element to return. * @return The packedEnum at the given index. */ com.google.protobuf.UnittestLite.ForeignEnumLite getPackedEnum(int index); } /** * Protobuf type {@code proto2_unittest.TestPackedTypesLite} */ public static final class TestPackedTypesLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestPackedTypesLite) TestPackedTypesLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestPackedTypesLite.newBuilder() to construct. private TestPackedTypesLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestPackedTypesLite() { packedInt32_ = emptyIntList(); packedInt64_ = emptyLongList(); packedUint32_ = emptyIntList(); packedUint64_ = emptyLongList(); packedSint32_ = emptyIntList(); packedSint64_ = emptyLongList(); packedFixed32_ = emptyIntList(); packedFixed64_ = emptyLongList(); packedSfixed32_ = emptyIntList(); packedSfixed64_ = emptyLongList(); packedFloat_ = emptyFloatList(); packedDouble_ = emptyDoubleList(); packedBool_ = emptyBooleanList(); packedEnum_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestPackedTypesLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedTypesLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedTypesLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestPackedTypesLite.class, com.google.protobuf.UnittestLite.TestPackedTypesLite.Builder.class); } public static final int PACKED_INT32_FIELD_NUMBER = 90; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList packedInt32_ = emptyIntList(); /** * repeated int32 packed_int32 = 90 [packed = true]; * @return A list containing the packedInt32. */ @java.lang.Override public java.util.List getPackedInt32List() { return packedInt32_; } /** * repeated int32 packed_int32 = 90 [packed = true]; * @return The count of packedInt32. */ public int getPackedInt32Count() { return packedInt32_.size(); } /** * repeated int32 packed_int32 = 90 [packed = true]; * @param index The index of the element to return. * @return The packedInt32 at the given index. */ public int getPackedInt32(int index) { return packedInt32_.getInt(index); } private int packedInt32MemoizedSerializedSize = -1; public static final int PACKED_INT64_FIELD_NUMBER = 91; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList packedInt64_ = emptyLongList(); /** * repeated int64 packed_int64 = 91 [packed = true]; * @return A list containing the packedInt64. */ @java.lang.Override public java.util.List getPackedInt64List() { return packedInt64_; } /** * repeated int64 packed_int64 = 91 [packed = true]; * @return The count of packedInt64. */ public int getPackedInt64Count() { return packedInt64_.size(); } /** * repeated int64 packed_int64 = 91 [packed = true]; * @param index The index of the element to return. * @return The packedInt64 at the given index. */ public long getPackedInt64(int index) { return packedInt64_.getLong(index); } private int packedInt64MemoizedSerializedSize = -1; public static final int PACKED_UINT32_FIELD_NUMBER = 92; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList packedUint32_ = emptyIntList(); /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @return A list containing the packedUint32. */ @java.lang.Override public java.util.List getPackedUint32List() { return packedUint32_; } /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @return The count of packedUint32. */ public int getPackedUint32Count() { return packedUint32_.size(); } /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @param index The index of the element to return. * @return The packedUint32 at the given index. */ public int getPackedUint32(int index) { return packedUint32_.getInt(index); } private int packedUint32MemoizedSerializedSize = -1; public static final int PACKED_UINT64_FIELD_NUMBER = 93; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList packedUint64_ = emptyLongList(); /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @return A list containing the packedUint64. */ @java.lang.Override public java.util.List getPackedUint64List() { return packedUint64_; } /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @return The count of packedUint64. */ public int getPackedUint64Count() { return packedUint64_.size(); } /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @param index The index of the element to return. * @return The packedUint64 at the given index. */ public long getPackedUint64(int index) { return packedUint64_.getLong(index); } private int packedUint64MemoizedSerializedSize = -1; public static final int PACKED_SINT32_FIELD_NUMBER = 94; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList packedSint32_ = emptyIntList(); /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @return A list containing the packedSint32. */ @java.lang.Override public java.util.List getPackedSint32List() { return packedSint32_; } /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @return The count of packedSint32. */ public int getPackedSint32Count() { return packedSint32_.size(); } /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @param index The index of the element to return. * @return The packedSint32 at the given index. */ public int getPackedSint32(int index) { return packedSint32_.getInt(index); } private int packedSint32MemoizedSerializedSize = -1; public static final int PACKED_SINT64_FIELD_NUMBER = 95; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList packedSint64_ = emptyLongList(); /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @return A list containing the packedSint64. */ @java.lang.Override public java.util.List getPackedSint64List() { return packedSint64_; } /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @return The count of packedSint64. */ public int getPackedSint64Count() { return packedSint64_.size(); } /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @param index The index of the element to return. * @return The packedSint64 at the given index. */ public long getPackedSint64(int index) { return packedSint64_.getLong(index); } private int packedSint64MemoizedSerializedSize = -1; public static final int PACKED_FIXED32_FIELD_NUMBER = 96; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList packedFixed32_ = emptyIntList(); /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @return A list containing the packedFixed32. */ @java.lang.Override public java.util.List getPackedFixed32List() { return packedFixed32_; } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @return The count of packedFixed32. */ public int getPackedFixed32Count() { return packedFixed32_.size(); } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @param index The index of the element to return. * @return The packedFixed32 at the given index. */ public int getPackedFixed32(int index) { return packedFixed32_.getInt(index); } private int packedFixed32MemoizedSerializedSize = -1; public static final int PACKED_FIXED64_FIELD_NUMBER = 97; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList packedFixed64_ = emptyLongList(); /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @return A list containing the packedFixed64. */ @java.lang.Override public java.util.List getPackedFixed64List() { return packedFixed64_; } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @return The count of packedFixed64. */ public int getPackedFixed64Count() { return packedFixed64_.size(); } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @param index The index of the element to return. * @return The packedFixed64 at the given index. */ public long getPackedFixed64(int index) { return packedFixed64_.getLong(index); } private int packedFixed64MemoizedSerializedSize = -1; public static final int PACKED_SFIXED32_FIELD_NUMBER = 98; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList packedSfixed32_ = emptyIntList(); /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @return A list containing the packedSfixed32. */ @java.lang.Override public java.util.List getPackedSfixed32List() { return packedSfixed32_; } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @return The count of packedSfixed32. */ public int getPackedSfixed32Count() { return packedSfixed32_.size(); } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @param index The index of the element to return. * @return The packedSfixed32 at the given index. */ public int getPackedSfixed32(int index) { return packedSfixed32_.getInt(index); } private int packedSfixed32MemoizedSerializedSize = -1; public static final int PACKED_SFIXED64_FIELD_NUMBER = 99; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList packedSfixed64_ = emptyLongList(); /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @return A list containing the packedSfixed64. */ @java.lang.Override public java.util.List getPackedSfixed64List() { return packedSfixed64_; } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @return The count of packedSfixed64. */ public int getPackedSfixed64Count() { return packedSfixed64_.size(); } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @param index The index of the element to return. * @return The packedSfixed64 at the given index. */ public long getPackedSfixed64(int index) { return packedSfixed64_.getLong(index); } private int packedSfixed64MemoizedSerializedSize = -1; public static final int PACKED_FLOAT_FIELD_NUMBER = 100; @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList packedFloat_ = emptyFloatList(); /** * repeated float packed_float = 100 [packed = true]; * @return A list containing the packedFloat. */ @java.lang.Override public java.util.List getPackedFloatList() { return packedFloat_; } /** * repeated float packed_float = 100 [packed = true]; * @return The count of packedFloat. */ public int getPackedFloatCount() { return packedFloat_.size(); } /** * repeated float packed_float = 100 [packed = true]; * @param index The index of the element to return. * @return The packedFloat at the given index. */ public float getPackedFloat(int index) { return packedFloat_.getFloat(index); } private int packedFloatMemoizedSerializedSize = -1; public static final int PACKED_DOUBLE_FIELD_NUMBER = 101; @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList packedDouble_ = emptyDoubleList(); /** * repeated double packed_double = 101 [packed = true]; * @return A list containing the packedDouble. */ @java.lang.Override public java.util.List getPackedDoubleList() { return packedDouble_; } /** * repeated double packed_double = 101 [packed = true]; * @return The count of packedDouble. */ public int getPackedDoubleCount() { return packedDouble_.size(); } /** * repeated double packed_double = 101 [packed = true]; * @param index The index of the element to return. * @return The packedDouble at the given index. */ public double getPackedDouble(int index) { return packedDouble_.getDouble(index); } private int packedDoubleMemoizedSerializedSize = -1; public static final int PACKED_BOOL_FIELD_NUMBER = 102; @SuppressWarnings("serial") private com.google.protobuf.Internal.BooleanList packedBool_ = emptyBooleanList(); /** * repeated bool packed_bool = 102 [packed = true]; * @return A list containing the packedBool. */ @java.lang.Override public java.util.List getPackedBoolList() { return packedBool_; } /** * repeated bool packed_bool = 102 [packed = true]; * @return The count of packedBool. */ public int getPackedBoolCount() { return packedBool_.size(); } /** * repeated bool packed_bool = 102 [packed = true]; * @param index The index of the element to return. * @return The packedBool at the given index. */ public boolean getPackedBool(int index) { return packedBool_.getBoolean(index); } private int packedBoolMemoizedSerializedSize = -1; public static final int PACKED_ENUM_FIELD_NUMBER = 103; @SuppressWarnings("serial") private java.util.List packedEnum_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite> packedEnum_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite>() { public com.google.protobuf.UnittestLite.ForeignEnumLite convert(java.lang.Integer from) { com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(from); return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO : result; } }; /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @return A list containing the packedEnum. */ @java.lang.Override public java.util.List getPackedEnumList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite>(packedEnum_, packedEnum_converter_); } /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @return The count of packedEnum. */ @java.lang.Override public int getPackedEnumCount() { return packedEnum_.size(); } /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @param index The index of the element to return. * @return The packedEnum at the given index. */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignEnumLite getPackedEnum(int index) { return packedEnum_converter_.convert(packedEnum_.get(index)); } private int packedEnumMemoizedSerializedSize; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getPackedInt32List().size() > 0) { output.writeUInt32NoTag(722); output.writeUInt32NoTag(packedInt32MemoizedSerializedSize); } for (int i = 0; i < packedInt32_.size(); i++) { output.writeInt32NoTag(packedInt32_.getInt(i)); } if (getPackedInt64List().size() > 0) { output.writeUInt32NoTag(730); output.writeUInt32NoTag(packedInt64MemoizedSerializedSize); } for (int i = 0; i < packedInt64_.size(); i++) { output.writeInt64NoTag(packedInt64_.getLong(i)); } if (getPackedUint32List().size() > 0) { output.writeUInt32NoTag(738); output.writeUInt32NoTag(packedUint32MemoizedSerializedSize); } for (int i = 0; i < packedUint32_.size(); i++) { output.writeUInt32NoTag(packedUint32_.getInt(i)); } if (getPackedUint64List().size() > 0) { output.writeUInt32NoTag(746); output.writeUInt32NoTag(packedUint64MemoizedSerializedSize); } for (int i = 0; i < packedUint64_.size(); i++) { output.writeUInt64NoTag(packedUint64_.getLong(i)); } if (getPackedSint32List().size() > 0) { output.writeUInt32NoTag(754); output.writeUInt32NoTag(packedSint32MemoizedSerializedSize); } for (int i = 0; i < packedSint32_.size(); i++) { output.writeSInt32NoTag(packedSint32_.getInt(i)); } if (getPackedSint64List().size() > 0) { output.writeUInt32NoTag(762); output.writeUInt32NoTag(packedSint64MemoizedSerializedSize); } for (int i = 0; i < packedSint64_.size(); i++) { output.writeSInt64NoTag(packedSint64_.getLong(i)); } if (getPackedFixed32List().size() > 0) { output.writeUInt32NoTag(770); output.writeUInt32NoTag(packedFixed32MemoizedSerializedSize); } for (int i = 0; i < packedFixed32_.size(); i++) { output.writeFixed32NoTag(packedFixed32_.getInt(i)); } if (getPackedFixed64List().size() > 0) { output.writeUInt32NoTag(778); output.writeUInt32NoTag(packedFixed64MemoizedSerializedSize); } for (int i = 0; i < packedFixed64_.size(); i++) { output.writeFixed64NoTag(packedFixed64_.getLong(i)); } if (getPackedSfixed32List().size() > 0) { output.writeUInt32NoTag(786); output.writeUInt32NoTag(packedSfixed32MemoizedSerializedSize); } for (int i = 0; i < packedSfixed32_.size(); i++) { output.writeSFixed32NoTag(packedSfixed32_.getInt(i)); } if (getPackedSfixed64List().size() > 0) { output.writeUInt32NoTag(794); output.writeUInt32NoTag(packedSfixed64MemoizedSerializedSize); } for (int i = 0; i < packedSfixed64_.size(); i++) { output.writeSFixed64NoTag(packedSfixed64_.getLong(i)); } if (getPackedFloatList().size() > 0) { output.writeUInt32NoTag(802); output.writeUInt32NoTag(packedFloatMemoizedSerializedSize); } for (int i = 0; i < packedFloat_.size(); i++) { output.writeFloatNoTag(packedFloat_.getFloat(i)); } if (getPackedDoubleList().size() > 0) { output.writeUInt32NoTag(810); output.writeUInt32NoTag(packedDoubleMemoizedSerializedSize); } for (int i = 0; i < packedDouble_.size(); i++) { output.writeDoubleNoTag(packedDouble_.getDouble(i)); } if (getPackedBoolList().size() > 0) { output.writeUInt32NoTag(818); output.writeUInt32NoTag(packedBoolMemoizedSerializedSize); } for (int i = 0; i < packedBool_.size(); i++) { output.writeBoolNoTag(packedBool_.getBoolean(i)); } if (getPackedEnumList().size() > 0) { output.writeUInt32NoTag(826); output.writeUInt32NoTag(packedEnumMemoizedSerializedSize); } for (int i = 0; i < packedEnum_.size(); i++) { output.writeEnumNoTag(packedEnum_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < packedInt32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(packedInt32_.getInt(i)); } size += dataSize; if (!getPackedInt32List().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedInt32MemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < packedInt64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(packedInt64_.getLong(i)); } size += dataSize; if (!getPackedInt64List().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedInt64MemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < packedUint32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(packedUint32_.getInt(i)); } size += dataSize; if (!getPackedUint32List().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedUint32MemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < packedUint64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(packedUint64_.getLong(i)); } size += dataSize; if (!getPackedUint64List().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedUint64MemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < packedSint32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt32SizeNoTag(packedSint32_.getInt(i)); } size += dataSize; if (!getPackedSint32List().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedSint32MemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < packedSint64_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt64SizeNoTag(packedSint64_.getLong(i)); } size += dataSize; if (!getPackedSint64List().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedSint64MemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 4 * getPackedFixed32List().size(); size += dataSize; if (!getPackedFixed32List().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedFixed32MemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 8 * getPackedFixed64List().size(); size += dataSize; if (!getPackedFixed64List().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedFixed64MemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 4 * getPackedSfixed32List().size(); size += dataSize; if (!getPackedSfixed32List().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedSfixed32MemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 8 * getPackedSfixed64List().size(); size += dataSize; if (!getPackedSfixed64List().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedSfixed64MemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 4 * getPackedFloatList().size(); size += dataSize; if (!getPackedFloatList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedFloatMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 8 * getPackedDoubleList().size(); size += dataSize; if (!getPackedDoubleList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedDoubleMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 1 * getPackedBoolList().size(); size += dataSize; if (!getPackedBoolList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedBoolMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < packedEnum_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(packedEnum_.get(i)); } size += dataSize; if (!getPackedEnumList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }packedEnumMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestPackedTypesLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestPackedTypesLite other = (com.google.protobuf.UnittestLite.TestPackedTypesLite) obj; if (!getPackedInt32List() .equals(other.getPackedInt32List())) return false; if (!getPackedInt64List() .equals(other.getPackedInt64List())) return false; if (!getPackedUint32List() .equals(other.getPackedUint32List())) return false; if (!getPackedUint64List() .equals(other.getPackedUint64List())) return false; if (!getPackedSint32List() .equals(other.getPackedSint32List())) return false; if (!getPackedSint64List() .equals(other.getPackedSint64List())) return false; if (!getPackedFixed32List() .equals(other.getPackedFixed32List())) return false; if (!getPackedFixed64List() .equals(other.getPackedFixed64List())) return false; if (!getPackedSfixed32List() .equals(other.getPackedSfixed32List())) return false; if (!getPackedSfixed64List() .equals(other.getPackedSfixed64List())) return false; if (!getPackedFloatList() .equals(other.getPackedFloatList())) return false; if (!getPackedDoubleList() .equals(other.getPackedDoubleList())) return false; if (!getPackedBoolList() .equals(other.getPackedBoolList())) return false; if (!packedEnum_.equals(other.packedEnum_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPackedInt32Count() > 0) { hash = (37 * hash) + PACKED_INT32_FIELD_NUMBER; hash = (53 * hash) + getPackedInt32List().hashCode(); } if (getPackedInt64Count() > 0) { hash = (37 * hash) + PACKED_INT64_FIELD_NUMBER; hash = (53 * hash) + getPackedInt64List().hashCode(); } if (getPackedUint32Count() > 0) { hash = (37 * hash) + PACKED_UINT32_FIELD_NUMBER; hash = (53 * hash) + getPackedUint32List().hashCode(); } if (getPackedUint64Count() > 0) { hash = (37 * hash) + PACKED_UINT64_FIELD_NUMBER; hash = (53 * hash) + getPackedUint64List().hashCode(); } if (getPackedSint32Count() > 0) { hash = (37 * hash) + PACKED_SINT32_FIELD_NUMBER; hash = (53 * hash) + getPackedSint32List().hashCode(); } if (getPackedSint64Count() > 0) { hash = (37 * hash) + PACKED_SINT64_FIELD_NUMBER; hash = (53 * hash) + getPackedSint64List().hashCode(); } if (getPackedFixed32Count() > 0) { hash = (37 * hash) + PACKED_FIXED32_FIELD_NUMBER; hash = (53 * hash) + getPackedFixed32List().hashCode(); } if (getPackedFixed64Count() > 0) { hash = (37 * hash) + PACKED_FIXED64_FIELD_NUMBER; hash = (53 * hash) + getPackedFixed64List().hashCode(); } if (getPackedSfixed32Count() > 0) { hash = (37 * hash) + PACKED_SFIXED32_FIELD_NUMBER; hash = (53 * hash) + getPackedSfixed32List().hashCode(); } if (getPackedSfixed64Count() > 0) { hash = (37 * hash) + PACKED_SFIXED64_FIELD_NUMBER; hash = (53 * hash) + getPackedSfixed64List().hashCode(); } if (getPackedFloatCount() > 0) { hash = (37 * hash) + PACKED_FLOAT_FIELD_NUMBER; hash = (53 * hash) + getPackedFloatList().hashCode(); } if (getPackedDoubleCount() > 0) { hash = (37 * hash) + PACKED_DOUBLE_FIELD_NUMBER; hash = (53 * hash) + getPackedDoubleList().hashCode(); } if (getPackedBoolCount() > 0) { hash = (37 * hash) + PACKED_BOOL_FIELD_NUMBER; hash = (53 * hash) + getPackedBoolList().hashCode(); } if (getPackedEnumCount() > 0) { hash = (37 * hash) + PACKED_ENUM_FIELD_NUMBER; hash = (53 * hash) + packedEnum_.hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestPackedTypesLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestPackedTypesLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestPackedTypesLite) com.google.protobuf.UnittestLite.TestPackedTypesLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedTypesLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedTypesLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestPackedTypesLite.class, com.google.protobuf.UnittestLite.TestPackedTypesLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestPackedTypesLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; packedInt32_ = emptyIntList(); packedInt64_ = emptyLongList(); packedUint32_ = emptyIntList(); packedUint64_ = emptyLongList(); packedSint32_ = emptyIntList(); packedSint64_ = emptyLongList(); packedFixed32_ = emptyIntList(); packedFixed64_ = emptyLongList(); packedSfixed32_ = emptyIntList(); packedSfixed64_ = emptyLongList(); packedFloat_ = emptyFloatList(); packedDouble_ = emptyDoubleList(); packedBool_ = emptyBooleanList(); packedEnum_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedTypesLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestPackedTypesLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestPackedTypesLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestPackedTypesLite build() { com.google.protobuf.UnittestLite.TestPackedTypesLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestPackedTypesLite buildPartial() { com.google.protobuf.UnittestLite.TestPackedTypesLite result = new com.google.protobuf.UnittestLite.TestPackedTypesLite(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.protobuf.UnittestLite.TestPackedTypesLite result) { if (((bitField0_ & 0x00002000) != 0)) { packedEnum_ = java.util.Collections.unmodifiableList(packedEnum_); bitField0_ = (bitField0_ & ~0x00002000); } result.packedEnum_ = packedEnum_; } private void buildPartial0(com.google.protobuf.UnittestLite.TestPackedTypesLite result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { packedInt32_.makeImmutable(); result.packedInt32_ = packedInt32_; } if (((from_bitField0_ & 0x00000002) != 0)) { packedInt64_.makeImmutable(); result.packedInt64_ = packedInt64_; } if (((from_bitField0_ & 0x00000004) != 0)) { packedUint32_.makeImmutable(); result.packedUint32_ = packedUint32_; } if (((from_bitField0_ & 0x00000008) != 0)) { packedUint64_.makeImmutable(); result.packedUint64_ = packedUint64_; } if (((from_bitField0_ & 0x00000010) != 0)) { packedSint32_.makeImmutable(); result.packedSint32_ = packedSint32_; } if (((from_bitField0_ & 0x00000020) != 0)) { packedSint64_.makeImmutable(); result.packedSint64_ = packedSint64_; } if (((from_bitField0_ & 0x00000040) != 0)) { packedFixed32_.makeImmutable(); result.packedFixed32_ = packedFixed32_; } if (((from_bitField0_ & 0x00000080) != 0)) { packedFixed64_.makeImmutable(); result.packedFixed64_ = packedFixed64_; } if (((from_bitField0_ & 0x00000100) != 0)) { packedSfixed32_.makeImmutable(); result.packedSfixed32_ = packedSfixed32_; } if (((from_bitField0_ & 0x00000200) != 0)) { packedSfixed64_.makeImmutable(); result.packedSfixed64_ = packedSfixed64_; } if (((from_bitField0_ & 0x00000400) != 0)) { packedFloat_.makeImmutable(); result.packedFloat_ = packedFloat_; } if (((from_bitField0_ & 0x00000800) != 0)) { packedDouble_.makeImmutable(); result.packedDouble_ = packedDouble_; } if (((from_bitField0_ & 0x00001000) != 0)) { packedBool_.makeImmutable(); result.packedBool_ = packedBool_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestPackedTypesLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestPackedTypesLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestPackedTypesLite other) { if (other == com.google.protobuf.UnittestLite.TestPackedTypesLite.getDefaultInstance()) return this; if (!other.packedInt32_.isEmpty()) { if (packedInt32_.isEmpty()) { packedInt32_ = other.packedInt32_; packedInt32_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensurePackedInt32IsMutable(); packedInt32_.addAll(other.packedInt32_); } onChanged(); } if (!other.packedInt64_.isEmpty()) { if (packedInt64_.isEmpty()) { packedInt64_ = other.packedInt64_; packedInt64_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensurePackedInt64IsMutable(); packedInt64_.addAll(other.packedInt64_); } onChanged(); } if (!other.packedUint32_.isEmpty()) { if (packedUint32_.isEmpty()) { packedUint32_ = other.packedUint32_; packedUint32_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensurePackedUint32IsMutable(); packedUint32_.addAll(other.packedUint32_); } onChanged(); } if (!other.packedUint64_.isEmpty()) { if (packedUint64_.isEmpty()) { packedUint64_ = other.packedUint64_; packedUint64_.makeImmutable(); bitField0_ |= 0x00000008; } else { ensurePackedUint64IsMutable(); packedUint64_.addAll(other.packedUint64_); } onChanged(); } if (!other.packedSint32_.isEmpty()) { if (packedSint32_.isEmpty()) { packedSint32_ = other.packedSint32_; packedSint32_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensurePackedSint32IsMutable(); packedSint32_.addAll(other.packedSint32_); } onChanged(); } if (!other.packedSint64_.isEmpty()) { if (packedSint64_.isEmpty()) { packedSint64_ = other.packedSint64_; packedSint64_.makeImmutable(); bitField0_ |= 0x00000020; } else { ensurePackedSint64IsMutable(); packedSint64_.addAll(other.packedSint64_); } onChanged(); } if (!other.packedFixed32_.isEmpty()) { if (packedFixed32_.isEmpty()) { packedFixed32_ = other.packedFixed32_; packedFixed32_.makeImmutable(); bitField0_ |= 0x00000040; } else { ensurePackedFixed32IsMutable(); packedFixed32_.addAll(other.packedFixed32_); } onChanged(); } if (!other.packedFixed64_.isEmpty()) { if (packedFixed64_.isEmpty()) { packedFixed64_ = other.packedFixed64_; packedFixed64_.makeImmutable(); bitField0_ |= 0x00000080; } else { ensurePackedFixed64IsMutable(); packedFixed64_.addAll(other.packedFixed64_); } onChanged(); } if (!other.packedSfixed32_.isEmpty()) { if (packedSfixed32_.isEmpty()) { packedSfixed32_ = other.packedSfixed32_; packedSfixed32_.makeImmutable(); bitField0_ |= 0x00000100; } else { ensurePackedSfixed32IsMutable(); packedSfixed32_.addAll(other.packedSfixed32_); } onChanged(); } if (!other.packedSfixed64_.isEmpty()) { if (packedSfixed64_.isEmpty()) { packedSfixed64_ = other.packedSfixed64_; packedSfixed64_.makeImmutable(); bitField0_ |= 0x00000200; } else { ensurePackedSfixed64IsMutable(); packedSfixed64_.addAll(other.packedSfixed64_); } onChanged(); } if (!other.packedFloat_.isEmpty()) { if (packedFloat_.isEmpty()) { packedFloat_ = other.packedFloat_; packedFloat_.makeImmutable(); bitField0_ |= 0x00000400; } else { ensurePackedFloatIsMutable(); packedFloat_.addAll(other.packedFloat_); } onChanged(); } if (!other.packedDouble_.isEmpty()) { if (packedDouble_.isEmpty()) { packedDouble_ = other.packedDouble_; packedDouble_.makeImmutable(); bitField0_ |= 0x00000800; } else { ensurePackedDoubleIsMutable(); packedDouble_.addAll(other.packedDouble_); } onChanged(); } if (!other.packedBool_.isEmpty()) { if (packedBool_.isEmpty()) { packedBool_ = other.packedBool_; packedBool_.makeImmutable(); bitField0_ |= 0x00001000; } else { ensurePackedBoolIsMutable(); packedBool_.addAll(other.packedBool_); } onChanged(); } if (!other.packedEnum_.isEmpty()) { if (packedEnum_.isEmpty()) { packedEnum_ = other.packedEnum_; bitField0_ = (bitField0_ & ~0x00002000); } else { ensurePackedEnumIsMutable(); packedEnum_.addAll(other.packedEnum_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 720: { int v = input.readInt32(); ensurePackedInt32IsMutable(); packedInt32_.addInt(v); break; } // case 720 case 722: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensurePackedInt32IsMutable(); while (input.getBytesUntilLimit() > 0) { packedInt32_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 722 case 728: { long v = input.readInt64(); ensurePackedInt64IsMutable(); packedInt64_.addLong(v); break; } // case 728 case 730: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensurePackedInt64IsMutable(); while (input.getBytesUntilLimit() > 0) { packedInt64_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 730 case 736: { int v = input.readUInt32(); ensurePackedUint32IsMutable(); packedUint32_.addInt(v); break; } // case 736 case 738: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensurePackedUint32IsMutable(); while (input.getBytesUntilLimit() > 0) { packedUint32_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 738 case 744: { long v = input.readUInt64(); ensurePackedUint64IsMutable(); packedUint64_.addLong(v); break; } // case 744 case 746: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensurePackedUint64IsMutable(); while (input.getBytesUntilLimit() > 0) { packedUint64_.addLong(input.readUInt64()); } input.popLimit(limit); break; } // case 746 case 752: { int v = input.readSInt32(); ensurePackedSint32IsMutable(); packedSint32_.addInt(v); break; } // case 752 case 754: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensurePackedSint32IsMutable(); while (input.getBytesUntilLimit() > 0) { packedSint32_.addInt(input.readSInt32()); } input.popLimit(limit); break; } // case 754 case 760: { long v = input.readSInt64(); ensurePackedSint64IsMutable(); packedSint64_.addLong(v); break; } // case 760 case 762: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensurePackedSint64IsMutable(); while (input.getBytesUntilLimit() > 0) { packedSint64_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 762 case 773: { int v = input.readFixed32(); ensurePackedFixed32IsMutable(); packedFixed32_.addInt(v); break; } // case 773 case 770: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensurePackedFixed32IsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { packedFixed32_.addInt(input.readFixed32()); } input.popLimit(limit); break; } // case 770 case 777: { long v = input.readFixed64(); ensurePackedFixed64IsMutable(); packedFixed64_.addLong(v); break; } // case 777 case 778: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensurePackedFixed64IsMutable(alloc / 8); while (input.getBytesUntilLimit() > 0) { packedFixed64_.addLong(input.readFixed64()); } input.popLimit(limit); break; } // case 778 case 789: { int v = input.readSFixed32(); ensurePackedSfixed32IsMutable(); packedSfixed32_.addInt(v); break; } // case 789 case 786: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensurePackedSfixed32IsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { packedSfixed32_.addInt(input.readSFixed32()); } input.popLimit(limit); break; } // case 786 case 793: { long v = input.readSFixed64(); ensurePackedSfixed64IsMutable(); packedSfixed64_.addLong(v); break; } // case 793 case 794: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensurePackedSfixed64IsMutable(alloc / 8); while (input.getBytesUntilLimit() > 0) { packedSfixed64_.addLong(input.readSFixed64()); } input.popLimit(limit); break; } // case 794 case 805: { float v = input.readFloat(); ensurePackedFloatIsMutable(); packedFloat_.addFloat(v); break; } // case 805 case 802: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensurePackedFloatIsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { packedFloat_.addFloat(input.readFloat()); } input.popLimit(limit); break; } // case 802 case 809: { double v = input.readDouble(); ensurePackedDoubleIsMutable(); packedDouble_.addDouble(v); break; } // case 809 case 810: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensurePackedDoubleIsMutable(alloc / 8); while (input.getBytesUntilLimit() > 0) { packedDouble_.addDouble(input.readDouble()); } input.popLimit(limit); break; } // case 810 case 816: { boolean v = input.readBool(); ensurePackedBoolIsMutable(); packedBool_.addBoolean(v); break; } // case 816 case 818: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensurePackedBoolIsMutable(alloc / 1); while (input.getBytesUntilLimit() > 0) { packedBool_.addBoolean(input.readBool()); } input.popLimit(limit); break; } // case 818 case 824: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(103, tmpRaw); } else { ensurePackedEnumIsMutable(); packedEnum_.add(tmpRaw); } break; } // case 824 case 826: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(103, tmpRaw); } else { ensurePackedEnumIsMutable(); packedEnum_.add(tmpRaw); } } input.popLimit(oldLimit); break; } // case 826 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.IntList packedInt32_ = emptyIntList(); private void ensurePackedInt32IsMutable() { if (!packedInt32_.isModifiable()) { packedInt32_ = makeMutableCopy(packedInt32_); } bitField0_ |= 0x00000001; } /** * repeated int32 packed_int32 = 90 [packed = true]; * @return A list containing the packedInt32. */ public java.util.List getPackedInt32List() { packedInt32_.makeImmutable(); return packedInt32_; } /** * repeated int32 packed_int32 = 90 [packed = true]; * @return The count of packedInt32. */ public int getPackedInt32Count() { return packedInt32_.size(); } /** * repeated int32 packed_int32 = 90 [packed = true]; * @param index The index of the element to return. * @return The packedInt32 at the given index. */ public int getPackedInt32(int index) { return packedInt32_.getInt(index); } /** * repeated int32 packed_int32 = 90 [packed = true]; * @param index The index to set the value at. * @param value The packedInt32 to set. * @return This builder for chaining. */ public Builder setPackedInt32( int index, int value) { ensurePackedInt32IsMutable(); packedInt32_.setInt(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int32 packed_int32 = 90 [packed = true]; * @param value The packedInt32 to add. * @return This builder for chaining. */ public Builder addPackedInt32(int value) { ensurePackedInt32IsMutable(); packedInt32_.addInt(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int32 packed_int32 = 90 [packed = true]; * @param values The packedInt32 to add. * @return This builder for chaining. */ public Builder addAllPackedInt32( java.lang.Iterable values) { ensurePackedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedInt32_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int32 packed_int32 = 90 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedInt32() { packedInt32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.Internal.LongList packedInt64_ = emptyLongList(); private void ensurePackedInt64IsMutable() { if (!packedInt64_.isModifiable()) { packedInt64_ = makeMutableCopy(packedInt64_); } bitField0_ |= 0x00000002; } /** * repeated int64 packed_int64 = 91 [packed = true]; * @return A list containing the packedInt64. */ public java.util.List getPackedInt64List() { packedInt64_.makeImmutable(); return packedInt64_; } /** * repeated int64 packed_int64 = 91 [packed = true]; * @return The count of packedInt64. */ public int getPackedInt64Count() { return packedInt64_.size(); } /** * repeated int64 packed_int64 = 91 [packed = true]; * @param index The index of the element to return. * @return The packedInt64 at the given index. */ public long getPackedInt64(int index) { return packedInt64_.getLong(index); } /** * repeated int64 packed_int64 = 91 [packed = true]; * @param index The index to set the value at. * @param value The packedInt64 to set. * @return This builder for chaining. */ public Builder setPackedInt64( int index, long value) { ensurePackedInt64IsMutable(); packedInt64_.setLong(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated int64 packed_int64 = 91 [packed = true]; * @param value The packedInt64 to add. * @return This builder for chaining. */ public Builder addPackedInt64(long value) { ensurePackedInt64IsMutable(); packedInt64_.addLong(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated int64 packed_int64 = 91 [packed = true]; * @param values The packedInt64 to add. * @return This builder for chaining. */ public Builder addAllPackedInt64( java.lang.Iterable values) { ensurePackedInt64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedInt64_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated int64 packed_int64 = 91 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedInt64() { packedInt64_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private com.google.protobuf.Internal.IntList packedUint32_ = emptyIntList(); private void ensurePackedUint32IsMutable() { if (!packedUint32_.isModifiable()) { packedUint32_ = makeMutableCopy(packedUint32_); } bitField0_ |= 0x00000004; } /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @return A list containing the packedUint32. */ public java.util.List getPackedUint32List() { packedUint32_.makeImmutable(); return packedUint32_; } /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @return The count of packedUint32. */ public int getPackedUint32Count() { return packedUint32_.size(); } /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @param index The index of the element to return. * @return The packedUint32 at the given index. */ public int getPackedUint32(int index) { return packedUint32_.getInt(index); } /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @param index The index to set the value at. * @param value The packedUint32 to set. * @return This builder for chaining. */ public Builder setPackedUint32( int index, int value) { ensurePackedUint32IsMutable(); packedUint32_.setInt(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @param value The packedUint32 to add. * @return This builder for chaining. */ public Builder addPackedUint32(int value) { ensurePackedUint32IsMutable(); packedUint32_.addInt(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @param values The packedUint32 to add. * @return This builder for chaining. */ public Builder addAllPackedUint32( java.lang.Iterable values) { ensurePackedUint32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedUint32_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated uint32 packed_uint32 = 92 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedUint32() { packedUint32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private com.google.protobuf.Internal.LongList packedUint64_ = emptyLongList(); private void ensurePackedUint64IsMutable() { if (!packedUint64_.isModifiable()) { packedUint64_ = makeMutableCopy(packedUint64_); } bitField0_ |= 0x00000008; } /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @return A list containing the packedUint64. */ public java.util.List getPackedUint64List() { packedUint64_.makeImmutable(); return packedUint64_; } /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @return The count of packedUint64. */ public int getPackedUint64Count() { return packedUint64_.size(); } /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @param index The index of the element to return. * @return The packedUint64 at the given index. */ public long getPackedUint64(int index) { return packedUint64_.getLong(index); } /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @param index The index to set the value at. * @param value The packedUint64 to set. * @return This builder for chaining. */ public Builder setPackedUint64( int index, long value) { ensurePackedUint64IsMutable(); packedUint64_.setLong(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @param value The packedUint64 to add. * @return This builder for chaining. */ public Builder addPackedUint64(long value) { ensurePackedUint64IsMutable(); packedUint64_.addLong(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @param values The packedUint64 to add. * @return This builder for chaining. */ public Builder addAllPackedUint64( java.lang.Iterable values) { ensurePackedUint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedUint64_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated uint64 packed_uint64 = 93 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedUint64() { packedUint64_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private com.google.protobuf.Internal.IntList packedSint32_ = emptyIntList(); private void ensurePackedSint32IsMutable() { if (!packedSint32_.isModifiable()) { packedSint32_ = makeMutableCopy(packedSint32_); } bitField0_ |= 0x00000010; } /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @return A list containing the packedSint32. */ public java.util.List getPackedSint32List() { packedSint32_.makeImmutable(); return packedSint32_; } /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @return The count of packedSint32. */ public int getPackedSint32Count() { return packedSint32_.size(); } /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @param index The index of the element to return. * @return The packedSint32 at the given index. */ public int getPackedSint32(int index) { return packedSint32_.getInt(index); } /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @param index The index to set the value at. * @param value The packedSint32 to set. * @return This builder for chaining. */ public Builder setPackedSint32( int index, int value) { ensurePackedSint32IsMutable(); packedSint32_.setInt(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @param value The packedSint32 to add. * @return This builder for chaining. */ public Builder addPackedSint32(int value) { ensurePackedSint32IsMutable(); packedSint32_.addInt(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @param values The packedSint32 to add. * @return This builder for chaining. */ public Builder addAllPackedSint32( java.lang.Iterable values) { ensurePackedSint32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedSint32_); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated sint32 packed_sint32 = 94 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedSint32() { packedSint32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private com.google.protobuf.Internal.LongList packedSint64_ = emptyLongList(); private void ensurePackedSint64IsMutable() { if (!packedSint64_.isModifiable()) { packedSint64_ = makeMutableCopy(packedSint64_); } bitField0_ |= 0x00000020; } /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @return A list containing the packedSint64. */ public java.util.List getPackedSint64List() { packedSint64_.makeImmutable(); return packedSint64_; } /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @return The count of packedSint64. */ public int getPackedSint64Count() { return packedSint64_.size(); } /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @param index The index of the element to return. * @return The packedSint64 at the given index. */ public long getPackedSint64(int index) { return packedSint64_.getLong(index); } /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @param index The index to set the value at. * @param value The packedSint64 to set. * @return This builder for chaining. */ public Builder setPackedSint64( int index, long value) { ensurePackedSint64IsMutable(); packedSint64_.setLong(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @param value The packedSint64 to add. * @return This builder for chaining. */ public Builder addPackedSint64(long value) { ensurePackedSint64IsMutable(); packedSint64_.addLong(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @param values The packedSint64 to add. * @return This builder for chaining. */ public Builder addAllPackedSint64( java.lang.Iterable values) { ensurePackedSint64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedSint64_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated sint64 packed_sint64 = 95 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedSint64() { packedSint64_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private com.google.protobuf.Internal.IntList packedFixed32_ = emptyIntList(); private void ensurePackedFixed32IsMutable() { if (!packedFixed32_.isModifiable()) { packedFixed32_ = makeMutableCopy(packedFixed32_); } bitField0_ |= 0x00000040; } private void ensurePackedFixed32IsMutable(int capacity) { if (!packedFixed32_.isModifiable()) { packedFixed32_ = makeMutableCopy(packedFixed32_, capacity); } bitField0_ |= 0x00000040; } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @return A list containing the packedFixed32. */ public java.util.List getPackedFixed32List() { packedFixed32_.makeImmutable(); return packedFixed32_; } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @return The count of packedFixed32. */ public int getPackedFixed32Count() { return packedFixed32_.size(); } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @param index The index of the element to return. * @return The packedFixed32 at the given index. */ public int getPackedFixed32(int index) { return packedFixed32_.getInt(index); } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @param index The index to set the value at. * @param value The packedFixed32 to set. * @return This builder for chaining. */ public Builder setPackedFixed32( int index, int value) { ensurePackedFixed32IsMutable(); packedFixed32_.setInt(index, value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @param value The packedFixed32 to add. * @return This builder for chaining. */ public Builder addPackedFixed32(int value) { ensurePackedFixed32IsMutable(); packedFixed32_.addInt(value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @param values The packedFixed32 to add. * @return This builder for chaining. */ public Builder addAllPackedFixed32( java.lang.Iterable values) { ensurePackedFixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedFixed32_); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated fixed32 packed_fixed32 = 96 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedFixed32() { packedFixed32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private com.google.protobuf.Internal.LongList packedFixed64_ = emptyLongList(); private void ensurePackedFixed64IsMutable() { if (!packedFixed64_.isModifiable()) { packedFixed64_ = makeMutableCopy(packedFixed64_); } bitField0_ |= 0x00000080; } private void ensurePackedFixed64IsMutable(int capacity) { if (!packedFixed64_.isModifiable()) { packedFixed64_ = makeMutableCopy(packedFixed64_, capacity); } bitField0_ |= 0x00000080; } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @return A list containing the packedFixed64. */ public java.util.List getPackedFixed64List() { packedFixed64_.makeImmutable(); return packedFixed64_; } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @return The count of packedFixed64. */ public int getPackedFixed64Count() { return packedFixed64_.size(); } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @param index The index of the element to return. * @return The packedFixed64 at the given index. */ public long getPackedFixed64(int index) { return packedFixed64_.getLong(index); } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @param index The index to set the value at. * @param value The packedFixed64 to set. * @return This builder for chaining. */ public Builder setPackedFixed64( int index, long value) { ensurePackedFixed64IsMutable(); packedFixed64_.setLong(index, value); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @param value The packedFixed64 to add. * @return This builder for chaining. */ public Builder addPackedFixed64(long value) { ensurePackedFixed64IsMutable(); packedFixed64_.addLong(value); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @param values The packedFixed64 to add. * @return This builder for chaining. */ public Builder addAllPackedFixed64( java.lang.Iterable values) { ensurePackedFixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedFixed64_); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated fixed64 packed_fixed64 = 97 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedFixed64() { packedFixed64_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } private com.google.protobuf.Internal.IntList packedSfixed32_ = emptyIntList(); private void ensurePackedSfixed32IsMutable() { if (!packedSfixed32_.isModifiable()) { packedSfixed32_ = makeMutableCopy(packedSfixed32_); } bitField0_ |= 0x00000100; } private void ensurePackedSfixed32IsMutable(int capacity) { if (!packedSfixed32_.isModifiable()) { packedSfixed32_ = makeMutableCopy(packedSfixed32_, capacity); } bitField0_ |= 0x00000100; } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @return A list containing the packedSfixed32. */ public java.util.List getPackedSfixed32List() { packedSfixed32_.makeImmutable(); return packedSfixed32_; } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @return The count of packedSfixed32. */ public int getPackedSfixed32Count() { return packedSfixed32_.size(); } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @param index The index of the element to return. * @return The packedSfixed32 at the given index. */ public int getPackedSfixed32(int index) { return packedSfixed32_.getInt(index); } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @param index The index to set the value at. * @param value The packedSfixed32 to set. * @return This builder for chaining. */ public Builder setPackedSfixed32( int index, int value) { ensurePackedSfixed32IsMutable(); packedSfixed32_.setInt(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @param value The packedSfixed32 to add. * @return This builder for chaining. */ public Builder addPackedSfixed32(int value) { ensurePackedSfixed32IsMutable(); packedSfixed32_.addInt(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @param values The packedSfixed32 to add. * @return This builder for chaining. */ public Builder addAllPackedSfixed32( java.lang.Iterable values) { ensurePackedSfixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedSfixed32_); bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated sfixed32 packed_sfixed32 = 98 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedSfixed32() { packedSfixed32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } private com.google.protobuf.Internal.LongList packedSfixed64_ = emptyLongList(); private void ensurePackedSfixed64IsMutable() { if (!packedSfixed64_.isModifiable()) { packedSfixed64_ = makeMutableCopy(packedSfixed64_); } bitField0_ |= 0x00000200; } private void ensurePackedSfixed64IsMutable(int capacity) { if (!packedSfixed64_.isModifiable()) { packedSfixed64_ = makeMutableCopy(packedSfixed64_, capacity); } bitField0_ |= 0x00000200; } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @return A list containing the packedSfixed64. */ public java.util.List getPackedSfixed64List() { packedSfixed64_.makeImmutable(); return packedSfixed64_; } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @return The count of packedSfixed64. */ public int getPackedSfixed64Count() { return packedSfixed64_.size(); } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @param index The index of the element to return. * @return The packedSfixed64 at the given index. */ public long getPackedSfixed64(int index) { return packedSfixed64_.getLong(index); } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @param index The index to set the value at. * @param value The packedSfixed64 to set. * @return This builder for chaining. */ public Builder setPackedSfixed64( int index, long value) { ensurePackedSfixed64IsMutable(); packedSfixed64_.setLong(index, value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @param value The packedSfixed64 to add. * @return This builder for chaining. */ public Builder addPackedSfixed64(long value) { ensurePackedSfixed64IsMutable(); packedSfixed64_.addLong(value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @param values The packedSfixed64 to add. * @return This builder for chaining. */ public Builder addAllPackedSfixed64( java.lang.Iterable values) { ensurePackedSfixed64IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedSfixed64_); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated sfixed64 packed_sfixed64 = 99 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedSfixed64() { packedSfixed64_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } private com.google.protobuf.Internal.FloatList packedFloat_ = emptyFloatList(); private void ensurePackedFloatIsMutable() { if (!packedFloat_.isModifiable()) { packedFloat_ = makeMutableCopy(packedFloat_); } bitField0_ |= 0x00000400; } private void ensurePackedFloatIsMutable(int capacity) { if (!packedFloat_.isModifiable()) { packedFloat_ = makeMutableCopy(packedFloat_, capacity); } bitField0_ |= 0x00000400; } /** * repeated float packed_float = 100 [packed = true]; * @return A list containing the packedFloat. */ public java.util.List getPackedFloatList() { packedFloat_.makeImmutable(); return packedFloat_; } /** * repeated float packed_float = 100 [packed = true]; * @return The count of packedFloat. */ public int getPackedFloatCount() { return packedFloat_.size(); } /** * repeated float packed_float = 100 [packed = true]; * @param index The index of the element to return. * @return The packedFloat at the given index. */ public float getPackedFloat(int index) { return packedFloat_.getFloat(index); } /** * repeated float packed_float = 100 [packed = true]; * @param index The index to set the value at. * @param value The packedFloat to set. * @return This builder for chaining. */ public Builder setPackedFloat( int index, float value) { ensurePackedFloatIsMutable(); packedFloat_.setFloat(index, value); bitField0_ |= 0x00000400; onChanged(); return this; } /** * repeated float packed_float = 100 [packed = true]; * @param value The packedFloat to add. * @return This builder for chaining. */ public Builder addPackedFloat(float value) { ensurePackedFloatIsMutable(); packedFloat_.addFloat(value); bitField0_ |= 0x00000400; onChanged(); return this; } /** * repeated float packed_float = 100 [packed = true]; * @param values The packedFloat to add. * @return This builder for chaining. */ public Builder addAllPackedFloat( java.lang.Iterable values) { ensurePackedFloatIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedFloat_); bitField0_ |= 0x00000400; onChanged(); return this; } /** * repeated float packed_float = 100 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedFloat() { packedFloat_ = emptyFloatList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } private com.google.protobuf.Internal.DoubleList packedDouble_ = emptyDoubleList(); private void ensurePackedDoubleIsMutable() { if (!packedDouble_.isModifiable()) { packedDouble_ = makeMutableCopy(packedDouble_); } bitField0_ |= 0x00000800; } private void ensurePackedDoubleIsMutable(int capacity) { if (!packedDouble_.isModifiable()) { packedDouble_ = makeMutableCopy(packedDouble_, capacity); } bitField0_ |= 0x00000800; } /** * repeated double packed_double = 101 [packed = true]; * @return A list containing the packedDouble. */ public java.util.List getPackedDoubleList() { packedDouble_.makeImmutable(); return packedDouble_; } /** * repeated double packed_double = 101 [packed = true]; * @return The count of packedDouble. */ public int getPackedDoubleCount() { return packedDouble_.size(); } /** * repeated double packed_double = 101 [packed = true]; * @param index The index of the element to return. * @return The packedDouble at the given index. */ public double getPackedDouble(int index) { return packedDouble_.getDouble(index); } /** * repeated double packed_double = 101 [packed = true]; * @param index The index to set the value at. * @param value The packedDouble to set. * @return This builder for chaining. */ public Builder setPackedDouble( int index, double value) { ensurePackedDoubleIsMutable(); packedDouble_.setDouble(index, value); bitField0_ |= 0x00000800; onChanged(); return this; } /** * repeated double packed_double = 101 [packed = true]; * @param value The packedDouble to add. * @return This builder for chaining. */ public Builder addPackedDouble(double value) { ensurePackedDoubleIsMutable(); packedDouble_.addDouble(value); bitField0_ |= 0x00000800; onChanged(); return this; } /** * repeated double packed_double = 101 [packed = true]; * @param values The packedDouble to add. * @return This builder for chaining. */ public Builder addAllPackedDouble( java.lang.Iterable values) { ensurePackedDoubleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedDouble_); bitField0_ |= 0x00000800; onChanged(); return this; } /** * repeated double packed_double = 101 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedDouble() { packedDouble_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } private com.google.protobuf.Internal.BooleanList packedBool_ = emptyBooleanList(); private void ensurePackedBoolIsMutable() { if (!packedBool_.isModifiable()) { packedBool_ = makeMutableCopy(packedBool_); } bitField0_ |= 0x00001000; } private void ensurePackedBoolIsMutable(int capacity) { if (!packedBool_.isModifiable()) { packedBool_ = makeMutableCopy(packedBool_, capacity); } bitField0_ |= 0x00001000; } /** * repeated bool packed_bool = 102 [packed = true]; * @return A list containing the packedBool. */ public java.util.List getPackedBoolList() { packedBool_.makeImmutable(); return packedBool_; } /** * repeated bool packed_bool = 102 [packed = true]; * @return The count of packedBool. */ public int getPackedBoolCount() { return packedBool_.size(); } /** * repeated bool packed_bool = 102 [packed = true]; * @param index The index of the element to return. * @return The packedBool at the given index. */ public boolean getPackedBool(int index) { return packedBool_.getBoolean(index); } /** * repeated bool packed_bool = 102 [packed = true]; * @param index The index to set the value at. * @param value The packedBool to set. * @return This builder for chaining. */ public Builder setPackedBool( int index, boolean value) { ensurePackedBoolIsMutable(); packedBool_.setBoolean(index, value); bitField0_ |= 0x00001000; onChanged(); return this; } /** * repeated bool packed_bool = 102 [packed = true]; * @param value The packedBool to add. * @return This builder for chaining. */ public Builder addPackedBool(boolean value) { ensurePackedBoolIsMutable(); packedBool_.addBoolean(value); bitField0_ |= 0x00001000; onChanged(); return this; } /** * repeated bool packed_bool = 102 [packed = true]; * @param values The packedBool to add. * @return This builder for chaining. */ public Builder addAllPackedBool( java.lang.Iterable values) { ensurePackedBoolIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedBool_); bitField0_ |= 0x00001000; onChanged(); return this; } /** * repeated bool packed_bool = 102 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedBool() { packedBool_ = emptyBooleanList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } private java.util.List packedEnum_ = java.util.Collections.emptyList(); private void ensurePackedEnumIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { packedEnum_ = new java.util.ArrayList(packedEnum_); bitField0_ |= 0x00002000; } } /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @return A list containing the packedEnum. */ public java.util.List getPackedEnumList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignEnumLite>(packedEnum_, packedEnum_converter_); } /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @return The count of packedEnum. */ public int getPackedEnumCount() { return packedEnum_.size(); } /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @param index The index of the element to return. * @return The packedEnum at the given index. */ public com.google.protobuf.UnittestLite.ForeignEnumLite getPackedEnum(int index) { return packedEnum_converter_.convert(packedEnum_.get(index)); } /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @param index The index to set the value at. * @param value The packedEnum to set. * @return This builder for chaining. */ public Builder setPackedEnum( int index, com.google.protobuf.UnittestLite.ForeignEnumLite value) { if (value == null) { throw new NullPointerException(); } ensurePackedEnumIsMutable(); packedEnum_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @param value The packedEnum to add. * @return This builder for chaining. */ public Builder addPackedEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) { if (value == null) { throw new NullPointerException(); } ensurePackedEnumIsMutable(); packedEnum_.add(value.getNumber()); onChanged(); return this; } /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @param values The packedEnum to add. * @return This builder for chaining. */ public Builder addAllPackedEnum( java.lang.Iterable values) { ensurePackedEnumIsMutable(); for (com.google.protobuf.UnittestLite.ForeignEnumLite value : values) { packedEnum_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .proto2_unittest.ForeignEnumLite packed_enum = 103 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedEnum() { packedEnum_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestPackedTypesLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestPackedTypesLite) private static final com.google.protobuf.UnittestLite.TestPackedTypesLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestPackedTypesLite(); } public static com.google.protobuf.UnittestLite.TestPackedTypesLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestPackedTypesLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestPackedTypesLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestAllExtensionsLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestAllExtensionsLite) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder { } /** * Protobuf type {@code proto2_unittest.TestAllExtensionsLite} */ public static final class TestAllExtensionsLite extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< TestAllExtensionsLite> implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestAllExtensionsLite) TestAllExtensionsLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestAllExtensionsLite.newBuilder() to construct. private TestAllExtensionsLite(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { super(builder); } private TestAllExtensionsLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestAllExtensionsLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllExtensionsLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllExtensionsLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllExtensionsLite.class, com.google.protobuf.UnittestLite.TestAllExtensionsLite.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestAllExtensionsLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestAllExtensionsLite other = (com.google.protobuf.UnittestLite.TestAllExtensionsLite) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestAllExtensionsLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestAllExtensionsLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.UnittestLite.TestAllExtensionsLite, Builder> implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestAllExtensionsLite) com.google.protobuf.UnittestLite.TestAllExtensionsLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllExtensionsLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllExtensionsLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestAllExtensionsLite.class, com.google.protobuf.UnittestLite.TestAllExtensionsLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestAllExtensionsLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestAllExtensionsLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllExtensionsLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestAllExtensionsLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllExtensionsLite build() { com.google.protobuf.UnittestLite.TestAllExtensionsLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllExtensionsLite buildPartial() { com.google.protobuf.UnittestLite.TestAllExtensionsLite result = new com.google.protobuf.UnittestLite.TestAllExtensionsLite(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, T> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestAllExtensionsLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestAllExtensionsLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestAllExtensionsLite other) { if (other == com.google.protobuf.UnittestLite.TestAllExtensionsLite.getDefaultInstance()) return this; this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestAllExtensionsLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestAllExtensionsLite) private static final com.google.protobuf.UnittestLite.TestAllExtensionsLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestAllExtensionsLite(); } public static com.google.protobuf.UnittestLite.TestAllExtensionsLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestAllExtensionsLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestAllExtensionsLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalGroup_extension_liteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.OptionalGroup_extension_lite) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 17; * @return Whether the a field is set. */ boolean hasA(); /** * optional int32 a = 17; * @return The a. */ int getA(); } /** * Protobuf type {@code proto2_unittest.OptionalGroup_extension_lite} */ public static final class OptionalGroup_extension_lite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.OptionalGroup_extension_lite) OptionalGroup_extension_liteOrBuilder { private static final long serialVersionUID = 0L; // Use OptionalGroup_extension_lite.newBuilder() to construct. private OptionalGroup_extension_lite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionalGroup_extension_lite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptionalGroup_extension_lite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_OptionalGroup_extension_lite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_OptionalGroup_extension_lite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.class, com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.Builder.class); } private int bitField0_; public static final int A_FIELD_NUMBER = 17; private int a_ = 0; /** * optional int32 a = 17; * @return Whether the a field is set. */ @java.lang.Override public boolean hasA() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 a = 17; * @return The a. */ @java.lang.Override public int getA() { return a_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(17, a_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, a_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.OptionalGroup_extension_lite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.OptionalGroup_extension_lite other = (com.google.protobuf.UnittestLite.OptionalGroup_extension_lite) obj; if (hasA() != other.hasA()) return false; if (hasA()) { if (getA() != other.getA()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasA()) { hash = (37 * hash) + A_FIELD_NUMBER; hash = (53 * hash) + getA(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.OptionalGroup_extension_lite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.OptionalGroup_extension_lite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.OptionalGroup_extension_lite) com.google.protobuf.UnittestLite.OptionalGroup_extension_liteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_OptionalGroup_extension_lite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_OptionalGroup_extension_lite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.class, com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; a_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_OptionalGroup_extension_lite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.OptionalGroup_extension_lite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.OptionalGroup_extension_lite build() { com.google.protobuf.UnittestLite.OptionalGroup_extension_lite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.OptionalGroup_extension_lite buildPartial() { com.google.protobuf.UnittestLite.OptionalGroup_extension_lite result = new com.google.protobuf.UnittestLite.OptionalGroup_extension_lite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.OptionalGroup_extension_lite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.a_ = a_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.OptionalGroup_extension_lite) { return mergeFrom((com.google.protobuf.UnittestLite.OptionalGroup_extension_lite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.OptionalGroup_extension_lite other) { if (other == com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 136: { a_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 136 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 17; * @return Whether the a field is set. */ @java.lang.Override public boolean hasA() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 a = 17; * @return The a. */ @java.lang.Override public int getA() { return a_; } /** * optional int32 a = 17; * @param value The a to set. * @return This builder for chaining. */ public Builder setA(int value) { a_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 a = 17; * @return This builder for chaining. */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.OptionalGroup_extension_lite) } // @@protoc_insertion_point(class_scope:proto2_unittest.OptionalGroup_extension_lite) private static final com.google.protobuf.UnittestLite.OptionalGroup_extension_lite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.OptionalGroup_extension_lite(); } public static com.google.protobuf.UnittestLite.OptionalGroup_extension_lite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionalGroup_extension_lite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.OptionalGroup_extension_lite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RepeatedGroup_extension_liteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.RepeatedGroup_extension_lite) com.google.protobuf.MessageOrBuilder { /** * optional int32 a = 47; * @return Whether the a field is set. */ boolean hasA(); /** * optional int32 a = 47; * @return The a. */ int getA(); } /** * Protobuf type {@code proto2_unittest.RepeatedGroup_extension_lite} */ public static final class RepeatedGroup_extension_lite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.RepeatedGroup_extension_lite) RepeatedGroup_extension_liteOrBuilder { private static final long serialVersionUID = 0L; // Use RepeatedGroup_extension_lite.newBuilder() to construct. private RepeatedGroup_extension_lite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RepeatedGroup_extension_lite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RepeatedGroup_extension_lite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RepeatedGroup_extension_lite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RepeatedGroup_extension_lite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.class, com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.Builder.class); } private int bitField0_; public static final int A_FIELD_NUMBER = 47; private int a_ = 0; /** * optional int32 a = 47; * @return Whether the a field is set. */ @java.lang.Override public boolean hasA() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 a = 47; * @return The a. */ @java.lang.Override public int getA() { return a_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(47, a_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(47, a_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite other = (com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite) obj; if (hasA() != other.hasA()) return false; if (hasA()) { if (getA() != other.getA()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasA()) { hash = (37 * hash) + A_FIELD_NUMBER; hash = (53 * hash) + getA(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.RepeatedGroup_extension_lite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.RepeatedGroup_extension_lite) com.google.protobuf.UnittestLite.RepeatedGroup_extension_liteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RepeatedGroup_extension_lite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RepeatedGroup_extension_lite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.class, com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; a_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RepeatedGroup_extension_lite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite build() { com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite buildPartial() { com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite result = new com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.a_ = a_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite) { return mergeFrom((com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite other) { if (other == com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 376: { a_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 376 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int a_ ; /** * optional int32 a = 47; * @return Whether the a field is set. */ @java.lang.Override public boolean hasA() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 a = 47; * @return The a. */ @java.lang.Override public int getA() { return a_; } /** * optional int32 a = 47; * @param value The a to set. * @return This builder for chaining. */ public Builder setA(int value) { a_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 a = 47; * @return This builder for chaining. */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.RepeatedGroup_extension_lite) } // @@protoc_insertion_point(class_scope:proto2_unittest.RepeatedGroup_extension_lite) private static final com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite(); } public static com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RepeatedGroup_extension_lite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestPackedExtensionsLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestPackedExtensionsLite) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder { } /** * Protobuf type {@code proto2_unittest.TestPackedExtensionsLite} */ public static final class TestPackedExtensionsLite extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< TestPackedExtensionsLite> implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestPackedExtensionsLite) TestPackedExtensionsLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestPackedExtensionsLite.newBuilder() to construct. private TestPackedExtensionsLite(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { super(builder); } private TestPackedExtensionsLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestPackedExtensionsLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedExtensionsLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedExtensionsLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestPackedExtensionsLite.class, com.google.protobuf.UnittestLite.TestPackedExtensionsLite.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestPackedExtensionsLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestPackedExtensionsLite other = (com.google.protobuf.UnittestLite.TestPackedExtensionsLite) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestPackedExtensionsLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestPackedExtensionsLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, Builder> implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestPackedExtensionsLite) com.google.protobuf.UnittestLite.TestPackedExtensionsLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedExtensionsLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedExtensionsLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestPackedExtensionsLite.class, com.google.protobuf.UnittestLite.TestPackedExtensionsLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestPackedExtensionsLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestPackedExtensionsLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestPackedExtensionsLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestPackedExtensionsLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestPackedExtensionsLite build() { com.google.protobuf.UnittestLite.TestPackedExtensionsLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestPackedExtensionsLite buildPartial() { com.google.protobuf.UnittestLite.TestPackedExtensionsLite result = new com.google.protobuf.UnittestLite.TestPackedExtensionsLite(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, T> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestPackedExtensionsLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestPackedExtensionsLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestPackedExtensionsLite other) { if (other == com.google.protobuf.UnittestLite.TestPackedExtensionsLite.getDefaultInstance()) return this; this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestPackedExtensionsLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestPackedExtensionsLite) private static final com.google.protobuf.UnittestLite.TestPackedExtensionsLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestPackedExtensionsLite(); } public static com.google.protobuf.UnittestLite.TestPackedExtensionsLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestPackedExtensionsLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestPackedExtensionsLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestNestedExtensionLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestNestedExtensionLite) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code proto2_unittest.TestNestedExtensionLite} */ public static final class TestNestedExtensionLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestNestedExtensionLite) TestNestedExtensionLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestNestedExtensionLite.newBuilder() to construct. private TestNestedExtensionLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestNestedExtensionLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestNestedExtensionLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestNestedExtensionLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestNestedExtensionLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestNestedExtensionLite.class, com.google.protobuf.UnittestLite.TestNestedExtensionLite.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestNestedExtensionLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestNestedExtensionLite other = (com.google.protobuf.UnittestLite.TestNestedExtensionLite) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestNestedExtensionLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestNestedExtensionLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestNestedExtensionLite) com.google.protobuf.UnittestLite.TestNestedExtensionLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestNestedExtensionLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestNestedExtensionLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestNestedExtensionLite.class, com.google.protobuf.UnittestLite.TestNestedExtensionLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestNestedExtensionLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestNestedExtensionLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestNestedExtensionLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestNestedExtensionLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestNestedExtensionLite build() { com.google.protobuf.UnittestLite.TestNestedExtensionLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestNestedExtensionLite buildPartial() { com.google.protobuf.UnittestLite.TestNestedExtensionLite result = new com.google.protobuf.UnittestLite.TestNestedExtensionLite(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestNestedExtensionLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestNestedExtensionLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestNestedExtensionLite other) { if (other == com.google.protobuf.UnittestLite.TestNestedExtensionLite.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestNestedExtensionLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestNestedExtensionLite) private static final com.google.protobuf.UnittestLite.TestNestedExtensionLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestNestedExtensionLite(); } public static com.google.protobuf.UnittestLite.TestNestedExtensionLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestNestedExtensionLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestNestedExtensionLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } public static final int NESTED_EXTENSION_FIELD_NUMBER = 12345; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> nestedExtension = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestNestedExtensionLite.getDefaultInstance(), 0, java.lang.Integer.class, null); } public interface TestDeprecatedLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestDeprecatedLite) com.google.protobuf.MessageOrBuilder { /** * optional int32 deprecated_field = 1 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated. * See google/protobuf/unittest_lite.proto;l=344 * @return Whether the deprecatedField field is set. */ @java.lang.Deprecated boolean hasDeprecatedField(); /** * optional int32 deprecated_field = 1 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated. * See google/protobuf/unittest_lite.proto;l=344 * @return The deprecatedField. */ @java.lang.Deprecated int getDeprecatedField(); /** * required int32 deprecated_field2 = 2 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated. * See google/protobuf/unittest_lite.proto;l=345 * @return Whether the deprecatedField2 field is set. */ @java.lang.Deprecated boolean hasDeprecatedField2(); /** * required int32 deprecated_field2 = 2 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated. * See google/protobuf/unittest_lite.proto;l=345 * @return The deprecatedField2. */ @java.lang.Deprecated int getDeprecatedField2(); /** * optional string deprecated_field3 = 3 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated. * See google/protobuf/unittest_lite.proto;l=346 * @return Whether the deprecatedField3 field is set. */ @java.lang.Deprecated boolean hasDeprecatedField3(); /** * optional string deprecated_field3 = 3 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated. * See google/protobuf/unittest_lite.proto;l=346 * @return The deprecatedField3. */ @java.lang.Deprecated java.lang.String getDeprecatedField3(); /** * optional string deprecated_field3 = 3 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated. * See google/protobuf/unittest_lite.proto;l=346 * @return The bytes for deprecatedField3. */ @java.lang.Deprecated com.google.protobuf.ByteString getDeprecatedField3Bytes(); /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated. * See google/protobuf/unittest_lite.proto;l=347 * @return Whether the deprecatedField4 field is set. */ @java.lang.Deprecated boolean hasDeprecatedField4(); /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated. * See google/protobuf/unittest_lite.proto;l=347 * @return The deprecatedField4. */ @java.lang.Deprecated com.google.protobuf.UnittestLite.TestDeprecatedLite getDeprecatedField4(); /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; */ @java.lang.Deprecated com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder getDeprecatedField4OrBuilder(); } /** *
   * Test that deprecated fields work.  We only verify that they compile (at one
   * point this failed).
   * 
* * Protobuf type {@code proto2_unittest.TestDeprecatedLite} */ public static final class TestDeprecatedLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestDeprecatedLite) TestDeprecatedLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestDeprecatedLite.newBuilder() to construct. private TestDeprecatedLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestDeprecatedLite() { deprecatedField3_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestDeprecatedLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestDeprecatedLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestDeprecatedLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestDeprecatedLite.class, com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder.class); } private int bitField0_; public static final int DEPRECATED_FIELD_FIELD_NUMBER = 1; private int deprecatedField_ = 0; /** * optional int32 deprecated_field = 1 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated. * See google/protobuf/unittest_lite.proto;l=344 * @return Whether the deprecatedField field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDeprecatedField() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 deprecated_field = 1 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated. * See google/protobuf/unittest_lite.proto;l=344 * @return The deprecatedField. */ @java.lang.Override @java.lang.Deprecated public int getDeprecatedField() { return deprecatedField_; } public static final int DEPRECATED_FIELD2_FIELD_NUMBER = 2; private int deprecatedField2_ = 0; /** * required int32 deprecated_field2 = 2 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated. * See google/protobuf/unittest_lite.proto;l=345 * @return Whether the deprecatedField2 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDeprecatedField2() { return ((bitField0_ & 0x00000002) != 0); } /** * required int32 deprecated_field2 = 2 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated. * See google/protobuf/unittest_lite.proto;l=345 * @return The deprecatedField2. */ @java.lang.Override @java.lang.Deprecated public int getDeprecatedField2() { return deprecatedField2_; } public static final int DEPRECATED_FIELD3_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object deprecatedField3_ = ""; /** * optional string deprecated_field3 = 3 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated. * See google/protobuf/unittest_lite.proto;l=346 * @return Whether the deprecatedField3 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDeprecatedField3() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string deprecated_field3 = 3 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated. * See google/protobuf/unittest_lite.proto;l=346 * @return The deprecatedField3. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getDeprecatedField3() { java.lang.Object ref = deprecatedField3_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { deprecatedField3_ = s; } return s; } } /** * optional string deprecated_field3 = 3 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated. * See google/protobuf/unittest_lite.proto;l=346 * @return The bytes for deprecatedField3. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getDeprecatedField3Bytes() { java.lang.Object ref = deprecatedField3_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deprecatedField3_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPRECATED_FIELD4_FIELD_NUMBER = 4; private com.google.protobuf.UnittestLite.TestDeprecatedLite deprecatedField4_; /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated. * See google/protobuf/unittest_lite.proto;l=347 * @return Whether the deprecatedField4 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDeprecatedField4() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated. * See google/protobuf/unittest_lite.proto;l=347 * @return The deprecatedField4. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.UnittestLite.TestDeprecatedLite getDeprecatedField4() { return deprecatedField4_ == null ? com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance() : deprecatedField4_; } /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder getDeprecatedField4OrBuilder() { return deprecatedField4_ == null ? com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance() : deprecatedField4_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasDeprecatedField2()) { memoizedIsInitialized = 0; return false; } if (hasDeprecatedField4()) { if (!getDeprecatedField4().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, deprecatedField_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, deprecatedField2_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deprecatedField3_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getDeprecatedField4()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, deprecatedField_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, deprecatedField2_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deprecatedField3_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDeprecatedField4()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestDeprecatedLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestDeprecatedLite other = (com.google.protobuf.UnittestLite.TestDeprecatedLite) obj; if (hasDeprecatedField() != other.hasDeprecatedField()) return false; if (hasDeprecatedField()) { if (getDeprecatedField() != other.getDeprecatedField()) return false; } if (hasDeprecatedField2() != other.hasDeprecatedField2()) return false; if (hasDeprecatedField2()) { if (getDeprecatedField2() != other.getDeprecatedField2()) return false; } if (hasDeprecatedField3() != other.hasDeprecatedField3()) return false; if (hasDeprecatedField3()) { if (!getDeprecatedField3() .equals(other.getDeprecatedField3())) return false; } if (hasDeprecatedField4() != other.hasDeprecatedField4()) return false; if (hasDeprecatedField4()) { if (!getDeprecatedField4() .equals(other.getDeprecatedField4())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDeprecatedField()) { hash = (37 * hash) + DEPRECATED_FIELD_FIELD_NUMBER; hash = (53 * hash) + getDeprecatedField(); } if (hasDeprecatedField2()) { hash = (37 * hash) + DEPRECATED_FIELD2_FIELD_NUMBER; hash = (53 * hash) + getDeprecatedField2(); } if (hasDeprecatedField3()) { hash = (37 * hash) + DEPRECATED_FIELD3_FIELD_NUMBER; hash = (53 * hash) + getDeprecatedField3().hashCode(); } if (hasDeprecatedField4()) { hash = (37 * hash) + DEPRECATED_FIELD4_FIELD_NUMBER; hash = (53 * hash) + getDeprecatedField4().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestDeprecatedLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Test that deprecated fields work.  We only verify that they compile (at one
     * point this failed).
     * 
* * Protobuf type {@code proto2_unittest.TestDeprecatedLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestDeprecatedLite) com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestDeprecatedLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestDeprecatedLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestDeprecatedLite.class, com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestDeprecatedLite.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDeprecatedField4FieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; deprecatedField_ = 0; deprecatedField2_ = 0; deprecatedField3_ = ""; deprecatedField4_ = null; if (deprecatedField4Builder_ != null) { deprecatedField4Builder_.dispose(); deprecatedField4Builder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestDeprecatedLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestDeprecatedLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestDeprecatedLite build() { com.google.protobuf.UnittestLite.TestDeprecatedLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestDeprecatedLite buildPartial() { com.google.protobuf.UnittestLite.TestDeprecatedLite result = new com.google.protobuf.UnittestLite.TestDeprecatedLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestDeprecatedLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.deprecatedField_ = deprecatedField_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.deprecatedField2_ = deprecatedField2_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.deprecatedField3_ = deprecatedField3_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.deprecatedField4_ = deprecatedField4Builder_ == null ? deprecatedField4_ : deprecatedField4Builder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestDeprecatedLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestDeprecatedLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestDeprecatedLite other) { if (other == com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance()) return this; if (other.hasDeprecatedField()) { setDeprecatedField(other.getDeprecatedField()); } if (other.hasDeprecatedField2()) { setDeprecatedField2(other.getDeprecatedField2()); } if (other.hasDeprecatedField3()) { deprecatedField3_ = other.deprecatedField3_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasDeprecatedField4()) { mergeDeprecatedField4(other.getDeprecatedField4()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasDeprecatedField2()) { return false; } if (hasDeprecatedField4()) { if (!getDeprecatedField4().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { deprecatedField_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { deprecatedField2_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { deprecatedField3_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getDeprecatedField4FieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int deprecatedField_ ; /** * optional int32 deprecated_field = 1 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated. * See google/protobuf/unittest_lite.proto;l=344 * @return Whether the deprecatedField field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDeprecatedField() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 deprecated_field = 1 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field is deprecated. * See google/protobuf/unittest_lite.proto;l=344 * @return The deprecatedField. */ @java.lang.Override @java.lang.Deprecated public int getDeprecatedField() { return deprecatedField_; } /** * optional int32 deprecated_field = 1 [deprecated = true]; * @param value The deprecatedField to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setDeprecatedField(int value) { deprecatedField_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 deprecated_field = 1 [deprecated = true]; * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearDeprecatedField() { bitField0_ = (bitField0_ & ~0x00000001); deprecatedField_ = 0; onChanged(); return this; } private int deprecatedField2_ ; /** * required int32 deprecated_field2 = 2 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated. * See google/protobuf/unittest_lite.proto;l=345 * @return Whether the deprecatedField2 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDeprecatedField2() { return ((bitField0_ & 0x00000002) != 0); } /** * required int32 deprecated_field2 = 2 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field2 is deprecated. * See google/protobuf/unittest_lite.proto;l=345 * @return The deprecatedField2. */ @java.lang.Override @java.lang.Deprecated public int getDeprecatedField2() { return deprecatedField2_; } /** * required int32 deprecated_field2 = 2 [deprecated = true]; * @param value The deprecatedField2 to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setDeprecatedField2(int value) { deprecatedField2_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int32 deprecated_field2 = 2 [deprecated = true]; * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearDeprecatedField2() { bitField0_ = (bitField0_ & ~0x00000002); deprecatedField2_ = 0; onChanged(); return this; } private java.lang.Object deprecatedField3_ = ""; /** * optional string deprecated_field3 = 3 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated. * See google/protobuf/unittest_lite.proto;l=346 * @return Whether the deprecatedField3 field is set. */ @java.lang.Deprecated public boolean hasDeprecatedField3() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string deprecated_field3 = 3 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated. * See google/protobuf/unittest_lite.proto;l=346 * @return The deprecatedField3. */ @java.lang.Deprecated public java.lang.String getDeprecatedField3() { java.lang.Object ref = deprecatedField3_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { deprecatedField3_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string deprecated_field3 = 3 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field3 is deprecated. * See google/protobuf/unittest_lite.proto;l=346 * @return The bytes for deprecatedField3. */ @java.lang.Deprecated public com.google.protobuf.ByteString getDeprecatedField3Bytes() { java.lang.Object ref = deprecatedField3_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deprecatedField3_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string deprecated_field3 = 3 [deprecated = true]; * @param value The deprecatedField3 to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setDeprecatedField3( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deprecatedField3_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string deprecated_field3 = 3 [deprecated = true]; * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearDeprecatedField3() { deprecatedField3_ = getDefaultInstance().getDeprecatedField3(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string deprecated_field3 = 3 [deprecated = true]; * @param value The bytes for deprecatedField3 to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setDeprecatedField3Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } deprecatedField3_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.UnittestLite.TestDeprecatedLite deprecatedField4_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestDeprecatedLite, com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder, com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder> deprecatedField4Builder_; /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated. * See google/protobuf/unittest_lite.proto;l=347 * @return Whether the deprecatedField4 field is set. */ @java.lang.Deprecated public boolean hasDeprecatedField4() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; * @deprecated proto2_unittest.TestDeprecatedLite.deprecated_field4 is deprecated. * See google/protobuf/unittest_lite.proto;l=347 * @return The deprecatedField4. */ @java.lang.Deprecated public com.google.protobuf.UnittestLite.TestDeprecatedLite getDeprecatedField4() { if (deprecatedField4Builder_ == null) { return deprecatedField4_ == null ? com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance() : deprecatedField4_; } else { return deprecatedField4Builder_.getMessage(); } } /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder setDeprecatedField4(com.google.protobuf.UnittestLite.TestDeprecatedLite value) { if (deprecatedField4Builder_ == null) { if (value == null) { throw new NullPointerException(); } deprecatedField4_ = value; } else { deprecatedField4Builder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder setDeprecatedField4( com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder builderForValue) { if (deprecatedField4Builder_ == null) { deprecatedField4_ = builderForValue.build(); } else { deprecatedField4Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeDeprecatedField4(com.google.protobuf.UnittestLite.TestDeprecatedLite value) { if (deprecatedField4Builder_ == null) { if (((bitField0_ & 0x00000008) != 0) && deprecatedField4_ != null && deprecatedField4_ != com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance()) { getDeprecatedField4Builder().mergeFrom(value); } else { deprecatedField4_ = value; } } else { deprecatedField4Builder_.mergeFrom(value); } if (deprecatedField4_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder clearDeprecatedField4() { bitField0_ = (bitField0_ & ~0x00000008); deprecatedField4_ = null; if (deprecatedField4Builder_ != null) { deprecatedField4Builder_.dispose(); deprecatedField4Builder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder getDeprecatedField4Builder() { bitField0_ |= 0x00000008; onChanged(); return getDeprecatedField4FieldBuilder().getBuilder(); } /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder getDeprecatedField4OrBuilder() { if (deprecatedField4Builder_ != null) { return deprecatedField4Builder_.getMessageOrBuilder(); } else { return deprecatedField4_ == null ? com.google.protobuf.UnittestLite.TestDeprecatedLite.getDefaultInstance() : deprecatedField4_; } } /** * optional .proto2_unittest.TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestDeprecatedLite, com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder, com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder> getDeprecatedField4FieldBuilder() { if (deprecatedField4Builder_ == null) { deprecatedField4Builder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestDeprecatedLite, com.google.protobuf.UnittestLite.TestDeprecatedLite.Builder, com.google.protobuf.UnittestLite.TestDeprecatedLiteOrBuilder>( getDeprecatedField4(), getParentForChildren(), isClean()); deprecatedField4_ = null; } return deprecatedField4Builder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestDeprecatedLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestDeprecatedLite) private static final com.google.protobuf.UnittestLite.TestDeprecatedLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestDeprecatedLite(); } public static com.google.protobuf.UnittestLite.TestDeprecatedLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestDeprecatedLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestDeprecatedLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestParsingMergeLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestParsingMergeLite) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder { /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; * @return Whether the requiredAllTypes field is set. */ boolean hasRequiredAllTypes(); /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; * @return The requiredAllTypes. */ com.google.protobuf.UnittestLite.TestAllTypesLite getRequiredAllTypes(); /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getRequiredAllTypesOrBuilder(); /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; * @return Whether the optionalAllTypes field is set. */ boolean hasOptionalAllTypes(); /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; * @return The optionalAllTypes. */ com.google.protobuf.UnittestLite.TestAllTypesLite getOptionalAllTypes(); /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOptionalAllTypesOrBuilder(); /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ java.util.List getRepeatedAllTypesList(); /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ com.google.protobuf.UnittestLite.TestAllTypesLite getRepeatedAllTypes(int index); /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ int getRepeatedAllTypesCount(); /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ java.util.List getRepeatedAllTypesOrBuilderList(); /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getRepeatedAllTypesOrBuilder( int index); /** * optional group OptionalGroup = 10 { ... } * @return Whether the optionalgroup field is set. */ boolean hasOptionalGroup(); /** * optional group OptionalGroup = 10 { ... } * @return The optionalgroup. */ com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup getOptionalGroup(); /** * optional group OptionalGroup = 10 { ... } */ com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroupOrBuilder getOptionalGroupOrBuilder(); /** * repeated group RepeatedGroup = 20 { ... } */ java.util.List getRepeatedGroupList(); /** * repeated group RepeatedGroup = 20 { ... } */ com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup getRepeatedGroup(int index); /** * repeated group RepeatedGroup = 20 { ... } */ int getRepeatedGroupCount(); /** * repeated group RepeatedGroup = 20 { ... } */ java.util.List getRepeatedGroupOrBuilderList(); /** * repeated group RepeatedGroup = 20 { ... } */ com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index); } /** *
   * See the comments of the same type in unittest.proto.
   * 
* * Protobuf type {@code proto2_unittest.TestParsingMergeLite} */ public static final class TestParsingMergeLite extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< TestParsingMergeLite> implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestParsingMergeLite) TestParsingMergeLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestParsingMergeLite.newBuilder() to construct. private TestParsingMergeLite(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { super(builder); } private TestParsingMergeLite() { repeatedAllTypes_ = java.util.Collections.emptyList(); repeatedGroup_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestParsingMergeLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.Builder.class); } public interface RepeatedFieldsGeneratorOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator) com.google.protobuf.MessageOrBuilder { /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ java.util.List getField1List(); /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ com.google.protobuf.UnittestLite.TestAllTypesLite getField1(int index); /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ int getField1Count(); /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ java.util.List getField1OrBuilderList(); /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField1OrBuilder( int index); /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ java.util.List getField2List(); /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ com.google.protobuf.UnittestLite.TestAllTypesLite getField2(int index); /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ int getField2Count(); /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ java.util.List getField2OrBuilderList(); /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField2OrBuilder( int index); /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ java.util.List getField3List(); /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ com.google.protobuf.UnittestLite.TestAllTypesLite getField3(int index); /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ int getField3Count(); /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ java.util.List getField3OrBuilderList(); /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField3OrBuilder( int index); /** * repeated group Group1 = 10 { ... } */ java.util.List getGroup1List(); /** * repeated group Group1 = 10 { ... } */ com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 getGroup1(int index); /** * repeated group Group1 = 10 { ... } */ int getGroup1Count(); /** * repeated group Group1 = 10 { ... } */ java.util.List getGroup1OrBuilderList(); /** * repeated group Group1 = 10 { ... } */ com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1OrBuilder getGroup1OrBuilder( int index); /** * repeated group Group2 = 20 { ... } */ java.util.List getGroup2List(); /** * repeated group Group2 = 20 { ... } */ com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 getGroup2(int index); /** * repeated group Group2 = 20 { ... } */ int getGroup2Count(); /** * repeated group Group2 = 20 { ... } */ java.util.List getGroup2OrBuilderList(); /** * repeated group Group2 = 20 { ... } */ com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2OrBuilder getGroup2OrBuilder( int index); /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ java.util.List getExt1List(); /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ com.google.protobuf.UnittestLite.TestAllTypesLite getExt1(int index); /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ int getExt1Count(); /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ java.util.List getExt1OrBuilderList(); /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getExt1OrBuilder( int index); /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ java.util.List getExt2List(); /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ com.google.protobuf.UnittestLite.TestAllTypesLite getExt2(int index); /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ int getExt2Count(); /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ java.util.List getExt2OrBuilderList(); /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getExt2OrBuilder( int index); } /** * Protobuf type {@code proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator} */ public static final class RepeatedFieldsGenerator extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator) RepeatedFieldsGeneratorOrBuilder { private static final long serialVersionUID = 0L; // Use RepeatedFieldsGenerator.newBuilder() to construct. private RepeatedFieldsGenerator(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RepeatedFieldsGenerator() { field1_ = java.util.Collections.emptyList(); field2_ = java.util.Collections.emptyList(); field3_ = java.util.Collections.emptyList(); group1_ = java.util.Collections.emptyList(); group2_ = java.util.Collections.emptyList(); ext1_ = java.util.Collections.emptyList(); ext2_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RepeatedFieldsGenerator(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Builder.class); } public interface Group1OrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1) com.google.protobuf.MessageOrBuilder { /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; * @return Whether the field1 field is set. */ boolean hasField1(); /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; * @return The field1. */ com.google.protobuf.UnittestLite.TestAllTypesLite getField1(); /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField1OrBuilder(); } /** * Protobuf type {@code proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1} */ public static final class Group1 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1) Group1OrBuilder { private static final long serialVersionUID = 0L; // Use Group1.newBuilder() to construct. private Group1(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Group1() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Group1(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder.class); } private int bitField0_; public static final int FIELD1_FIELD_NUMBER = 11; private com.google.protobuf.UnittestLite.TestAllTypesLite field1_; /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; * @return Whether the field1 field is set. */ @java.lang.Override public boolean hasField1() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; * @return The field1. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getField1() { return field1_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : field1_; } /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField1OrBuilder() { return field1_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : field1_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(11, getField1()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getField1()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 other = (com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1) obj; if (hasField1() != other.hasField1()) return false; if (hasField1()) { if (!getField1() .equals(other.getField1())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasField1()) { hash = (37 * hash) + FIELD1_FIELD_NUMBER; hash = (53 * hash) + getField1().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1) com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getField1FieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; field1_ = null; if (field1Builder_ != null) { field1Builder_.dispose(); field1Builder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 build() { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 buildPartial() { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 result = new com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.field1_ = field1Builder_ == null ? field1_ : field1Builder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1) { return mergeFrom((com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 other) { if (other == com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.getDefaultInstance()) return this; if (other.hasField1()) { mergeField1(other.getField1()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 90: { input.readMessage( getField1FieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.UnittestLite.TestAllTypesLite field1_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> field1Builder_; /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; * @return Whether the field1 field is set. */ public boolean hasField1() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; * @return The field1. */ public com.google.protobuf.UnittestLite.TestAllTypesLite getField1() { if (field1Builder_ == null) { return field1_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : field1_; } else { return field1Builder_.getMessage(); } } /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; */ public Builder setField1(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field1Builder_ == null) { if (value == null) { throw new NullPointerException(); } field1_ = value; } else { field1Builder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; */ public Builder setField1( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field1Builder_ == null) { field1_ = builderForValue.build(); } else { field1Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; */ public Builder mergeField1(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field1Builder_ == null) { if (((bitField0_ & 0x00000001) != 0) && field1_ != null && field1_ != com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()) { getField1Builder().mergeFrom(value); } else { field1_ = value; } } else { field1Builder_.mergeFrom(value); } if (field1_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; */ public Builder clearField1() { bitField0_ = (bitField0_ & ~0x00000001); field1_ = null; if (field1Builder_ != null) { field1Builder_.dispose(); field1Builder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getField1Builder() { bitField0_ |= 0x00000001; onChanged(); return getField1FieldBuilder().getBuilder(); } /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField1OrBuilder() { if (field1Builder_ != null) { return field1Builder_.getMessageOrBuilder(); } else { return field1_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : field1_; } } /** * optional .proto2_unittest.TestAllTypesLite field1 = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getField1FieldBuilder() { if (field1Builder_ == null) { field1Builder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( getField1(), getParentForChildren(), isClean()); field1_ = null; } return field1Builder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1) private static final com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1(); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Group1 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface Group2OrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2) com.google.protobuf.MessageOrBuilder { /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; * @return Whether the field1 field is set. */ boolean hasField1(); /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; * @return The field1. */ com.google.protobuf.UnittestLite.TestAllTypesLite getField1(); /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField1OrBuilder(); } /** * Protobuf type {@code proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2} */ public static final class Group2 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2) Group2OrBuilder { private static final long serialVersionUID = 0L; // Use Group2.newBuilder() to construct. private Group2(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Group2() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Group2(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder.class); } private int bitField0_; public static final int FIELD1_FIELD_NUMBER = 21; private com.google.protobuf.UnittestLite.TestAllTypesLite field1_; /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; * @return Whether the field1 field is set. */ @java.lang.Override public boolean hasField1() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; * @return The field1. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getField1() { return field1_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : field1_; } /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField1OrBuilder() { return field1_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : field1_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(21, getField1()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, getField1()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 other = (com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2) obj; if (hasField1() != other.hasField1()) return false; if (hasField1()) { if (!getField1() .equals(other.getField1())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasField1()) { hash = (37 * hash) + FIELD1_FIELD_NUMBER; hash = (53 * hash) + getField1().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2) com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getField1FieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; field1_ = null; if (field1Builder_ != null) { field1Builder_.dispose(); field1Builder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 build() { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 buildPartial() { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 result = new com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.field1_ = field1Builder_ == null ? field1_ : field1Builder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2) { return mergeFrom((com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 other) { if (other == com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.getDefaultInstance()) return this; if (other.hasField1()) { mergeField1(other.getField1()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 170: { input.readMessage( getField1FieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.UnittestLite.TestAllTypesLite field1_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> field1Builder_; /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; * @return Whether the field1 field is set. */ public boolean hasField1() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; * @return The field1. */ public com.google.protobuf.UnittestLite.TestAllTypesLite getField1() { if (field1Builder_ == null) { return field1_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : field1_; } else { return field1Builder_.getMessage(); } } /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; */ public Builder setField1(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field1Builder_ == null) { if (value == null) { throw new NullPointerException(); } field1_ = value; } else { field1Builder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; */ public Builder setField1( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field1Builder_ == null) { field1_ = builderForValue.build(); } else { field1Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; */ public Builder mergeField1(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field1Builder_ == null) { if (((bitField0_ & 0x00000001) != 0) && field1_ != null && field1_ != com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()) { getField1Builder().mergeFrom(value); } else { field1_ = value; } } else { field1Builder_.mergeFrom(value); } if (field1_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; */ public Builder clearField1() { bitField0_ = (bitField0_ & ~0x00000001); field1_ = null; if (field1Builder_ != null) { field1Builder_.dispose(); field1Builder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getField1Builder() { bitField0_ |= 0x00000001; onChanged(); return getField1FieldBuilder().getBuilder(); } /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField1OrBuilder() { if (field1Builder_ != null) { return field1Builder_.getMessageOrBuilder(); } else { return field1_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : field1_; } } /** * optional .proto2_unittest.TestAllTypesLite field1 = 21; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getField1FieldBuilder() { if (field1Builder_ == null) { field1Builder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( getField1(), getParentForChildren(), isClean()); field1_ = null; } return field1Builder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2) private static final com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2(); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Group2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int FIELD1_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List field1_; /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ @java.lang.Override public java.util.List getField1List() { return field1_; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ @java.lang.Override public java.util.List getField1OrBuilderList() { return field1_; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ @java.lang.Override public int getField1Count() { return field1_.size(); } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getField1(int index) { return field1_.get(index); } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField1OrBuilder( int index) { return field1_.get(index); } public static final int FIELD2_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List field2_; /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ @java.lang.Override public java.util.List getField2List() { return field2_; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ @java.lang.Override public java.util.List getField2OrBuilderList() { return field2_; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ @java.lang.Override public int getField2Count() { return field2_.size(); } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getField2(int index) { return field2_.get(index); } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField2OrBuilder( int index) { return field2_.get(index); } public static final int FIELD3_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List field3_; /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ @java.lang.Override public java.util.List getField3List() { return field3_; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ @java.lang.Override public java.util.List getField3OrBuilderList() { return field3_; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ @java.lang.Override public int getField3Count() { return field3_.size(); } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getField3(int index) { return field3_.get(index); } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField3OrBuilder( int index) { return field3_.get(index); } public static final int GROUP1_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List group1_; /** * repeated group Group1 = 10 { ... } */ @java.lang.Override public java.util.List getGroup1List() { return group1_; } /** * repeated group Group1 = 10 { ... } */ @java.lang.Override public java.util.List getGroup1OrBuilderList() { return group1_; } /** * repeated group Group1 = 10 { ... } */ @java.lang.Override public int getGroup1Count() { return group1_.size(); } /** * repeated group Group1 = 10 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 getGroup1(int index) { return group1_.get(index); } /** * repeated group Group1 = 10 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1OrBuilder getGroup1OrBuilder( int index) { return group1_.get(index); } public static final int GROUP2_FIELD_NUMBER = 20; @SuppressWarnings("serial") private java.util.List group2_; /** * repeated group Group2 = 20 { ... } */ @java.lang.Override public java.util.List getGroup2List() { return group2_; } /** * repeated group Group2 = 20 { ... } */ @java.lang.Override public java.util.List getGroup2OrBuilderList() { return group2_; } /** * repeated group Group2 = 20 { ... } */ @java.lang.Override public int getGroup2Count() { return group2_.size(); } /** * repeated group Group2 = 20 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 getGroup2(int index) { return group2_.get(index); } /** * repeated group Group2 = 20 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2OrBuilder getGroup2OrBuilder( int index) { return group2_.get(index); } public static final int EXT1_FIELD_NUMBER = 1000; @SuppressWarnings("serial") private java.util.List ext1_; /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ @java.lang.Override public java.util.List getExt1List() { return ext1_; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ @java.lang.Override public java.util.List getExt1OrBuilderList() { return ext1_; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ @java.lang.Override public int getExt1Count() { return ext1_.size(); } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getExt1(int index) { return ext1_.get(index); } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getExt1OrBuilder( int index) { return ext1_.get(index); } public static final int EXT2_FIELD_NUMBER = 1001; @SuppressWarnings("serial") private java.util.List ext2_; /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ @java.lang.Override public java.util.List getExt2List() { return ext2_; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ @java.lang.Override public java.util.List getExt2OrBuilderList() { return ext2_; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ @java.lang.Override public int getExt2Count() { return ext2_.size(); } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getExt2(int index) { return ext2_.get(index); } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getExt2OrBuilder( int index) { return ext2_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < field1_.size(); i++) { output.writeMessage(1, field1_.get(i)); } for (int i = 0; i < field2_.size(); i++) { output.writeMessage(2, field2_.get(i)); } for (int i = 0; i < field3_.size(); i++) { output.writeMessage(3, field3_.get(i)); } for (int i = 0; i < group1_.size(); i++) { output.writeGroup(10, group1_.get(i)); } for (int i = 0; i < group2_.size(); i++) { output.writeGroup(20, group2_.get(i)); } for (int i = 0; i < ext1_.size(); i++) { output.writeMessage(1000, ext1_.get(i)); } for (int i = 0; i < ext2_.size(); i++) { output.writeMessage(1001, ext2_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < field1_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, field1_.get(i)); } for (int i = 0; i < field2_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, field2_.get(i)); } for (int i = 0; i < field3_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, field3_.get(i)); } for (int i = 0; i < group1_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(10, group1_.get(i)); } for (int i = 0; i < group2_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(20, group2_.get(i)); } for (int i = 0; i < ext1_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1000, ext1_.get(i)); } for (int i = 0; i < ext2_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1001, ext2_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator other = (com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator) obj; if (!getField1List() .equals(other.getField1List())) return false; if (!getField2List() .equals(other.getField2List())) return false; if (!getField3List() .equals(other.getField3List())) return false; if (!getGroup1List() .equals(other.getGroup1List())) return false; if (!getGroup2List() .equals(other.getGroup2List())) return false; if (!getExt1List() .equals(other.getExt1List())) return false; if (!getExt2List() .equals(other.getExt2List())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getField1Count() > 0) { hash = (37 * hash) + FIELD1_FIELD_NUMBER; hash = (53 * hash) + getField1List().hashCode(); } if (getField2Count() > 0) { hash = (37 * hash) + FIELD2_FIELD_NUMBER; hash = (53 * hash) + getField2List().hashCode(); } if (getField3Count() > 0) { hash = (37 * hash) + FIELD3_FIELD_NUMBER; hash = (53 * hash) + getField3List().hashCode(); } if (getGroup1Count() > 0) { hash = (37 * hash) + GROUP1_FIELD_NUMBER; hash = (53 * hash) + getGroup1List().hashCode(); } if (getGroup2Count() > 0) { hash = (37 * hash) + GROUP2_FIELD_NUMBER; hash = (53 * hash) + getGroup2List().hashCode(); } if (getExt1Count() > 0) { hash = (37 * hash) + EXT1_FIELD_NUMBER; hash = (53 * hash) + getExt1List().hashCode(); } if (getExt2Count() > 0) { hash = (37 * hash) + EXT2_FIELD_NUMBER; hash = (53 * hash) + getExt2List().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator) com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGeneratorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (field1Builder_ == null) { field1_ = java.util.Collections.emptyList(); } else { field1_ = null; field1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (field2Builder_ == null) { field2_ = java.util.Collections.emptyList(); } else { field2_ = null; field2Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (field3Builder_ == null) { field3_ = java.util.Collections.emptyList(); } else { field3_ = null; field3Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (group1Builder_ == null) { group1_ = java.util.Collections.emptyList(); } else { group1_ = null; group1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (group2Builder_ == null) { group2_ = java.util.Collections.emptyList(); } else { group2_ = null; group2Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (ext1Builder_ == null) { ext1_ = java.util.Collections.emptyList(); } else { ext1_ = null; ext1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (ext2Builder_ == null) { ext2_ = java.util.Collections.emptyList(); } else { ext2_ = null; ext2Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator build() { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator buildPartial() { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator result = new com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator result) { if (field1Builder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { field1_ = java.util.Collections.unmodifiableList(field1_); bitField0_ = (bitField0_ & ~0x00000001); } result.field1_ = field1_; } else { result.field1_ = field1Builder_.build(); } if (field2Builder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { field2_ = java.util.Collections.unmodifiableList(field2_); bitField0_ = (bitField0_ & ~0x00000002); } result.field2_ = field2_; } else { result.field2_ = field2Builder_.build(); } if (field3Builder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { field3_ = java.util.Collections.unmodifiableList(field3_); bitField0_ = (bitField0_ & ~0x00000004); } result.field3_ = field3_; } else { result.field3_ = field3Builder_.build(); } if (group1Builder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { group1_ = java.util.Collections.unmodifiableList(group1_); bitField0_ = (bitField0_ & ~0x00000008); } result.group1_ = group1_; } else { result.group1_ = group1Builder_.build(); } if (group2Builder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { group2_ = java.util.Collections.unmodifiableList(group2_); bitField0_ = (bitField0_ & ~0x00000010); } result.group2_ = group2_; } else { result.group2_ = group2Builder_.build(); } if (ext1Builder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { ext1_ = java.util.Collections.unmodifiableList(ext1_); bitField0_ = (bitField0_ & ~0x00000020); } result.ext1_ = ext1_; } else { result.ext1_ = ext1Builder_.build(); } if (ext2Builder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { ext2_ = java.util.Collections.unmodifiableList(ext2_); bitField0_ = (bitField0_ & ~0x00000040); } result.ext2_ = ext2_; } else { result.ext2_ = ext2Builder_.build(); } } private void buildPartial0(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator) { return mergeFrom((com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator other) { if (other == com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.getDefaultInstance()) return this; if (field1Builder_ == null) { if (!other.field1_.isEmpty()) { if (field1_.isEmpty()) { field1_ = other.field1_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureField1IsMutable(); field1_.addAll(other.field1_); } onChanged(); } } else { if (!other.field1_.isEmpty()) { if (field1Builder_.isEmpty()) { field1Builder_.dispose(); field1Builder_ = null; field1_ = other.field1_; bitField0_ = (bitField0_ & ~0x00000001); field1Builder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getField1FieldBuilder() : null; } else { field1Builder_.addAllMessages(other.field1_); } } } if (field2Builder_ == null) { if (!other.field2_.isEmpty()) { if (field2_.isEmpty()) { field2_ = other.field2_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureField2IsMutable(); field2_.addAll(other.field2_); } onChanged(); } } else { if (!other.field2_.isEmpty()) { if (field2Builder_.isEmpty()) { field2Builder_.dispose(); field2Builder_ = null; field2_ = other.field2_; bitField0_ = (bitField0_ & ~0x00000002); field2Builder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getField2FieldBuilder() : null; } else { field2Builder_.addAllMessages(other.field2_); } } } if (field3Builder_ == null) { if (!other.field3_.isEmpty()) { if (field3_.isEmpty()) { field3_ = other.field3_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureField3IsMutable(); field3_.addAll(other.field3_); } onChanged(); } } else { if (!other.field3_.isEmpty()) { if (field3Builder_.isEmpty()) { field3Builder_.dispose(); field3Builder_ = null; field3_ = other.field3_; bitField0_ = (bitField0_ & ~0x00000004); field3Builder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getField3FieldBuilder() : null; } else { field3Builder_.addAllMessages(other.field3_); } } } if (group1Builder_ == null) { if (!other.group1_.isEmpty()) { if (group1_.isEmpty()) { group1_ = other.group1_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureGroup1IsMutable(); group1_.addAll(other.group1_); } onChanged(); } } else { if (!other.group1_.isEmpty()) { if (group1Builder_.isEmpty()) { group1Builder_.dispose(); group1Builder_ = null; group1_ = other.group1_; bitField0_ = (bitField0_ & ~0x00000008); group1Builder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroup1FieldBuilder() : null; } else { group1Builder_.addAllMessages(other.group1_); } } } if (group2Builder_ == null) { if (!other.group2_.isEmpty()) { if (group2_.isEmpty()) { group2_ = other.group2_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureGroup2IsMutable(); group2_.addAll(other.group2_); } onChanged(); } } else { if (!other.group2_.isEmpty()) { if (group2Builder_.isEmpty()) { group2Builder_.dispose(); group2Builder_ = null; group2_ = other.group2_; bitField0_ = (bitField0_ & ~0x00000010); group2Builder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroup2FieldBuilder() : null; } else { group2Builder_.addAllMessages(other.group2_); } } } if (ext1Builder_ == null) { if (!other.ext1_.isEmpty()) { if (ext1_.isEmpty()) { ext1_ = other.ext1_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureExt1IsMutable(); ext1_.addAll(other.ext1_); } onChanged(); } } else { if (!other.ext1_.isEmpty()) { if (ext1Builder_.isEmpty()) { ext1Builder_.dispose(); ext1Builder_ = null; ext1_ = other.ext1_; bitField0_ = (bitField0_ & ~0x00000020); ext1Builder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExt1FieldBuilder() : null; } else { ext1Builder_.addAllMessages(other.ext1_); } } } if (ext2Builder_ == null) { if (!other.ext2_.isEmpty()) { if (ext2_.isEmpty()) { ext2_ = other.ext2_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureExt2IsMutable(); ext2_.addAll(other.ext2_); } onChanged(); } } else { if (!other.ext2_.isEmpty()) { if (ext2Builder_.isEmpty()) { ext2Builder_.dispose(); ext2Builder_ = null; ext2_ = other.ext2_; bitField0_ = (bitField0_ & ~0x00000040); ext2Builder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExt2FieldBuilder() : null; } else { ext2Builder_.addAllMessages(other.ext2_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.UnittestLite.TestAllTypesLite m = input.readMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.PARSER, extensionRegistry); if (field1Builder_ == null) { ensureField1IsMutable(); field1_.add(m); } else { field1Builder_.addMessage(m); } break; } // case 10 case 18: { com.google.protobuf.UnittestLite.TestAllTypesLite m = input.readMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.PARSER, extensionRegistry); if (field2Builder_ == null) { ensureField2IsMutable(); field2_.add(m); } else { field2Builder_.addMessage(m); } break; } // case 18 case 26: { com.google.protobuf.UnittestLite.TestAllTypesLite m = input.readMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.PARSER, extensionRegistry); if (field3Builder_ == null) { ensureField3IsMutable(); field3_.add(m); } else { field3Builder_.addMessage(m); } break; } // case 26 case 83: { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 m = input.readGroup(10, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.PARSER, extensionRegistry); if (group1Builder_ == null) { ensureGroup1IsMutable(); group1_.add(m); } else { group1Builder_.addMessage(m); } break; } // case 83 case 163: { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 m = input.readGroup(20, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.PARSER, extensionRegistry); if (group2Builder_ == null) { ensureGroup2IsMutable(); group2_.add(m); } else { group2Builder_.addMessage(m); } break; } // case 163 case 8002: { com.google.protobuf.UnittestLite.TestAllTypesLite m = input.readMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.PARSER, extensionRegistry); if (ext1Builder_ == null) { ensureExt1IsMutable(); ext1_.add(m); } else { ext1Builder_.addMessage(m); } break; } // case 8002 case 8010: { com.google.protobuf.UnittestLite.TestAllTypesLite m = input.readMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.PARSER, extensionRegistry); if (ext2Builder_ == null) { ensureExt2IsMutable(); ext2_.add(m); } else { ext2Builder_.addMessage(m); } break; } // case 8010 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List field1_ = java.util.Collections.emptyList(); private void ensureField1IsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { field1_ = new java.util.ArrayList(field1_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> field1Builder_; /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public java.util.List getField1List() { if (field1Builder_ == null) { return java.util.Collections.unmodifiableList(field1_); } else { return field1Builder_.getMessageList(); } } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public int getField1Count() { if (field1Builder_ == null) { return field1_.size(); } else { return field1Builder_.getCount(); } } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public com.google.protobuf.UnittestLite.TestAllTypesLite getField1(int index) { if (field1Builder_ == null) { return field1_.get(index); } else { return field1Builder_.getMessage(index); } } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public Builder setField1( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField1IsMutable(); field1_.set(index, value); onChanged(); } else { field1Builder_.setMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public Builder setField1( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field1Builder_ == null) { ensureField1IsMutable(); field1_.set(index, builderForValue.build()); onChanged(); } else { field1Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public Builder addField1(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField1IsMutable(); field1_.add(value); onChanged(); } else { field1Builder_.addMessage(value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public Builder addField1( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField1IsMutable(); field1_.add(index, value); onChanged(); } else { field1Builder_.addMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public Builder addField1( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field1Builder_ == null) { ensureField1IsMutable(); field1_.add(builderForValue.build()); onChanged(); } else { field1Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public Builder addField1( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field1Builder_ == null) { ensureField1IsMutable(); field1_.add(index, builderForValue.build()); onChanged(); } else { field1Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public Builder addAllField1( java.lang.Iterable values) { if (field1Builder_ == null) { ensureField1IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, field1_); onChanged(); } else { field1Builder_.addAllMessages(values); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public Builder clearField1() { if (field1Builder_ == null) { field1_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { field1Builder_.clear(); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public Builder removeField1(int index) { if (field1Builder_ == null) { ensureField1IsMutable(); field1_.remove(index); onChanged(); } else { field1Builder_.remove(index); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getField1Builder( int index) { return getField1FieldBuilder().getBuilder(index); } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField1OrBuilder( int index) { if (field1Builder_ == null) { return field1_.get(index); } else { return field1Builder_.getMessageOrBuilder(index); } } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public java.util.List getField1OrBuilderList() { if (field1Builder_ != null) { return field1Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(field1_); } } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addField1Builder() { return getField1FieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addField1Builder( int index) { return getField1FieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite field1 = 1; */ public java.util.List getField1BuilderList() { return getField1FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getField1FieldBuilder() { if (field1Builder_ == null) { field1Builder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( field1_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); field1_ = null; } return field1Builder_; } private java.util.List field2_ = java.util.Collections.emptyList(); private void ensureField2IsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { field2_ = new java.util.ArrayList(field2_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> field2Builder_; /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public java.util.List getField2List() { if (field2Builder_ == null) { return java.util.Collections.unmodifiableList(field2_); } else { return field2Builder_.getMessageList(); } } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public int getField2Count() { if (field2Builder_ == null) { return field2_.size(); } else { return field2Builder_.getCount(); } } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public com.google.protobuf.UnittestLite.TestAllTypesLite getField2(int index) { if (field2Builder_ == null) { return field2_.get(index); } else { return field2Builder_.getMessage(index); } } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public Builder setField2( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField2IsMutable(); field2_.set(index, value); onChanged(); } else { field2Builder_.setMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public Builder setField2( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field2Builder_ == null) { ensureField2IsMutable(); field2_.set(index, builderForValue.build()); onChanged(); } else { field2Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public Builder addField2(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField2IsMutable(); field2_.add(value); onChanged(); } else { field2Builder_.addMessage(value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public Builder addField2( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField2IsMutable(); field2_.add(index, value); onChanged(); } else { field2Builder_.addMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public Builder addField2( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field2Builder_ == null) { ensureField2IsMutable(); field2_.add(builderForValue.build()); onChanged(); } else { field2Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public Builder addField2( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field2Builder_ == null) { ensureField2IsMutable(); field2_.add(index, builderForValue.build()); onChanged(); } else { field2Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public Builder addAllField2( java.lang.Iterable values) { if (field2Builder_ == null) { ensureField2IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, field2_); onChanged(); } else { field2Builder_.addAllMessages(values); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public Builder clearField2() { if (field2Builder_ == null) { field2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { field2Builder_.clear(); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public Builder removeField2(int index) { if (field2Builder_ == null) { ensureField2IsMutable(); field2_.remove(index); onChanged(); } else { field2Builder_.remove(index); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getField2Builder( int index) { return getField2FieldBuilder().getBuilder(index); } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField2OrBuilder( int index) { if (field2Builder_ == null) { return field2_.get(index); } else { return field2Builder_.getMessageOrBuilder(index); } } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public java.util.List getField2OrBuilderList() { if (field2Builder_ != null) { return field2Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(field2_); } } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addField2Builder() { return getField2FieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addField2Builder( int index) { return getField2FieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite field2 = 2; */ public java.util.List getField2BuilderList() { return getField2FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getField2FieldBuilder() { if (field2Builder_ == null) { field2Builder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( field2_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); field2_ = null; } return field2Builder_; } private java.util.List field3_ = java.util.Collections.emptyList(); private void ensureField3IsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { field3_ = new java.util.ArrayList(field3_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> field3Builder_; /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public java.util.List getField3List() { if (field3Builder_ == null) { return java.util.Collections.unmodifiableList(field3_); } else { return field3Builder_.getMessageList(); } } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public int getField3Count() { if (field3Builder_ == null) { return field3_.size(); } else { return field3Builder_.getCount(); } } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public com.google.protobuf.UnittestLite.TestAllTypesLite getField3(int index) { if (field3Builder_ == null) { return field3_.get(index); } else { return field3Builder_.getMessage(index); } } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public Builder setField3( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field3Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField3IsMutable(); field3_.set(index, value); onChanged(); } else { field3Builder_.setMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public Builder setField3( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field3Builder_ == null) { ensureField3IsMutable(); field3_.set(index, builderForValue.build()); onChanged(); } else { field3Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public Builder addField3(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field3Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField3IsMutable(); field3_.add(value); onChanged(); } else { field3Builder_.addMessage(value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public Builder addField3( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (field3Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureField3IsMutable(); field3_.add(index, value); onChanged(); } else { field3Builder_.addMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public Builder addField3( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field3Builder_ == null) { ensureField3IsMutable(); field3_.add(builderForValue.build()); onChanged(); } else { field3Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public Builder addField3( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (field3Builder_ == null) { ensureField3IsMutable(); field3_.add(index, builderForValue.build()); onChanged(); } else { field3Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public Builder addAllField3( java.lang.Iterable values) { if (field3Builder_ == null) { ensureField3IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, field3_); onChanged(); } else { field3Builder_.addAllMessages(values); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public Builder clearField3() { if (field3Builder_ == null) { field3_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { field3Builder_.clear(); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public Builder removeField3(int index) { if (field3Builder_ == null) { ensureField3IsMutable(); field3_.remove(index); onChanged(); } else { field3Builder_.remove(index); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getField3Builder( int index) { return getField3FieldBuilder().getBuilder(index); } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getField3OrBuilder( int index) { if (field3Builder_ == null) { return field3_.get(index); } else { return field3Builder_.getMessageOrBuilder(index); } } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public java.util.List getField3OrBuilderList() { if (field3Builder_ != null) { return field3Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(field3_); } } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addField3Builder() { return getField3FieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addField3Builder( int index) { return getField3FieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite field3 = 3; */ public java.util.List getField3BuilderList() { return getField3FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getField3FieldBuilder() { if (field3Builder_ == null) { field3Builder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( field3_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); field3_ = null; } return field3Builder_; } private java.util.List group1_ = java.util.Collections.emptyList(); private void ensureGroup1IsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { group1_ = new java.util.ArrayList(group1_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1OrBuilder> group1Builder_; /** * repeated group Group1 = 10 { ... } */ public java.util.List getGroup1List() { if (group1Builder_ == null) { return java.util.Collections.unmodifiableList(group1_); } else { return group1Builder_.getMessageList(); } } /** * repeated group Group1 = 10 { ... } */ public int getGroup1Count() { if (group1Builder_ == null) { return group1_.size(); } else { return group1Builder_.getCount(); } } /** * repeated group Group1 = 10 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 getGroup1(int index) { if (group1Builder_ == null) { return group1_.get(index); } else { return group1Builder_.getMessage(index); } } /** * repeated group Group1 = 10 { ... } */ public Builder setGroup1( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 value) { if (group1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup1IsMutable(); group1_.set(index, value); onChanged(); } else { group1Builder_.setMessage(index, value); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder setGroup1( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder builderForValue) { if (group1Builder_ == null) { ensureGroup1IsMutable(); group1_.set(index, builderForValue.build()); onChanged(); } else { group1Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder addGroup1(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 value) { if (group1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup1IsMutable(); group1_.add(value); onChanged(); } else { group1Builder_.addMessage(value); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder addGroup1( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1 value) { if (group1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup1IsMutable(); group1_.add(index, value); onChanged(); } else { group1Builder_.addMessage(index, value); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder addGroup1( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder builderForValue) { if (group1Builder_ == null) { ensureGroup1IsMutable(); group1_.add(builderForValue.build()); onChanged(); } else { group1Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder addGroup1( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder builderForValue) { if (group1Builder_ == null) { ensureGroup1IsMutable(); group1_.add(index, builderForValue.build()); onChanged(); } else { group1Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder addAllGroup1( java.lang.Iterable values) { if (group1Builder_ == null) { ensureGroup1IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, group1_); onChanged(); } else { group1Builder_.addAllMessages(values); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder clearGroup1() { if (group1Builder_ == null) { group1_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { group1Builder_.clear(); } return this; } /** * repeated group Group1 = 10 { ... } */ public Builder removeGroup1(int index) { if (group1Builder_ == null) { ensureGroup1IsMutable(); group1_.remove(index); onChanged(); } else { group1Builder_.remove(index); } return this; } /** * repeated group Group1 = 10 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder getGroup1Builder( int index) { return getGroup1FieldBuilder().getBuilder(index); } /** * repeated group Group1 = 10 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1OrBuilder getGroup1OrBuilder( int index) { if (group1Builder_ == null) { return group1_.get(index); } else { return group1Builder_.getMessageOrBuilder(index); } } /** * repeated group Group1 = 10 { ... } */ public java.util.List getGroup1OrBuilderList() { if (group1Builder_ != null) { return group1Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(group1_); } } /** * repeated group Group1 = 10 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder addGroup1Builder() { return getGroup1FieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.getDefaultInstance()); } /** * repeated group Group1 = 10 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder addGroup1Builder( int index) { return getGroup1FieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.getDefaultInstance()); } /** * repeated group Group1 = 10 { ... } */ public java.util.List getGroup1BuilderList() { return getGroup1FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1OrBuilder> getGroup1FieldBuilder() { if (group1Builder_ == null) { group1Builder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group1OrBuilder>( group1_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); group1_ = null; } return group1Builder_; } private java.util.List group2_ = java.util.Collections.emptyList(); private void ensureGroup2IsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { group2_ = new java.util.ArrayList(group2_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2OrBuilder> group2Builder_; /** * repeated group Group2 = 20 { ... } */ public java.util.List getGroup2List() { if (group2Builder_ == null) { return java.util.Collections.unmodifiableList(group2_); } else { return group2Builder_.getMessageList(); } } /** * repeated group Group2 = 20 { ... } */ public int getGroup2Count() { if (group2Builder_ == null) { return group2_.size(); } else { return group2Builder_.getCount(); } } /** * repeated group Group2 = 20 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 getGroup2(int index) { if (group2Builder_ == null) { return group2_.get(index); } else { return group2Builder_.getMessage(index); } } /** * repeated group Group2 = 20 { ... } */ public Builder setGroup2( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 value) { if (group2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup2IsMutable(); group2_.set(index, value); onChanged(); } else { group2Builder_.setMessage(index, value); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder setGroup2( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder builderForValue) { if (group2Builder_ == null) { ensureGroup2IsMutable(); group2_.set(index, builderForValue.build()); onChanged(); } else { group2Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder addGroup2(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 value) { if (group2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup2IsMutable(); group2_.add(value); onChanged(); } else { group2Builder_.addMessage(value); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder addGroup2( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2 value) { if (group2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroup2IsMutable(); group2_.add(index, value); onChanged(); } else { group2Builder_.addMessage(index, value); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder addGroup2( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder builderForValue) { if (group2Builder_ == null) { ensureGroup2IsMutable(); group2_.add(builderForValue.build()); onChanged(); } else { group2Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder addGroup2( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder builderForValue) { if (group2Builder_ == null) { ensureGroup2IsMutable(); group2_.add(index, builderForValue.build()); onChanged(); } else { group2Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder addAllGroup2( java.lang.Iterable values) { if (group2Builder_ == null) { ensureGroup2IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, group2_); onChanged(); } else { group2Builder_.addAllMessages(values); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder clearGroup2() { if (group2Builder_ == null) { group2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { group2Builder_.clear(); } return this; } /** * repeated group Group2 = 20 { ... } */ public Builder removeGroup2(int index) { if (group2Builder_ == null) { ensureGroup2IsMutable(); group2_.remove(index); onChanged(); } else { group2Builder_.remove(index); } return this; } /** * repeated group Group2 = 20 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder getGroup2Builder( int index) { return getGroup2FieldBuilder().getBuilder(index); } /** * repeated group Group2 = 20 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2OrBuilder getGroup2OrBuilder( int index) { if (group2Builder_ == null) { return group2_.get(index); } else { return group2Builder_.getMessageOrBuilder(index); } } /** * repeated group Group2 = 20 { ... } */ public java.util.List getGroup2OrBuilderList() { if (group2Builder_ != null) { return group2Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(group2_); } } /** * repeated group Group2 = 20 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder addGroup2Builder() { return getGroup2FieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.getDefaultInstance()); } /** * repeated group Group2 = 20 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder addGroup2Builder( int index) { return getGroup2FieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.getDefaultInstance()); } /** * repeated group Group2 = 20 { ... } */ public java.util.List getGroup2BuilderList() { return getGroup2FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2OrBuilder> getGroup2FieldBuilder() { if (group2Builder_ == null) { group2Builder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator.Group2OrBuilder>( group2_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); group2_ = null; } return group2Builder_; } private java.util.List ext1_ = java.util.Collections.emptyList(); private void ensureExt1IsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { ext1_ = new java.util.ArrayList(ext1_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> ext1Builder_; /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public java.util.List getExt1List() { if (ext1Builder_ == null) { return java.util.Collections.unmodifiableList(ext1_); } else { return ext1Builder_.getMessageList(); } } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public int getExt1Count() { if (ext1Builder_ == null) { return ext1_.size(); } else { return ext1Builder_.getCount(); } } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public com.google.protobuf.UnittestLite.TestAllTypesLite getExt1(int index) { if (ext1Builder_ == null) { return ext1_.get(index); } else { return ext1Builder_.getMessage(index); } } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public Builder setExt1( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (ext1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt1IsMutable(); ext1_.set(index, value); onChanged(); } else { ext1Builder_.setMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public Builder setExt1( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (ext1Builder_ == null) { ensureExt1IsMutable(); ext1_.set(index, builderForValue.build()); onChanged(); } else { ext1Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public Builder addExt1(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (ext1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt1IsMutable(); ext1_.add(value); onChanged(); } else { ext1Builder_.addMessage(value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public Builder addExt1( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (ext1Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt1IsMutable(); ext1_.add(index, value); onChanged(); } else { ext1Builder_.addMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public Builder addExt1( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (ext1Builder_ == null) { ensureExt1IsMutable(); ext1_.add(builderForValue.build()); onChanged(); } else { ext1Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public Builder addExt1( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (ext1Builder_ == null) { ensureExt1IsMutable(); ext1_.add(index, builderForValue.build()); onChanged(); } else { ext1Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public Builder addAllExt1( java.lang.Iterable values) { if (ext1Builder_ == null) { ensureExt1IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ext1_); onChanged(); } else { ext1Builder_.addAllMessages(values); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public Builder clearExt1() { if (ext1Builder_ == null) { ext1_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { ext1Builder_.clear(); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public Builder removeExt1(int index) { if (ext1Builder_ == null) { ensureExt1IsMutable(); ext1_.remove(index); onChanged(); } else { ext1Builder_.remove(index); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getExt1Builder( int index) { return getExt1FieldBuilder().getBuilder(index); } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getExt1OrBuilder( int index) { if (ext1Builder_ == null) { return ext1_.get(index); } else { return ext1Builder_.getMessageOrBuilder(index); } } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public java.util.List getExt1OrBuilderList() { if (ext1Builder_ != null) { return ext1Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ext1_); } } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addExt1Builder() { return getExt1FieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addExt1Builder( int index) { return getExt1FieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite ext1 = 1000; */ public java.util.List getExt1BuilderList() { return getExt1FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getExt1FieldBuilder() { if (ext1Builder_ == null) { ext1Builder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( ext1_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); ext1_ = null; } return ext1Builder_; } private java.util.List ext2_ = java.util.Collections.emptyList(); private void ensureExt2IsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { ext2_ = new java.util.ArrayList(ext2_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> ext2Builder_; /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public java.util.List getExt2List() { if (ext2Builder_ == null) { return java.util.Collections.unmodifiableList(ext2_); } else { return ext2Builder_.getMessageList(); } } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public int getExt2Count() { if (ext2Builder_ == null) { return ext2_.size(); } else { return ext2Builder_.getCount(); } } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public com.google.protobuf.UnittestLite.TestAllTypesLite getExt2(int index) { if (ext2Builder_ == null) { return ext2_.get(index); } else { return ext2Builder_.getMessage(index); } } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public Builder setExt2( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (ext2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt2IsMutable(); ext2_.set(index, value); onChanged(); } else { ext2Builder_.setMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public Builder setExt2( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (ext2Builder_ == null) { ensureExt2IsMutable(); ext2_.set(index, builderForValue.build()); onChanged(); } else { ext2Builder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public Builder addExt2(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (ext2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt2IsMutable(); ext2_.add(value); onChanged(); } else { ext2Builder_.addMessage(value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public Builder addExt2( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (ext2Builder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExt2IsMutable(); ext2_.add(index, value); onChanged(); } else { ext2Builder_.addMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public Builder addExt2( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (ext2Builder_ == null) { ensureExt2IsMutable(); ext2_.add(builderForValue.build()); onChanged(); } else { ext2Builder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public Builder addExt2( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (ext2Builder_ == null) { ensureExt2IsMutable(); ext2_.add(index, builderForValue.build()); onChanged(); } else { ext2Builder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public Builder addAllExt2( java.lang.Iterable values) { if (ext2Builder_ == null) { ensureExt2IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ext2_); onChanged(); } else { ext2Builder_.addAllMessages(values); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public Builder clearExt2() { if (ext2Builder_ == null) { ext2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { ext2Builder_.clear(); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public Builder removeExt2(int index) { if (ext2Builder_ == null) { ensureExt2IsMutable(); ext2_.remove(index); onChanged(); } else { ext2Builder_.remove(index); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getExt2Builder( int index) { return getExt2FieldBuilder().getBuilder(index); } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getExt2OrBuilder( int index) { if (ext2Builder_ == null) { return ext2_.get(index); } else { return ext2Builder_.getMessageOrBuilder(index); } } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public java.util.List getExt2OrBuilderList() { if (ext2Builder_ != null) { return ext2Builder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ext2_); } } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addExt2Builder() { return getExt2FieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addExt2Builder( int index) { return getExt2FieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite ext2 = 1001; */ public java.util.List getExt2BuilderList() { return getExt2FieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getExt2FieldBuilder() { if (ext2Builder_ == null) { ext2Builder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( ext2_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); ext2_ = null; } return ext2Builder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestParsingMergeLite.RepeatedFieldsGenerator) private static final com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator(); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RepeatedFieldsGenerator parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedFieldsGenerator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionalGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestParsingMergeLite.OptionalGroup) com.google.protobuf.MessageOrBuilder { /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; * @return Whether the optionalGroupAllTypes field is set. */ boolean hasOptionalGroupAllTypes(); /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; * @return The optionalGroupAllTypes. */ com.google.protobuf.UnittestLite.TestAllTypesLite getOptionalGroupAllTypes(); /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOptionalGroupAllTypesOrBuilder(); } /** * Protobuf type {@code proto2_unittest.TestParsingMergeLite.OptionalGroup} */ public static final class OptionalGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestParsingMergeLite.OptionalGroup) OptionalGroupOrBuilder { private static final long serialVersionUID = 0L; // Use OptionalGroup.newBuilder() to construct. private OptionalGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionalGroup() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptionalGroup(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_OptionalGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_OptionalGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.Builder.class); } private int bitField0_; public static final int OPTIONAL_GROUP_ALL_TYPES_FIELD_NUMBER = 11; private com.google.protobuf.UnittestLite.TestAllTypesLite optionalGroupAllTypes_; /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; * @return Whether the optionalGroupAllTypes field is set. */ @java.lang.Override public boolean hasOptionalGroupAllTypes() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; * @return The optionalGroupAllTypes. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getOptionalGroupAllTypes() { return optionalGroupAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : optionalGroupAllTypes_; } /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOptionalGroupAllTypesOrBuilder() { return optionalGroupAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : optionalGroupAllTypes_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(11, getOptionalGroupAllTypes()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getOptionalGroupAllTypes()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup other = (com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup) obj; if (hasOptionalGroupAllTypes() != other.hasOptionalGroupAllTypes()) return false; if (hasOptionalGroupAllTypes()) { if (!getOptionalGroupAllTypes() .equals(other.getOptionalGroupAllTypes())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOptionalGroupAllTypes()) { hash = (37 * hash) + OPTIONAL_GROUP_ALL_TYPES_FIELD_NUMBER; hash = (53 * hash) + getOptionalGroupAllTypes().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestParsingMergeLite.OptionalGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestParsingMergeLite.OptionalGroup) com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_OptionalGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_OptionalGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionalGroupAllTypesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; optionalGroupAllTypes_ = null; if (optionalGroupAllTypesBuilder_ != null) { optionalGroupAllTypesBuilder_.dispose(); optionalGroupAllTypesBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_OptionalGroup_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup build() { com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup buildPartial() { com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup result = new com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.optionalGroupAllTypes_ = optionalGroupAllTypesBuilder_ == null ? optionalGroupAllTypes_ : optionalGroupAllTypesBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup) { return mergeFrom((com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup other) { if (other == com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.getDefaultInstance()) return this; if (other.hasOptionalGroupAllTypes()) { mergeOptionalGroupAllTypes(other.getOptionalGroupAllTypes()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 90: { input.readMessage( getOptionalGroupAllTypesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.UnittestLite.TestAllTypesLite optionalGroupAllTypes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> optionalGroupAllTypesBuilder_; /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; * @return Whether the optionalGroupAllTypes field is set. */ public boolean hasOptionalGroupAllTypes() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; * @return The optionalGroupAllTypes. */ public com.google.protobuf.UnittestLite.TestAllTypesLite getOptionalGroupAllTypes() { if (optionalGroupAllTypesBuilder_ == null) { return optionalGroupAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : optionalGroupAllTypes_; } else { return optionalGroupAllTypesBuilder_.getMessage(); } } /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; */ public Builder setOptionalGroupAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (optionalGroupAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalGroupAllTypes_ = value; } else { optionalGroupAllTypesBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; */ public Builder setOptionalGroupAllTypes( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (optionalGroupAllTypesBuilder_ == null) { optionalGroupAllTypes_ = builderForValue.build(); } else { optionalGroupAllTypesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; */ public Builder mergeOptionalGroupAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (optionalGroupAllTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && optionalGroupAllTypes_ != null && optionalGroupAllTypes_ != com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()) { getOptionalGroupAllTypesBuilder().mergeFrom(value); } else { optionalGroupAllTypes_ = value; } } else { optionalGroupAllTypesBuilder_.mergeFrom(value); } if (optionalGroupAllTypes_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; */ public Builder clearOptionalGroupAllTypes() { bitField0_ = (bitField0_ & ~0x00000001); optionalGroupAllTypes_ = null; if (optionalGroupAllTypesBuilder_ != null) { optionalGroupAllTypesBuilder_.dispose(); optionalGroupAllTypesBuilder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getOptionalGroupAllTypesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOptionalGroupAllTypesFieldBuilder().getBuilder(); } /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOptionalGroupAllTypesOrBuilder() { if (optionalGroupAllTypesBuilder_ != null) { return optionalGroupAllTypesBuilder_.getMessageOrBuilder(); } else { return optionalGroupAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : optionalGroupAllTypes_; } } /** * optional .proto2_unittest.TestAllTypesLite optional_group_all_types = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getOptionalGroupAllTypesFieldBuilder() { if (optionalGroupAllTypesBuilder_ == null) { optionalGroupAllTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( getOptionalGroupAllTypes(), getParentForChildren(), isClean()); optionalGroupAllTypes_ = null; } return optionalGroupAllTypesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestParsingMergeLite.OptionalGroup) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestParsingMergeLite.OptionalGroup) private static final com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup(); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionalGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RepeatedGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestParsingMergeLite.RepeatedGroup) com.google.protobuf.MessageOrBuilder { /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; * @return Whether the repeatedGroupAllTypes field is set. */ boolean hasRepeatedGroupAllTypes(); /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; * @return The repeatedGroupAllTypes. */ com.google.protobuf.UnittestLite.TestAllTypesLite getRepeatedGroupAllTypes(); /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getRepeatedGroupAllTypesOrBuilder(); } /** * Protobuf type {@code proto2_unittest.TestParsingMergeLite.RepeatedGroup} */ public static final class RepeatedGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestParsingMergeLite.RepeatedGroup) RepeatedGroupOrBuilder { private static final long serialVersionUID = 0L; // Use RepeatedGroup.newBuilder() to construct. private RepeatedGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RepeatedGroup() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RepeatedGroup(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder.class); } private int bitField0_; public static final int REPEATED_GROUP_ALL_TYPES_FIELD_NUMBER = 21; private com.google.protobuf.UnittestLite.TestAllTypesLite repeatedGroupAllTypes_; /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; * @return Whether the repeatedGroupAllTypes field is set. */ @java.lang.Override public boolean hasRepeatedGroupAllTypes() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; * @return The repeatedGroupAllTypes. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getRepeatedGroupAllTypes() { return repeatedGroupAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : repeatedGroupAllTypes_; } /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getRepeatedGroupAllTypesOrBuilder() { return repeatedGroupAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : repeatedGroupAllTypes_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(21, getRepeatedGroupAllTypes()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, getRepeatedGroupAllTypes()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup other = (com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup) obj; if (hasRepeatedGroupAllTypes() != other.hasRepeatedGroupAllTypes()) return false; if (hasRepeatedGroupAllTypes()) { if (!getRepeatedGroupAllTypes() .equals(other.getRepeatedGroupAllTypes())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRepeatedGroupAllTypes()) { hash = (37 * hash) + REPEATED_GROUP_ALL_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRepeatedGroupAllTypes().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestParsingMergeLite.RepeatedGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestParsingMergeLite.RepeatedGroup) com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRepeatedGroupAllTypesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; repeatedGroupAllTypes_ = null; if (repeatedGroupAllTypesBuilder_ != null) { repeatedGroupAllTypesBuilder_.dispose(); repeatedGroupAllTypesBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_RepeatedGroup_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup build() { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup buildPartial() { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup result = new com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.repeatedGroupAllTypes_ = repeatedGroupAllTypesBuilder_ == null ? repeatedGroupAllTypes_ : repeatedGroupAllTypesBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup) { return mergeFrom((com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup other) { if (other == com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.getDefaultInstance()) return this; if (other.hasRepeatedGroupAllTypes()) { mergeRepeatedGroupAllTypes(other.getRepeatedGroupAllTypes()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 170: { input.readMessage( getRepeatedGroupAllTypesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.UnittestLite.TestAllTypesLite repeatedGroupAllTypes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> repeatedGroupAllTypesBuilder_; /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; * @return Whether the repeatedGroupAllTypes field is set. */ public boolean hasRepeatedGroupAllTypes() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; * @return The repeatedGroupAllTypes. */ public com.google.protobuf.UnittestLite.TestAllTypesLite getRepeatedGroupAllTypes() { if (repeatedGroupAllTypesBuilder_ == null) { return repeatedGroupAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : repeatedGroupAllTypes_; } else { return repeatedGroupAllTypesBuilder_.getMessage(); } } /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; */ public Builder setRepeatedGroupAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (repeatedGroupAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } repeatedGroupAllTypes_ = value; } else { repeatedGroupAllTypesBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; */ public Builder setRepeatedGroupAllTypes( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (repeatedGroupAllTypesBuilder_ == null) { repeatedGroupAllTypes_ = builderForValue.build(); } else { repeatedGroupAllTypesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; */ public Builder mergeRepeatedGroupAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (repeatedGroupAllTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && repeatedGroupAllTypes_ != null && repeatedGroupAllTypes_ != com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()) { getRepeatedGroupAllTypesBuilder().mergeFrom(value); } else { repeatedGroupAllTypes_ = value; } } else { repeatedGroupAllTypesBuilder_.mergeFrom(value); } if (repeatedGroupAllTypes_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; */ public Builder clearRepeatedGroupAllTypes() { bitField0_ = (bitField0_ & ~0x00000001); repeatedGroupAllTypes_ = null; if (repeatedGroupAllTypesBuilder_ != null) { repeatedGroupAllTypesBuilder_.dispose(); repeatedGroupAllTypesBuilder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getRepeatedGroupAllTypesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRepeatedGroupAllTypesFieldBuilder().getBuilder(); } /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getRepeatedGroupAllTypesOrBuilder() { if (repeatedGroupAllTypesBuilder_ != null) { return repeatedGroupAllTypesBuilder_.getMessageOrBuilder(); } else { return repeatedGroupAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : repeatedGroupAllTypes_; } } /** * optional .proto2_unittest.TestAllTypesLite repeated_group_all_types = 21; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getRepeatedGroupAllTypesFieldBuilder() { if (repeatedGroupAllTypesBuilder_ == null) { repeatedGroupAllTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( getRepeatedGroupAllTypes(), getParentForChildren(), isClean()); repeatedGroupAllTypes_ = null; } return repeatedGroupAllTypesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestParsingMergeLite.RepeatedGroup) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestParsingMergeLite.RepeatedGroup) private static final com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup(); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RepeatedGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int REQUIRED_ALL_TYPES_FIELD_NUMBER = 1; private com.google.protobuf.UnittestLite.TestAllTypesLite requiredAllTypes_; /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; * @return Whether the requiredAllTypes field is set. */ @java.lang.Override public boolean hasRequiredAllTypes() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; * @return The requiredAllTypes. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getRequiredAllTypes() { return requiredAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : requiredAllTypes_; } /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getRequiredAllTypesOrBuilder() { return requiredAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : requiredAllTypes_; } public static final int OPTIONAL_ALL_TYPES_FIELD_NUMBER = 2; private com.google.protobuf.UnittestLite.TestAllTypesLite optionalAllTypes_; /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; * @return Whether the optionalAllTypes field is set. */ @java.lang.Override public boolean hasOptionalAllTypes() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; * @return The optionalAllTypes. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getOptionalAllTypes() { return optionalAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : optionalAllTypes_; } /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOptionalAllTypesOrBuilder() { return optionalAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : optionalAllTypes_; } public static final int REPEATED_ALL_TYPES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List repeatedAllTypes_; /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ @java.lang.Override public java.util.List getRepeatedAllTypesList() { return repeatedAllTypes_; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ @java.lang.Override public java.util.List getRepeatedAllTypesOrBuilderList() { return repeatedAllTypes_; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ @java.lang.Override public int getRepeatedAllTypesCount() { return repeatedAllTypes_.size(); } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getRepeatedAllTypes(int index) { return repeatedAllTypes_.get(index); } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getRepeatedAllTypesOrBuilder( int index) { return repeatedAllTypes_.get(index); } public static final int OPTIONALGROUP_FIELD_NUMBER = 10; private com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup optionalGroup_; /** * optional group OptionalGroup = 10 { ... } * @return Whether the optionalgroup field is set. */ @java.lang.Override public boolean hasOptionalGroup() { return ((bitField0_ & 0x00000004) != 0); } /** * optional group OptionalGroup = 10 { ... } * @return The optionalgroup. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup getOptionalGroup() { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } /** * optional group OptionalGroup = 10 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroupOrBuilder getOptionalGroupOrBuilder() { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } public static final int REPEATEDGROUP_FIELD_NUMBER = 20; @SuppressWarnings("serial") private java.util.List repeatedGroup_; /** * repeated group RepeatedGroup = 20 { ... } */ @java.lang.Override public java.util.List getRepeatedGroupList() { return repeatedGroup_; } /** * repeated group RepeatedGroup = 20 { ... } */ @java.lang.Override public java.util.List getRepeatedGroupOrBuilderList() { return repeatedGroup_; } /** * repeated group RepeatedGroup = 20 { ... } */ @java.lang.Override public int getRepeatedGroupCount() { return repeatedGroup_.size(); } /** * repeated group RepeatedGroup = 20 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup getRepeatedGroup(int index) { return repeatedGroup_.get(index); } /** * repeated group RepeatedGroup = 20 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index) { return repeatedGroup_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasRequiredAllTypes()) { memoizedIsInitialized = 0; return false; } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRequiredAllTypes()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getOptionalAllTypes()); } for (int i = 0; i < repeatedAllTypes_.size(); i++) { output.writeMessage(3, repeatedAllTypes_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeGroup(10, getOptionalGroup()); } for (int i = 0; i < repeatedGroup_.size(); i++) { output.writeGroup(20, repeatedGroup_.get(i)); } extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRequiredAllTypes()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOptionalAllTypes()); } for (int i = 0; i < repeatedAllTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, repeatedAllTypes_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(10, getOptionalGroup()); } for (int i = 0; i < repeatedGroup_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(20, repeatedGroup_.get(i)); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestParsingMergeLite other = (com.google.protobuf.UnittestLite.TestParsingMergeLite) obj; if (hasRequiredAllTypes() != other.hasRequiredAllTypes()) return false; if (hasRequiredAllTypes()) { if (!getRequiredAllTypes() .equals(other.getRequiredAllTypes())) return false; } if (hasOptionalAllTypes() != other.hasOptionalAllTypes()) return false; if (hasOptionalAllTypes()) { if (!getOptionalAllTypes() .equals(other.getOptionalAllTypes())) return false; } if (!getRepeatedAllTypesList() .equals(other.getRepeatedAllTypesList())) return false; if (hasOptionalGroup() != other.hasOptionalGroup()) return false; if (hasOptionalGroup()) { if (!getOptionalGroup() .equals(other.getOptionalGroup())) return false; } if (!getRepeatedGroupList() .equals(other.getRepeatedGroupList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRequiredAllTypes()) { hash = (37 * hash) + REQUIRED_ALL_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRequiredAllTypes().hashCode(); } if (hasOptionalAllTypes()) { hash = (37 * hash) + OPTIONAL_ALL_TYPES_FIELD_NUMBER; hash = (53 * hash) + getOptionalAllTypes().hashCode(); } if (getRepeatedAllTypesCount() > 0) { hash = (37 * hash) + REPEATED_ALL_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRepeatedAllTypesList().hashCode(); } if (hasOptionalGroup()) { hash = (37 * hash) + OPTIONALGROUP_FIELD_NUMBER; hash = (53 * hash) + getOptionalGroup().hashCode(); } if (getRepeatedGroupCount() > 0) { hash = (37 * hash) + REPEATEDGROUP_FIELD_NUMBER; hash = (53 * hash) + getRepeatedGroupList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestParsingMergeLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * See the comments of the same type in unittest.proto.
     * 
* * Protobuf type {@code proto2_unittest.TestParsingMergeLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.UnittestLite.TestParsingMergeLite, Builder> implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestParsingMergeLite) com.google.protobuf.UnittestLite.TestParsingMergeLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestParsingMergeLite.class, com.google.protobuf.UnittestLite.TestParsingMergeLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestParsingMergeLite.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRequiredAllTypesFieldBuilder(); getOptionalAllTypesFieldBuilder(); getRepeatedAllTypesFieldBuilder(); getOptionalGroupFieldBuilder(); getRepeatedGroupFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; requiredAllTypes_ = null; if (requiredAllTypesBuilder_ != null) { requiredAllTypesBuilder_.dispose(); requiredAllTypesBuilder_ = null; } optionalAllTypes_ = null; if (optionalAllTypesBuilder_ != null) { optionalAllTypesBuilder_.dispose(); optionalAllTypesBuilder_ = null; } if (repeatedAllTypesBuilder_ == null) { repeatedAllTypes_ = java.util.Collections.emptyList(); } else { repeatedAllTypes_ = null; repeatedAllTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); optionalGroup_ = null; if (optionalGroupBuilder_ != null) { optionalGroupBuilder_.dispose(); optionalGroupBuilder_ = null; } if (repeatedGroupBuilder_ == null) { repeatedGroup_ = java.util.Collections.emptyList(); } else { repeatedGroup_ = null; repeatedGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestParsingMergeLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestParsingMergeLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite build() { com.google.protobuf.UnittestLite.TestParsingMergeLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite buildPartial() { com.google.protobuf.UnittestLite.TestParsingMergeLite result = new com.google.protobuf.UnittestLite.TestParsingMergeLite(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.protobuf.UnittestLite.TestParsingMergeLite result) { if (repeatedAllTypesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { repeatedAllTypes_ = java.util.Collections.unmodifiableList(repeatedAllTypes_); bitField0_ = (bitField0_ & ~0x00000004); } result.repeatedAllTypes_ = repeatedAllTypes_; } else { result.repeatedAllTypes_ = repeatedAllTypesBuilder_.build(); } if (repeatedGroupBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { repeatedGroup_ = java.util.Collections.unmodifiableList(repeatedGroup_); bitField0_ = (bitField0_ & ~0x00000010); } result.repeatedGroup_ = repeatedGroup_; } else { result.repeatedGroup_ = repeatedGroupBuilder_.build(); } } private void buildPartial0(com.google.protobuf.UnittestLite.TestParsingMergeLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.requiredAllTypes_ = requiredAllTypesBuilder_ == null ? requiredAllTypes_ : requiredAllTypesBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.optionalAllTypes_ = optionalAllTypesBuilder_ == null ? optionalAllTypes_ : optionalAllTypesBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.optionalGroup_ = optionalGroupBuilder_ == null ? optionalGroup_ : optionalGroupBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestParsingMergeLite, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestParsingMergeLite, java.util.List> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestParsingMergeLite, java.util.List> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestParsingMergeLite, T> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestParsingMergeLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestParsingMergeLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestParsingMergeLite other) { if (other == com.google.protobuf.UnittestLite.TestParsingMergeLite.getDefaultInstance()) return this; if (other.hasRequiredAllTypes()) { mergeRequiredAllTypes(other.getRequiredAllTypes()); } if (other.hasOptionalAllTypes()) { mergeOptionalAllTypes(other.getOptionalAllTypes()); } if (repeatedAllTypesBuilder_ == null) { if (!other.repeatedAllTypes_.isEmpty()) { if (repeatedAllTypes_.isEmpty()) { repeatedAllTypes_ = other.repeatedAllTypes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.addAll(other.repeatedAllTypes_); } onChanged(); } } else { if (!other.repeatedAllTypes_.isEmpty()) { if (repeatedAllTypesBuilder_.isEmpty()) { repeatedAllTypesBuilder_.dispose(); repeatedAllTypesBuilder_ = null; repeatedAllTypes_ = other.repeatedAllTypes_; bitField0_ = (bitField0_ & ~0x00000004); repeatedAllTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepeatedAllTypesFieldBuilder() : null; } else { repeatedAllTypesBuilder_.addAllMessages(other.repeatedAllTypes_); } } } if (other.hasOptionalGroup()) { mergeOptionalGroup(other.getOptionalGroup()); } if (repeatedGroupBuilder_ == null) { if (!other.repeatedGroup_.isEmpty()) { if (repeatedGroup_.isEmpty()) { repeatedGroup_ = other.repeatedGroup_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureRepeatedGroupIsMutable(); repeatedGroup_.addAll(other.repeatedGroup_); } onChanged(); } } else { if (!other.repeatedGroup_.isEmpty()) { if (repeatedGroupBuilder_.isEmpty()) { repeatedGroupBuilder_.dispose(); repeatedGroupBuilder_ = null; repeatedGroup_ = other.repeatedGroup_; bitField0_ = (bitField0_ & ~0x00000010); repeatedGroupBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepeatedGroupFieldBuilder() : null; } else { repeatedGroupBuilder_.addAllMessages(other.repeatedGroup_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasRequiredAllTypes()) { return false; } if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getRequiredAllTypesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getOptionalAllTypesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.UnittestLite.TestAllTypesLite m = input.readMessage( com.google.protobuf.UnittestLite.TestAllTypesLite.PARSER, extensionRegistry); if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.add(m); } else { repeatedAllTypesBuilder_.addMessage(m); } break; } // case 26 case 83: { input.readGroup(10, getOptionalGroupFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 83 case 163: { com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup m = input.readGroup(20, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.PARSER, extensionRegistry); if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.add(m); } else { repeatedGroupBuilder_.addMessage(m); } break; } // case 163 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.UnittestLite.TestAllTypesLite requiredAllTypes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> requiredAllTypesBuilder_; /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; * @return Whether the requiredAllTypes field is set. */ public boolean hasRequiredAllTypes() { return ((bitField0_ & 0x00000001) != 0); } /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; * @return The requiredAllTypes. */ public com.google.protobuf.UnittestLite.TestAllTypesLite getRequiredAllTypes() { if (requiredAllTypesBuilder_ == null) { return requiredAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : requiredAllTypes_; } else { return requiredAllTypesBuilder_.getMessage(); } } /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; */ public Builder setRequiredAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (requiredAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiredAllTypes_ = value; } else { requiredAllTypesBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; */ public Builder setRequiredAllTypes( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (requiredAllTypesBuilder_ == null) { requiredAllTypes_ = builderForValue.build(); } else { requiredAllTypesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; */ public Builder mergeRequiredAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (requiredAllTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && requiredAllTypes_ != null && requiredAllTypes_ != com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()) { getRequiredAllTypesBuilder().mergeFrom(value); } else { requiredAllTypes_ = value; } } else { requiredAllTypesBuilder_.mergeFrom(value); } if (requiredAllTypes_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; */ public Builder clearRequiredAllTypes() { bitField0_ = (bitField0_ & ~0x00000001); requiredAllTypes_ = null; if (requiredAllTypesBuilder_ != null) { requiredAllTypesBuilder_.dispose(); requiredAllTypesBuilder_ = null; } onChanged(); return this; } /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getRequiredAllTypesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRequiredAllTypesFieldBuilder().getBuilder(); } /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getRequiredAllTypesOrBuilder() { if (requiredAllTypesBuilder_ != null) { return requiredAllTypesBuilder_.getMessageOrBuilder(); } else { return requiredAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : requiredAllTypes_; } } /** * required .proto2_unittest.TestAllTypesLite required_all_types = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getRequiredAllTypesFieldBuilder() { if (requiredAllTypesBuilder_ == null) { requiredAllTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( getRequiredAllTypes(), getParentForChildren(), isClean()); requiredAllTypes_ = null; } return requiredAllTypesBuilder_; } private com.google.protobuf.UnittestLite.TestAllTypesLite optionalAllTypes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> optionalAllTypesBuilder_; /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; * @return Whether the optionalAllTypes field is set. */ public boolean hasOptionalAllTypes() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; * @return The optionalAllTypes. */ public com.google.protobuf.UnittestLite.TestAllTypesLite getOptionalAllTypes() { if (optionalAllTypesBuilder_ == null) { return optionalAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : optionalAllTypes_; } else { return optionalAllTypesBuilder_.getMessage(); } } /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; */ public Builder setOptionalAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (optionalAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalAllTypes_ = value; } else { optionalAllTypesBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; */ public Builder setOptionalAllTypes( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (optionalAllTypesBuilder_ == null) { optionalAllTypes_ = builderForValue.build(); } else { optionalAllTypesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; */ public Builder mergeOptionalAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (optionalAllTypesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && optionalAllTypes_ != null && optionalAllTypes_ != com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()) { getOptionalAllTypesBuilder().mergeFrom(value); } else { optionalAllTypes_ = value; } } else { optionalAllTypesBuilder_.mergeFrom(value); } if (optionalAllTypes_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; */ public Builder clearOptionalAllTypes() { bitField0_ = (bitField0_ & ~0x00000002); optionalAllTypes_ = null; if (optionalAllTypesBuilder_ != null) { optionalAllTypesBuilder_.dispose(); optionalAllTypesBuilder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getOptionalAllTypesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getOptionalAllTypesFieldBuilder().getBuilder(); } /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOptionalAllTypesOrBuilder() { if (optionalAllTypesBuilder_ != null) { return optionalAllTypesBuilder_.getMessageOrBuilder(); } else { return optionalAllTypes_ == null ? com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance() : optionalAllTypes_; } } /** * optional .proto2_unittest.TestAllTypesLite optional_all_types = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getOptionalAllTypesFieldBuilder() { if (optionalAllTypesBuilder_ == null) { optionalAllTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( getOptionalAllTypes(), getParentForChildren(), isClean()); optionalAllTypes_ = null; } return optionalAllTypesBuilder_; } private java.util.List repeatedAllTypes_ = java.util.Collections.emptyList(); private void ensureRepeatedAllTypesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { repeatedAllTypes_ = new java.util.ArrayList(repeatedAllTypes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> repeatedAllTypesBuilder_; /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public java.util.List getRepeatedAllTypesList() { if (repeatedAllTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedAllTypes_); } else { return repeatedAllTypesBuilder_.getMessageList(); } } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public int getRepeatedAllTypesCount() { if (repeatedAllTypesBuilder_ == null) { return repeatedAllTypes_.size(); } else { return repeatedAllTypesBuilder_.getCount(); } } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public com.google.protobuf.UnittestLite.TestAllTypesLite getRepeatedAllTypes(int index) { if (repeatedAllTypesBuilder_ == null) { return repeatedAllTypes_.get(index); } else { return repeatedAllTypesBuilder_.getMessage(index); } } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public Builder setRepeatedAllTypes( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (repeatedAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.set(index, value); onChanged(); } else { repeatedAllTypesBuilder_.setMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public Builder setRepeatedAllTypes( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.set(index, builderForValue.build()); onChanged(); } else { repeatedAllTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public Builder addRepeatedAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (repeatedAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.add(value); onChanged(); } else { repeatedAllTypesBuilder_.addMessage(value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public Builder addRepeatedAllTypes( int index, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (repeatedAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.add(index, value); onChanged(); } else { repeatedAllTypesBuilder_.addMessage(index, value); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public Builder addRepeatedAllTypes( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.add(builderForValue.build()); onChanged(); } else { repeatedAllTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public Builder addRepeatedAllTypes( int index, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.add(index, builderForValue.build()); onChanged(); } else { repeatedAllTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public Builder addAllRepeatedAllTypes( java.lang.Iterable values) { if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedAllTypes_); onChanged(); } else { repeatedAllTypesBuilder_.addAllMessages(values); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public Builder clearRepeatedAllTypes() { if (repeatedAllTypesBuilder_ == null) { repeatedAllTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { repeatedAllTypesBuilder_.clear(); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public Builder removeRepeatedAllTypes(int index) { if (repeatedAllTypesBuilder_ == null) { ensureRepeatedAllTypesIsMutable(); repeatedAllTypes_.remove(index); onChanged(); } else { repeatedAllTypesBuilder_.remove(index); } return this; } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getRepeatedAllTypesBuilder( int index) { return getRepeatedAllTypesFieldBuilder().getBuilder(index); } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getRepeatedAllTypesOrBuilder( int index) { if (repeatedAllTypesBuilder_ == null) { return repeatedAllTypes_.get(index); } else { return repeatedAllTypesBuilder_.getMessageOrBuilder(index); } } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public java.util.List getRepeatedAllTypesOrBuilderList() { if (repeatedAllTypesBuilder_ != null) { return repeatedAllTypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedAllTypes_); } } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addRepeatedAllTypesBuilder() { return getRepeatedAllTypesFieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder addRepeatedAllTypesBuilder( int index) { return getRepeatedAllTypesFieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } /** * repeated .proto2_unittest.TestAllTypesLite repeated_all_types = 3; */ public java.util.List getRepeatedAllTypesBuilderList() { return getRepeatedAllTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getRepeatedAllTypesFieldBuilder() { if (repeatedAllTypesBuilder_ == null) { repeatedAllTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( repeatedAllTypes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); repeatedAllTypes_ = null; } return repeatedAllTypesBuilder_; } private com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup optionalGroup_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup, com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroupOrBuilder> optionalGroupBuilder_; /** * optional group OptionalGroup = 10 { ... } * @return Whether the optionalgroup field is set. */ public boolean hasOptionalGroup() { return ((bitField0_ & 0x00000008) != 0); } /** * optional group OptionalGroup = 10 { ... } * @return The optionalgroup. */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup getOptionalGroup() { if (optionalGroupBuilder_ == null) { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } else { return optionalGroupBuilder_.getMessage(); } } /** * optional group OptionalGroup = 10 { ... } */ public Builder setOptionalGroup(com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup value) { if (optionalGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalGroup_ = value; } else { optionalGroupBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional group OptionalGroup = 10 { ... } */ public Builder setOptionalGroup( com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.Builder builderForValue) { if (optionalGroupBuilder_ == null) { optionalGroup_ = builderForValue.build(); } else { optionalGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional group OptionalGroup = 10 { ... } */ public Builder mergeOptionalGroup(com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup value) { if (optionalGroupBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && optionalGroup_ != null && optionalGroup_ != com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.getDefaultInstance()) { getOptionalGroupBuilder().mergeFrom(value); } else { optionalGroup_ = value; } } else { optionalGroupBuilder_.mergeFrom(value); } if (optionalGroup_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * optional group OptionalGroup = 10 { ... } */ public Builder clearOptionalGroup() { bitField0_ = (bitField0_ & ~0x00000008); optionalGroup_ = null; if (optionalGroupBuilder_ != null) { optionalGroupBuilder_.dispose(); optionalGroupBuilder_ = null; } onChanged(); return this; } /** * optional group OptionalGroup = 10 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.Builder getOptionalGroupBuilder() { bitField0_ |= 0x00000008; onChanged(); return getOptionalGroupFieldBuilder().getBuilder(); } /** * optional group OptionalGroup = 10 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroupOrBuilder getOptionalGroupOrBuilder() { if (optionalGroupBuilder_ != null) { return optionalGroupBuilder_.getMessageOrBuilder(); } else { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } } /** * optional group OptionalGroup = 10 { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup, com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroupOrBuilder> getOptionalGroupFieldBuilder() { if (optionalGroupBuilder_ == null) { optionalGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup, com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.OptionalGroupOrBuilder>( getOptionalGroup(), getParentForChildren(), isClean()); optionalGroup_ = null; } return optionalGroupBuilder_; } private java.util.List repeatedGroup_ = java.util.Collections.emptyList(); private void ensureRepeatedGroupIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { repeatedGroup_ = new java.util.ArrayList(repeatedGroup_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroupOrBuilder> repeatedGroupBuilder_; /** * repeated group RepeatedGroup = 20 { ... } */ public java.util.List getRepeatedGroupList() { if (repeatedGroupBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatedGroup_); } else { return repeatedGroupBuilder_.getMessageList(); } } /** * repeated group RepeatedGroup = 20 { ... } */ public int getRepeatedGroupCount() { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.size(); } else { return repeatedGroupBuilder_.getCount(); } } /** * repeated group RepeatedGroup = 20 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup getRepeatedGroup(int index) { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.get(index); } else { return repeatedGroupBuilder_.getMessage(index); } } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder setRepeatedGroup( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup value) { if (repeatedGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedGroupIsMutable(); repeatedGroup_.set(index, value); onChanged(); } else { repeatedGroupBuilder_.setMessage(index, value); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder setRepeatedGroup( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.set(index, builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder addRepeatedGroup(com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup value) { if (repeatedGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedGroupIsMutable(); repeatedGroup_.add(value); onChanged(); } else { repeatedGroupBuilder_.addMessage(value); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder addRepeatedGroup( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup value) { if (repeatedGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatedGroupIsMutable(); repeatedGroup_.add(index, value); onChanged(); } else { repeatedGroupBuilder_.addMessage(index, value); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder addRepeatedGroup( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.add(builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder addRepeatedGroup( int index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder builderForValue) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.add(index, builderForValue.build()); onChanged(); } else { repeatedGroupBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder addAllRepeatedGroup( java.lang.Iterable values) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedGroup_); onChanged(); } else { repeatedGroupBuilder_.addAllMessages(values); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder clearRepeatedGroup() { if (repeatedGroupBuilder_ == null) { repeatedGroup_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { repeatedGroupBuilder_.clear(); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public Builder removeRepeatedGroup(int index) { if (repeatedGroupBuilder_ == null) { ensureRepeatedGroupIsMutable(); repeatedGroup_.remove(index); onChanged(); } else { repeatedGroupBuilder_.remove(index); } return this; } /** * repeated group RepeatedGroup = 20 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder getRepeatedGroupBuilder( int index) { return getRepeatedGroupFieldBuilder().getBuilder(index); } /** * repeated group RepeatedGroup = 20 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroupOrBuilder getRepeatedGroupOrBuilder( int index) { if (repeatedGroupBuilder_ == null) { return repeatedGroup_.get(index); } else { return repeatedGroupBuilder_.getMessageOrBuilder(index); } } /** * repeated group RepeatedGroup = 20 { ... } */ public java.util.List getRepeatedGroupOrBuilderList() { if (repeatedGroupBuilder_ != null) { return repeatedGroupBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatedGroup_); } } /** * repeated group RepeatedGroup = 20 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder addRepeatedGroupBuilder() { return getRepeatedGroupFieldBuilder().addBuilder( com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.getDefaultInstance()); } /** * repeated group RepeatedGroup = 20 { ... } */ public com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder addRepeatedGroupBuilder( int index) { return getRepeatedGroupFieldBuilder().addBuilder( index, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.getDefaultInstance()); } /** * repeated group RepeatedGroup = 20 { ... } */ public java.util.List getRepeatedGroupBuilderList() { return getRepeatedGroupFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroupOrBuilder> getRepeatedGroupFieldBuilder() { if (repeatedGroupBuilder_ == null) { repeatedGroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroup.Builder, com.google.protobuf.UnittestLite.TestParsingMergeLite.RepeatedGroupOrBuilder>( repeatedGroup_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); repeatedGroup_ = null; } return repeatedGroupBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestParsingMergeLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestParsingMergeLite) private static final com.google.protobuf.UnittestLite.TestParsingMergeLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestParsingMergeLite(); } public static com.google.protobuf.UnittestLite.TestParsingMergeLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestParsingMergeLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestParsingMergeLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } public static final int OPTIONAL_EXT_FIELD_NUMBER = 1000; /** * extend .proto2_unittest.TestParsingMergeLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestParsingMergeLite, com.google.protobuf.UnittestLite.TestAllTypesLite> optionalExt = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestParsingMergeLite.getDefaultInstance(), 0, com.google.protobuf.UnittestLite.TestAllTypesLite.class, com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); public static final int REPEATED_EXT_FIELD_NUMBER = 1001; /** * extend .proto2_unittest.TestParsingMergeLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestParsingMergeLite, java.util.List> repeatedExt = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestParsingMergeLite.getDefaultInstance(), 1, com.google.protobuf.UnittestLite.TestAllTypesLite.class, com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } public interface TestMergeExceptionLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestMergeExceptionLite) com.google.protobuf.MessageOrBuilder { /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; * @return Whether the allExtensions field is set. */ boolean hasAllExtensions(); /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; * @return The allExtensions. */ com.google.protobuf.UnittestLite.TestAllExtensionsLite getAllExtensions(); /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; */ com.google.protobuf.UnittestLite.TestAllExtensionsLiteOrBuilder getAllExtensionsOrBuilder(); } /** *
   * Test that the correct exception is thrown by parseFrom in a corner case
   * involving merging, extensions, and required fields.
   * 
* * Protobuf type {@code proto2_unittest.TestMergeExceptionLite} */ public static final class TestMergeExceptionLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestMergeExceptionLite) TestMergeExceptionLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestMergeExceptionLite.newBuilder() to construct. private TestMergeExceptionLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestMergeExceptionLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestMergeExceptionLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestMergeExceptionLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestMergeExceptionLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestMergeExceptionLite.class, com.google.protobuf.UnittestLite.TestMergeExceptionLite.Builder.class); } private int bitField0_; public static final int ALL_EXTENSIONS_FIELD_NUMBER = 1; private com.google.protobuf.UnittestLite.TestAllExtensionsLite allExtensions_; /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; * @return Whether the allExtensions field is set. */ @java.lang.Override public boolean hasAllExtensions() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; * @return The allExtensions. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllExtensionsLite getAllExtensions() { return allExtensions_ == null ? com.google.protobuf.UnittestLite.TestAllExtensionsLite.getDefaultInstance() : allExtensions_; } /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllExtensionsLiteOrBuilder getAllExtensionsOrBuilder() { return allExtensions_ == null ? com.google.protobuf.UnittestLite.TestAllExtensionsLite.getDefaultInstance() : allExtensions_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasAllExtensions()) { if (!getAllExtensions().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAllExtensions()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAllExtensions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestMergeExceptionLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestMergeExceptionLite other = (com.google.protobuf.UnittestLite.TestMergeExceptionLite) obj; if (hasAllExtensions() != other.hasAllExtensions()) return false; if (hasAllExtensions()) { if (!getAllExtensions() .equals(other.getAllExtensions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAllExtensions()) { hash = (37 * hash) + ALL_EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + getAllExtensions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestMergeExceptionLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Test that the correct exception is thrown by parseFrom in a corner case
     * involving merging, extensions, and required fields.
     * 
* * Protobuf type {@code proto2_unittest.TestMergeExceptionLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestMergeExceptionLite) com.google.protobuf.UnittestLite.TestMergeExceptionLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestMergeExceptionLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestMergeExceptionLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestMergeExceptionLite.class, com.google.protobuf.UnittestLite.TestMergeExceptionLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestMergeExceptionLite.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAllExtensionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; allExtensions_ = null; if (allExtensionsBuilder_ != null) { allExtensionsBuilder_.dispose(); allExtensionsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestMergeExceptionLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestMergeExceptionLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestMergeExceptionLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestMergeExceptionLite build() { com.google.protobuf.UnittestLite.TestMergeExceptionLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestMergeExceptionLite buildPartial() { com.google.protobuf.UnittestLite.TestMergeExceptionLite result = new com.google.protobuf.UnittestLite.TestMergeExceptionLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestMergeExceptionLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.allExtensions_ = allExtensionsBuilder_ == null ? allExtensions_ : allExtensionsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestMergeExceptionLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestMergeExceptionLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestMergeExceptionLite other) { if (other == com.google.protobuf.UnittestLite.TestMergeExceptionLite.getDefaultInstance()) return this; if (other.hasAllExtensions()) { mergeAllExtensions(other.getAllExtensions()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasAllExtensions()) { if (!getAllExtensions().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getAllExtensionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.UnittestLite.TestAllExtensionsLite allExtensions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.TestAllExtensionsLite.Builder, com.google.protobuf.UnittestLite.TestAllExtensionsLiteOrBuilder> allExtensionsBuilder_; /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; * @return Whether the allExtensions field is set. */ public boolean hasAllExtensions() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; * @return The allExtensions. */ public com.google.protobuf.UnittestLite.TestAllExtensionsLite getAllExtensions() { if (allExtensionsBuilder_ == null) { return allExtensions_ == null ? com.google.protobuf.UnittestLite.TestAllExtensionsLite.getDefaultInstance() : allExtensions_; } else { return allExtensionsBuilder_.getMessage(); } } /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; */ public Builder setAllExtensions(com.google.protobuf.UnittestLite.TestAllExtensionsLite value) { if (allExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } allExtensions_ = value; } else { allExtensionsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; */ public Builder setAllExtensions( com.google.protobuf.UnittestLite.TestAllExtensionsLite.Builder builderForValue) { if (allExtensionsBuilder_ == null) { allExtensions_ = builderForValue.build(); } else { allExtensionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; */ public Builder mergeAllExtensions(com.google.protobuf.UnittestLite.TestAllExtensionsLite value) { if (allExtensionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && allExtensions_ != null && allExtensions_ != com.google.protobuf.UnittestLite.TestAllExtensionsLite.getDefaultInstance()) { getAllExtensionsBuilder().mergeFrom(value); } else { allExtensions_ = value; } } else { allExtensionsBuilder_.mergeFrom(value); } if (allExtensions_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; */ public Builder clearAllExtensions() { bitField0_ = (bitField0_ & ~0x00000001); allExtensions_ = null; if (allExtensionsBuilder_ != null) { allExtensionsBuilder_.dispose(); allExtensionsBuilder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; */ public com.google.protobuf.UnittestLite.TestAllExtensionsLite.Builder getAllExtensionsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAllExtensionsFieldBuilder().getBuilder(); } /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; */ public com.google.protobuf.UnittestLite.TestAllExtensionsLiteOrBuilder getAllExtensionsOrBuilder() { if (allExtensionsBuilder_ != null) { return allExtensionsBuilder_.getMessageOrBuilder(); } else { return allExtensions_ == null ? com.google.protobuf.UnittestLite.TestAllExtensionsLite.getDefaultInstance() : allExtensions_; } } /** * optional .proto2_unittest.TestAllExtensionsLite all_extensions = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.TestAllExtensionsLite.Builder, com.google.protobuf.UnittestLite.TestAllExtensionsLiteOrBuilder> getAllExtensionsFieldBuilder() { if (allExtensionsBuilder_ == null) { allExtensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.TestAllExtensionsLite.Builder, com.google.protobuf.UnittestLite.TestAllExtensionsLiteOrBuilder>( getAllExtensions(), getParentForChildren(), isClean()); allExtensions_ = null; } return allExtensionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestMergeExceptionLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestMergeExceptionLite) private static final com.google.protobuf.UnittestLite.TestMergeExceptionLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestMergeExceptionLite(); } public static com.google.protobuf.UnittestLite.TestMergeExceptionLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestMergeExceptionLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestMergeExceptionLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestEmptyMessageLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestEmptyMessageLite) com.google.protobuf.MessageOrBuilder { } /** *
   * TestEmptyMessageLite is used to test unknown fields support in lite mode.
   * 
* * Protobuf type {@code proto2_unittest.TestEmptyMessageLite} */ public static final class TestEmptyMessageLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestEmptyMessageLite) TestEmptyMessageLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestEmptyMessageLite.newBuilder() to construct. private TestEmptyMessageLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestEmptyMessageLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestEmptyMessageLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestEmptyMessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestEmptyMessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestEmptyMessageLite.class, com.google.protobuf.UnittestLite.TestEmptyMessageLite.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestEmptyMessageLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestEmptyMessageLite other = (com.google.protobuf.UnittestLite.TestEmptyMessageLite) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestEmptyMessageLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * TestEmptyMessageLite is used to test unknown fields support in lite mode.
     * 
* * Protobuf type {@code proto2_unittest.TestEmptyMessageLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestEmptyMessageLite) com.google.protobuf.UnittestLite.TestEmptyMessageLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestEmptyMessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestEmptyMessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestEmptyMessageLite.class, com.google.protobuf.UnittestLite.TestEmptyMessageLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestEmptyMessageLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestEmptyMessageLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestEmptyMessageLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestEmptyMessageLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestEmptyMessageLite build() { com.google.protobuf.UnittestLite.TestEmptyMessageLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestEmptyMessageLite buildPartial() { com.google.protobuf.UnittestLite.TestEmptyMessageLite result = new com.google.protobuf.UnittestLite.TestEmptyMessageLite(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestEmptyMessageLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestEmptyMessageLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestEmptyMessageLite other) { if (other == com.google.protobuf.UnittestLite.TestEmptyMessageLite.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestEmptyMessageLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestEmptyMessageLite) private static final com.google.protobuf.UnittestLite.TestEmptyMessageLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestEmptyMessageLite(); } public static com.google.protobuf.UnittestLite.TestEmptyMessageLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestEmptyMessageLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestEmptyMessageLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestEmptyMessageWithExtensionsLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestEmptyMessageWithExtensionsLite) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder { } /** *
   * Like above, but declare all field numbers as potential extensions.  No
   * actual extensions should ever be defined for this type.
   * 
* * Protobuf type {@code proto2_unittest.TestEmptyMessageWithExtensionsLite} */ public static final class TestEmptyMessageWithExtensionsLite extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< TestEmptyMessageWithExtensionsLite> implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestEmptyMessageWithExtensionsLite) TestEmptyMessageWithExtensionsLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestEmptyMessageWithExtensionsLite.newBuilder() to construct. private TestEmptyMessageWithExtensionsLite(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { super(builder); } private TestEmptyMessageWithExtensionsLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestEmptyMessageWithExtensionsLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestEmptyMessageWithExtensionsLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestEmptyMessageWithExtensionsLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite.class, com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite other = (com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Like above, but declare all field numbers as potential extensions.  No
     * actual extensions should ever be defined for this type.
     * 
* * Protobuf type {@code proto2_unittest.TestEmptyMessageWithExtensionsLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite, Builder> implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestEmptyMessageWithExtensionsLite) com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestEmptyMessageWithExtensionsLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestEmptyMessageWithExtensionsLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite.class, com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestEmptyMessageWithExtensionsLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite build() { com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite buildPartial() { com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite result = new com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite, java.util.List> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite, java.util.List> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite, T> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite other) { if (other == com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite.getDefaultInstance()) return this; this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestEmptyMessageWithExtensionsLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestEmptyMessageWithExtensionsLite) private static final com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite(); } public static com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestEmptyMessageWithExtensionsLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestEmptyMessageWithExtensionsLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface V1MessageLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.V1MessageLite) com.google.protobuf.MessageOrBuilder { /** * required int32 int_field = 1; * @return Whether the intField field is set. */ boolean hasIntField(); /** * required int32 int_field = 1; * @return The intField. */ int getIntField(); /** * optional .proto2_unittest.V1EnumLite enum_field = 2 [default = V1_FIRST]; * @return Whether the enumField field is set. */ boolean hasEnumField(); /** * optional .proto2_unittest.V1EnumLite enum_field = 2 [default = V1_FIRST]; * @return The enumField. */ com.google.protobuf.UnittestLite.V1EnumLite getEnumField(); } /** * Protobuf type {@code proto2_unittest.V1MessageLite} */ public static final class V1MessageLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.V1MessageLite) V1MessageLiteOrBuilder { private static final long serialVersionUID = 0L; // Use V1MessageLite.newBuilder() to construct. private V1MessageLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private V1MessageLite() { enumField_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new V1MessageLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_V1MessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_V1MessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.V1MessageLite.class, com.google.protobuf.UnittestLite.V1MessageLite.Builder.class); } private int bitField0_; public static final int INT_FIELD_FIELD_NUMBER = 1; private int intField_ = 0; /** * required int32 int_field = 1; * @return Whether the intField field is set. */ @java.lang.Override public boolean hasIntField() { return ((bitField0_ & 0x00000001) != 0); } /** * required int32 int_field = 1; * @return The intField. */ @java.lang.Override public int getIntField() { return intField_; } public static final int ENUM_FIELD_FIELD_NUMBER = 2; private int enumField_ = 1; /** * optional .proto2_unittest.V1EnumLite enum_field = 2 [default = V1_FIRST]; * @return Whether the enumField field is set. */ @java.lang.Override public boolean hasEnumField() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .proto2_unittest.V1EnumLite enum_field = 2 [default = V1_FIRST]; * @return The enumField. */ @java.lang.Override public com.google.protobuf.UnittestLite.V1EnumLite getEnumField() { com.google.protobuf.UnittestLite.V1EnumLite result = com.google.protobuf.UnittestLite.V1EnumLite.forNumber(enumField_); return result == null ? com.google.protobuf.UnittestLite.V1EnumLite.V1_FIRST : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasIntField()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, intField_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, enumField_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, intField_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, enumField_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.V1MessageLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.V1MessageLite other = (com.google.protobuf.UnittestLite.V1MessageLite) obj; if (hasIntField() != other.hasIntField()) return false; if (hasIntField()) { if (getIntField() != other.getIntField()) return false; } if (hasEnumField() != other.hasEnumField()) return false; if (hasEnumField()) { if (enumField_ != other.enumField_) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIntField()) { hash = (37 * hash) + INT_FIELD_FIELD_NUMBER; hash = (53 * hash) + getIntField(); } if (hasEnumField()) { hash = (37 * hash) + ENUM_FIELD_FIELD_NUMBER; hash = (53 * hash) + enumField_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.V1MessageLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.V1MessageLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.V1MessageLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.V1MessageLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.V1MessageLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.V1MessageLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.V1MessageLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.V1MessageLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.V1MessageLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.V1MessageLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.V1MessageLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.V1MessageLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.V1MessageLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.V1MessageLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.V1MessageLite) com.google.protobuf.UnittestLite.V1MessageLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_V1MessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_V1MessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.V1MessageLite.class, com.google.protobuf.UnittestLite.V1MessageLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.V1MessageLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; intField_ = 0; enumField_ = 1; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_V1MessageLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.V1MessageLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.V1MessageLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.V1MessageLite build() { com.google.protobuf.UnittestLite.V1MessageLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.V1MessageLite buildPartial() { com.google.protobuf.UnittestLite.V1MessageLite result = new com.google.protobuf.UnittestLite.V1MessageLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.V1MessageLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.intField_ = intField_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.enumField_ = enumField_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.V1MessageLite) { return mergeFrom((com.google.protobuf.UnittestLite.V1MessageLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.V1MessageLite other) { if (other == com.google.protobuf.UnittestLite.V1MessageLite.getDefaultInstance()) return this; if (other.hasIntField()) { setIntField(other.getIntField()); } if (other.hasEnumField()) { setEnumField(other.getEnumField()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasIntField()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { intField_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.V1EnumLite tmpValue = com.google.protobuf.UnittestLite.V1EnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(2, tmpRaw); } else { enumField_ = tmpRaw; bitField0_ |= 0x00000002; } break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int intField_ ; /** * required int32 int_field = 1; * @return Whether the intField field is set. */ @java.lang.Override public boolean hasIntField() { return ((bitField0_ & 0x00000001) != 0); } /** * required int32 int_field = 1; * @return The intField. */ @java.lang.Override public int getIntField() { return intField_; } /** * required int32 int_field = 1; * @param value The intField to set. * @return This builder for chaining. */ public Builder setIntField(int value) { intField_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int32 int_field = 1; * @return This builder for chaining. */ public Builder clearIntField() { bitField0_ = (bitField0_ & ~0x00000001); intField_ = 0; onChanged(); return this; } private int enumField_ = 1; /** * optional .proto2_unittest.V1EnumLite enum_field = 2 [default = V1_FIRST]; * @return Whether the enumField field is set. */ @java.lang.Override public boolean hasEnumField() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .proto2_unittest.V1EnumLite enum_field = 2 [default = V1_FIRST]; * @return The enumField. */ @java.lang.Override public com.google.protobuf.UnittestLite.V1EnumLite getEnumField() { com.google.protobuf.UnittestLite.V1EnumLite result = com.google.protobuf.UnittestLite.V1EnumLite.forNumber(enumField_); return result == null ? com.google.protobuf.UnittestLite.V1EnumLite.V1_FIRST : result; } /** * optional .proto2_unittest.V1EnumLite enum_field = 2 [default = V1_FIRST]; * @param value The enumField to set. * @return This builder for chaining. */ public Builder setEnumField(com.google.protobuf.UnittestLite.V1EnumLite value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; enumField_ = value.getNumber(); onChanged(); return this; } /** * optional .proto2_unittest.V1EnumLite enum_field = 2 [default = V1_FIRST]; * @return This builder for chaining. */ public Builder clearEnumField() { bitField0_ = (bitField0_ & ~0x00000002); enumField_ = 1; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.V1MessageLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.V1MessageLite) private static final com.google.protobuf.UnittestLite.V1MessageLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.V1MessageLite(); } public static com.google.protobuf.UnittestLite.V1MessageLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public V1MessageLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.V1MessageLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface V2MessageLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.V2MessageLite) com.google.protobuf.MessageOrBuilder { /** * required int32 int_field = 1; * @return Whether the intField field is set. */ boolean hasIntField(); /** * required int32 int_field = 1; * @return The intField. */ int getIntField(); /** * optional .proto2_unittest.V2EnumLite enum_field = 2 [default = V2_FIRST]; * @return Whether the enumField field is set. */ boolean hasEnumField(); /** * optional .proto2_unittest.V2EnumLite enum_field = 2 [default = V2_FIRST]; * @return The enumField. */ com.google.protobuf.UnittestLite.V2EnumLite getEnumField(); } /** * Protobuf type {@code proto2_unittest.V2MessageLite} */ public static final class V2MessageLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.V2MessageLite) V2MessageLiteOrBuilder { private static final long serialVersionUID = 0L; // Use V2MessageLite.newBuilder() to construct. private V2MessageLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private V2MessageLite() { enumField_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new V2MessageLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_V2MessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_V2MessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.V2MessageLite.class, com.google.protobuf.UnittestLite.V2MessageLite.Builder.class); } private int bitField0_; public static final int INT_FIELD_FIELD_NUMBER = 1; private int intField_ = 0; /** * required int32 int_field = 1; * @return Whether the intField field is set. */ @java.lang.Override public boolean hasIntField() { return ((bitField0_ & 0x00000001) != 0); } /** * required int32 int_field = 1; * @return The intField. */ @java.lang.Override public int getIntField() { return intField_; } public static final int ENUM_FIELD_FIELD_NUMBER = 2; private int enumField_ = 1; /** * optional .proto2_unittest.V2EnumLite enum_field = 2 [default = V2_FIRST]; * @return Whether the enumField field is set. */ @java.lang.Override public boolean hasEnumField() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .proto2_unittest.V2EnumLite enum_field = 2 [default = V2_FIRST]; * @return The enumField. */ @java.lang.Override public com.google.protobuf.UnittestLite.V2EnumLite getEnumField() { com.google.protobuf.UnittestLite.V2EnumLite result = com.google.protobuf.UnittestLite.V2EnumLite.forNumber(enumField_); return result == null ? com.google.protobuf.UnittestLite.V2EnumLite.V2_FIRST : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasIntField()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, intField_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, enumField_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, intField_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, enumField_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.V2MessageLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.V2MessageLite other = (com.google.protobuf.UnittestLite.V2MessageLite) obj; if (hasIntField() != other.hasIntField()) return false; if (hasIntField()) { if (getIntField() != other.getIntField()) return false; } if (hasEnumField() != other.hasEnumField()) return false; if (hasEnumField()) { if (enumField_ != other.enumField_) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIntField()) { hash = (37 * hash) + INT_FIELD_FIELD_NUMBER; hash = (53 * hash) + getIntField(); } if (hasEnumField()) { hash = (37 * hash) + ENUM_FIELD_FIELD_NUMBER; hash = (53 * hash) + enumField_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.V2MessageLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.V2MessageLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.V2MessageLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.V2MessageLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.V2MessageLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.V2MessageLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.V2MessageLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.V2MessageLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.V2MessageLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.V2MessageLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.V2MessageLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.V2MessageLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.V2MessageLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.V2MessageLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.V2MessageLite) com.google.protobuf.UnittestLite.V2MessageLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_V2MessageLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_V2MessageLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.V2MessageLite.class, com.google.protobuf.UnittestLite.V2MessageLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.V2MessageLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; intField_ = 0; enumField_ = 1; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_V2MessageLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.V2MessageLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.V2MessageLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.V2MessageLite build() { com.google.protobuf.UnittestLite.V2MessageLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.V2MessageLite buildPartial() { com.google.protobuf.UnittestLite.V2MessageLite result = new com.google.protobuf.UnittestLite.V2MessageLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.V2MessageLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.intField_ = intField_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.enumField_ = enumField_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.V2MessageLite) { return mergeFrom((com.google.protobuf.UnittestLite.V2MessageLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.V2MessageLite other) { if (other == com.google.protobuf.UnittestLite.V2MessageLite.getDefaultInstance()) return this; if (other.hasIntField()) { setIntField(other.getIntField()); } if (other.hasEnumField()) { setEnumField(other.getEnumField()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasIntField()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { intField_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.V2EnumLite tmpValue = com.google.protobuf.UnittestLite.V2EnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(2, tmpRaw); } else { enumField_ = tmpRaw; bitField0_ |= 0x00000002; } break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int intField_ ; /** * required int32 int_field = 1; * @return Whether the intField field is set. */ @java.lang.Override public boolean hasIntField() { return ((bitField0_ & 0x00000001) != 0); } /** * required int32 int_field = 1; * @return The intField. */ @java.lang.Override public int getIntField() { return intField_; } /** * required int32 int_field = 1; * @param value The intField to set. * @return This builder for chaining. */ public Builder setIntField(int value) { intField_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int32 int_field = 1; * @return This builder for chaining. */ public Builder clearIntField() { bitField0_ = (bitField0_ & ~0x00000001); intField_ = 0; onChanged(); return this; } private int enumField_ = 1; /** * optional .proto2_unittest.V2EnumLite enum_field = 2 [default = V2_FIRST]; * @return Whether the enumField field is set. */ @java.lang.Override public boolean hasEnumField() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .proto2_unittest.V2EnumLite enum_field = 2 [default = V2_FIRST]; * @return The enumField. */ @java.lang.Override public com.google.protobuf.UnittestLite.V2EnumLite getEnumField() { com.google.protobuf.UnittestLite.V2EnumLite result = com.google.protobuf.UnittestLite.V2EnumLite.forNumber(enumField_); return result == null ? com.google.protobuf.UnittestLite.V2EnumLite.V2_FIRST : result; } /** * optional .proto2_unittest.V2EnumLite enum_field = 2 [default = V2_FIRST]; * @param value The enumField to set. * @return This builder for chaining. */ public Builder setEnumField(com.google.protobuf.UnittestLite.V2EnumLite value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; enumField_ = value.getNumber(); onChanged(); return this; } /** * optional .proto2_unittest.V2EnumLite enum_field = 2 [default = V2_FIRST]; * @return This builder for chaining. */ public Builder clearEnumField() { bitField0_ = (bitField0_ & ~0x00000002); enumField_ = 1; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.V2MessageLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.V2MessageLite) private static final com.google.protobuf.UnittestLite.V2MessageLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.V2MessageLite(); } public static com.google.protobuf.UnittestLite.V2MessageLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public V2MessageLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.V2MessageLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestHugeFieldNumbersLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestHugeFieldNumbersLite) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder { /** * optional int32 optional_int32 = 536870000; * @return Whether the optionalInt32 field is set. */ boolean hasOptionalInt32(); /** * optional int32 optional_int32 = 536870000; * @return The optionalInt32. */ int getOptionalInt32(); /** * optional int32 fixed_32 = 536870001; * @return Whether the fixed32 field is set. */ boolean hasFixed32(); /** * optional int32 fixed_32 = 536870001; * @return The fixed32. */ int getFixed32(); /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @return A list containing the repeatedInt32. */ java.util.List getRepeatedInt32List(); /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @return The count of repeatedInt32. */ int getRepeatedInt32Count(); /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ int getRepeatedInt32(int index); /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @return A list containing the packedInt32. */ java.util.List getPackedInt32List(); /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @return The count of packedInt32. */ int getPackedInt32Count(); /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @param index The index of the element to return. * @return The packedInt32 at the given index. */ int getPackedInt32(int index); /** * optional .proto2_unittest.ForeignEnumLite optional_enum = 536870004; * @return Whether the optionalEnum field is set. */ boolean hasOptionalEnum(); /** * optional .proto2_unittest.ForeignEnumLite optional_enum = 536870004; * @return The optionalEnum. */ com.google.protobuf.UnittestLite.ForeignEnumLite getOptionalEnum(); /** * optional string optional_string = 536870005; * @return Whether the optionalString field is set. */ boolean hasOptionalString(); /** * optional string optional_string = 536870005; * @return The optionalString. */ java.lang.String getOptionalString(); /** * optional string optional_string = 536870005; * @return The bytes for optionalString. */ com.google.protobuf.ByteString getOptionalStringBytes(); /** * optional bytes optional_bytes = 536870006; * @return Whether the optionalBytes field is set. */ boolean hasOptionalBytes(); /** * optional bytes optional_bytes = 536870006; * @return The optionalBytes. */ com.google.protobuf.ByteString getOptionalBytes(); /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; * @return Whether the optionalMessage field is set. */ boolean hasOptionalMessage(); /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; * @return The optionalMessage. */ com.google.protobuf.UnittestLite.ForeignMessageLite getOptionalMessage(); /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; */ com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getOptionalMessageOrBuilder(); /** * optional group OptionalGroup = 536870008 { ... } * @return Whether the optionalgroup field is set. */ boolean hasOptionalGroup(); /** * optional group OptionalGroup = 536870008 { ... } * @return The optionalgroup. */ com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup getOptionalGroup(); /** * optional group OptionalGroup = 536870008 { ... } */ com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroupOrBuilder getOptionalGroupOrBuilder(); /** * map<string, string> string_string_map = 536870010; */ int getStringStringMapCount(); /** * map<string, string> string_string_map = 536870010; */ boolean containsStringStringMap( java.lang.String key); /** * Use {@link #getStringStringMapMap()} instead. */ @java.lang.Deprecated java.util.Map getStringStringMap(); /** * map<string, string> string_string_map = 536870010; */ java.util.Map getStringStringMapMap(); /** * map<string, string> string_string_map = 536870010; */ /* nullable */ java.lang.String getStringStringMapOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * map<string, string> string_string_map = 536870010; */ java.lang.String getStringStringMapOrThrow( java.lang.String key); /** * uint32 oneof_uint32 = 536870011; * @return Whether the oneofUint32 field is set. */ boolean hasOneofUint32(); /** * uint32 oneof_uint32 = 536870011; * @return The oneofUint32. */ int getOneofUint32(); /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; * @return Whether the oneofTestAllTypes field is set. */ boolean hasOneofTestAllTypes(); /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; * @return The oneofTestAllTypes. */ com.google.protobuf.UnittestLite.TestAllTypesLite getOneofTestAllTypes(); /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOneofTestAllTypesOrBuilder(); /** * string oneof_string = 536870013; * @return Whether the oneofString field is set. */ boolean hasOneofString(); /** * string oneof_string = 536870013; * @return The oneofString. */ java.lang.String getOneofString(); /** * string oneof_string = 536870013; * @return The bytes for oneofString. */ com.google.protobuf.ByteString getOneofStringBytes(); /** * bytes oneof_bytes = 536870014; * @return Whether the oneofBytes field is set. */ boolean hasOneofBytes(); /** * bytes oneof_bytes = 536870014; * @return The oneofBytes. */ com.google.protobuf.ByteString getOneofBytes(); com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OneofFieldCase getOneofFieldCase(); } /** * Protobuf type {@code proto2_unittest.TestHugeFieldNumbersLite} */ public static final class TestHugeFieldNumbersLite extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< TestHugeFieldNumbersLite> implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestHugeFieldNumbersLite) TestHugeFieldNumbersLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestHugeFieldNumbersLite.newBuilder() to construct. private TestHugeFieldNumbersLite(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { super(builder); } private TestHugeFieldNumbersLite() { repeatedInt32_ = emptyIntList(); packedInt32_ = emptyIntList(); optionalEnum_ = 4; optionalString_ = ""; optionalBytes_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestHugeFieldNumbersLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 536870010: return internalGetStringStringMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.class, com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.Builder.class); } public interface OptionalGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestHugeFieldNumbersLite.OptionalGroup) com.google.protobuf.MessageOrBuilder { /** * optional int32 group_a = 536870009; * @return Whether the groupA field is set. */ boolean hasGroupA(); /** * optional int32 group_a = 536870009; * @return The groupA. */ int getGroupA(); } /** * Protobuf type {@code proto2_unittest.TestHugeFieldNumbersLite.OptionalGroup} */ public static final class OptionalGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestHugeFieldNumbersLite.OptionalGroup) OptionalGroupOrBuilder { private static final long serialVersionUID = 0L; // Use OptionalGroup.newBuilder() to construct. private OptionalGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionalGroup() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptionalGroup(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_OptionalGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_OptionalGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.class, com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.Builder.class); } private int bitField0_; public static final int GROUP_A_FIELD_NUMBER = 536870009; private int groupA_ = 0; /** * optional int32 group_a = 536870009; * @return Whether the groupA field is set. */ @java.lang.Override public boolean hasGroupA() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 group_a = 536870009; * @return The groupA. */ @java.lang.Override public int getGroupA() { return groupA_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(536870009, groupA_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(536870009, groupA_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup other = (com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup) obj; if (hasGroupA() != other.hasGroupA()) return false; if (hasGroupA()) { if (getGroupA() != other.getGroupA()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasGroupA()) { hash = (37 * hash) + GROUP_A_FIELD_NUMBER; hash = (53 * hash) + getGroupA(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestHugeFieldNumbersLite.OptionalGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestHugeFieldNumbersLite.OptionalGroup) com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_OptionalGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_OptionalGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.class, com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; groupA_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_OptionalGroup_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup build() { com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup buildPartial() { com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup result = new com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.groupA_ = groupA_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup) { return mergeFrom((com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup other) { if (other == com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.getDefaultInstance()) return this; if (other.hasGroupA()) { setGroupA(other.getGroupA()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case -7224: { groupA_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case -7224 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int groupA_ ; /** * optional int32 group_a = 536870009; * @return Whether the groupA field is set. */ @java.lang.Override public boolean hasGroupA() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 group_a = 536870009; * @return The groupA. */ @java.lang.Override public int getGroupA() { return groupA_; } /** * optional int32 group_a = 536870009; * @param value The groupA to set. * @return This builder for chaining. */ public Builder setGroupA(int value) { groupA_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 group_a = 536870009; * @return This builder for chaining. */ public Builder clearGroupA() { bitField0_ = (bitField0_ & ~0x00000001); groupA_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestHugeFieldNumbersLite.OptionalGroup) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestHugeFieldNumbersLite.OptionalGroup) private static final com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup(); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionalGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; private int oneofFieldCase_ = 0; @SuppressWarnings("serial") private java.lang.Object oneofField_; public enum OneofFieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ONEOF_UINT32(536870011), ONEOF_TEST_ALL_TYPES(536870012), ONEOF_STRING(536870013), ONEOF_BYTES(536870014), ONEOFFIELD_NOT_SET(0); private final int value; private OneofFieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static OneofFieldCase valueOf(int value) { return forNumber(value); } public static OneofFieldCase forNumber(int value) { switch (value) { case 536870011: return ONEOF_UINT32; case 536870012: return ONEOF_TEST_ALL_TYPES; case 536870013: return ONEOF_STRING; case 536870014: return ONEOF_BYTES; case 0: return ONEOFFIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public OneofFieldCase getOneofFieldCase() { return OneofFieldCase.forNumber( oneofFieldCase_); } public static final int OPTIONAL_INT32_FIELD_NUMBER = 536870000; private int optionalInt32_ = 0; /** * optional int32 optional_int32 = 536870000; * @return Whether the optionalInt32 field is set. */ @java.lang.Override public boolean hasOptionalInt32() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 optional_int32 = 536870000; * @return The optionalInt32. */ @java.lang.Override public int getOptionalInt32() { return optionalInt32_; } public static final int FIXED_32_FIELD_NUMBER = 536870001; private int fixed32_ = 0; /** * optional int32 fixed_32 = 536870001; * @return Whether the fixed32 field is set. */ @java.lang.Override public boolean hasFixed32() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 fixed_32 = 536870001; * @return The fixed32. */ @java.lang.Override public int getFixed32() { return fixed32_; } public static final int REPEATED_INT32_FIELD_NUMBER = 536870002; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList repeatedInt32_ = emptyIntList(); /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @return A list containing the repeatedInt32. */ @java.lang.Override public java.util.List getRepeatedInt32List() { return repeatedInt32_; } /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @return The count of repeatedInt32. */ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ public int getRepeatedInt32(int index) { return repeatedInt32_.getInt(index); } public static final int PACKED_INT32_FIELD_NUMBER = 536870003; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList packedInt32_ = emptyIntList(); /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @return A list containing the packedInt32. */ @java.lang.Override public java.util.List getPackedInt32List() { return packedInt32_; } /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @return The count of packedInt32. */ public int getPackedInt32Count() { return packedInt32_.size(); } /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @param index The index of the element to return. * @return The packedInt32 at the given index. */ public int getPackedInt32(int index) { return packedInt32_.getInt(index); } private int packedInt32MemoizedSerializedSize = -1; public static final int OPTIONAL_ENUM_FIELD_NUMBER = 536870004; private int optionalEnum_ = 4; /** * optional .proto2_unittest.ForeignEnumLite optional_enum = 536870004; * @return Whether the optionalEnum field is set. */ @java.lang.Override public boolean hasOptionalEnum() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .proto2_unittest.ForeignEnumLite optional_enum = 536870004; * @return The optionalEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignEnumLite getOptionalEnum() { com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(optionalEnum_); return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO : result; } public static final int OPTIONAL_STRING_FIELD_NUMBER = 536870005; @SuppressWarnings("serial") private volatile java.lang.Object optionalString_ = ""; /** * optional string optional_string = 536870005; * @return Whether the optionalString field is set. */ @java.lang.Override public boolean hasOptionalString() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string optional_string = 536870005; * @return The optionalString. */ @java.lang.Override public java.lang.String getOptionalString() { java.lang.Object ref = optionalString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalString_ = s; } return s; } } /** * optional string optional_string = 536870005; * @return The bytes for optionalString. */ @java.lang.Override public com.google.protobuf.ByteString getOptionalStringBytes() { java.lang.Object ref = optionalString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONAL_BYTES_FIELD_NUMBER = 536870006; private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes optional_bytes = 536870006; * @return Whether the optionalBytes field is set. */ @java.lang.Override public boolean hasOptionalBytes() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bytes optional_bytes = 536870006; * @return The optionalBytes. */ @java.lang.Override public com.google.protobuf.ByteString getOptionalBytes() { return optionalBytes_; } public static final int OPTIONAL_MESSAGE_FIELD_NUMBER = 536870007; private com.google.protobuf.UnittestLite.ForeignMessageLite optionalMessage_; /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; * @return Whether the optionalMessage field is set. */ @java.lang.Override public boolean hasOptionalMessage() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; * @return The optionalMessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLite getOptionalMessage() { return optionalMessage_ == null ? com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance() : optionalMessage_; } /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getOptionalMessageOrBuilder() { return optionalMessage_ == null ? com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance() : optionalMessage_; } public static final int OPTIONALGROUP_FIELD_NUMBER = 536870008; private com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup optionalGroup_; /** * optional group OptionalGroup = 536870008 { ... } * @return Whether the optionalgroup field is set. */ @java.lang.Override public boolean hasOptionalGroup() { return ((bitField0_ & 0x00000040) != 0); } /** * optional group OptionalGroup = 536870008 { ... } * @return The optionalgroup. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup getOptionalGroup() { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } /** * optional group OptionalGroup = 536870008 { ... } */ @java.lang.Override public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroupOrBuilder getOptionalGroupOrBuilder() { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } public static final int STRING_STRING_MAP_FIELD_NUMBER = 536870010; private static final class StringStringMapDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_StringStringMapEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> stringStringMap_; private com.google.protobuf.MapField internalGetStringStringMap() { if (stringStringMap_ == null) { return com.google.protobuf.MapField.emptyMapField( StringStringMapDefaultEntryHolder.defaultEntry); } return stringStringMap_; } public int getStringStringMapCount() { return internalGetStringStringMap().getMap().size(); } /** * map<string, string> string_string_map = 536870010; */ @java.lang.Override public boolean containsStringStringMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetStringStringMap().getMap().containsKey(key); } /** * Use {@link #getStringStringMapMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getStringStringMap() { return getStringStringMapMap(); } /** * map<string, string> string_string_map = 536870010; */ @java.lang.Override public java.util.Map getStringStringMapMap() { return internalGetStringStringMap().getMap(); } /** * map<string, string> string_string_map = 536870010; */ @java.lang.Override public /* nullable */ java.lang.String getStringStringMapOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetStringStringMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> string_string_map = 536870010; */ @java.lang.Override public java.lang.String getStringStringMapOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetStringStringMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ONEOF_UINT32_FIELD_NUMBER = 536870011; /** * uint32 oneof_uint32 = 536870011; * @return Whether the oneofUint32 field is set. */ @java.lang.Override public boolean hasOneofUint32() { return oneofFieldCase_ == 536870011; } /** * uint32 oneof_uint32 = 536870011; * @return The oneofUint32. */ @java.lang.Override public int getOneofUint32() { if (oneofFieldCase_ == 536870011) { return (java.lang.Integer) oneofField_; } return 0; } public static final int ONEOF_TEST_ALL_TYPES_FIELD_NUMBER = 536870012; /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; * @return Whether the oneofTestAllTypes field is set. */ @java.lang.Override public boolean hasOneofTestAllTypes() { return oneofFieldCase_ == 536870012; } /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; * @return The oneofTestAllTypes. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getOneofTestAllTypes() { if (oneofFieldCase_ == 536870012) { return (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOneofTestAllTypesOrBuilder() { if (oneofFieldCase_ == 536870012) { return (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } public static final int ONEOF_STRING_FIELD_NUMBER = 536870013; /** * string oneof_string = 536870013; * @return Whether the oneofString field is set. */ public boolean hasOneofString() { return oneofFieldCase_ == 536870013; } /** * string oneof_string = 536870013; * @return The oneofString. */ public java.lang.String getOneofString() { java.lang.Object ref = ""; if (oneofFieldCase_ == 536870013) { ref = oneofField_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8() && (oneofFieldCase_ == 536870013)) { oneofField_ = s; } return s; } } /** * string oneof_string = 536870013; * @return The bytes for oneofString. */ public com.google.protobuf.ByteString getOneofStringBytes() { java.lang.Object ref = ""; if (oneofFieldCase_ == 536870013) { ref = oneofField_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 536870013) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONEOF_BYTES_FIELD_NUMBER = 536870014; /** * bytes oneof_bytes = 536870014; * @return Whether the oneofBytes field is set. */ @java.lang.Override public boolean hasOneofBytes() { return oneofFieldCase_ == 536870014; } /** * bytes oneof_bytes = 536870014; * @return The oneofBytes. */ @java.lang.Override public com.google.protobuf.ByteString getOneofBytes() { if (oneofFieldCase_ == 536870014) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessageV3 .ExtendableMessage.ExtensionWriter extensionWriter = newExtensionWriter(); extensionWriter.writeUntil(536870000, output); if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(536870000, optionalInt32_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(536870001, fixed32_); } for (int i = 0; i < repeatedInt32_.size(); i++) { output.writeInt32(536870002, repeatedInt32_.getInt(i)); } if (getPackedInt32List().size() > 0) { output.writeUInt32NoTag(-7270); output.writeUInt32NoTag(packedInt32MemoizedSerializedSize); } for (int i = 0; i < packedInt32_.size(); i++) { output.writeInt32NoTag(packedInt32_.getInt(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(536870004, optionalEnum_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 536870005, optionalString_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBytes(536870006, optionalBytes_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(536870007, getOptionalMessage()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeGroup(536870008, getOptionalGroup()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetStringStringMap(), StringStringMapDefaultEntryHolder.defaultEntry, 536870010); if (oneofFieldCase_ == 536870011) { output.writeUInt32( 536870011, (int)((java.lang.Integer) oneofField_)); } if (oneofFieldCase_ == 536870012) { output.writeMessage(536870012, (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_); } if (oneofFieldCase_ == 536870013) { com.google.protobuf.GeneratedMessageV3.writeString(output, 536870013, oneofField_); } if (oneofFieldCase_ == 536870014) { output.writeBytes( 536870014, (com.google.protobuf.ByteString) oneofField_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(536870000, optionalInt32_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(536870001, fixed32_); } { int dataSize = 0; for (int i = 0; i < repeatedInt32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(repeatedInt32_.getInt(i)); } size += dataSize; size += 5 * getRepeatedInt32List().size(); } { int dataSize = 0; for (int i = 0; i < packedInt32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(packedInt32_.getInt(i)); } size += dataSize; if (!getPackedInt32List().isEmpty()) { size += 5; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } packedInt32MemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(536870004, optionalEnum_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(536870005, optionalString_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(536870006, optionalBytes_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(536870007, getOptionalMessage()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeGroupSize(536870008, getOptionalGroup()); } for (java.util.Map.Entry entry : internalGetStringStringMap().getMap().entrySet()) { com.google.protobuf.MapEntry stringStringMap__ = StringStringMapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(536870010, stringStringMap__); } if (oneofFieldCase_ == 536870011) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 536870011, (int)((java.lang.Integer) oneofField_)); } if (oneofFieldCase_ == 536870012) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(536870012, (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_); } if (oneofFieldCase_ == 536870013) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(536870013, oneofField_); } if (oneofFieldCase_ == 536870014) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 536870014, (com.google.protobuf.ByteString) oneofField_); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite other = (com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite) obj; if (hasOptionalInt32() != other.hasOptionalInt32()) return false; if (hasOptionalInt32()) { if (getOptionalInt32() != other.getOptionalInt32()) return false; } if (hasFixed32() != other.hasFixed32()) return false; if (hasFixed32()) { if (getFixed32() != other.getFixed32()) return false; } if (!getRepeatedInt32List() .equals(other.getRepeatedInt32List())) return false; if (!getPackedInt32List() .equals(other.getPackedInt32List())) return false; if (hasOptionalEnum() != other.hasOptionalEnum()) return false; if (hasOptionalEnum()) { if (optionalEnum_ != other.optionalEnum_) return false; } if (hasOptionalString() != other.hasOptionalString()) return false; if (hasOptionalString()) { if (!getOptionalString() .equals(other.getOptionalString())) return false; } if (hasOptionalBytes() != other.hasOptionalBytes()) return false; if (hasOptionalBytes()) { if (!getOptionalBytes() .equals(other.getOptionalBytes())) return false; } if (hasOptionalMessage() != other.hasOptionalMessage()) return false; if (hasOptionalMessage()) { if (!getOptionalMessage() .equals(other.getOptionalMessage())) return false; } if (hasOptionalGroup() != other.hasOptionalGroup()) return false; if (hasOptionalGroup()) { if (!getOptionalGroup() .equals(other.getOptionalGroup())) return false; } if (!internalGetStringStringMap().equals( other.internalGetStringStringMap())) return false; if (!getOneofFieldCase().equals(other.getOneofFieldCase())) return false; switch (oneofFieldCase_) { case 536870011: if (getOneofUint32() != other.getOneofUint32()) return false; break; case 536870012: if (!getOneofTestAllTypes() .equals(other.getOneofTestAllTypes())) return false; break; case 536870013: if (!getOneofString() .equals(other.getOneofString())) return false; break; case 536870014: if (!getOneofBytes() .equals(other.getOneofBytes())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOptionalInt32()) { hash = (37 * hash) + OPTIONAL_INT32_FIELD_NUMBER; hash = (53 * hash) + getOptionalInt32(); } if (hasFixed32()) { hash = (37 * hash) + FIXED_32_FIELD_NUMBER; hash = (53 * hash) + getFixed32(); } if (getRepeatedInt32Count() > 0) { hash = (37 * hash) + REPEATED_INT32_FIELD_NUMBER; hash = (53 * hash) + getRepeatedInt32List().hashCode(); } if (getPackedInt32Count() > 0) { hash = (37 * hash) + PACKED_INT32_FIELD_NUMBER; hash = (53 * hash) + getPackedInt32List().hashCode(); } if (hasOptionalEnum()) { hash = (37 * hash) + OPTIONAL_ENUM_FIELD_NUMBER; hash = (53 * hash) + optionalEnum_; } if (hasOptionalString()) { hash = (37 * hash) + OPTIONAL_STRING_FIELD_NUMBER; hash = (53 * hash) + getOptionalString().hashCode(); } if (hasOptionalBytes()) { hash = (37 * hash) + OPTIONAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + getOptionalBytes().hashCode(); } if (hasOptionalMessage()) { hash = (37 * hash) + OPTIONAL_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getOptionalMessage().hashCode(); } if (hasOptionalGroup()) { hash = (37 * hash) + OPTIONALGROUP_FIELD_NUMBER; hash = (53 * hash) + getOptionalGroup().hashCode(); } if (!internalGetStringStringMap().getMap().isEmpty()) { hash = (37 * hash) + STRING_STRING_MAP_FIELD_NUMBER; hash = (53 * hash) + internalGetStringStringMap().hashCode(); } switch (oneofFieldCase_) { case 536870011: hash = (37 * hash) + ONEOF_UINT32_FIELD_NUMBER; hash = (53 * hash) + getOneofUint32(); break; case 536870012: hash = (37 * hash) + ONEOF_TEST_ALL_TYPES_FIELD_NUMBER; hash = (53 * hash) + getOneofTestAllTypes().hashCode(); break; case 536870013: hash = (37 * hash) + ONEOF_STRING_FIELD_NUMBER; hash = (53 * hash) + getOneofString().hashCode(); break; case 536870014: hash = (37 * hash) + ONEOF_BYTES_FIELD_NUMBER; hash = (53 * hash) + getOneofBytes().hashCode(); break; case 0: default: } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestHugeFieldNumbersLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite, Builder> implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestHugeFieldNumbersLite) com.google.protobuf.UnittestLite.TestHugeFieldNumbersLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 536870010: return internalGetStringStringMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 536870010: return internalGetMutableStringStringMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.class, com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionalMessageFieldBuilder(); getOptionalGroupFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; optionalInt32_ = 0; fixed32_ = 0; repeatedInt32_ = emptyIntList(); packedInt32_ = emptyIntList(); optionalEnum_ = 4; optionalString_ = ""; optionalBytes_ = com.google.protobuf.ByteString.EMPTY; optionalMessage_ = null; if (optionalMessageBuilder_ != null) { optionalMessageBuilder_.dispose(); optionalMessageBuilder_ = null; } optionalGroup_ = null; if (optionalGroupBuilder_ != null) { optionalGroupBuilder_.dispose(); optionalGroupBuilder_ = null; } internalGetMutableStringStringMap().clear(); if (oneofTestAllTypesBuilder_ != null) { oneofTestAllTypesBuilder_.clear(); } oneofFieldCase_ = 0; oneofField_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestHugeFieldNumbersLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite build() { com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite buildPartial() { com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite result = new com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.optionalInt32_ = optionalInt32_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.fixed32_ = fixed32_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { repeatedInt32_.makeImmutable(); result.repeatedInt32_ = repeatedInt32_; } if (((from_bitField0_ & 0x00000008) != 0)) { packedInt32_.makeImmutable(); result.packedInt32_ = packedInt32_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.optionalEnum_ = optionalEnum_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.optionalString_ = optionalString_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.optionalBytes_ = optionalBytes_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { result.optionalMessage_ = optionalMessageBuilder_ == null ? optionalMessage_ : optionalMessageBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { result.optionalGroup_ = optionalGroupBuilder_ == null ? optionalGroup_ : optionalGroupBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000200) != 0)) { result.stringStringMap_ = internalGetStringStringMap(); result.stringStringMap_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite result) { result.oneofFieldCase_ = oneofFieldCase_; result.oneofField_ = this.oneofField_; if (oneofFieldCase_ == 536870012 && oneofTestAllTypesBuilder_ != null) { result.oneofField_ = oneofTestAllTypesBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite, java.util.List> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite, java.util.List> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite, T> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite other) { if (other == com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.getDefaultInstance()) return this; if (other.hasOptionalInt32()) { setOptionalInt32(other.getOptionalInt32()); } if (other.hasFixed32()) { setFixed32(other.getFixed32()); } if (!other.repeatedInt32_.isEmpty()) { if (repeatedInt32_.isEmpty()) { repeatedInt32_ = other.repeatedInt32_; repeatedInt32_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensureRepeatedInt32IsMutable(); repeatedInt32_.addAll(other.repeatedInt32_); } onChanged(); } if (!other.packedInt32_.isEmpty()) { if (packedInt32_.isEmpty()) { packedInt32_ = other.packedInt32_; packedInt32_.makeImmutable(); bitField0_ |= 0x00000008; } else { ensurePackedInt32IsMutable(); packedInt32_.addAll(other.packedInt32_); } onChanged(); } if (other.hasOptionalEnum()) { setOptionalEnum(other.getOptionalEnum()); } if (other.hasOptionalString()) { optionalString_ = other.optionalString_; bitField0_ |= 0x00000020; onChanged(); } if (other.hasOptionalBytes()) { setOptionalBytes(other.getOptionalBytes()); } if (other.hasOptionalMessage()) { mergeOptionalMessage(other.getOptionalMessage()); } if (other.hasOptionalGroup()) { mergeOptionalGroup(other.getOptionalGroup()); } internalGetMutableStringStringMap().mergeFrom( other.internalGetStringStringMap()); bitField0_ |= 0x00000200; switch (other.getOneofFieldCase()) { case ONEOF_UINT32: { setOneofUint32(other.getOneofUint32()); break; } case ONEOF_TEST_ALL_TYPES: { mergeOneofTestAllTypes(other.getOneofTestAllTypes()); break; } case ONEOF_STRING: { oneofFieldCase_ = 536870013; oneofField_ = other.oneofField_; onChanged(); break; } case ONEOF_BYTES: { setOneofBytes(other.getOneofBytes()); break; } case ONEOFFIELD_NOT_SET: { break; } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case -7296: { optionalInt32_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case -7296 case -7288: { fixed32_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case -7288 case -7280: { int v = input.readInt32(); ensureRepeatedInt32IsMutable(); repeatedInt32_.addInt(v); break; } // case -7280 case -7278: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRepeatedInt32IsMutable(); while (input.getBytesUntilLimit() > 0) { repeatedInt32_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case -7278 case -7272: { int v = input.readInt32(); ensurePackedInt32IsMutable(); packedInt32_.addInt(v); break; } // case -7272 case -7270: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensurePackedInt32IsMutable(); while (input.getBytesUntilLimit() > 0) { packedInt32_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case -7270 case -7264: { int tmpRaw = input.readEnum(); com.google.protobuf.UnittestLite.ForeignEnumLite tmpValue = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(536870004, tmpRaw); } else { optionalEnum_ = tmpRaw; bitField0_ |= 0x00000010; } break; } // case -7264 case -7254: { optionalString_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case -7254 case -7246: { optionalBytes_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case -7246 case -7238: { input.readMessage( getOptionalMessageFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case -7238 case -7229: { input.readGroup(536870008, getOptionalGroupFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case -7229 case -7214: { com.google.protobuf.MapEntry stringStringMap__ = input.readMessage( StringStringMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableStringStringMap().getMutableMap().put( stringStringMap__.getKey(), stringStringMap__.getValue()); bitField0_ |= 0x00000200; break; } // case -7214 case -7208: { oneofField_ = input.readUInt32(); oneofFieldCase_ = 536870011; break; } // case -7208 case -7198: { input.readMessage( getOneofTestAllTypesFieldBuilder().getBuilder(), extensionRegistry); oneofFieldCase_ = 536870012; break; } // case -7198 case -7190: { com.google.protobuf.ByteString bs = input.readBytes(); oneofFieldCase_ = 536870013; oneofField_ = bs; break; } // case -7190 case -7182: { oneofField_ = input.readBytes(); oneofFieldCase_ = 536870014; break; } // case -7182 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int oneofFieldCase_ = 0; private java.lang.Object oneofField_; public OneofFieldCase getOneofFieldCase() { return OneofFieldCase.forNumber( oneofFieldCase_); } public Builder clearOneofField() { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); return this; } private int bitField0_; private int optionalInt32_ ; /** * optional int32 optional_int32 = 536870000; * @return Whether the optionalInt32 field is set. */ @java.lang.Override public boolean hasOptionalInt32() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 optional_int32 = 536870000; * @return The optionalInt32. */ @java.lang.Override public int getOptionalInt32() { return optionalInt32_; } /** * optional int32 optional_int32 = 536870000; * @param value The optionalInt32 to set. * @return This builder for chaining. */ public Builder setOptionalInt32(int value) { optionalInt32_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 optional_int32 = 536870000; * @return This builder for chaining. */ public Builder clearOptionalInt32() { bitField0_ = (bitField0_ & ~0x00000001); optionalInt32_ = 0; onChanged(); return this; } private int fixed32_ ; /** * optional int32 fixed_32 = 536870001; * @return Whether the fixed32 field is set. */ @java.lang.Override public boolean hasFixed32() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 fixed_32 = 536870001; * @return The fixed32. */ @java.lang.Override public int getFixed32() { return fixed32_; } /** * optional int32 fixed_32 = 536870001; * @param value The fixed32 to set. * @return This builder for chaining. */ public Builder setFixed32(int value) { fixed32_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int32 fixed_32 = 536870001; * @return This builder for chaining. */ public Builder clearFixed32() { bitField0_ = (bitField0_ & ~0x00000002); fixed32_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.IntList repeatedInt32_ = emptyIntList(); private void ensureRepeatedInt32IsMutable() { if (!repeatedInt32_.isModifiable()) { repeatedInt32_ = makeMutableCopy(repeatedInt32_); } bitField0_ |= 0x00000004; } /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @return A list containing the repeatedInt32. */ public java.util.List getRepeatedInt32List() { repeatedInt32_.makeImmutable(); return repeatedInt32_; } /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @return The count of repeatedInt32. */ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ public int getRepeatedInt32(int index) { return repeatedInt32_.getInt(index); } /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @param index The index to set the value at. * @param value The repeatedInt32 to set. * @return This builder for chaining. */ public Builder setRepeatedInt32( int index, int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.setInt(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @param value The repeatedInt32 to add. * @return This builder for chaining. */ public Builder addRepeatedInt32(int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.addInt(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @param values The repeatedInt32 to add. * @return This builder for chaining. */ public Builder addAllRepeatedInt32( java.lang.Iterable values) { ensureRepeatedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedInt32_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated int32 repeated_int32 = 536870002 [packed = false]; * @return This builder for chaining. */ public Builder clearRepeatedInt32() { repeatedInt32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private com.google.protobuf.Internal.IntList packedInt32_ = emptyIntList(); private void ensurePackedInt32IsMutable() { if (!packedInt32_.isModifiable()) { packedInt32_ = makeMutableCopy(packedInt32_); } bitField0_ |= 0x00000008; } /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @return A list containing the packedInt32. */ public java.util.List getPackedInt32List() { packedInt32_.makeImmutable(); return packedInt32_; } /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @return The count of packedInt32. */ public int getPackedInt32Count() { return packedInt32_.size(); } /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @param index The index of the element to return. * @return The packedInt32 at the given index. */ public int getPackedInt32(int index) { return packedInt32_.getInt(index); } /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @param index The index to set the value at. * @param value The packedInt32 to set. * @return This builder for chaining. */ public Builder setPackedInt32( int index, int value) { ensurePackedInt32IsMutable(); packedInt32_.setInt(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @param value The packedInt32 to add. * @return This builder for chaining. */ public Builder addPackedInt32(int value) { ensurePackedInt32IsMutable(); packedInt32_.addInt(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @param values The packedInt32 to add. * @return This builder for chaining. */ public Builder addAllPackedInt32( java.lang.Iterable values) { ensurePackedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packedInt32_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated int32 packed_int32 = 536870003 [packed = true]; * @return This builder for chaining. */ public Builder clearPackedInt32() { packedInt32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private int optionalEnum_ = 4; /** * optional .proto2_unittest.ForeignEnumLite optional_enum = 536870004; * @return Whether the optionalEnum field is set. */ @java.lang.Override public boolean hasOptionalEnum() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .proto2_unittest.ForeignEnumLite optional_enum = 536870004; * @return The optionalEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignEnumLite getOptionalEnum() { com.google.protobuf.UnittestLite.ForeignEnumLite result = com.google.protobuf.UnittestLite.ForeignEnumLite.forNumber(optionalEnum_); return result == null ? com.google.protobuf.UnittestLite.ForeignEnumLite.FOREIGN_LITE_FOO : result; } /** * optional .proto2_unittest.ForeignEnumLite optional_enum = 536870004; * @param value The optionalEnum to set. * @return This builder for chaining. */ public Builder setOptionalEnum(com.google.protobuf.UnittestLite.ForeignEnumLite value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; optionalEnum_ = value.getNumber(); onChanged(); return this; } /** * optional .proto2_unittest.ForeignEnumLite optional_enum = 536870004; * @return This builder for chaining. */ public Builder clearOptionalEnum() { bitField0_ = (bitField0_ & ~0x00000010); optionalEnum_ = 4; onChanged(); return this; } private java.lang.Object optionalString_ = ""; /** * optional string optional_string = 536870005; * @return Whether the optionalString field is set. */ public boolean hasOptionalString() { return ((bitField0_ & 0x00000020) != 0); } /** * optional string optional_string = 536870005; * @return The optionalString. */ public java.lang.String getOptionalString() { java.lang.Object ref = optionalString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { optionalString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string optional_string = 536870005; * @return The bytes for optionalString. */ public com.google.protobuf.ByteString getOptionalStringBytes() { java.lang.Object ref = optionalString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); optionalString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string optional_string = 536870005; * @param value The optionalString to set. * @return This builder for chaining. */ public Builder setOptionalString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } optionalString_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional string optional_string = 536870005; * @return This builder for chaining. */ public Builder clearOptionalString() { optionalString_ = getDefaultInstance().getOptionalString(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * optional string optional_string = 536870005; * @param value The bytes for optionalString to set. * @return This builder for chaining. */ public Builder setOptionalStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } optionalString_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes optional_bytes = 536870006; * @return Whether the optionalBytes field is set. */ @java.lang.Override public boolean hasOptionalBytes() { return ((bitField0_ & 0x00000040) != 0); } /** * optional bytes optional_bytes = 536870006; * @return The optionalBytes. */ @java.lang.Override public com.google.protobuf.ByteString getOptionalBytes() { return optionalBytes_; } /** * optional bytes optional_bytes = 536870006; * @param value The optionalBytes to set. * @return This builder for chaining. */ public Builder setOptionalBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } optionalBytes_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional bytes optional_bytes = 536870006; * @return This builder for chaining. */ public Builder clearOptionalBytes() { bitField0_ = (bitField0_ & ~0x00000040); optionalBytes_ = getDefaultInstance().getOptionalBytes(); onChanged(); return this; } private com.google.protobuf.UnittestLite.ForeignMessageLite optionalMessage_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder> optionalMessageBuilder_; /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; * @return Whether the optionalMessage field is set. */ public boolean hasOptionalMessage() { return ((bitField0_ & 0x00000080) != 0); } /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; * @return The optionalMessage. */ public com.google.protobuf.UnittestLite.ForeignMessageLite getOptionalMessage() { if (optionalMessageBuilder_ == null) { return optionalMessage_ == null ? com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance() : optionalMessage_; } else { return optionalMessageBuilder_.getMessage(); } } /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; */ public Builder setOptionalMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) { if (optionalMessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalMessage_ = value; } else { optionalMessageBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; */ public Builder setOptionalMessage( com.google.protobuf.UnittestLite.ForeignMessageLite.Builder builderForValue) { if (optionalMessageBuilder_ == null) { optionalMessage_ = builderForValue.build(); } else { optionalMessageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; */ public Builder mergeOptionalMessage(com.google.protobuf.UnittestLite.ForeignMessageLite value) { if (optionalMessageBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && optionalMessage_ != null && optionalMessage_ != com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()) { getOptionalMessageBuilder().mergeFrom(value); } else { optionalMessage_ = value; } } else { optionalMessageBuilder_.mergeFrom(value); } if (optionalMessage_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; */ public Builder clearOptionalMessage() { bitField0_ = (bitField0_ & ~0x00000080); optionalMessage_ = null; if (optionalMessageBuilder_ != null) { optionalMessageBuilder_.dispose(); optionalMessageBuilder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; */ public com.google.protobuf.UnittestLite.ForeignMessageLite.Builder getOptionalMessageBuilder() { bitField0_ |= 0x00000080; onChanged(); return getOptionalMessageFieldBuilder().getBuilder(); } /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; */ public com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder getOptionalMessageOrBuilder() { if (optionalMessageBuilder_ != null) { return optionalMessageBuilder_.getMessageOrBuilder(); } else { return optionalMessage_ == null ? com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance() : optionalMessage_; } } /** * optional .proto2_unittest.ForeignMessageLite optional_message = 536870007; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder> getOptionalMessageFieldBuilder() { if (optionalMessageBuilder_ == null) { optionalMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder>( getOptionalMessage(), getParentForChildren(), isClean()); optionalMessage_ = null; } return optionalMessageBuilder_; } private com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup optionalGroup_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup, com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroupOrBuilder> optionalGroupBuilder_; /** * optional group OptionalGroup = 536870008 { ... } * @return Whether the optionalgroup field is set. */ public boolean hasOptionalGroup() { return ((bitField0_ & 0x00000100) != 0); } /** * optional group OptionalGroup = 536870008 { ... } * @return The optionalgroup. */ public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup getOptionalGroup() { if (optionalGroupBuilder_ == null) { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } else { return optionalGroupBuilder_.getMessage(); } } /** * optional group OptionalGroup = 536870008 { ... } */ public Builder setOptionalGroup(com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup value) { if (optionalGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionalGroup_ = value; } else { optionalGroupBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional group OptionalGroup = 536870008 { ... } */ public Builder setOptionalGroup( com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.Builder builderForValue) { if (optionalGroupBuilder_ == null) { optionalGroup_ = builderForValue.build(); } else { optionalGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional group OptionalGroup = 536870008 { ... } */ public Builder mergeOptionalGroup(com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup value) { if (optionalGroupBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && optionalGroup_ != null && optionalGroup_ != com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.getDefaultInstance()) { getOptionalGroupBuilder().mergeFrom(value); } else { optionalGroup_ = value; } } else { optionalGroupBuilder_.mergeFrom(value); } if (optionalGroup_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * optional group OptionalGroup = 536870008 { ... } */ public Builder clearOptionalGroup() { bitField0_ = (bitField0_ & ~0x00000100); optionalGroup_ = null; if (optionalGroupBuilder_ != null) { optionalGroupBuilder_.dispose(); optionalGroupBuilder_ = null; } onChanged(); return this; } /** * optional group OptionalGroup = 536870008 { ... } */ public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.Builder getOptionalGroupBuilder() { bitField0_ |= 0x00000100; onChanged(); return getOptionalGroupFieldBuilder().getBuilder(); } /** * optional group OptionalGroup = 536870008 { ... } */ public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroupOrBuilder getOptionalGroupOrBuilder() { if (optionalGroupBuilder_ != null) { return optionalGroupBuilder_.getMessageOrBuilder(); } else { return optionalGroup_ == null ? com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.getDefaultInstance() : optionalGroup_; } } /** * optional group OptionalGroup = 536870008 { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup, com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroupOrBuilder> getOptionalGroupFieldBuilder() { if (optionalGroupBuilder_ == null) { optionalGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup, com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroup.Builder, com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite.OptionalGroupOrBuilder>( getOptionalGroup(), getParentForChildren(), isClean()); optionalGroup_ = null; } return optionalGroupBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> stringStringMap_; private com.google.protobuf.MapField internalGetStringStringMap() { if (stringStringMap_ == null) { return com.google.protobuf.MapField.emptyMapField( StringStringMapDefaultEntryHolder.defaultEntry); } return stringStringMap_; } private com.google.protobuf.MapField internalGetMutableStringStringMap() { if (stringStringMap_ == null) { stringStringMap_ = com.google.protobuf.MapField.newMapField( StringStringMapDefaultEntryHolder.defaultEntry); } if (!stringStringMap_.isMutable()) { stringStringMap_ = stringStringMap_.copy(); } bitField0_ |= 0x00000200; onChanged(); return stringStringMap_; } public int getStringStringMapCount() { return internalGetStringStringMap().getMap().size(); } /** * map<string, string> string_string_map = 536870010; */ @java.lang.Override public boolean containsStringStringMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetStringStringMap().getMap().containsKey(key); } /** * Use {@link #getStringStringMapMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getStringStringMap() { return getStringStringMapMap(); } /** * map<string, string> string_string_map = 536870010; */ @java.lang.Override public java.util.Map getStringStringMapMap() { return internalGetStringStringMap().getMap(); } /** * map<string, string> string_string_map = 536870010; */ @java.lang.Override public /* nullable */ java.lang.String getStringStringMapOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetStringStringMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> string_string_map = 536870010; */ @java.lang.Override public java.lang.String getStringStringMapOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetStringStringMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearStringStringMap() { bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableStringStringMap().getMutableMap() .clear(); return this; } /** * map<string, string> string_string_map = 536870010; */ public Builder removeStringStringMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableStringStringMap().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableStringStringMap() { bitField0_ |= 0x00000200; return internalGetMutableStringStringMap().getMutableMap(); } /** * map<string, string> string_string_map = 536870010; */ public Builder putStringStringMap( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableStringStringMap().getMutableMap() .put(key, value); bitField0_ |= 0x00000200; return this; } /** * map<string, string> string_string_map = 536870010; */ public Builder putAllStringStringMap( java.util.Map values) { internalGetMutableStringStringMap().getMutableMap() .putAll(values); bitField0_ |= 0x00000200; return this; } /** * uint32 oneof_uint32 = 536870011; * @return Whether the oneofUint32 field is set. */ public boolean hasOneofUint32() { return oneofFieldCase_ == 536870011; } /** * uint32 oneof_uint32 = 536870011; * @return The oneofUint32. */ public int getOneofUint32() { if (oneofFieldCase_ == 536870011) { return (java.lang.Integer) oneofField_; } return 0; } /** * uint32 oneof_uint32 = 536870011; * @param value The oneofUint32 to set. * @return This builder for chaining. */ public Builder setOneofUint32(int value) { oneofFieldCase_ = 536870011; oneofField_ = value; onChanged(); return this; } /** * uint32 oneof_uint32 = 536870011; * @return This builder for chaining. */ public Builder clearOneofUint32() { if (oneofFieldCase_ == 536870011) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> oneofTestAllTypesBuilder_; /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; * @return Whether the oneofTestAllTypes field is set. */ @java.lang.Override public boolean hasOneofTestAllTypes() { return oneofFieldCase_ == 536870012; } /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; * @return The oneofTestAllTypes. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getOneofTestAllTypes() { if (oneofTestAllTypesBuilder_ == null) { if (oneofFieldCase_ == 536870012) { return (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } else { if (oneofFieldCase_ == 536870012) { return oneofTestAllTypesBuilder_.getMessage(); } return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } } /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; */ public Builder setOneofTestAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (oneofTestAllTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oneofField_ = value; onChanged(); } else { oneofTestAllTypesBuilder_.setMessage(value); } oneofFieldCase_ = 536870012; return this; } /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; */ public Builder setOneofTestAllTypes( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (oneofTestAllTypesBuilder_ == null) { oneofField_ = builderForValue.build(); onChanged(); } else { oneofTestAllTypesBuilder_.setMessage(builderForValue.build()); } oneofFieldCase_ = 536870012; return this; } /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; */ public Builder mergeOneofTestAllTypes(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (oneofTestAllTypesBuilder_ == null) { if (oneofFieldCase_ == 536870012 && oneofField_ != com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()) { oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.newBuilder((com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_) .mergeFrom(value).buildPartial(); } else { oneofField_ = value; } onChanged(); } else { if (oneofFieldCase_ == 536870012) { oneofTestAllTypesBuilder_.mergeFrom(value); } else { oneofTestAllTypesBuilder_.setMessage(value); } } oneofFieldCase_ = 536870012; return this; } /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; */ public Builder clearOneofTestAllTypes() { if (oneofTestAllTypesBuilder_ == null) { if (oneofFieldCase_ == 536870012) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } } else { if (oneofFieldCase_ == 536870012) { oneofFieldCase_ = 0; oneofField_ = null; } oneofTestAllTypesBuilder_.clear(); } return this; } /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getOneofTestAllTypesBuilder() { return getOneofTestAllTypesFieldBuilder().getBuilder(); } /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOneofTestAllTypesOrBuilder() { if ((oneofFieldCase_ == 536870012) && (oneofTestAllTypesBuilder_ != null)) { return oneofTestAllTypesBuilder_.getMessageOrBuilder(); } else { if (oneofFieldCase_ == 536870012) { return (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } } /** * .proto2_unittest.TestAllTypesLite oneof_test_all_types = 536870012; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getOneofTestAllTypesFieldBuilder() { if (oneofTestAllTypesBuilder_ == null) { if (!(oneofFieldCase_ == 536870012)) { oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } oneofTestAllTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_, getParentForChildren(), isClean()); oneofField_ = null; } oneofFieldCase_ = 536870012; onChanged(); return oneofTestAllTypesBuilder_; } /** * string oneof_string = 536870013; * @return Whether the oneofString field is set. */ @java.lang.Override public boolean hasOneofString() { return oneofFieldCase_ == 536870013; } /** * string oneof_string = 536870013; * @return The oneofString. */ @java.lang.Override public java.lang.String getOneofString() { java.lang.Object ref = ""; if (oneofFieldCase_ == 536870013) { ref = oneofField_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofFieldCase_ == 536870013) { if (bs.isValidUtf8()) { oneofField_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * string oneof_string = 536870013; * @return The bytes for oneofString. */ @java.lang.Override public com.google.protobuf.ByteString getOneofStringBytes() { java.lang.Object ref = ""; if (oneofFieldCase_ == 536870013) { ref = oneofField_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 536870013) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string oneof_string = 536870013; * @param value The oneofString to set. * @return This builder for chaining. */ public Builder setOneofString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 536870013; oneofField_ = value; onChanged(); return this; } /** * string oneof_string = 536870013; * @return This builder for chaining. */ public Builder clearOneofString() { if (oneofFieldCase_ == 536870013) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } /** * string oneof_string = 536870013; * @param value The bytes for oneofString to set. * @return This builder for chaining. */ public Builder setOneofStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 536870013; oneofField_ = value; onChanged(); return this; } /** * bytes oneof_bytes = 536870014; * @return Whether the oneofBytes field is set. */ public boolean hasOneofBytes() { return oneofFieldCase_ == 536870014; } /** * bytes oneof_bytes = 536870014; * @return The oneofBytes. */ public com.google.protobuf.ByteString getOneofBytes() { if (oneofFieldCase_ == 536870014) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes oneof_bytes = 536870014; * @param value The oneofBytes to set. * @return This builder for chaining. */ public Builder setOneofBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 536870014; oneofField_ = value; onChanged(); return this; } /** * bytes oneof_bytes = 536870014; * @return This builder for chaining. */ public Builder clearOneofBytes() { if (oneofFieldCase_ == 536870014) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestHugeFieldNumbersLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestHugeFieldNumbersLite) private static final com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite(); } public static com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestHugeFieldNumbersLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestOneofParsingLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestOneofParsingLite) com.google.protobuf.MessageOrBuilder { /** * int32 oneof_int32 = 1; * @return Whether the oneofInt32 field is set. */ boolean hasOneofInt32(); /** * int32 oneof_int32 = 1; * @return The oneofInt32. */ int getOneofInt32(); /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; * @return Whether the oneofSubmessage field is set. */ boolean hasOneofSubmessage(); /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; * @return The oneofSubmessage. */ com.google.protobuf.UnittestLite.TestAllTypesLite getOneofSubmessage(); /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; */ com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOneofSubmessageOrBuilder(); /** * string oneof_string = 3; * @return Whether the oneofString field is set. */ boolean hasOneofString(); /** * string oneof_string = 3; * @return The oneofString. */ java.lang.String getOneofString(); /** * string oneof_string = 3; * @return The bytes for oneofString. */ com.google.protobuf.ByteString getOneofStringBytes(); /** * bytes oneof_bytes = 4 [default = "default bytes"]; * @return Whether the oneofBytes field is set. */ boolean hasOneofBytes(); /** * bytes oneof_bytes = 4 [default = "default bytes"]; * @return The oneofBytes. */ com.google.protobuf.ByteString getOneofBytes(); /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @return Whether the oneofStringCord field is set. */ boolean hasOneofStringCord(); /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @return The oneofStringCord. */ java.lang.String getOneofStringCord(); /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @return The bytes for oneofStringCord. */ com.google.protobuf.ByteString getOneofStringCordBytes(); /** * bytes oneof_bytes_cord = 6 [ctype = CORD]; * @return Whether the oneofBytesCord field is set. */ boolean hasOneofBytesCord(); /** * bytes oneof_bytes_cord = 6 [ctype = CORD]; * @return The oneofBytesCord. */ com.google.protobuf.ByteString getOneofBytesCord(); /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @return Whether the oneofStringStringPiece field is set. */ boolean hasOneofStringStringPiece(); /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @return The oneofStringStringPiece. */ java.lang.String getOneofStringStringPiece(); /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @return The bytes for oneofStringStringPiece. */ com.google.protobuf.ByteString getOneofStringStringPieceBytes(); /** * bytes oneof_bytes_string_piece = 8 [default = "default StringPiece", ctype = STRING_PIECE]; * @return Whether the oneofBytesStringPiece field is set. */ boolean hasOneofBytesStringPiece(); /** * bytes oneof_bytes_string_piece = 8 [default = "default StringPiece", ctype = STRING_PIECE]; * @return The oneofBytesStringPiece. */ com.google.protobuf.ByteString getOneofBytesStringPiece(); /** * .proto2_unittest.V2EnumLite oneof_enum = 9; * @return Whether the oneofEnum field is set. */ boolean hasOneofEnum(); /** * .proto2_unittest.V2EnumLite oneof_enum = 9; * @return The oneofEnum. */ com.google.protobuf.UnittestLite.V2EnumLite getOneofEnum(); com.google.protobuf.UnittestLite.TestOneofParsingLite.OneofFieldCase getOneofFieldCase(); } /** * Protobuf type {@code proto2_unittest.TestOneofParsingLite} */ public static final class TestOneofParsingLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestOneofParsingLite) TestOneofParsingLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestOneofParsingLite.newBuilder() to construct. private TestOneofParsingLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestOneofParsingLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestOneofParsingLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestOneofParsingLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestOneofParsingLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestOneofParsingLite.class, com.google.protobuf.UnittestLite.TestOneofParsingLite.Builder.class); } private int oneofFieldCase_ = 0; @SuppressWarnings("serial") private java.lang.Object oneofField_; public enum OneofFieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ONEOF_INT32(1), ONEOF_SUBMESSAGE(2), ONEOF_STRING(3), ONEOF_BYTES(4), ONEOF_STRING_CORD(5), ONEOF_BYTES_CORD(6), ONEOF_STRING_STRING_PIECE(7), ONEOF_BYTES_STRING_PIECE(8), ONEOF_ENUM(9), ONEOFFIELD_NOT_SET(0); private final int value; private OneofFieldCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static OneofFieldCase valueOf(int value) { return forNumber(value); } public static OneofFieldCase forNumber(int value) { switch (value) { case 1: return ONEOF_INT32; case 2: return ONEOF_SUBMESSAGE; case 3: return ONEOF_STRING; case 4: return ONEOF_BYTES; case 5: return ONEOF_STRING_CORD; case 6: return ONEOF_BYTES_CORD; case 7: return ONEOF_STRING_STRING_PIECE; case 8: return ONEOF_BYTES_STRING_PIECE; case 9: return ONEOF_ENUM; case 0: return ONEOFFIELD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public OneofFieldCase getOneofFieldCase() { return OneofFieldCase.forNumber( oneofFieldCase_); } public static final int ONEOF_INT32_FIELD_NUMBER = 1; /** * int32 oneof_int32 = 1; * @return Whether the oneofInt32 field is set. */ @java.lang.Override public boolean hasOneofInt32() { return oneofFieldCase_ == 1; } /** * int32 oneof_int32 = 1; * @return The oneofInt32. */ @java.lang.Override public int getOneofInt32() { if (oneofFieldCase_ == 1) { return (java.lang.Integer) oneofField_; } return 0; } public static final int ONEOF_SUBMESSAGE_FIELD_NUMBER = 2; /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; * @return Whether the oneofSubmessage field is set. */ @java.lang.Override public boolean hasOneofSubmessage() { return oneofFieldCase_ == 2; } /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; * @return The oneofSubmessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getOneofSubmessage() { if (oneofFieldCase_ == 2) { return (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOneofSubmessageOrBuilder() { if (oneofFieldCase_ == 2) { return (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } public static final int ONEOF_STRING_FIELD_NUMBER = 3; /** * string oneof_string = 3; * @return Whether the oneofString field is set. */ public boolean hasOneofString() { return oneofFieldCase_ == 3; } /** * string oneof_string = 3; * @return The oneofString. */ public java.lang.String getOneofString() { java.lang.Object ref = ""; if (oneofFieldCase_ == 3) { ref = oneofField_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8() && (oneofFieldCase_ == 3)) { oneofField_ = s; } return s; } } /** * string oneof_string = 3; * @return The bytes for oneofString. */ public com.google.protobuf.ByteString getOneofStringBytes() { java.lang.Object ref = ""; if (oneofFieldCase_ == 3) { ref = oneofField_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 3) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONEOF_BYTES_FIELD_NUMBER = 4; /** * bytes oneof_bytes = 4 [default = "default bytes"]; * @return Whether the oneofBytes field is set. */ @java.lang.Override public boolean hasOneofBytes() { return oneofFieldCase_ == 4; } /** * bytes oneof_bytes = 4 [default = "default bytes"]; * @return The oneofBytes. */ @java.lang.Override public com.google.protobuf.ByteString getOneofBytes() { if (oneofFieldCase_ == 4) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.Internal.bytesDefaultValue("default bytes"); } public static final int ONEOF_STRING_CORD_FIELD_NUMBER = 5; /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @return Whether the oneofStringCord field is set. */ public boolean hasOneofStringCord() { return oneofFieldCase_ == 5; } /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @return The oneofStringCord. */ public java.lang.String getOneofStringCord() { java.lang.Object ref = "default Cord"; if (oneofFieldCase_ == 5) { ref = oneofField_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8() && (oneofFieldCase_ == 5)) { oneofField_ = s; } return s; } } /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @return The bytes for oneofStringCord. */ public com.google.protobuf.ByteString getOneofStringCordBytes() { java.lang.Object ref = "default Cord"; if (oneofFieldCase_ == 5) { ref = oneofField_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 5) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONEOF_BYTES_CORD_FIELD_NUMBER = 6; /** * bytes oneof_bytes_cord = 6 [ctype = CORD]; * @return Whether the oneofBytesCord field is set. */ @java.lang.Override public boolean hasOneofBytesCord() { return oneofFieldCase_ == 6; } /** * bytes oneof_bytes_cord = 6 [ctype = CORD]; * @return The oneofBytesCord. */ @java.lang.Override public com.google.protobuf.ByteString getOneofBytesCord() { if (oneofFieldCase_ == 6) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.ByteString.EMPTY; } public static final int ONEOF_STRING_STRING_PIECE_FIELD_NUMBER = 7; /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @return Whether the oneofStringStringPiece field is set. */ public boolean hasOneofStringStringPiece() { return oneofFieldCase_ == 7; } /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @return The oneofStringStringPiece. */ public java.lang.String getOneofStringStringPiece() { java.lang.Object ref = ""; if (oneofFieldCase_ == 7) { ref = oneofField_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8() && (oneofFieldCase_ == 7)) { oneofField_ = s; } return s; } } /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @return The bytes for oneofStringStringPiece. */ public com.google.protobuf.ByteString getOneofStringStringPieceBytes() { java.lang.Object ref = ""; if (oneofFieldCase_ == 7) { ref = oneofField_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 7) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONEOF_BYTES_STRING_PIECE_FIELD_NUMBER = 8; /** * bytes oneof_bytes_string_piece = 8 [default = "default StringPiece", ctype = STRING_PIECE]; * @return Whether the oneofBytesStringPiece field is set. */ @java.lang.Override public boolean hasOneofBytesStringPiece() { return oneofFieldCase_ == 8; } /** * bytes oneof_bytes_string_piece = 8 [default = "default StringPiece", ctype = STRING_PIECE]; * @return The oneofBytesStringPiece. */ @java.lang.Override public com.google.protobuf.ByteString getOneofBytesStringPiece() { if (oneofFieldCase_ == 8) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.Internal.bytesDefaultValue("default StringPiece"); } public static final int ONEOF_ENUM_FIELD_NUMBER = 9; /** * .proto2_unittest.V2EnumLite oneof_enum = 9; * @return Whether the oneofEnum field is set. */ public boolean hasOneofEnum() { return oneofFieldCase_ == 9; } /** * .proto2_unittest.V2EnumLite oneof_enum = 9; * @return The oneofEnum. */ public com.google.protobuf.UnittestLite.V2EnumLite getOneofEnum() { if (oneofFieldCase_ == 9) { com.google.protobuf.UnittestLite.V2EnumLite result = com.google.protobuf.UnittestLite.V2EnumLite.forNumber( (java.lang.Integer) oneofField_); return result == null ? com.google.protobuf.UnittestLite.V2EnumLite.V2_FIRST : result; } return com.google.protobuf.UnittestLite.V2EnumLite.V2_FIRST; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (oneofFieldCase_ == 1) { output.writeInt32( 1, (int)((java.lang.Integer) oneofField_)); } if (oneofFieldCase_ == 2) { output.writeMessage(2, (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_); } if (oneofFieldCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oneofField_); } if (oneofFieldCase_ == 4) { output.writeBytes( 4, (com.google.protobuf.ByteString) oneofField_); } if (oneofFieldCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, oneofField_); } if (oneofFieldCase_ == 6) { output.writeBytes( 6, (com.google.protobuf.ByteString) oneofField_); } if (oneofFieldCase_ == 7) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, oneofField_); } if (oneofFieldCase_ == 8) { output.writeBytes( 8, (com.google.protobuf.ByteString) oneofField_); } if (oneofFieldCase_ == 9) { output.writeEnum(9, ((java.lang.Integer) oneofField_)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (oneofFieldCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 1, (int)((java.lang.Integer) oneofField_)); } if (oneofFieldCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_); } if (oneofFieldCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oneofField_); } if (oneofFieldCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 4, (com.google.protobuf.ByteString) oneofField_); } if (oneofFieldCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, oneofField_); } if (oneofFieldCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 6, (com.google.protobuf.ByteString) oneofField_); } if (oneofFieldCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, oneofField_); } if (oneofFieldCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 8, (com.google.protobuf.ByteString) oneofField_); } if (oneofFieldCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, ((java.lang.Integer) oneofField_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestOneofParsingLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestOneofParsingLite other = (com.google.protobuf.UnittestLite.TestOneofParsingLite) obj; if (!getOneofFieldCase().equals(other.getOneofFieldCase())) return false; switch (oneofFieldCase_) { case 1: if (getOneofInt32() != other.getOneofInt32()) return false; break; case 2: if (!getOneofSubmessage() .equals(other.getOneofSubmessage())) return false; break; case 3: if (!getOneofString() .equals(other.getOneofString())) return false; break; case 4: if (!getOneofBytes() .equals(other.getOneofBytes())) return false; break; case 5: if (!getOneofStringCord() .equals(other.getOneofStringCord())) return false; break; case 6: if (!getOneofBytesCord() .equals(other.getOneofBytesCord())) return false; break; case 7: if (!getOneofStringStringPiece() .equals(other.getOneofStringStringPiece())) return false; break; case 8: if (!getOneofBytesStringPiece() .equals(other.getOneofBytesStringPiece())) return false; break; case 9: if (!getOneofEnum() .equals(other.getOneofEnum())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (oneofFieldCase_) { case 1: hash = (37 * hash) + ONEOF_INT32_FIELD_NUMBER; hash = (53 * hash) + getOneofInt32(); break; case 2: hash = (37 * hash) + ONEOF_SUBMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getOneofSubmessage().hashCode(); break; case 3: hash = (37 * hash) + ONEOF_STRING_FIELD_NUMBER; hash = (53 * hash) + getOneofString().hashCode(); break; case 4: hash = (37 * hash) + ONEOF_BYTES_FIELD_NUMBER; hash = (53 * hash) + getOneofBytes().hashCode(); break; case 5: hash = (37 * hash) + ONEOF_STRING_CORD_FIELD_NUMBER; hash = (53 * hash) + getOneofStringCord().hashCode(); break; case 6: hash = (37 * hash) + ONEOF_BYTES_CORD_FIELD_NUMBER; hash = (53 * hash) + getOneofBytesCord().hashCode(); break; case 7: hash = (37 * hash) + ONEOF_STRING_STRING_PIECE_FIELD_NUMBER; hash = (53 * hash) + getOneofStringStringPiece().hashCode(); break; case 8: hash = (37 * hash) + ONEOF_BYTES_STRING_PIECE_FIELD_NUMBER; hash = (53 * hash) + getOneofBytesStringPiece().hashCode(); break; case 9: hash = (37 * hash) + ONEOF_ENUM_FIELD_NUMBER; hash = (53 * hash) + getOneofEnum().getNumber(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestOneofParsingLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestOneofParsingLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestOneofParsingLite) com.google.protobuf.UnittestLite.TestOneofParsingLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestOneofParsingLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestOneofParsingLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestOneofParsingLite.class, com.google.protobuf.UnittestLite.TestOneofParsingLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestOneofParsingLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (oneofSubmessageBuilder_ != null) { oneofSubmessageBuilder_.clear(); } oneofFieldCase_ = 0; oneofField_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestOneofParsingLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestOneofParsingLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestOneofParsingLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestOneofParsingLite build() { com.google.protobuf.UnittestLite.TestOneofParsingLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestOneofParsingLite buildPartial() { com.google.protobuf.UnittestLite.TestOneofParsingLite result = new com.google.protobuf.UnittestLite.TestOneofParsingLite(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.TestOneofParsingLite result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.google.protobuf.UnittestLite.TestOneofParsingLite result) { result.oneofFieldCase_ = oneofFieldCase_; result.oneofField_ = this.oneofField_; if (oneofFieldCase_ == 2 && oneofSubmessageBuilder_ != null) { result.oneofField_ = oneofSubmessageBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestOneofParsingLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestOneofParsingLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestOneofParsingLite other) { if (other == com.google.protobuf.UnittestLite.TestOneofParsingLite.getDefaultInstance()) return this; switch (other.getOneofFieldCase()) { case ONEOF_INT32: { setOneofInt32(other.getOneofInt32()); break; } case ONEOF_SUBMESSAGE: { mergeOneofSubmessage(other.getOneofSubmessage()); break; } case ONEOF_STRING: { oneofFieldCase_ = 3; oneofField_ = other.oneofField_; onChanged(); break; } case ONEOF_BYTES: { setOneofBytes(other.getOneofBytes()); break; } case ONEOF_STRING_CORD: { oneofFieldCase_ = 5; oneofField_ = other.oneofField_; onChanged(); break; } case ONEOF_BYTES_CORD: { setOneofBytesCord(other.getOneofBytesCord()); break; } case ONEOF_STRING_STRING_PIECE: { oneofFieldCase_ = 7; oneofField_ = other.oneofField_; onChanged(); break; } case ONEOF_BYTES_STRING_PIECE: { setOneofBytesStringPiece(other.getOneofBytesStringPiece()); break; } case ONEOF_ENUM: { setOneofEnum(other.getOneofEnum()); break; } case ONEOFFIELD_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { oneofField_ = input.readInt32(); oneofFieldCase_ = 1; break; } // case 8 case 18: { input.readMessage( getOneofSubmessageFieldBuilder().getBuilder(), extensionRegistry); oneofFieldCase_ = 2; break; } // case 18 case 26: { com.google.protobuf.ByteString bs = input.readBytes(); oneofFieldCase_ = 3; oneofField_ = bs; break; } // case 26 case 34: { oneofField_ = input.readBytes(); oneofFieldCase_ = 4; break; } // case 34 case 42: { com.google.protobuf.ByteString bs = input.readBytes(); oneofFieldCase_ = 5; oneofField_ = bs; break; } // case 42 case 50: { oneofField_ = input.readBytes(); oneofFieldCase_ = 6; break; } // case 50 case 58: { com.google.protobuf.ByteString bs = input.readBytes(); oneofFieldCase_ = 7; oneofField_ = bs; break; } // case 58 case 66: { oneofField_ = input.readBytes(); oneofFieldCase_ = 8; break; } // case 66 case 72: { int rawValue = input.readEnum(); com.google.protobuf.UnittestLite.V2EnumLite value = com.google.protobuf.UnittestLite.V2EnumLite.forNumber(rawValue); if (value == null) { mergeUnknownVarintField(9, rawValue); } else { oneofFieldCase_ = 9; oneofField_ = rawValue; } break; } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int oneofFieldCase_ = 0; private java.lang.Object oneofField_; public OneofFieldCase getOneofFieldCase() { return OneofFieldCase.forNumber( oneofFieldCase_); } public Builder clearOneofField() { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); return this; } private int bitField0_; /** * int32 oneof_int32 = 1; * @return Whether the oneofInt32 field is set. */ public boolean hasOneofInt32() { return oneofFieldCase_ == 1; } /** * int32 oneof_int32 = 1; * @return The oneofInt32. */ public int getOneofInt32() { if (oneofFieldCase_ == 1) { return (java.lang.Integer) oneofField_; } return 0; } /** * int32 oneof_int32 = 1; * @param value The oneofInt32 to set. * @return This builder for chaining. */ public Builder setOneofInt32(int value) { oneofFieldCase_ = 1; oneofField_ = value; onChanged(); return this; } /** * int32 oneof_int32 = 1; * @return This builder for chaining. */ public Builder clearOneofInt32() { if (oneofFieldCase_ == 1) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> oneofSubmessageBuilder_; /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; * @return Whether the oneofSubmessage field is set. */ @java.lang.Override public boolean hasOneofSubmessage() { return oneofFieldCase_ == 2; } /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; * @return The oneofSubmessage. */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getOneofSubmessage() { if (oneofSubmessageBuilder_ == null) { if (oneofFieldCase_ == 2) { return (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } else { if (oneofFieldCase_ == 2) { return oneofSubmessageBuilder_.getMessage(); } return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } } /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; */ public Builder setOneofSubmessage(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (oneofSubmessageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oneofField_ = value; onChanged(); } else { oneofSubmessageBuilder_.setMessage(value); } oneofFieldCase_ = 2; return this; } /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; */ public Builder setOneofSubmessage( com.google.protobuf.UnittestLite.TestAllTypesLite.Builder builderForValue) { if (oneofSubmessageBuilder_ == null) { oneofField_ = builderForValue.build(); onChanged(); } else { oneofSubmessageBuilder_.setMessage(builderForValue.build()); } oneofFieldCase_ = 2; return this; } /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; */ public Builder mergeOneofSubmessage(com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (oneofSubmessageBuilder_ == null) { if (oneofFieldCase_ == 2 && oneofField_ != com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()) { oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.newBuilder((com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_) .mergeFrom(value).buildPartial(); } else { oneofField_ = value; } onChanged(); } else { if (oneofFieldCase_ == 2) { oneofSubmessageBuilder_.mergeFrom(value); } else { oneofSubmessageBuilder_.setMessage(value); } } oneofFieldCase_ = 2; return this; } /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; */ public Builder clearOneofSubmessage() { if (oneofSubmessageBuilder_ == null) { if (oneofFieldCase_ == 2) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } } else { if (oneofFieldCase_ == 2) { oneofFieldCase_ = 0; oneofField_ = null; } oneofSubmessageBuilder_.clear(); } return this; } /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder getOneofSubmessageBuilder() { return getOneofSubmessageFieldBuilder().getBuilder(); } /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder getOneofSubmessageOrBuilder() { if ((oneofFieldCase_ == 2) && (oneofSubmessageBuilder_ != null)) { return oneofSubmessageBuilder_.getMessageOrBuilder(); } else { if (oneofFieldCase_ == 2) { return (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_; } return com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } } /** * .proto2_unittest.TestAllTypesLite oneof_submessage = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder> getOneofSubmessageFieldBuilder() { if (oneofSubmessageBuilder_ == null) { if (!(oneofFieldCase_ == 2)) { oneofField_ = com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance(); } oneofSubmessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder>( (com.google.protobuf.UnittestLite.TestAllTypesLite) oneofField_, getParentForChildren(), isClean()); oneofField_ = null; } oneofFieldCase_ = 2; onChanged(); return oneofSubmessageBuilder_; } /** * string oneof_string = 3; * @return Whether the oneofString field is set. */ @java.lang.Override public boolean hasOneofString() { return oneofFieldCase_ == 3; } /** * string oneof_string = 3; * @return The oneofString. */ @java.lang.Override public java.lang.String getOneofString() { java.lang.Object ref = ""; if (oneofFieldCase_ == 3) { ref = oneofField_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofFieldCase_ == 3) { if (bs.isValidUtf8()) { oneofField_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * string oneof_string = 3; * @return The bytes for oneofString. */ @java.lang.Override public com.google.protobuf.ByteString getOneofStringBytes() { java.lang.Object ref = ""; if (oneofFieldCase_ == 3) { ref = oneofField_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 3) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string oneof_string = 3; * @param value The oneofString to set. * @return This builder for chaining. */ public Builder setOneofString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 3; oneofField_ = value; onChanged(); return this; } /** * string oneof_string = 3; * @return This builder for chaining. */ public Builder clearOneofString() { if (oneofFieldCase_ == 3) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } /** * string oneof_string = 3; * @param value The bytes for oneofString to set. * @return This builder for chaining. */ public Builder setOneofStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 3; oneofField_ = value; onChanged(); return this; } /** * bytes oneof_bytes = 4 [default = "default bytes"]; * @return Whether the oneofBytes field is set. */ public boolean hasOneofBytes() { return oneofFieldCase_ == 4; } /** * bytes oneof_bytes = 4 [default = "default bytes"]; * @return The oneofBytes. */ public com.google.protobuf.ByteString getOneofBytes() { if (oneofFieldCase_ == 4) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.Internal.bytesDefaultValue("default bytes"); } /** * bytes oneof_bytes = 4 [default = "default bytes"]; * @param value The oneofBytes to set. * @return This builder for chaining. */ public Builder setOneofBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 4; oneofField_ = value; onChanged(); return this; } /** * bytes oneof_bytes = 4 [default = "default bytes"]; * @return This builder for chaining. */ public Builder clearOneofBytes() { if (oneofFieldCase_ == 4) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @return Whether the oneofStringCord field is set. */ @java.lang.Override public boolean hasOneofStringCord() { return oneofFieldCase_ == 5; } /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @return The oneofStringCord. */ @java.lang.Override public java.lang.String getOneofStringCord() { java.lang.Object ref = "default Cord"; if (oneofFieldCase_ == 5) { ref = oneofField_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofFieldCase_ == 5) { if (bs.isValidUtf8()) { oneofField_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @return The bytes for oneofStringCord. */ @java.lang.Override public com.google.protobuf.ByteString getOneofStringCordBytes() { java.lang.Object ref = "default Cord"; if (oneofFieldCase_ == 5) { ref = oneofField_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 5) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @param value The oneofStringCord to set. * @return This builder for chaining. */ public Builder setOneofStringCord( java.lang.String value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 5; oneofField_ = value; onChanged(); return this; } /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @return This builder for chaining. */ public Builder clearOneofStringCord() { if (oneofFieldCase_ == 5) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } /** * string oneof_string_cord = 5 [default = "default Cord", ctype = CORD]; * @param value The bytes for oneofStringCord to set. * @return This builder for chaining. */ public Builder setOneofStringCordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 5; oneofField_ = value; onChanged(); return this; } /** * bytes oneof_bytes_cord = 6 [ctype = CORD]; * @return Whether the oneofBytesCord field is set. */ public boolean hasOneofBytesCord() { return oneofFieldCase_ == 6; } /** * bytes oneof_bytes_cord = 6 [ctype = CORD]; * @return The oneofBytesCord. */ public com.google.protobuf.ByteString getOneofBytesCord() { if (oneofFieldCase_ == 6) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes oneof_bytes_cord = 6 [ctype = CORD]; * @param value The oneofBytesCord to set. * @return This builder for chaining. */ public Builder setOneofBytesCord(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 6; oneofField_ = value; onChanged(); return this; } /** * bytes oneof_bytes_cord = 6 [ctype = CORD]; * @return This builder for chaining. */ public Builder clearOneofBytesCord() { if (oneofFieldCase_ == 6) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @return Whether the oneofStringStringPiece field is set. */ @java.lang.Override public boolean hasOneofStringStringPiece() { return oneofFieldCase_ == 7; } /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @return The oneofStringStringPiece. */ @java.lang.Override public java.lang.String getOneofStringStringPiece() { java.lang.Object ref = ""; if (oneofFieldCase_ == 7) { ref = oneofField_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofFieldCase_ == 7) { if (bs.isValidUtf8()) { oneofField_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @return The bytes for oneofStringStringPiece. */ @java.lang.Override public com.google.protobuf.ByteString getOneofStringStringPieceBytes() { java.lang.Object ref = ""; if (oneofFieldCase_ == 7) { ref = oneofField_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (oneofFieldCase_ == 7) { oneofField_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @param value The oneofStringStringPiece to set. * @return This builder for chaining. */ public Builder setOneofStringStringPiece( java.lang.String value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 7; oneofField_ = value; onChanged(); return this; } /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @return This builder for chaining. */ public Builder clearOneofStringStringPiece() { if (oneofFieldCase_ == 7) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } /** * string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; * @param value The bytes for oneofStringStringPiece to set. * @return This builder for chaining. */ public Builder setOneofStringStringPieceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 7; oneofField_ = value; onChanged(); return this; } /** * bytes oneof_bytes_string_piece = 8 [default = "default StringPiece", ctype = STRING_PIECE]; * @return Whether the oneofBytesStringPiece field is set. */ public boolean hasOneofBytesStringPiece() { return oneofFieldCase_ == 8; } /** * bytes oneof_bytes_string_piece = 8 [default = "default StringPiece", ctype = STRING_PIECE]; * @return The oneofBytesStringPiece. */ public com.google.protobuf.ByteString getOneofBytesStringPiece() { if (oneofFieldCase_ == 8) { return (com.google.protobuf.ByteString) oneofField_; } return com.google.protobuf.Internal.bytesDefaultValue("default StringPiece"); } /** * bytes oneof_bytes_string_piece = 8 [default = "default StringPiece", ctype = STRING_PIECE]; * @param value The oneofBytesStringPiece to set. * @return This builder for chaining. */ public Builder setOneofBytesStringPiece(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 8; oneofField_ = value; onChanged(); return this; } /** * bytes oneof_bytes_string_piece = 8 [default = "default StringPiece", ctype = STRING_PIECE]; * @return This builder for chaining. */ public Builder clearOneofBytesStringPiece() { if (oneofFieldCase_ == 8) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } /** * .proto2_unittest.V2EnumLite oneof_enum = 9; * @return Whether the oneofEnum field is set. */ @java.lang.Override public boolean hasOneofEnum() { return oneofFieldCase_ == 9; } /** * .proto2_unittest.V2EnumLite oneof_enum = 9; * @return The oneofEnum. */ @java.lang.Override public com.google.protobuf.UnittestLite.V2EnumLite getOneofEnum() { if (oneofFieldCase_ == 9) { com.google.protobuf.UnittestLite.V2EnumLite result = com.google.protobuf.UnittestLite.V2EnumLite.forNumber( (java.lang.Integer) oneofField_); return result == null ? com.google.protobuf.UnittestLite.V2EnumLite.V2_FIRST : result; } return com.google.protobuf.UnittestLite.V2EnumLite.V2_FIRST; } /** * .proto2_unittest.V2EnumLite oneof_enum = 9; * @param value The oneofEnum to set. * @return This builder for chaining. */ public Builder setOneofEnum(com.google.protobuf.UnittestLite.V2EnumLite value) { if (value == null) { throw new NullPointerException(); } oneofFieldCase_ = 9; oneofField_ = value.getNumber(); onChanged(); return this; } /** * .proto2_unittest.V2EnumLite oneof_enum = 9; * @return This builder for chaining. */ public Builder clearOneofEnum() { if (oneofFieldCase_ == 9) { oneofFieldCase_ = 0; oneofField_ = null; onChanged(); } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestOneofParsingLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestOneofParsingLite) private static final com.google.protobuf.UnittestLite.TestOneofParsingLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestOneofParsingLite(); } public static com.google.protobuf.UnittestLite.TestOneofParsingLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestOneofParsingLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestOneofParsingLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestMessageSetLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestMessageSetLite) com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder { } /** * Protobuf type {@code proto2_unittest.TestMessageSetLite} */ public static final class TestMessageSetLite extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage< TestMessageSetLite> implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestMessageSetLite) TestMessageSetLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestMessageSetLite.newBuilder() to construct. private TestMessageSetLite(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { super(builder); } private TestMessageSetLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestMessageSetLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestMessageSetLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestMessageSetLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestMessageSetLite.class, com.google.protobuf.UnittestLite.TestMessageSetLite.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .ExtendableMessage.ExtensionWriter extensionWriter = newMessageSetExtensionWriter(); extensionWriter.writeUntil(2147483647, output); getUnknownFields().writeAsMessageSetTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += extensionsSerializedSizeAsMessageSet(); size += getUnknownFields().getSerializedSizeAsMessageSet(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.TestMessageSetLite)) { return super.equals(obj); } com.google.protobuf.UnittestLite.TestMessageSetLite other = (com.google.protobuf.UnittestLite.TestMessageSetLite) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; if (!getExtensionFields().equals(other.getExtensionFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.TestMessageSetLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.TestMessageSetLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestMessageSetLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< com.google.protobuf.UnittestLite.TestMessageSetLite, Builder> implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestMessageSetLite) com.google.protobuf.UnittestLite.TestMessageSetLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestMessageSetLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestMessageSetLite_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.TestMessageSetLite.class, com.google.protobuf.UnittestLite.TestMessageSetLite.Builder.class); } // Construct using com.google.protobuf.UnittestLite.TestMessageSetLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_TestMessageSetLite_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.TestMessageSetLite getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.TestMessageSetLite.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.TestMessageSetLite build() { com.google.protobuf.UnittestLite.TestMessageSetLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.TestMessageSetLite buildPartial() { com.google.protobuf.UnittestLite.TestMessageSetLite result = new com.google.protobuf.UnittestLite.TestMessageSetLite(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestMessageSetLite, Type> extension, Type value) { return super.setExtension(extension, value); } @java.lang.Override public Builder setExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestMessageSetLite, java.util.List> extension, int index, Type value) { return super.setExtension(extension, index, value); } @java.lang.Override public Builder addExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestMessageSetLite, java.util.List> extension, Type value) { return super.addExtension(extension, value); } @java.lang.Override public Builder clearExtension( com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestMessageSetLite, T> extension) { return super.clearExtension(extension); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.TestMessageSetLite) { return mergeFrom((com.google.protobuf.UnittestLite.TestMessageSetLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.TestMessageSetLite other) { if (other == com.google.protobuf.UnittestLite.TestMessageSetLite.getDefaultInstance()) return this; this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!extensionsAreInitialized()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestMessageSetLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestMessageSetLite) private static final com.google.protobuf.UnittestLite.TestMessageSetLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.TestMessageSetLite(); } public static com.google.protobuf.UnittestLite.TestMessageSetLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestMessageSetLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.TestMessageSetLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PackedInt32OrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.PackedInt32) com.google.protobuf.MessageOrBuilder { /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @return A list containing the repeatedInt32. */ java.util.List getRepeatedInt32List(); /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @return The count of repeatedInt32. */ int getRepeatedInt32Count(); /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ int getRepeatedInt32(int index); } /** *
   * The following four messages are set up to test for wire compatibility between
   * packed and non-packed repeated fields. We use the field number 2048, because
   * that is large enough to require a 3-byte varint for the tag.
   * 
* * Protobuf type {@code proto2_unittest.PackedInt32} */ public static final class PackedInt32 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.PackedInt32) PackedInt32OrBuilder { private static final long serialVersionUID = 0L; // Use PackedInt32.newBuilder() to construct. private PackedInt32(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PackedInt32() { repeatedInt32_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PackedInt32(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_PackedInt32_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_PackedInt32_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.PackedInt32.class, com.google.protobuf.UnittestLite.PackedInt32.Builder.class); } public static final int REPEATED_INT32_FIELD_NUMBER = 2048; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList repeatedInt32_ = emptyIntList(); /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @return A list containing the repeatedInt32. */ @java.lang.Override public java.util.List getRepeatedInt32List() { return repeatedInt32_; } /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @return The count of repeatedInt32. */ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ public int getRepeatedInt32(int index) { return repeatedInt32_.getInt(index); } private int repeatedInt32MemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getRepeatedInt32List().size() > 0) { output.writeUInt32NoTag(16386); output.writeUInt32NoTag(repeatedInt32MemoizedSerializedSize); } for (int i = 0; i < repeatedInt32_.size(); i++) { output.writeInt32NoTag(repeatedInt32_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < repeatedInt32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(repeatedInt32_.getInt(i)); } size += dataSize; if (!getRepeatedInt32List().isEmpty()) { size += 3; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } repeatedInt32MemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.PackedInt32)) { return super.equals(obj); } com.google.protobuf.UnittestLite.PackedInt32 other = (com.google.protobuf.UnittestLite.PackedInt32) obj; if (!getRepeatedInt32List() .equals(other.getRepeatedInt32List())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRepeatedInt32Count() > 0) { hash = (37 * hash) + REPEATED_INT32_FIELD_NUMBER; hash = (53 * hash) + getRepeatedInt32List().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.PackedInt32 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.PackedInt32 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.PackedInt32 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.PackedInt32 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.PackedInt32 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.PackedInt32 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.PackedInt32 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.PackedInt32 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.PackedInt32 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.PackedInt32 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.PackedInt32 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.PackedInt32 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.PackedInt32 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * The following four messages are set up to test for wire compatibility between
     * packed and non-packed repeated fields. We use the field number 2048, because
     * that is large enough to require a 3-byte varint for the tag.
     * 
* * Protobuf type {@code proto2_unittest.PackedInt32} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.PackedInt32) com.google.protobuf.UnittestLite.PackedInt32OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_PackedInt32_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_PackedInt32_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.PackedInt32.class, com.google.protobuf.UnittestLite.PackedInt32.Builder.class); } // Construct using com.google.protobuf.UnittestLite.PackedInt32.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; repeatedInt32_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_PackedInt32_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.PackedInt32 getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.PackedInt32.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.PackedInt32 build() { com.google.protobuf.UnittestLite.PackedInt32 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.PackedInt32 buildPartial() { com.google.protobuf.UnittestLite.PackedInt32 result = new com.google.protobuf.UnittestLite.PackedInt32(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.PackedInt32 result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { repeatedInt32_.makeImmutable(); result.repeatedInt32_ = repeatedInt32_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.PackedInt32) { return mergeFrom((com.google.protobuf.UnittestLite.PackedInt32)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.PackedInt32 other) { if (other == com.google.protobuf.UnittestLite.PackedInt32.getDefaultInstance()) return this; if (!other.repeatedInt32_.isEmpty()) { if (repeatedInt32_.isEmpty()) { repeatedInt32_ = other.repeatedInt32_; repeatedInt32_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureRepeatedInt32IsMutable(); repeatedInt32_.addAll(other.repeatedInt32_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16384: { int v = input.readInt32(); ensureRepeatedInt32IsMutable(); repeatedInt32_.addInt(v); break; } // case 16384 case 16386: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRepeatedInt32IsMutable(); while (input.getBytesUntilLimit() > 0) { repeatedInt32_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 16386 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.IntList repeatedInt32_ = emptyIntList(); private void ensureRepeatedInt32IsMutable() { if (!repeatedInt32_.isModifiable()) { repeatedInt32_ = makeMutableCopy(repeatedInt32_); } bitField0_ |= 0x00000001; } /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @return A list containing the repeatedInt32. */ public java.util.List getRepeatedInt32List() { repeatedInt32_.makeImmutable(); return repeatedInt32_; } /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @return The count of repeatedInt32. */ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ public int getRepeatedInt32(int index) { return repeatedInt32_.getInt(index); } /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @param index The index to set the value at. * @param value The repeatedInt32 to set. * @return This builder for chaining. */ public Builder setRepeatedInt32( int index, int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.setInt(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @param value The repeatedInt32 to add. * @return This builder for chaining. */ public Builder addRepeatedInt32(int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.addInt(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @param values The repeatedInt32 to add. * @return This builder for chaining. */ public Builder addAllRepeatedInt32( java.lang.Iterable values) { ensureRepeatedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedInt32_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int32 repeated_int32 = 2048 [packed = true]; * @return This builder for chaining. */ public Builder clearRepeatedInt32() { repeatedInt32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.PackedInt32) } // @@protoc_insertion_point(class_scope:proto2_unittest.PackedInt32) private static final com.google.protobuf.UnittestLite.PackedInt32 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.PackedInt32(); } public static com.google.protobuf.UnittestLite.PackedInt32 getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PackedInt32 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.PackedInt32 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NonPackedInt32OrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.NonPackedInt32) com.google.protobuf.MessageOrBuilder { /** * repeated int32 repeated_int32 = 2048; * @return A list containing the repeatedInt32. */ java.util.List getRepeatedInt32List(); /** * repeated int32 repeated_int32 = 2048; * @return The count of repeatedInt32. */ int getRepeatedInt32Count(); /** * repeated int32 repeated_int32 = 2048; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ int getRepeatedInt32(int index); } /** * Protobuf type {@code proto2_unittest.NonPackedInt32} */ public static final class NonPackedInt32 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.NonPackedInt32) NonPackedInt32OrBuilder { private static final long serialVersionUID = 0L; // Use NonPackedInt32.newBuilder() to construct. private NonPackedInt32(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NonPackedInt32() { repeatedInt32_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NonPackedInt32(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_NonPackedInt32_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_NonPackedInt32_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.NonPackedInt32.class, com.google.protobuf.UnittestLite.NonPackedInt32.Builder.class); } public static final int REPEATED_INT32_FIELD_NUMBER = 2048; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList repeatedInt32_ = emptyIntList(); /** * repeated int32 repeated_int32 = 2048; * @return A list containing the repeatedInt32. */ @java.lang.Override public java.util.List getRepeatedInt32List() { return repeatedInt32_; } /** * repeated int32 repeated_int32 = 2048; * @return The count of repeatedInt32. */ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** * repeated int32 repeated_int32 = 2048; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ public int getRepeatedInt32(int index) { return repeatedInt32_.getInt(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < repeatedInt32_.size(); i++) { output.writeInt32(2048, repeatedInt32_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < repeatedInt32_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(repeatedInt32_.getInt(i)); } size += dataSize; size += 3 * getRepeatedInt32List().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.NonPackedInt32)) { return super.equals(obj); } com.google.protobuf.UnittestLite.NonPackedInt32 other = (com.google.protobuf.UnittestLite.NonPackedInt32) obj; if (!getRepeatedInt32List() .equals(other.getRepeatedInt32List())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRepeatedInt32Count() > 0) { hash = (37 * hash) + REPEATED_INT32_FIELD_NUMBER; hash = (53 * hash) + getRepeatedInt32List().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.NonPackedInt32 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.NonPackedInt32 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.NonPackedInt32} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.NonPackedInt32) com.google.protobuf.UnittestLite.NonPackedInt32OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_NonPackedInt32_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_NonPackedInt32_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.NonPackedInt32.class, com.google.protobuf.UnittestLite.NonPackedInt32.Builder.class); } // Construct using com.google.protobuf.UnittestLite.NonPackedInt32.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; repeatedInt32_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_NonPackedInt32_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.NonPackedInt32 getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.NonPackedInt32.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.NonPackedInt32 build() { com.google.protobuf.UnittestLite.NonPackedInt32 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.NonPackedInt32 buildPartial() { com.google.protobuf.UnittestLite.NonPackedInt32 result = new com.google.protobuf.UnittestLite.NonPackedInt32(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.NonPackedInt32 result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { repeatedInt32_.makeImmutable(); result.repeatedInt32_ = repeatedInt32_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.NonPackedInt32) { return mergeFrom((com.google.protobuf.UnittestLite.NonPackedInt32)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.NonPackedInt32 other) { if (other == com.google.protobuf.UnittestLite.NonPackedInt32.getDefaultInstance()) return this; if (!other.repeatedInt32_.isEmpty()) { if (repeatedInt32_.isEmpty()) { repeatedInt32_ = other.repeatedInt32_; repeatedInt32_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureRepeatedInt32IsMutable(); repeatedInt32_.addAll(other.repeatedInt32_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16384: { int v = input.readInt32(); ensureRepeatedInt32IsMutable(); repeatedInt32_.addInt(v); break; } // case 16384 case 16386: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRepeatedInt32IsMutable(); while (input.getBytesUntilLimit() > 0) { repeatedInt32_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 16386 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.IntList repeatedInt32_ = emptyIntList(); private void ensureRepeatedInt32IsMutable() { if (!repeatedInt32_.isModifiable()) { repeatedInt32_ = makeMutableCopy(repeatedInt32_); } bitField0_ |= 0x00000001; } /** * repeated int32 repeated_int32 = 2048; * @return A list containing the repeatedInt32. */ public java.util.List getRepeatedInt32List() { repeatedInt32_.makeImmutable(); return repeatedInt32_; } /** * repeated int32 repeated_int32 = 2048; * @return The count of repeatedInt32. */ public int getRepeatedInt32Count() { return repeatedInt32_.size(); } /** * repeated int32 repeated_int32 = 2048; * @param index The index of the element to return. * @return The repeatedInt32 at the given index. */ public int getRepeatedInt32(int index) { return repeatedInt32_.getInt(index); } /** * repeated int32 repeated_int32 = 2048; * @param index The index to set the value at. * @param value The repeatedInt32 to set. * @return This builder for chaining. */ public Builder setRepeatedInt32( int index, int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.setInt(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int32 repeated_int32 = 2048; * @param value The repeatedInt32 to add. * @return This builder for chaining. */ public Builder addRepeatedInt32(int value) { ensureRepeatedInt32IsMutable(); repeatedInt32_.addInt(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int32 repeated_int32 = 2048; * @param values The repeatedInt32 to add. * @return This builder for chaining. */ public Builder addAllRepeatedInt32( java.lang.Iterable values) { ensureRepeatedInt32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedInt32_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int32 repeated_int32 = 2048; * @return This builder for chaining. */ public Builder clearRepeatedInt32() { repeatedInt32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.NonPackedInt32) } // @@protoc_insertion_point(class_scope:proto2_unittest.NonPackedInt32) private static final com.google.protobuf.UnittestLite.NonPackedInt32 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.NonPackedInt32(); } public static com.google.protobuf.UnittestLite.NonPackedInt32 getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NonPackedInt32 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.NonPackedInt32 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PackedFixed32OrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.PackedFixed32) com.google.protobuf.MessageOrBuilder { /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @return A list containing the repeatedFixed32. */ java.util.List getRepeatedFixed32List(); /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @return The count of repeatedFixed32. */ int getRepeatedFixed32Count(); /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @param index The index of the element to return. * @return The repeatedFixed32 at the given index. */ int getRepeatedFixed32(int index); } /** * Protobuf type {@code proto2_unittest.PackedFixed32} */ public static final class PackedFixed32 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.PackedFixed32) PackedFixed32OrBuilder { private static final long serialVersionUID = 0L; // Use PackedFixed32.newBuilder() to construct. private PackedFixed32(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PackedFixed32() { repeatedFixed32_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PackedFixed32(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_PackedFixed32_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_PackedFixed32_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.PackedFixed32.class, com.google.protobuf.UnittestLite.PackedFixed32.Builder.class); } public static final int REPEATED_FIXED32_FIELD_NUMBER = 2048; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList repeatedFixed32_ = emptyIntList(); /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @return A list containing the repeatedFixed32. */ @java.lang.Override public java.util.List getRepeatedFixed32List() { return repeatedFixed32_; } /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @return The count of repeatedFixed32. */ public int getRepeatedFixed32Count() { return repeatedFixed32_.size(); } /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @param index The index of the element to return. * @return The repeatedFixed32 at the given index. */ public int getRepeatedFixed32(int index) { return repeatedFixed32_.getInt(index); } private int repeatedFixed32MemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getRepeatedFixed32List().size() > 0) { output.writeUInt32NoTag(16386); output.writeUInt32NoTag(repeatedFixed32MemoizedSerializedSize); } for (int i = 0; i < repeatedFixed32_.size(); i++) { output.writeFixed32NoTag(repeatedFixed32_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; dataSize = 4 * getRepeatedFixed32List().size(); size += dataSize; if (!getRepeatedFixed32List().isEmpty()) { size += 3; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } repeatedFixed32MemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.PackedFixed32)) { return super.equals(obj); } com.google.protobuf.UnittestLite.PackedFixed32 other = (com.google.protobuf.UnittestLite.PackedFixed32) obj; if (!getRepeatedFixed32List() .equals(other.getRepeatedFixed32List())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRepeatedFixed32Count() > 0) { hash = (37 * hash) + REPEATED_FIXED32_FIELD_NUMBER; hash = (53 * hash) + getRepeatedFixed32List().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.PackedFixed32 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.PackedFixed32 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.PackedFixed32 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.PackedFixed32} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.PackedFixed32) com.google.protobuf.UnittestLite.PackedFixed32OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_PackedFixed32_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_PackedFixed32_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.PackedFixed32.class, com.google.protobuf.UnittestLite.PackedFixed32.Builder.class); } // Construct using com.google.protobuf.UnittestLite.PackedFixed32.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; repeatedFixed32_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_PackedFixed32_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.PackedFixed32 getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.PackedFixed32.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.PackedFixed32 build() { com.google.protobuf.UnittestLite.PackedFixed32 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.PackedFixed32 buildPartial() { com.google.protobuf.UnittestLite.PackedFixed32 result = new com.google.protobuf.UnittestLite.PackedFixed32(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.PackedFixed32 result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { repeatedFixed32_.makeImmutable(); result.repeatedFixed32_ = repeatedFixed32_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.PackedFixed32) { return mergeFrom((com.google.protobuf.UnittestLite.PackedFixed32)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.PackedFixed32 other) { if (other == com.google.protobuf.UnittestLite.PackedFixed32.getDefaultInstance()) return this; if (!other.repeatedFixed32_.isEmpty()) { if (repeatedFixed32_.isEmpty()) { repeatedFixed32_ = other.repeatedFixed32_; repeatedFixed32_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addAll(other.repeatedFixed32_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16389: { int v = input.readFixed32(); ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addInt(v); break; } // case 16389 case 16386: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureRepeatedFixed32IsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { repeatedFixed32_.addInt(input.readFixed32()); } input.popLimit(limit); break; } // case 16386 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.IntList repeatedFixed32_ = emptyIntList(); private void ensureRepeatedFixed32IsMutable() { if (!repeatedFixed32_.isModifiable()) { repeatedFixed32_ = makeMutableCopy(repeatedFixed32_); } bitField0_ |= 0x00000001; } private void ensureRepeatedFixed32IsMutable(int capacity) { if (!repeatedFixed32_.isModifiable()) { repeatedFixed32_ = makeMutableCopy(repeatedFixed32_, capacity); } bitField0_ |= 0x00000001; } /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @return A list containing the repeatedFixed32. */ public java.util.List getRepeatedFixed32List() { repeatedFixed32_.makeImmutable(); return repeatedFixed32_; } /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @return The count of repeatedFixed32. */ public int getRepeatedFixed32Count() { return repeatedFixed32_.size(); } /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @param index The index of the element to return. * @return The repeatedFixed32 at the given index. */ public int getRepeatedFixed32(int index) { return repeatedFixed32_.getInt(index); } /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @param index The index to set the value at. * @param value The repeatedFixed32 to set. * @return This builder for chaining. */ public Builder setRepeatedFixed32( int index, int value) { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.setInt(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @param value The repeatedFixed32 to add. * @return This builder for chaining. */ public Builder addRepeatedFixed32(int value) { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addInt(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @param values The repeatedFixed32 to add. * @return This builder for chaining. */ public Builder addAllRepeatedFixed32( java.lang.Iterable values) { ensureRepeatedFixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFixed32_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 2048 [packed = true]; * @return This builder for chaining. */ public Builder clearRepeatedFixed32() { repeatedFixed32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.PackedFixed32) } // @@protoc_insertion_point(class_scope:proto2_unittest.PackedFixed32) private static final com.google.protobuf.UnittestLite.PackedFixed32 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.PackedFixed32(); } public static com.google.protobuf.UnittestLite.PackedFixed32 getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PackedFixed32 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.PackedFixed32 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NonPackedFixed32OrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.NonPackedFixed32) com.google.protobuf.MessageOrBuilder { /** * repeated fixed32 repeated_fixed32 = 2048; * @return A list containing the repeatedFixed32. */ java.util.List getRepeatedFixed32List(); /** * repeated fixed32 repeated_fixed32 = 2048; * @return The count of repeatedFixed32. */ int getRepeatedFixed32Count(); /** * repeated fixed32 repeated_fixed32 = 2048; * @param index The index of the element to return. * @return The repeatedFixed32 at the given index. */ int getRepeatedFixed32(int index); } /** * Protobuf type {@code proto2_unittest.NonPackedFixed32} */ public static final class NonPackedFixed32 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.NonPackedFixed32) NonPackedFixed32OrBuilder { private static final long serialVersionUID = 0L; // Use NonPackedFixed32.newBuilder() to construct. private NonPackedFixed32(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NonPackedFixed32() { repeatedFixed32_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NonPackedFixed32(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_NonPackedFixed32_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_NonPackedFixed32_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.NonPackedFixed32.class, com.google.protobuf.UnittestLite.NonPackedFixed32.Builder.class); } public static final int REPEATED_FIXED32_FIELD_NUMBER = 2048; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList repeatedFixed32_ = emptyIntList(); /** * repeated fixed32 repeated_fixed32 = 2048; * @return A list containing the repeatedFixed32. */ @java.lang.Override public java.util.List getRepeatedFixed32List() { return repeatedFixed32_; } /** * repeated fixed32 repeated_fixed32 = 2048; * @return The count of repeatedFixed32. */ public int getRepeatedFixed32Count() { return repeatedFixed32_.size(); } /** * repeated fixed32 repeated_fixed32 = 2048; * @param index The index of the element to return. * @return The repeatedFixed32 at the given index. */ public int getRepeatedFixed32(int index) { return repeatedFixed32_.getInt(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < repeatedFixed32_.size(); i++) { output.writeFixed32(2048, repeatedFixed32_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; dataSize = 4 * getRepeatedFixed32List().size(); size += dataSize; size += 3 * getRepeatedFixed32List().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.NonPackedFixed32)) { return super.equals(obj); } com.google.protobuf.UnittestLite.NonPackedFixed32 other = (com.google.protobuf.UnittestLite.NonPackedFixed32) obj; if (!getRepeatedFixed32List() .equals(other.getRepeatedFixed32List())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRepeatedFixed32Count() > 0) { hash = (37 * hash) + REPEATED_FIXED32_FIELD_NUMBER; hash = (53 * hash) + getRepeatedFixed32List().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.NonPackedFixed32 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.NonPackedFixed32} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.NonPackedFixed32) com.google.protobuf.UnittestLite.NonPackedFixed32OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_NonPackedFixed32_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_NonPackedFixed32_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.NonPackedFixed32.class, com.google.protobuf.UnittestLite.NonPackedFixed32.Builder.class); } // Construct using com.google.protobuf.UnittestLite.NonPackedFixed32.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; repeatedFixed32_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_NonPackedFixed32_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.NonPackedFixed32 getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.NonPackedFixed32.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.NonPackedFixed32 build() { com.google.protobuf.UnittestLite.NonPackedFixed32 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.NonPackedFixed32 buildPartial() { com.google.protobuf.UnittestLite.NonPackedFixed32 result = new com.google.protobuf.UnittestLite.NonPackedFixed32(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.NonPackedFixed32 result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { repeatedFixed32_.makeImmutable(); result.repeatedFixed32_ = repeatedFixed32_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.NonPackedFixed32) { return mergeFrom((com.google.protobuf.UnittestLite.NonPackedFixed32)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.NonPackedFixed32 other) { if (other == com.google.protobuf.UnittestLite.NonPackedFixed32.getDefaultInstance()) return this; if (!other.repeatedFixed32_.isEmpty()) { if (repeatedFixed32_.isEmpty()) { repeatedFixed32_ = other.repeatedFixed32_; repeatedFixed32_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addAll(other.repeatedFixed32_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16389: { int v = input.readFixed32(); ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addInt(v); break; } // case 16389 case 16386: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureRepeatedFixed32IsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { repeatedFixed32_.addInt(input.readFixed32()); } input.popLimit(limit); break; } // case 16386 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.IntList repeatedFixed32_ = emptyIntList(); private void ensureRepeatedFixed32IsMutable() { if (!repeatedFixed32_.isModifiable()) { repeatedFixed32_ = makeMutableCopy(repeatedFixed32_); } bitField0_ |= 0x00000001; } private void ensureRepeatedFixed32IsMutable(int capacity) { if (!repeatedFixed32_.isModifiable()) { repeatedFixed32_ = makeMutableCopy(repeatedFixed32_, capacity); } bitField0_ |= 0x00000001; } /** * repeated fixed32 repeated_fixed32 = 2048; * @return A list containing the repeatedFixed32. */ public java.util.List getRepeatedFixed32List() { repeatedFixed32_.makeImmutable(); return repeatedFixed32_; } /** * repeated fixed32 repeated_fixed32 = 2048; * @return The count of repeatedFixed32. */ public int getRepeatedFixed32Count() { return repeatedFixed32_.size(); } /** * repeated fixed32 repeated_fixed32 = 2048; * @param index The index of the element to return. * @return The repeatedFixed32 at the given index. */ public int getRepeatedFixed32(int index) { return repeatedFixed32_.getInt(index); } /** * repeated fixed32 repeated_fixed32 = 2048; * @param index The index to set the value at. * @param value The repeatedFixed32 to set. * @return This builder for chaining. */ public Builder setRepeatedFixed32( int index, int value) { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.setInt(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 2048; * @param value The repeatedFixed32 to add. * @return This builder for chaining. */ public Builder addRepeatedFixed32(int value) { ensureRepeatedFixed32IsMutable(); repeatedFixed32_.addInt(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 2048; * @param values The repeatedFixed32 to add. * @return This builder for chaining. */ public Builder addAllRepeatedFixed32( java.lang.Iterable values) { ensureRepeatedFixed32IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatedFixed32_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated fixed32 repeated_fixed32 = 2048; * @return This builder for chaining. */ public Builder clearRepeatedFixed32() { repeatedFixed32_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.NonPackedFixed32) } // @@protoc_insertion_point(class_scope:proto2_unittest.NonPackedFixed32) private static final com.google.protobuf.UnittestLite.NonPackedFixed32 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.NonPackedFixed32(); } public static com.google.protobuf.UnittestLite.NonPackedFixed32 getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NonPackedFixed32 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.NonPackedFixed32 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DupEnumOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.DupEnum) com.google.protobuf.MessageOrBuilder { } /** *
   * Test an enum that has multiple values with the same number.
   * 
* * Protobuf type {@code proto2_unittest.DupEnum} */ public static final class DupEnum extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.DupEnum) DupEnumOrBuilder { private static final long serialVersionUID = 0L; // Use DupEnum.newBuilder() to construct. private DupEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DupEnum() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DupEnum(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_DupEnum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_DupEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.DupEnum.class, com.google.protobuf.UnittestLite.DupEnum.Builder.class); } /** * Protobuf enum {@code proto2_unittest.DupEnum.TestEnumWithDupValueLite} */ public enum TestEnumWithDupValueLite implements com.google.protobuf.ProtocolMessageEnum { /** * FOO1 = 1; */ FOO1(1), /** * BAR1 = 2; */ BAR1(2), /** * BAZ = 3; */ BAZ(3), ; /** * FOO2 = 1; */ public static final TestEnumWithDupValueLite FOO2 = FOO1; /** * BAR2 = 2; */ public static final TestEnumWithDupValueLite BAR2 = BAR1; /** * FOO1 = 1; */ public static final int FOO1_VALUE = 1; /** * BAR1 = 2; */ public static final int BAR1_VALUE = 2; /** * BAZ = 3; */ public static final int BAZ_VALUE = 3; /** * FOO2 = 1; */ public static final int FOO2_VALUE = 1; /** * BAR2 = 2; */ public static final int BAR2_VALUE = 2; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TestEnumWithDupValueLite valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static TestEnumWithDupValueLite forNumber(int value) { switch (value) { case 1: return FOO1; case 2: return BAR1; case 3: return BAZ; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TestEnumWithDupValueLite> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TestEnumWithDupValueLite findValueByNumber(int number) { return TestEnumWithDupValueLite.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.UnittestLite.DupEnum.getDescriptor().getEnumTypes().get(0); } private static final TestEnumWithDupValueLite[] VALUES = getStaticValuesArray(); private static TestEnumWithDupValueLite[] getStaticValuesArray() { return new TestEnumWithDupValueLite[] { FOO1, BAR1, BAZ, FOO2, BAR2, }; } public static TestEnumWithDupValueLite 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 value; private TestEnumWithDupValueLite(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto2_unittest.DupEnum.TestEnumWithDupValueLite) } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.DupEnum)) { return super.equals(obj); } com.google.protobuf.UnittestLite.DupEnum other = (com.google.protobuf.UnittestLite.DupEnum) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.DupEnum parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.DupEnum parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.DupEnum parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.DupEnum parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.DupEnum parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.DupEnum parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.DupEnum parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.DupEnum parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.DupEnum parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.DupEnum parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.DupEnum parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.DupEnum parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.DupEnum prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Test an enum that has multiple values with the same number.
     * 
* * Protobuf type {@code proto2_unittest.DupEnum} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.DupEnum) com.google.protobuf.UnittestLite.DupEnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_DupEnum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_DupEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.DupEnum.class, com.google.protobuf.UnittestLite.DupEnum.Builder.class); } // Construct using com.google.protobuf.UnittestLite.DupEnum.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_DupEnum_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.DupEnum getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.DupEnum.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.DupEnum build() { com.google.protobuf.UnittestLite.DupEnum result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.DupEnum buildPartial() { com.google.protobuf.UnittestLite.DupEnum result = new com.google.protobuf.UnittestLite.DupEnum(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.DupEnum) { return mergeFrom((com.google.protobuf.UnittestLite.DupEnum)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.DupEnum other) { if (other == com.google.protobuf.UnittestLite.DupEnum.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.DupEnum) } // @@protoc_insertion_point(class_scope:proto2_unittest.DupEnum) private static final com.google.protobuf.UnittestLite.DupEnum DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.DupEnum(); } public static com.google.protobuf.UnittestLite.DupEnum getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DupEnum parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.DupEnum getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecursiveMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.RecursiveMessage) com.google.protobuf.MessageOrBuilder { /** * optional .proto2_unittest.RecursiveMessage recurse = 1; * @return Whether the recurse field is set. */ boolean hasRecurse(); /** * optional .proto2_unittest.RecursiveMessage recurse = 1; * @return The recurse. */ com.google.protobuf.UnittestLite.RecursiveMessage getRecurse(); /** * optional .proto2_unittest.RecursiveMessage recurse = 1; */ com.google.protobuf.UnittestLite.RecursiveMessageOrBuilder getRecurseOrBuilder(); /** * optional bytes payload = 2; * @return Whether the payload field is set. */ boolean hasPayload(); /** * optional bytes payload = 2; * @return The payload. */ com.google.protobuf.ByteString getPayload(); } /** * Protobuf type {@code proto2_unittest.RecursiveMessage} */ public static final class RecursiveMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.RecursiveMessage) RecursiveMessageOrBuilder { private static final long serialVersionUID = 0L; // Use RecursiveMessage.newBuilder() to construct. private RecursiveMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecursiveMessage() { payload_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecursiveMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RecursiveMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RecursiveMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.RecursiveMessage.class, com.google.protobuf.UnittestLite.RecursiveMessage.Builder.class); } private int bitField0_; public static final int RECURSE_FIELD_NUMBER = 1; private com.google.protobuf.UnittestLite.RecursiveMessage recurse_; /** * optional .proto2_unittest.RecursiveMessage recurse = 1; * @return Whether the recurse field is set. */ @java.lang.Override public boolean hasRecurse() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.RecursiveMessage recurse = 1; * @return The recurse. */ @java.lang.Override public com.google.protobuf.UnittestLite.RecursiveMessage getRecurse() { return recurse_ == null ? com.google.protobuf.UnittestLite.RecursiveMessage.getDefaultInstance() : recurse_; } /** * optional .proto2_unittest.RecursiveMessage recurse = 1; */ @java.lang.Override public com.google.protobuf.UnittestLite.RecursiveMessageOrBuilder getRecurseOrBuilder() { return recurse_ == null ? com.google.protobuf.UnittestLite.RecursiveMessage.getDefaultInstance() : recurse_; } public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes payload = 2; * @return Whether the payload field is set. */ @java.lang.Override public boolean hasPayload() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes payload = 2; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRecurse()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, payload_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRecurse()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, payload_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.UnittestLite.RecursiveMessage)) { return super.equals(obj); } com.google.protobuf.UnittestLite.RecursiveMessage other = (com.google.protobuf.UnittestLite.RecursiveMessage) obj; if (hasRecurse() != other.hasRecurse()) return false; if (hasRecurse()) { if (!getRecurse() .equals(other.getRecurse())) return false; } if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { if (!getPayload() .equals(other.getPayload())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRecurse()) { hash = (37 * hash) + RECURSE_FIELD_NUMBER; hash = (53 * hash) + getRecurse().hashCode(); } if (hasPayload()) { hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.protobuf.UnittestLite.RecursiveMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.protobuf.UnittestLite.RecursiveMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestLite.RecursiveMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.RecursiveMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.RecursiveMessage) com.google.protobuf.UnittestLite.RecursiveMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RecursiveMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RecursiveMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.UnittestLite.RecursiveMessage.class, com.google.protobuf.UnittestLite.RecursiveMessage.Builder.class); } // Construct using com.google.protobuf.UnittestLite.RecursiveMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRecurseFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recurse_ = null; if (recurseBuilder_ != null) { recurseBuilder_.dispose(); recurseBuilder_ = null; } payload_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.protobuf.UnittestLite.internal_static_proto2_unittest_RecursiveMessage_descriptor; } @java.lang.Override public com.google.protobuf.UnittestLite.RecursiveMessage getDefaultInstanceForType() { return com.google.protobuf.UnittestLite.RecursiveMessage.getDefaultInstance(); } @java.lang.Override public com.google.protobuf.UnittestLite.RecursiveMessage build() { com.google.protobuf.UnittestLite.RecursiveMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.protobuf.UnittestLite.RecursiveMessage buildPartial() { com.google.protobuf.UnittestLite.RecursiveMessage result = new com.google.protobuf.UnittestLite.RecursiveMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.protobuf.UnittestLite.RecursiveMessage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.recurse_ = recurseBuilder_ == null ? recurse_ : recurseBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.payload_ = payload_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.UnittestLite.RecursiveMessage) { return mergeFrom((com.google.protobuf.UnittestLite.RecursiveMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.UnittestLite.RecursiveMessage other) { if (other == com.google.protobuf.UnittestLite.RecursiveMessage.getDefaultInstance()) return this; if (other.hasRecurse()) { mergeRecurse(other.getRecurse()); } if (other.hasPayload()) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getRecurseFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { payload_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.UnittestLite.RecursiveMessage recurse_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.RecursiveMessage, com.google.protobuf.UnittestLite.RecursiveMessage.Builder, com.google.protobuf.UnittestLite.RecursiveMessageOrBuilder> recurseBuilder_; /** * optional .proto2_unittest.RecursiveMessage recurse = 1; * @return Whether the recurse field is set. */ public boolean hasRecurse() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .proto2_unittest.RecursiveMessage recurse = 1; * @return The recurse. */ public com.google.protobuf.UnittestLite.RecursiveMessage getRecurse() { if (recurseBuilder_ == null) { return recurse_ == null ? com.google.protobuf.UnittestLite.RecursiveMessage.getDefaultInstance() : recurse_; } else { return recurseBuilder_.getMessage(); } } /** * optional .proto2_unittest.RecursiveMessage recurse = 1; */ public Builder setRecurse(com.google.protobuf.UnittestLite.RecursiveMessage value) { if (recurseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } recurse_ = value; } else { recurseBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.RecursiveMessage recurse = 1; */ public Builder setRecurse( com.google.protobuf.UnittestLite.RecursiveMessage.Builder builderForValue) { if (recurseBuilder_ == null) { recurse_ = builderForValue.build(); } else { recurseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .proto2_unittest.RecursiveMessage recurse = 1; */ public Builder mergeRecurse(com.google.protobuf.UnittestLite.RecursiveMessage value) { if (recurseBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && recurse_ != null && recurse_ != com.google.protobuf.UnittestLite.RecursiveMessage.getDefaultInstance()) { getRecurseBuilder().mergeFrom(value); } else { recurse_ = value; } } else { recurseBuilder_.mergeFrom(value); } if (recurse_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * optional .proto2_unittest.RecursiveMessage recurse = 1; */ public Builder clearRecurse() { bitField0_ = (bitField0_ & ~0x00000001); recurse_ = null; if (recurseBuilder_ != null) { recurseBuilder_.dispose(); recurseBuilder_ = null; } onChanged(); return this; } /** * optional .proto2_unittest.RecursiveMessage recurse = 1; */ public com.google.protobuf.UnittestLite.RecursiveMessage.Builder getRecurseBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRecurseFieldBuilder().getBuilder(); } /** * optional .proto2_unittest.RecursiveMessage recurse = 1; */ public com.google.protobuf.UnittestLite.RecursiveMessageOrBuilder getRecurseOrBuilder() { if (recurseBuilder_ != null) { return recurseBuilder_.getMessageOrBuilder(); } else { return recurse_ == null ? com.google.protobuf.UnittestLite.RecursiveMessage.getDefaultInstance() : recurse_; } } /** * optional .proto2_unittest.RecursiveMessage recurse = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.RecursiveMessage, com.google.protobuf.UnittestLite.RecursiveMessage.Builder, com.google.protobuf.UnittestLite.RecursiveMessageOrBuilder> getRecurseFieldBuilder() { if (recurseBuilder_ == null) { recurseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UnittestLite.RecursiveMessage, com.google.protobuf.UnittestLite.RecursiveMessage.Builder, com.google.protobuf.UnittestLite.RecursiveMessageOrBuilder>( getRecurse(), getParentForChildren(), isClean()); recurse_ = null; } return recurseBuilder_; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes payload = 2; * @return Whether the payload field is set. */ @java.lang.Override public boolean hasPayload() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes payload = 2; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** * optional bytes payload = 2; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional bytes payload = 2; * @return This builder for chaining. */ public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000002); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.RecursiveMessage) } // @@protoc_insertion_point(class_scope:proto2_unittest.RecursiveMessage) private static final com.google.protobuf.UnittestLite.RecursiveMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.protobuf.UnittestLite.RecursiveMessage(); } public static com.google.protobuf.UnittestLite.RecursiveMessage getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecursiveMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.protobuf.UnittestLite.RecursiveMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int OPTIONAL_INT32_EXTENSION_LITE_FIELD_NUMBER = 1; /** *
   * Singular
   * 
* * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> optionalInt32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int OPTIONAL_INT64_EXTENSION_LITE_FIELD_NUMBER = 2; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Long> optionalInt64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int OPTIONAL_UINT32_EXTENSION_LITE_FIELD_NUMBER = 3; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> optionalUint32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int OPTIONAL_UINT64_EXTENSION_LITE_FIELD_NUMBER = 4; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Long> optionalUint64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int OPTIONAL_SINT32_EXTENSION_LITE_FIELD_NUMBER = 5; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> optionalSint32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int OPTIONAL_SINT64_EXTENSION_LITE_FIELD_NUMBER = 6; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Long> optionalSint64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int OPTIONAL_FIXED32_EXTENSION_LITE_FIELD_NUMBER = 7; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> optionalFixed32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int OPTIONAL_FIXED64_EXTENSION_LITE_FIELD_NUMBER = 8; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Long> optionalFixed64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int OPTIONAL_SFIXED32_EXTENSION_LITE_FIELD_NUMBER = 9; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> optionalSfixed32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int OPTIONAL_SFIXED64_EXTENSION_LITE_FIELD_NUMBER = 10; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Long> optionalSfixed64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int OPTIONAL_FLOAT_EXTENSION_LITE_FIELD_NUMBER = 11; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Float> optionalFloatExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Float.class, null); public static final int OPTIONAL_DOUBLE_EXTENSION_LITE_FIELD_NUMBER = 12; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Double> optionalDoubleExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Double.class, null); public static final int OPTIONAL_BOOL_EXTENSION_LITE_FIELD_NUMBER = 13; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Boolean> optionalBoolExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int OPTIONAL_STRING_EXTENSION_LITE_FIELD_NUMBER = 14; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.String> optionalStringExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int OPTIONAL_BYTES_EXTENSION_LITE_FIELD_NUMBER = 15; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.ByteString> optionalBytesExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.ByteString.class, null); public static final int OPTIONALGROUP_EXTENSION_LITE_FIELD_NUMBER = 16; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.OptionalGroup_extension_lite> optionalGroupExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.class, com.google.protobuf.UnittestLite.OptionalGroup_extension_lite.getDefaultInstance()); public static final int OPTIONAL_NESTED_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 18; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage> optionalNestedMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.class, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()); public static final int OPTIONAL_FOREIGN_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 19; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.ForeignMessageLite> optionalForeignMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.ForeignMessageLite.class, com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()); public static final int OPTIONAL_IMPORT_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 20; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestImportLite.ImportMessageLite> optionalImportMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestImportLite.ImportMessageLite.class, com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance()); public static final int OPTIONAL_NESTED_ENUM_EXTENSION_LITE_FIELD_NUMBER = 21; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum> optionalNestedEnumExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.class, null); public static final int OPTIONAL_FOREIGN_ENUM_EXTENSION_LITE_FIELD_NUMBER = 22; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.ForeignEnumLite> optionalForeignEnumExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.ForeignEnumLite.class, null); public static final int OPTIONAL_IMPORT_ENUM_EXTENSION_LITE_FIELD_NUMBER = 23; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestImportLite.ImportEnumLite> optionalImportEnumExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestImportLite.ImportEnumLite.class, null); public static final int OPTIONAL_STRING_PIECE_EXTENSION_LITE_FIELD_NUMBER = 24; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.String> optionalStringPieceExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int OPTIONAL_CORD_EXTENSION_LITE_FIELD_NUMBER = 25; /** *
   * TODO: ctype=CORD is not supported for extension. Add
   * ctype=CORD option back after it is supported.
   * 
* * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.String> optionalCordExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int OPTIONAL_PUBLIC_IMPORT_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 26; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite> optionalPublicImportMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.class, com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance()); public static final int OPTIONAL_LAZY_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 27; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage> optionalLazyMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.class, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()); public static final int OPTIONAL_UNVERIFIED_LAZY_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 28; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage> optionalUnverifiedLazyMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.class, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()); public static final int REPEATED_INT32_EXTENSION_LITE_FIELD_NUMBER = 31; /** *
   * Repeated
   * 
* * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedInt32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int REPEATED_INT64_EXTENSION_LITE_FIELD_NUMBER = 32; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedInt64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int REPEATED_UINT32_EXTENSION_LITE_FIELD_NUMBER = 33; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedUint32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int REPEATED_UINT64_EXTENSION_LITE_FIELD_NUMBER = 34; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedUint64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int REPEATED_SINT32_EXTENSION_LITE_FIELD_NUMBER = 35; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedSint32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int REPEATED_SINT64_EXTENSION_LITE_FIELD_NUMBER = 36; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedSint64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int REPEATED_FIXED32_EXTENSION_LITE_FIELD_NUMBER = 37; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedFixed32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int REPEATED_FIXED64_EXTENSION_LITE_FIELD_NUMBER = 38; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedFixed64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int REPEATED_SFIXED32_EXTENSION_LITE_FIELD_NUMBER = 39; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedSfixed32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int REPEATED_SFIXED64_EXTENSION_LITE_FIELD_NUMBER = 40; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedSfixed64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int REPEATED_FLOAT_EXTENSION_LITE_FIELD_NUMBER = 41; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedFloatExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Float.class, null); public static final int REPEATED_DOUBLE_EXTENSION_LITE_FIELD_NUMBER = 42; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedDoubleExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Double.class, null); public static final int REPEATED_BOOL_EXTENSION_LITE_FIELD_NUMBER = 43; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedBoolExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int REPEATED_STRING_EXTENSION_LITE_FIELD_NUMBER = 44; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedStringExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int REPEATED_BYTES_EXTENSION_LITE_FIELD_NUMBER = 45; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedBytesExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.ByteString.class, null); public static final int REPEATEDGROUP_EXTENSION_LITE_FIELD_NUMBER = 46; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedGroupExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.class, com.google.protobuf.UnittestLite.RepeatedGroup_extension_lite.getDefaultInstance()); public static final int REPEATED_NESTED_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 48; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedNestedMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.class, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()); public static final int REPEATED_FOREIGN_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 49; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedForeignMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.ForeignMessageLite.class, com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()); public static final int REPEATED_IMPORT_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 50; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedImportMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestImportLite.ImportMessageLite.class, com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance()); public static final int REPEATED_NESTED_ENUM_EXTENSION_LITE_FIELD_NUMBER = 51; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedNestedEnumExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.class, null); public static final int REPEATED_FOREIGN_ENUM_EXTENSION_LITE_FIELD_NUMBER = 52; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedForeignEnumExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.ForeignEnumLite.class, null); public static final int REPEATED_IMPORT_ENUM_EXTENSION_LITE_FIELD_NUMBER = 53; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedImportEnumExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestImportLite.ImportEnumLite.class, null); public static final int REPEATED_STRING_PIECE_EXTENSION_LITE_FIELD_NUMBER = 54; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedStringPieceExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int REPEATED_CORD_EXTENSION_LITE_FIELD_NUMBER = 55; /** *
   * TODO: ctype=CORD is not supported for extension. Add
   * ctype=CORD option back after it is supported.
   * 
* * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedCordExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int REPEATED_LAZY_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 57; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.util.List> repeatedLazyMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.class, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()); public static final int DEFAULT_INT32_EXTENSION_LITE_FIELD_NUMBER = 61; /** *
   * Singular with defaults
   * 
* * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> defaultInt32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int DEFAULT_INT64_EXTENSION_LITE_FIELD_NUMBER = 62; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Long> defaultInt64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int DEFAULT_UINT32_EXTENSION_LITE_FIELD_NUMBER = 63; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> defaultUint32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int DEFAULT_UINT64_EXTENSION_LITE_FIELD_NUMBER = 64; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Long> defaultUint64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int DEFAULT_SINT32_EXTENSION_LITE_FIELD_NUMBER = 65; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> defaultSint32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int DEFAULT_SINT64_EXTENSION_LITE_FIELD_NUMBER = 66; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Long> defaultSint64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int DEFAULT_FIXED32_EXTENSION_LITE_FIELD_NUMBER = 67; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> defaultFixed32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int DEFAULT_FIXED64_EXTENSION_LITE_FIELD_NUMBER = 68; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Long> defaultFixed64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int DEFAULT_SFIXED32_EXTENSION_LITE_FIELD_NUMBER = 69; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> defaultSfixed32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int DEFAULT_SFIXED64_EXTENSION_LITE_FIELD_NUMBER = 70; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Long> defaultSfixed64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int DEFAULT_FLOAT_EXTENSION_LITE_FIELD_NUMBER = 71; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Float> defaultFloatExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Float.class, null); public static final int DEFAULT_DOUBLE_EXTENSION_LITE_FIELD_NUMBER = 72; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Double> defaultDoubleExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Double.class, null); public static final int DEFAULT_BOOL_EXTENSION_LITE_FIELD_NUMBER = 73; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Boolean> defaultBoolExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int DEFAULT_STRING_EXTENSION_LITE_FIELD_NUMBER = 74; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.String> defaultStringExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int DEFAULT_BYTES_EXTENSION_LITE_FIELD_NUMBER = 75; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.ByteString> defaultBytesExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.ByteString.class, null); public static final int DEFAULT_NESTED_ENUM_EXTENSION_LITE_FIELD_NUMBER = 81; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum> defaultNestedEnumExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedEnum.class, null); public static final int DEFAULT_FOREIGN_ENUM_EXTENSION_LITE_FIELD_NUMBER = 82; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.ForeignEnumLite> defaultForeignEnumExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.ForeignEnumLite.class, null); public static final int DEFAULT_IMPORT_ENUM_EXTENSION_LITE_FIELD_NUMBER = 83; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestImportLite.ImportEnumLite> defaultImportEnumExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestImportLite.ImportEnumLite.class, null); public static final int DEFAULT_STRING_PIECE_EXTENSION_LITE_FIELD_NUMBER = 84; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.String> defaultStringPieceExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int DEFAULT_CORD_EXTENSION_LITE_FIELD_NUMBER = 85; /** *
   * TODO: ctype=CORD is not supported for extension. Add
   * ctype=CORD option back after it is supported.
   * 
* * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.String> defaultCordExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int ONEOF_UINT32_EXTENSION_LITE_FIELD_NUMBER = 111; /** *
   * For oneof test
   * 
* * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.Integer> oneofUint32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int ONEOF_NESTED_MESSAGE_EXTENSION_LITE_FIELD_NUMBER = 112; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage> oneofNestedMessageExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.class, com.google.protobuf.UnittestLite.TestAllTypesLite.NestedMessage.getDefaultInstance()); public static final int ONEOF_STRING_EXTENSION_LITE_FIELD_NUMBER = 113; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, java.lang.String> oneofStringExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.String.class, null); public static final int ONEOF_BYTES_EXTENSION_LITE_FIELD_NUMBER = 114; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, com.google.protobuf.ByteString> oneofBytesExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.ByteString.class, null); public static final int PACKED_INT32_EXTENSION_LITE_FIELD_NUMBER = 90; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedInt32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_INT64_EXTENSION_LITE_FIELD_NUMBER = 91; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedInt64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int PACKED_UINT32_EXTENSION_LITE_FIELD_NUMBER = 92; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedUint32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_UINT64_EXTENSION_LITE_FIELD_NUMBER = 93; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedUint64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int PACKED_SINT32_EXTENSION_LITE_FIELD_NUMBER = 94; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedSint32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_SINT64_EXTENSION_LITE_FIELD_NUMBER = 95; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedSint64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int PACKED_FIXED32_EXTENSION_LITE_FIELD_NUMBER = 96; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedFixed32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_FIXED64_EXTENSION_LITE_FIELD_NUMBER = 97; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedFixed64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int PACKED_SFIXED32_EXTENSION_LITE_FIELD_NUMBER = 98; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedSfixed32ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Integer.class, null); public static final int PACKED_SFIXED64_EXTENSION_LITE_FIELD_NUMBER = 99; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedSfixed64ExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Long.class, null); public static final int PACKED_FLOAT_EXTENSION_LITE_FIELD_NUMBER = 100; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedFloatExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Float.class, null); public static final int PACKED_DOUBLE_EXTENSION_LITE_FIELD_NUMBER = 101; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedDoubleExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Double.class, null); public static final int PACKED_BOOL_EXTENSION_LITE_FIELD_NUMBER = 102; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedBoolExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( java.lang.Boolean.class, null); public static final int PACKED_ENUM_EXTENSION_LITE_FIELD_NUMBER = 103; /** * extend .proto2_unittest.TestPackedExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestPackedExtensionsLite, java.util.List> packedEnumExtensionLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.ForeignEnumLite.class, null); public static final int TEST_ALL_TYPES_LITE_FIELD_NUMBER = 536860000; /** * extend .proto2_unittest.TestHugeFieldNumbersLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestHugeFieldNumbersLite, com.google.protobuf.UnittestLite.TestAllTypesLite> testAllTypesLite = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.google.protobuf.UnittestLite.TestAllTypesLite.class, com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestAllTypesLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestAllTypesLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestAllTypesLite_NestedMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestAllTypesLite_NestedMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestAllTypesLite_NestedMessage2_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestAllTypesLite_NestedMessage2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestAllTypesLite_OptionalGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestAllTypesLite_OptionalGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestAllTypesLite_RepeatedGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestAllTypesLite_RepeatedGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_ForeignMessageLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_ForeignMessageLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestPackedTypesLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestPackedTypesLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestAllExtensionsLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestAllExtensionsLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_OptionalGroup_extension_lite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_OptionalGroup_extension_lite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_RepeatedGroup_extension_lite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_RepeatedGroup_extension_lite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestPackedExtensionsLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestPackedExtensionsLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestNestedExtensionLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestNestedExtensionLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestDeprecatedLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestDeprecatedLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestParsingMergeLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestParsingMergeLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestParsingMergeLite_OptionalGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestParsingMergeLite_OptionalGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestParsingMergeLite_RepeatedGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestParsingMergeLite_RepeatedGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMergeExceptionLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMergeExceptionLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestEmptyMessageLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestEmptyMessageLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestEmptyMessageWithExtensionsLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestEmptyMessageWithExtensionsLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_V1MessageLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_V1MessageLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_V2MessageLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_V2MessageLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestHugeFieldNumbersLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestHugeFieldNumbersLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestHugeFieldNumbersLite_OptionalGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestHugeFieldNumbersLite_OptionalGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestHugeFieldNumbersLite_StringStringMapEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestHugeFieldNumbersLite_StringStringMapEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestOneofParsingLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestOneofParsingLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMessageSetLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMessageSetLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_PackedInt32_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_PackedInt32_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_NonPackedInt32_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_NonPackedInt32_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_PackedFixed32_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_PackedFixed32_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_NonPackedFixed32_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_NonPackedFixed32_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_DupEnum_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_DupEnum_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_RecursiveMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_RecursiveMessage_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n#google/protobuf/unittest_lite.proto\022\017p" + "roto2_unittest\032*google/protobuf/unittest" + "_import_lite.proto\"\205\034\n\020TestAllTypesLite\022" + "\026\n\016optional_int32\030\001 \001(\005\022\026\n\016optional_int6" + "4\030\002 \001(\003\022\027\n\017optional_uint32\030\003 \001(\r\022\027\n\017opti" + "onal_uint64\030\004 \001(\004\022\027\n\017optional_sint32\030\005 \001" + "(\021\022\027\n\017optional_sint64\030\006 \001(\022\022\030\n\020optional_" + "fixed32\030\007 \001(\007\022\030\n\020optional_fixed64\030\010 \001(\006\022" + "\031\n\021optional_sfixed32\030\t \001(\017\022\031\n\021optional_s" + "fixed64\030\n \001(\020\022\026\n\016optional_float\030\013 \001(\002\022\027\n" + "\017optional_double\030\014 \001(\001\022\025\n\roptional_bool\030" + "\r \001(\010\022\027\n\017optional_string\030\016 \001(\t\022\026\n\016option" + "al_bytes\030\017 \001(\014\022F\n\roptionalgroup\030\020 \001(\n2/." + "proto2_unittest.TestAllTypesLite.Optiona" + "lGroup\022P\n\027optional_nested_message\030\022 \001(\0132" + "/.proto2_unittest.TestAllTypesLite.Neste" + "dMessage\022E\n\030optional_foreign_message\030\023 \001" + "(\0132#.proto2_unittest.ForeignMessageLite\022" + "L\n\027optional_import_message\030\024 \001(\0132+.proto" + "buf_unittest_import.ImportMessageLite\022J\n" + "\024optional_nested_enum\030\025 \001(\0162,.proto2_uni" + "ttest.TestAllTypesLite.NestedEnum\022?\n\025opt" + "ional_foreign_enum\030\026 \001(\0162 .proto2_unitte" + "st.ForeignEnumLite\022F\n\024optional_import_en" + "um\030\027 \001(\0162(.protobuf_unittest_import.Impo" + "rtEnumLite\022!\n\025optional_string_piece\030\030 \001(" + "\tB\002\010\002\022\031\n\roptional_cord\030\031 \001(\tB\002\010\001\022Y\n\036opti" + "onal_public_import_message\030\032 \001(\01321.proto" + "buf_unittest_import.PublicImportMessageL" + "ite\022R\n\025optional_lazy_message\030\033 \001(\0132/.pro" + "to2_unittest.TestAllTypesLite.NestedMess" + "ageB\002(\001\022]\n optional_unverified_lazy_mess" + "age\030\034 \001(\0132/.proto2_unittest.TestAllTypes" + "Lite.NestedMessageB\002x\001\022\026\n\016repeated_int32" + "\030\037 \003(\005\022\026\n\016repeated_int64\030 \003(\003\022\027\n\017repeat" + "ed_uint32\030! \003(\r\022\027\n\017repeated_uint64\030\" \003(\004" + "\022\027\n\017repeated_sint32\030# \003(\021\022\027\n\017repeated_si" + "nt64\030$ \003(\022\022\030\n\020repeated_fixed32\030% \003(\007\022\030\n\020" + "repeated_fixed64\030& \003(\006\022\031\n\021repeated_sfixe" + "d32\030\' \003(\017\022\031\n\021repeated_sfixed64\030( \003(\020\022\026\n\016" + "repeated_float\030) \003(\002\022\027\n\017repeated_double\030" + "* \003(\001\022\025\n\rrepeated_bool\030+ \003(\010\022\027\n\017repeated" + "_string\030, \003(\t\022\026\n\016repeated_bytes\030- \003(\014\022F\n" + "\rrepeatedgroup\030. \003(\n2/.proto2_unittest.T" + "estAllTypesLite.RepeatedGroup\022P\n\027repeate" + "d_nested_message\0300 \003(\0132/.proto2_unittest" + ".TestAllTypesLite.NestedMessage\022E\n\030repea" + "ted_foreign_message\0301 \003(\0132#.proto2_unitt" + "est.ForeignMessageLite\022L\n\027repeated_impor" + "t_message\0302 \003(\0132+.protobuf_unittest_impo" + "rt.ImportMessageLite\022J\n\024repeated_nested_" + "enum\0303 \003(\0162,.proto2_unittest.TestAllType" + "sLite.NestedEnum\022?\n\025repeated_foreign_enu" + "m\0304 \003(\0162 .proto2_unittest.ForeignEnumLit" + "e\022F\n\024repeated_import_enum\0305 \003(\0162(.protob" + "uf_unittest_import.ImportEnumLite\022!\n\025rep" + "eated_string_piece\0306 \003(\tB\002\010\002\022\031\n\rrepeated" + "_cord\0307 \003(\tB\002\010\001\022R\n\025repeated_lazy_message" + "\0309 \003(\0132/.proto2_unittest.TestAllTypesLit" + "e.NestedMessageB\002(\001\022\031\n\rdefault_int32\030= \001" + "(\005:\00241\022\031\n\rdefault_int64\030> \001(\003:\00242\022\032\n\016def" + "ault_uint32\030? \001(\r:\00243\022\032\n\016default_uint64\030" + "@ \001(\004:\00244\022\033\n\016default_sint32\030A \001(\021:\003-45\022\032" + "\n\016default_sint64\030B \001(\022:\00246\022\033\n\017default_fi" + "xed32\030C \001(\007:\00247\022\033\n\017default_fixed64\030D \001(\006" + ":\00248\022\034\n\020default_sfixed32\030E \001(\017:\00249\022\035\n\020de" + "fault_sfixed64\030F \001(\020:\003-50\022\033\n\rdefault_flo" + "at\030G \001(\002:\00451.5\022\035\n\016default_double\030H \001(\001:\005" + "52000\022\032\n\014default_bool\030I \001(\010:\004true\022\035\n\016def" + "ault_string\030J \001(\t:\005hello\022\034\n\rdefault_byte" + "s\030K \001(\014:\005world\022N\n\023default_nested_enum\030Q " + "\001(\0162,.proto2_unittest.TestAllTypesLite.N" + "estedEnum:\003BAR\022P\n\024default_foreign_enum\030R" + " \001(\0162 .proto2_unittest.ForeignEnumLite:\020" + "FOREIGN_LITE_BAR\022V\n\023default_import_enum\030" + "S \001(\0162(.protobuf_unittest_import.ImportE" + "numLite:\017IMPORT_LITE_BAR\022%\n\024default_stri" + "ng_piece\030T \001(\t:\003abcB\002\010\002\022\035\n\014default_cord\030" + "U \001(\t:\003123B\002\010\001\022\026\n\014oneof_uint32\030o \001(\rH\000\022O" + "\n\024oneof_nested_message\030p \001(\0132/.proto2_un" + "ittest.TestAllTypesLite.NestedMessageH\000\022" + "\026\n\014oneof_string\030q \001(\tH\000\022\025\n\013oneof_bytes\030r" + " \001(\014H\000\022X\n\031oneof_lazy_nested_message\030s \001(" + "\0132/.proto2_unittest.TestAllTypesLite.Nes" + "tedMessageB\002(\001H\000\022Q\n\025oneof_nested_message" + "2\030u \001(\01320.proto2_unittest.TestAllTypesLi" + "te.NestedMessage2H\000\022\036\n\026deceptively_named" + "_list\030t \001(\005\0327\n\rNestedMessage\022\n\n\002bb\030\001 \001(\005" + "\022\n\n\002cc\030\002 \001(\003\022\016\n\002dd\030\003 \003(\005B\002\020\001\032\034\n\016NestedMe" + "ssage2\022\n\n\002dd\030\001 \001(\005\032\032\n\rOptionalGroup\022\t\n\001a" + "\030\021 \001(\005\032\032\n\rRepeatedGroup\022\t\n\001a\030/ \001(\005\"\'\n\nNe" + "stedEnum\022\007\n\003FOO\020\001\022\007\n\003BAR\020\002\022\007\n\003BAZ\020\003B\r\n\013o" + "neof_field\"\037\n\022ForeignMessageLite\022\t\n\001c\030\001 " + "\001(\005\"\260\003\n\023TestPackedTypesLite\022\030\n\014packed_in" + "t32\030Z \003(\005B\002\020\001\022\030\n\014packed_int64\030[ \003(\003B\002\020\001\022" + "\031\n\rpacked_uint32\030\\ \003(\rB\002\020\001\022\031\n\rpacked_uin" + "t64\030] \003(\004B\002\020\001\022\031\n\rpacked_sint32\030^ \003(\021B\002\020\001" + "\022\031\n\rpacked_sint64\030_ \003(\022B\002\020\001\022\032\n\016packed_fi" + "xed32\030` \003(\007B\002\020\001\022\032\n\016packed_fixed64\030a \003(\006B" + "\002\020\001\022\033\n\017packed_sfixed32\030b \003(\017B\002\020\001\022\033\n\017pack" + "ed_sfixed64\030c \003(\020B\002\020\001\022\030\n\014packed_float\030d " + "\003(\002B\002\020\001\022\031\n\rpacked_double\030e \003(\001B\002\020\001\022\027\n\013pa" + "cked_bool\030f \003(\010B\002\020\001\0229\n\013packed_enum\030g \003(\016" + "2 .proto2_unittest.ForeignEnumLiteB\002\020\001\"!" + "\n\025TestAllExtensionsLite*\010\010\001\020\200\200\200\200\002\")\n\034Opt" + "ionalGroup_extension_lite\022\t\n\001a\030\021 \001(\005\")\n\034" + "RepeatedGroup_extension_lite\022\t\n\001a\030/ \001(\005\"" + "$\n\030TestPackedExtensionsLite*\010\010\001\020\200\200\200\200\002\"\\\n" + "\027TestNestedExtensionLite2A\n\020nested_exten" + "sion\022&.proto2_unittest.TestAllExtensions" + "Lite\030\271` \001(\005\"\264\001\n\022TestDeprecatedLite\022\034\n\020de" + "precated_field\030\001 \001(\005B\002\030\001\022\035\n\021deprecated_f" + "ield2\030\002 \002(\005B\002\030\001\022\035\n\021deprecated_field3\030\003 \001" + "(\tB\002\030\001\022B\n\021deprecated_field4\030\004 \001(\0132#.prot" + "o2_unittest.TestDeprecatedLiteB\002\030\001\"\243\n\n\024T" + "estParsingMergeLite\022=\n\022required_all_type" + "s\030\001 \002(\0132!.proto2_unittest.TestAllTypesLi" + "te\022=\n\022optional_all_types\030\002 \001(\0132!.proto2_" + "unittest.TestAllTypesLite\022=\n\022repeated_al" + "l_types\030\003 \003(\0132!.proto2_unittest.TestAllT" + "ypesLite\022J\n\roptionalgroup\030\n \001(\n23.proto2" + "_unittest.TestParsingMergeLite.OptionalG" + "roup\022J\n\rrepeatedgroup\030\024 \003(\n23.proto2_uni" + "ttest.TestParsingMergeLite.RepeatedGroup" + "\032\274\004\n\027RepeatedFieldsGenerator\0221\n\006field1\030\001" + " \003(\0132!.proto2_unittest.TestAllTypesLite\022" + "1\n\006field2\030\002 \003(\0132!.proto2_unittest.TestAl" + "lTypesLite\0221\n\006field3\030\003 \003(\0132!.proto2_unit" + "test.TestAllTypesLite\022T\n\006group1\030\n \003(\n2D." + "proto2_unittest.TestParsingMergeLite.Rep" + "eatedFieldsGenerator.Group1\022T\n\006group2\030\024 " + "\003(\n2D.proto2_unittest.TestParsingMergeLi" + "te.RepeatedFieldsGenerator.Group2\0220\n\004ext" + "1\030\350\007 \003(\0132!.proto2_unittest.TestAllTypesL" + "ite\0220\n\004ext2\030\351\007 \003(\0132!.proto2_unittest.Tes" + "tAllTypesLite\032;\n\006Group1\0221\n\006field1\030\013 \001(\0132" + "!.proto2_unittest.TestAllTypesLite\032;\n\006Gr" + "oup2\0221\n\006field1\030\025 \001(\0132!.proto2_unittest.T" + "estAllTypesLite\032T\n\rOptionalGroup\022C\n\030opti" + "onal_group_all_types\030\013 \001(\0132!.proto2_unit" + "test.TestAllTypesLite\032T\n\rRepeatedGroup\022C" + "\n\030repeated_group_all_types\030\025 \001(\0132!.proto" + "2_unittest.TestAllTypesLite*\t\010\350\007\020\200\200\200\200\0022_" + "\n\014optional_ext\022%.proto2_unittest.TestPar" + "singMergeLite\030\350\007 \001(\0132!.proto2_unittest.T" + "estAllTypesLite2_\n\014repeated_ext\022%.proto2" + "_unittest.TestParsingMergeLite\030\351\007 \003(\0132!." + "proto2_unittest.TestAllTypesLite\"X\n\026Test" + "MergeExceptionLite\022>\n\016all_extensions\030\001 \001" + "(\0132&.proto2_unittest.TestAllExtensionsLi" + "te\"\026\n\024TestEmptyMessageLite\".\n\"TestEmptyM" + "essageWithExtensionsLite*\010\010\001\020\200\200\200\200\002\"]\n\rV1" + "MessageLite\022\021\n\tint_field\030\001 \002(\005\0229\n\nenum_f" + "ield\030\002 \001(\0162\033.proto2_unittest.V1EnumLite:" + "\010V1_FIRST\"]\n\rV2MessageLite\022\021\n\tint_field\030" + "\001 \002(\005\0229\n\nenum_field\030\002 \001(\0162\033.proto2_unitt" + "est.V2EnumLite:\010V2_FIRST\"\213\006\n\030TestHugeFie" + "ldNumbersLite\022\032\n\016optional_int32\030\360\370\377\377\001 \001(" + "\005\022\024\n\010fixed_32\030\361\370\377\377\001 \001(\005\022\036\n\016repeated_int3" + "2\030\362\370\377\377\001 \003(\005B\002\020\000\022\034\n\014packed_int32\030\363\370\377\377\001 \003(" + "\005B\002\020\001\022;\n\roptional_enum\030\364\370\377\377\001 \001(\0162 .proto" + "2_unittest.ForeignEnumLite\022\033\n\017optional_s" + "tring\030\365\370\377\377\001 \001(\t\022\032\n\016optional_bytes\030\366\370\377\377\001 " + "\001(\014\022A\n\020optional_message\030\367\370\377\377\001 \001(\0132#.prot" + "o2_unittest.ForeignMessageLite\022R\n\roption" + "algroup\030\370\370\377\377\001 \001(\n27.proto2_unittest.Test" + "HugeFieldNumbersLite.OptionalGroup\022]\n\021st" + "ring_string_map\030\372\370\377\377\001 \003(\0132>.proto2_unitt" + "est.TestHugeFieldNumbersLite.StringStrin" + "gMapEntry\022\032\n\014oneof_uint32\030\373\370\377\377\001 \001(\rH\000\022E\n" + "\024oneof_test_all_types\030\374\370\377\377\001 \001(\0132!.proto2" + "_unittest.TestAllTypesLiteH\000\022\032\n\014oneof_st" + "ring\030\375\370\377\377\001 \001(\tH\000\022\031\n\013oneof_bytes\030\376\370\377\377\001 \001(" + "\014H\000\032$\n\rOptionalGroup\022\023\n\007group_a\030\371\370\377\377\001 \001(" + "\005\0326\n\024StringStringMapEntry\022\013\n\003key\030\001 \001(\t\022\r" + "\n\005value\030\002 \001(\t:\0028\001*\014\010\340\252\377\377\001\020\360\370\377\377\001B\r\n\013oneof" + "_field\"\241\003\n\024TestOneofParsingLite\022\025\n\013oneof" + "_int32\030\001 \001(\005H\000\022=\n\020oneof_submessage\030\002 \001(\013" + "2!.proto2_unittest.TestAllTypesLiteH\000\022\026\n" + "\014oneof_string\030\003 \001(\tH\000\022$\n\013oneof_bytes\030\004 \001" + "(\014:\rdefault bytesH\000\022-\n\021oneof_string_cord" + "\030\005 \001(\t:\014default CordB\002\010\001H\000\022\036\n\020oneof_byte" + "s_cord\030\006 \001(\014B\002\010\001H\000\022\'\n\031oneof_string_strin" + "g_piece\030\007 \001(\tB\002\010\002H\000\022;\n\030oneof_bytes_strin" + "g_piece\030\010 \001(\014:\023default StringPieceB\002\010\002H\000" + "\0221\n\noneof_enum\030\t \001(\0162\033.proto2_unittest.V" + "2EnumLiteH\000B\r\n\013oneof_field\"\"\n\022TestMessag" + "eSetLite*\010\010d\020\377\377\377\377\007:\002\010\001\"*\n\013PackedInt32\022\033\n" + "\016repeated_int32\030\200\020 \003(\005B\002\020\001\")\n\016NonPackedI" + "nt32\022\027\n\016repeated_int32\030\200\020 \003(\005\".\n\rPackedF" + "ixed32\022\035\n\020repeated_fixed32\030\200\020 \003(\007B\002\020\001\"-\n" + "\020NonPackedFixed32\022\031\n\020repeated_fixed32\030\200\020" + " \003(\007\"Z\n\007DupEnum\"O\n\030TestEnumWithDupValueL" + "ite\022\010\n\004FOO1\020\001\022\010\n\004BAR1\020\002\022\007\n\003BAZ\020\003\022\010\n\004FOO2" + "\020\001\022\010\n\004BAR2\020\002\032\002\020\001\"W\n\020RecursiveMessage\0222\n\007" + "recurse\030\001 \001(\0132!.proto2_unittest.Recursiv" + "eMessage\022\017\n\007payload\030\002 \001(\014*S\n\017ForeignEnum" + "Lite\022\024\n\020FOREIGN_LITE_FOO\020\004\022\024\n\020FOREIGN_LI" + "TE_BAZ\020\006\022\024\n\020FOREIGN_LITE_BAR\020\005*\032\n\nV1Enum" + "Lite\022\014\n\010V1_FIRST\020\001*)\n\nV2EnumLite\022\014\n\010V2_F" + "IRST\020\001\022\r\n\tV2_SECOND\020\002:M\n\035optional_int32_" + "extension_lite\022&.proto2_unittest.TestAll" + "ExtensionsLite\030\001 \001(\005:M\n\035optional_int64_e" + "xtension_lite\022&.proto2_unittest.TestAllE" + "xtensionsLite\030\002 \001(\003:N\n\036optional_uint32_e" + "xtension_lite\022&.proto2_unittest.TestAllE" + "xtensionsLite\030\003 \001(\r:N\n\036optional_uint64_e" + "xtension_lite\022&.proto2_unittest.TestAllE" + "xtensionsLite\030\004 \001(\004:N\n\036optional_sint32_e" + "xtension_lite\022&.proto2_unittest.TestAllE" + "xtensionsLite\030\005 \001(\021:N\n\036optional_sint64_e" + "xtension_lite\022&.proto2_unittest.TestAllE" + "xtensionsLite\030\006 \001(\022:O\n\037optional_fixed32_" + "extension_lite\022&.proto2_unittest.TestAll" + "ExtensionsLite\030\007 \001(\007:O\n\037optional_fixed64" + "_extension_lite\022&.proto2_unittest.TestAl" + "lExtensionsLite\030\010 \001(\006:P\n optional_sfixed" + "32_extension_lite\022&.proto2_unittest.Test" + "AllExtensionsLite\030\t \001(\017:P\n optional_sfix" + "ed64_extension_lite\022&.proto2_unittest.Te" + "stAllExtensionsLite\030\n \001(\020:M\n\035optional_fl" + "oat_extension_lite\022&.proto2_unittest.Tes" + "tAllExtensionsLite\030\013 \001(\002:N\n\036optional_dou" + "ble_extension_lite\022&.proto2_unittest.Tes" + "tAllExtensionsLite\030\014 \001(\001:L\n\034optional_boo" + "l_extension_lite\022&.proto2_unittest.TestA" + "llExtensionsLite\030\r \001(\010:N\n\036optional_strin" + "g_extension_lite\022&.proto2_unittest.TestA" + "llExtensionsLite\030\016 \001(\t:M\n\035optional_bytes" + "_extension_lite\022&.proto2_unittest.TestAl" + "lExtensionsLite\030\017 \001(\014:{\n\034optionalgroup_e" + "xtension_lite\022&.proto2_unittest.TestAllE" + "xtensionsLite\030\020 \001(\n2-.proto2_unittest.Op" + "tionalGroup_extension_lite:\207\001\n&optional_" + "nested_message_extension_lite\022&.proto2_u" + "nittest.TestAllExtensionsLite\030\022 \001(\0132/.pr" + "oto2_unittest.TestAllTypesLite.NestedMes" + "sage:|\n\'optional_foreign_message_extensi" + "on_lite\022&.proto2_unittest.TestAllExtensi" + "onsLite\030\023 \001(\0132#.proto2_unittest.ForeignM" + "essageLite:\203\001\n&optional_import_message_e" + "xtension_lite\022&.proto2_unittest.TestAllE" + "xtensionsLite\030\024 \001(\0132+.protobuf_unittest_" + "import.ImportMessageLite:\201\001\n#optional_ne" + "sted_enum_extension_lite\022&.proto2_unitte" + "st.TestAllExtensionsLite\030\025 \001(\0162,.proto2_" + "unittest.TestAllTypesLite.NestedEnum:v\n$" + "optional_foreign_enum_extension_lite\022&.p" + "roto2_unittest.TestAllExtensionsLite\030\026 \001" + "(\0162 .proto2_unittest.ForeignEnumLite:}\n#" + "optional_import_enum_extension_lite\022&.pr" + "oto2_unittest.TestAllExtensionsLite\030\027 \001(" + "\0162(.protobuf_unittest_import.ImportEnumL" + "ite:X\n$optional_string_piece_extension_l" + "ite\022&.proto2_unittest.TestAllExtensionsL" + "ite\030\030 \001(\tB\002\010\002:L\n\034optional_cord_extension" + "_lite\022&.proto2_unittest.TestAllExtension" + "sLite\030\031 \001(\t:\220\001\n-optional_public_import_m" + "essage_extension_lite\022&.proto2_unittest." + "TestAllExtensionsLite\030\032 \001(\01321.protobuf_u" + "nittest_import.PublicImportMessageLite:\211" + "\001\n$optional_lazy_message_extension_lite\022" + "&.proto2_unittest.TestAllExtensionsLite\030" + "\033 \001(\0132/.proto2_unittest.TestAllTypesLite" + ".NestedMessageB\002(\001:\224\001\n/optional_unverifi" + "ed_lazy_message_extension_lite\022&.proto2_" + "unittest.TestAllExtensionsLite\030\034 \001(\0132/.p" + "roto2_unittest.TestAllTypesLite.NestedMe" + "ssageB\002x\001:M\n\035repeated_int32_extension_li" + "te\022&.proto2_unittest.TestAllExtensionsLi" + "te\030\037 \003(\005:M\n\035repeated_int64_extension_lit" + "e\022&.proto2_unittest.TestAllExtensionsLit" + "e\030 \003(\003:N\n\036repeated_uint32_extension_lit" + "e\022&.proto2_unittest.TestAllExtensionsLit" + "e\030! \003(\r:N\n\036repeated_uint64_extension_lit" + "e\022&.proto2_unittest.TestAllExtensionsLit" + "e\030\" \003(\004:N\n\036repeated_sint32_extension_lit" + "e\022&.proto2_unittest.TestAllExtensionsLit" + "e\030# \003(\021:N\n\036repeated_sint64_extension_lit" + "e\022&.proto2_unittest.TestAllExtensionsLit" + "e\030$ \003(\022:O\n\037repeated_fixed32_extension_li" + "te\022&.proto2_unittest.TestAllExtensionsLi" + "te\030% \003(\007:O\n\037repeated_fixed64_extension_l" + "ite\022&.proto2_unittest.TestAllExtensionsL" + "ite\030& \003(\006:P\n repeated_sfixed32_extension" + "_lite\022&.proto2_unittest.TestAllExtension" + "sLite\030\' \003(\017:P\n repeated_sfixed64_extensi" + "on_lite\022&.proto2_unittest.TestAllExtensi" + "onsLite\030( \003(\020:M\n\035repeated_float_extensio" + "n_lite\022&.proto2_unittest.TestAllExtensio" + "nsLite\030) \003(\002:N\n\036repeated_double_extensio" + "n_lite\022&.proto2_unittest.TestAllExtensio" + "nsLite\030* \003(\001:L\n\034repeated_bool_extension_" + "lite\022&.proto2_unittest.TestAllExtensions" + "Lite\030+ \003(\010:N\n\036repeated_string_extension_" + "lite\022&.proto2_unittest.TestAllExtensions" + "Lite\030, \003(\t:M\n\035repeated_bytes_extension_l" + "ite\022&.proto2_unittest.TestAllExtensionsL" + "ite\030- \003(\014:{\n\034repeatedgroup_extension_lit" + "e\022&.proto2_unittest.TestAllExtensionsLit" + "e\030. \003(\n2-.proto2_unittest.RepeatedGroup_" + "extension_lite:\207\001\n&repeated_nested_messa" + "ge_extension_lite\022&.proto2_unittest.Test" + "AllExtensionsLite\0300 \003(\0132/.proto2_unittes" + "t.TestAllTypesLite.NestedMessage:|\n\'repe" + "ated_foreign_message_extension_lite\022&.pr" + "oto2_unittest.TestAllExtensionsLite\0301 \003(" + "\0132#.proto2_unittest.ForeignMessageLite:\203" + "\001\n&repeated_import_message_extension_lit" + "e\022&.proto2_unittest.TestAllExtensionsLit" + "e\0302 \003(\0132+.protobuf_unittest_import.Impor" + "tMessageLite:\201\001\n#repeated_nested_enum_ex" + "tension_lite\022&.proto2_unittest.TestAllEx" + "tensionsLite\0303 \003(\0162,.proto2_unittest.Tes" + "tAllTypesLite.NestedEnum:v\n$repeated_for" + "eign_enum_extension_lite\022&.proto2_unitte" + "st.TestAllExtensionsLite\0304 \003(\0162 .proto2_" + "unittest.ForeignEnumLite:}\n#repeated_imp" + "ort_enum_extension_lite\022&.proto2_unittes" + "t.TestAllExtensionsLite\0305 \003(\0162(.protobuf" + "_unittest_import.ImportEnumLite:X\n$repea" + "ted_string_piece_extension_lite\022&.proto2" + "_unittest.TestAllExtensionsLite\0306 \003(\tB\002\010" + "\002:L\n\034repeated_cord_extension_lite\022&.prot" + "o2_unittest.TestAllExtensionsLite\0307 \003(\t:" + "\211\001\n$repeated_lazy_message_extension_lite" + "\022&.proto2_unittest.TestAllExtensionsLite" + "\0309 \003(\0132/.proto2_unittest.TestAllTypesLit" + "e.NestedMessageB\002(\001:P\n\034default_int32_ext" + "ension_lite\022&.proto2_unittest.TestAllExt" + "ensionsLite\030= \001(\005:\00241:P\n\034default_int64_e" + "xtension_lite\022&.proto2_unittest.TestAllE" + "xtensionsLite\030> \001(\003:\00242:Q\n\035default_uint3" + "2_extension_lite\022&.proto2_unittest.TestA" + "llExtensionsLite\030? \001(\r:\00243:Q\n\035default_ui" + "nt64_extension_lite\022&.proto2_unittest.Te" + "stAllExtensionsLite\030@ \001(\004:\00244:R\n\035default" + "_sint32_extension_lite\022&.proto2_unittest" + ".TestAllExtensionsLite\030A \001(\021:\003-45:Q\n\035def" + "ault_sint64_extension_lite\022&.proto2_unit" + "test.TestAllExtensionsLite\030B \001(\022:\00246:R\n\036" + "default_fixed32_extension_lite\022&.proto2_" + "unittest.TestAllExtensionsLite\030C \001(\007:\00247" + ":R\n\036default_fixed64_extension_lite\022&.pro" + "to2_unittest.TestAllExtensionsLite\030D \001(\006" + ":\00248:S\n\037default_sfixed32_extension_lite\022" + "&.proto2_unittest.TestAllExtensionsLite\030" + "E \001(\017:\00249:T\n\037default_sfixed64_extension_" + "lite\022&.proto2_unittest.TestAllExtensions" + "Lite\030F \001(\020:\003-50:R\n\034default_float_extensi" + "on_lite\022&.proto2_unittest.TestAllExtensi" + "onsLite\030G \001(\002:\00451.5:T\n\035default_double_ex" + "tension_lite\022&.proto2_unittest.TestAllEx" + "tensionsLite\030H \001(\001:\00552000:Q\n\033default_boo" + "l_extension_lite\022&.proto2_unittest.TestA" + "llExtensionsLite\030I \001(\010:\004true:T\n\035default_" + "string_extension_lite\022&.proto2_unittest." + "TestAllExtensionsLite\030J \001(\t:\005hello:S\n\034de" + "fault_bytes_extension_lite\022&.proto2_unit" + "test.TestAllExtensionsLite\030K \001(\014:\005world:" + "\205\001\n\"default_nested_enum_extension_lite\022&" + ".proto2_unittest.TestAllExtensionsLite\030Q" + " \001(\0162,.proto2_unittest.TestAllTypesLite." + "NestedEnum:\003BAR:\207\001\n#default_foreign_enum" + "_extension_lite\022&.proto2_unittest.TestAl" + "lExtensionsLite\030R \001(\0162 .proto2_unittest." + "ForeignEnumLite:\020FOREIGN_LITE_BAR:\215\001\n\"de" + "fault_import_enum_extension_lite\022&.proto" + "2_unittest.TestAllExtensionsLite\030S \001(\0162(" + ".protobuf_unittest_import.ImportEnumLite" + ":\017IMPORT_LITE_BAR:\\\n#default_string_piec" + "e_extension_lite\022&.proto2_unittest.TestA" + "llExtensionsLite\030T \001(\t:\003abcB\002\010\002:P\n\033defau" + "lt_cord_extension_lite\022&.proto2_unittest" + ".TestAllExtensionsLite\030U \001(\t:\003123:K\n\033one" + "of_uint32_extension_lite\022&.proto2_unitte" + "st.TestAllExtensionsLite\030o \001(\r:\204\001\n#oneof" + "_nested_message_extension_lite\022&.proto2_" + "unittest.TestAllExtensionsLite\030p \001(\0132/.p" + "roto2_unittest.TestAllTypesLite.NestedMe" + "ssage:K\n\033oneof_string_extension_lite\022&.p" + "roto2_unittest.TestAllExtensionsLite\030q \001" + "(\t:J\n\032oneof_bytes_extension_lite\022&.proto" + "2_unittest.TestAllExtensionsLite\030r \001(\014:R" + "\n\033packed_int32_extension_lite\022).proto2_u" + "nittest.TestPackedExtensionsLite\030Z \003(\005B\002" + "\020\001:R\n\033packed_int64_extension_lite\022).prot" + "o2_unittest.TestPackedExtensionsLite\030[ \003" + "(\003B\002\020\001:S\n\034packed_uint32_extension_lite\022)" + ".proto2_unittest.TestPackedExtensionsLit" + "e\030\\ \003(\rB\002\020\001:S\n\034packed_uint64_extension_l" + "ite\022).proto2_unittest.TestPackedExtensio" + "nsLite\030] \003(\004B\002\020\001:S\n\034packed_sint32_extens" + "ion_lite\022).proto2_unittest.TestPackedExt" + "ensionsLite\030^ \003(\021B\002\020\001:S\n\034packed_sint64_e" + "xtension_lite\022).proto2_unittest.TestPack" + "edExtensionsLite\030_ \003(\022B\002\020\001:T\n\035packed_fix" + "ed32_extension_lite\022).proto2_unittest.Te" + "stPackedExtensionsLite\030` \003(\007B\002\020\001:T\n\035pack" + "ed_fixed64_extension_lite\022).proto2_unitt", "est.TestPackedExtensionsLite\030a \003(\006B\002\020\001:U" + "\n\036packed_sfixed32_extension_lite\022).proto" + "2_unittest.TestPackedExtensionsLite\030b \003(" + "\017B\002\020\001:U\n\036packed_sfixed64_extension_lite\022" + ").proto2_unittest.TestPackedExtensionsLi" + "te\030c \003(\020B\002\020\001:R\n\033packed_float_extension_l" + "ite\022).proto2_unittest.TestPackedExtensio" + "nsLite\030d \003(\002B\002\020\001:S\n\034packed_double_extens" + "ion_lite\022).proto2_unittest.TestPackedExt" + "ensionsLite\030e \003(\001B\002\020\001:Q\n\032packed_bool_ext" + "ension_lite\022).proto2_unittest.TestPacked" + "ExtensionsLite\030f \003(\010B\002\020\001:s\n\032packed_enum_" + "extension_lite\022).proto2_unittest.TestPac" + "kedExtensionsLite\030g \003(\0162 .proto2_unittes" + "t.ForeignEnumLiteB\002\020\001:m\n\023test_all_types_" + "lite\022).proto2_unittest.TestHugeFieldNumb" + "ersLite\030\340\252\377\377\001 \001(\0132!.proto2_unittest.Test" + "AllTypesLiteB\032\n\023com.google.protobufH\003\370\001\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.UnittestImportLite.getDescriptor(), }); internal_static_proto2_unittest_TestAllTypesLite_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_proto2_unittest_TestAllTypesLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestAllTypesLite_descriptor, new java.lang.String[] { "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalGroup", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalImportMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalImportEnum", "OptionalStringPiece", "OptionalCord", "OptionalPublicImportMessage", "OptionalLazyMessage", "OptionalUnverifiedLazyMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedGroup", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedStringPiece", "RepeatedCord", "RepeatedLazyMessage", "DefaultInt32", "DefaultInt64", "DefaultUint32", "DefaultUint64", "DefaultSint32", "DefaultSint64", "DefaultFixed32", "DefaultFixed64", "DefaultSfixed32", "DefaultSfixed64", "DefaultFloat", "DefaultDouble", "DefaultBool", "DefaultString", "DefaultBytes", "DefaultNestedEnum", "DefaultForeignEnum", "DefaultImportEnum", "DefaultStringPiece", "DefaultCord", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OneofLazyNestedMessage", "OneofNestedMessage2", "DeceptivelyNamedList", "OneofField", }); internal_static_proto2_unittest_TestAllTypesLite_NestedMessage_descriptor = internal_static_proto2_unittest_TestAllTypesLite_descriptor.getNestedTypes().get(0); internal_static_proto2_unittest_TestAllTypesLite_NestedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestAllTypesLite_NestedMessage_descriptor, new java.lang.String[] { "Bb", "Cc", "Dd", }); internal_static_proto2_unittest_TestAllTypesLite_NestedMessage2_descriptor = internal_static_proto2_unittest_TestAllTypesLite_descriptor.getNestedTypes().get(1); internal_static_proto2_unittest_TestAllTypesLite_NestedMessage2_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestAllTypesLite_NestedMessage2_descriptor, new java.lang.String[] { "Dd", }); internal_static_proto2_unittest_TestAllTypesLite_OptionalGroup_descriptor = internal_static_proto2_unittest_TestAllTypesLite_descriptor.getNestedTypes().get(2); internal_static_proto2_unittest_TestAllTypesLite_OptionalGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestAllTypesLite_OptionalGroup_descriptor, new java.lang.String[] { "A", }); internal_static_proto2_unittest_TestAllTypesLite_RepeatedGroup_descriptor = internal_static_proto2_unittest_TestAllTypesLite_descriptor.getNestedTypes().get(3); internal_static_proto2_unittest_TestAllTypesLite_RepeatedGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestAllTypesLite_RepeatedGroup_descriptor, new java.lang.String[] { "A", }); internal_static_proto2_unittest_ForeignMessageLite_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto2_unittest_ForeignMessageLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_ForeignMessageLite_descriptor, new java.lang.String[] { "C", }); internal_static_proto2_unittest_TestPackedTypesLite_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_proto2_unittest_TestPackedTypesLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestPackedTypesLite_descriptor, new java.lang.String[] { "PackedInt32", "PackedInt64", "PackedUint32", "PackedUint64", "PackedSint32", "PackedSint64", "PackedFixed32", "PackedFixed64", "PackedSfixed32", "PackedSfixed64", "PackedFloat", "PackedDouble", "PackedBool", "PackedEnum", }); internal_static_proto2_unittest_TestAllExtensionsLite_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_proto2_unittest_TestAllExtensionsLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestAllExtensionsLite_descriptor, new java.lang.String[] { }); internal_static_proto2_unittest_OptionalGroup_extension_lite_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_proto2_unittest_OptionalGroup_extension_lite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_OptionalGroup_extension_lite_descriptor, new java.lang.String[] { "A", }); internal_static_proto2_unittest_RepeatedGroup_extension_lite_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_proto2_unittest_RepeatedGroup_extension_lite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_RepeatedGroup_extension_lite_descriptor, new java.lang.String[] { "A", }); internal_static_proto2_unittest_TestPackedExtensionsLite_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_proto2_unittest_TestPackedExtensionsLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestPackedExtensionsLite_descriptor, new java.lang.String[] { }); internal_static_proto2_unittest_TestNestedExtensionLite_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_proto2_unittest_TestNestedExtensionLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestNestedExtensionLite_descriptor, new java.lang.String[] { }); internal_static_proto2_unittest_TestDeprecatedLite_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_proto2_unittest_TestDeprecatedLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestDeprecatedLite_descriptor, new java.lang.String[] { "DeprecatedField", "DeprecatedField2", "DeprecatedField3", "DeprecatedField4", }); internal_static_proto2_unittest_TestParsingMergeLite_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_proto2_unittest_TestParsingMergeLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestParsingMergeLite_descriptor, new java.lang.String[] { "RequiredAllTypes", "OptionalAllTypes", "RepeatedAllTypes", "OptionalGroup", "RepeatedGroup", }); internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_descriptor = internal_static_proto2_unittest_TestParsingMergeLite_descriptor.getNestedTypes().get(0); internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_descriptor, new java.lang.String[] { "Field1", "Field2", "Field3", "Group1", "Group2", "Ext1", "Ext2", }); internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_descriptor = internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_descriptor.getNestedTypes().get(0); internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_descriptor, new java.lang.String[] { "Field1", }); internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_descriptor = internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_descriptor.getNestedTypes().get(1); internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_descriptor, new java.lang.String[] { "Field1", }); internal_static_proto2_unittest_TestParsingMergeLite_OptionalGroup_descriptor = internal_static_proto2_unittest_TestParsingMergeLite_descriptor.getNestedTypes().get(1); internal_static_proto2_unittest_TestParsingMergeLite_OptionalGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestParsingMergeLite_OptionalGroup_descriptor, new java.lang.String[] { "OptionalGroupAllTypes", }); internal_static_proto2_unittest_TestParsingMergeLite_RepeatedGroup_descriptor = internal_static_proto2_unittest_TestParsingMergeLite_descriptor.getNestedTypes().get(2); internal_static_proto2_unittest_TestParsingMergeLite_RepeatedGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestParsingMergeLite_RepeatedGroup_descriptor, new java.lang.String[] { "RepeatedGroupAllTypes", }); internal_static_proto2_unittest_TestMergeExceptionLite_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_proto2_unittest_TestMergeExceptionLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMergeExceptionLite_descriptor, new java.lang.String[] { "AllExtensions", }); internal_static_proto2_unittest_TestEmptyMessageLite_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_proto2_unittest_TestEmptyMessageLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestEmptyMessageLite_descriptor, new java.lang.String[] { }); internal_static_proto2_unittest_TestEmptyMessageWithExtensionsLite_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_proto2_unittest_TestEmptyMessageWithExtensionsLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestEmptyMessageWithExtensionsLite_descriptor, new java.lang.String[] { }); internal_static_proto2_unittest_V1MessageLite_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_proto2_unittest_V1MessageLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_V1MessageLite_descriptor, new java.lang.String[] { "IntField", "EnumField", }); internal_static_proto2_unittest_V2MessageLite_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_proto2_unittest_V2MessageLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_V2MessageLite_descriptor, new java.lang.String[] { "IntField", "EnumField", }); internal_static_proto2_unittest_TestHugeFieldNumbersLite_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_proto2_unittest_TestHugeFieldNumbersLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestHugeFieldNumbersLite_descriptor, new java.lang.String[] { "OptionalInt32", "Fixed32", "RepeatedInt32", "PackedInt32", "OptionalEnum", "OptionalString", "OptionalBytes", "OptionalMessage", "OptionalGroup", "StringStringMap", "OneofUint32", "OneofTestAllTypes", "OneofString", "OneofBytes", "OneofField", }); internal_static_proto2_unittest_TestHugeFieldNumbersLite_OptionalGroup_descriptor = internal_static_proto2_unittest_TestHugeFieldNumbersLite_descriptor.getNestedTypes().get(0); internal_static_proto2_unittest_TestHugeFieldNumbersLite_OptionalGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestHugeFieldNumbersLite_OptionalGroup_descriptor, new java.lang.String[] { "GroupA", }); internal_static_proto2_unittest_TestHugeFieldNumbersLite_StringStringMapEntry_descriptor = internal_static_proto2_unittest_TestHugeFieldNumbersLite_descriptor.getNestedTypes().get(1); internal_static_proto2_unittest_TestHugeFieldNumbersLite_StringStringMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestHugeFieldNumbersLite_StringStringMapEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestOneofParsingLite_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_proto2_unittest_TestOneofParsingLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestOneofParsingLite_descriptor, new java.lang.String[] { "OneofInt32", "OneofSubmessage", "OneofString", "OneofBytes", "OneofStringCord", "OneofBytesCord", "OneofStringStringPiece", "OneofBytesStringPiece", "OneofEnum", "OneofField", }); internal_static_proto2_unittest_TestMessageSetLite_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_proto2_unittest_TestMessageSetLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMessageSetLite_descriptor, new java.lang.String[] { }); internal_static_proto2_unittest_PackedInt32_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_proto2_unittest_PackedInt32_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_PackedInt32_descriptor, new java.lang.String[] { "RepeatedInt32", }); internal_static_proto2_unittest_NonPackedInt32_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_proto2_unittest_NonPackedInt32_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_NonPackedInt32_descriptor, new java.lang.String[] { "RepeatedInt32", }); internal_static_proto2_unittest_PackedFixed32_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_proto2_unittest_PackedFixed32_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_PackedFixed32_descriptor, new java.lang.String[] { "RepeatedFixed32", }); internal_static_proto2_unittest_NonPackedFixed32_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_proto2_unittest_NonPackedFixed32_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_NonPackedFixed32_descriptor, new java.lang.String[] { "RepeatedFixed32", }); internal_static_proto2_unittest_DupEnum_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_proto2_unittest_DupEnum_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_DupEnum_descriptor, new java.lang.String[] { }); internal_static_proto2_unittest_RecursiveMessage_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_proto2_unittest_RecursiveMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_RecursiveMessage_descriptor, new java.lang.String[] { "Recurse", "Payload", }); optionalInt32ExtensionLite.internalInit(descriptor.getExtensions().get(0)); optionalInt64ExtensionLite.internalInit(descriptor.getExtensions().get(1)); optionalUint32ExtensionLite.internalInit(descriptor.getExtensions().get(2)); optionalUint64ExtensionLite.internalInit(descriptor.getExtensions().get(3)); optionalSint32ExtensionLite.internalInit(descriptor.getExtensions().get(4)); optionalSint64ExtensionLite.internalInit(descriptor.getExtensions().get(5)); optionalFixed32ExtensionLite.internalInit(descriptor.getExtensions().get(6)); optionalFixed64ExtensionLite.internalInit(descriptor.getExtensions().get(7)); optionalSfixed32ExtensionLite.internalInit(descriptor.getExtensions().get(8)); optionalSfixed64ExtensionLite.internalInit(descriptor.getExtensions().get(9)); optionalFloatExtensionLite.internalInit(descriptor.getExtensions().get(10)); optionalDoubleExtensionLite.internalInit(descriptor.getExtensions().get(11)); optionalBoolExtensionLite.internalInit(descriptor.getExtensions().get(12)); optionalStringExtensionLite.internalInit(descriptor.getExtensions().get(13)); optionalBytesExtensionLite.internalInit(descriptor.getExtensions().get(14)); optionalGroupExtensionLite.internalInit(descriptor.getExtensions().get(15)); optionalNestedMessageExtensionLite.internalInit(descriptor.getExtensions().get(16)); optionalForeignMessageExtensionLite.internalInit(descriptor.getExtensions().get(17)); optionalImportMessageExtensionLite.internalInit(descriptor.getExtensions().get(18)); optionalNestedEnumExtensionLite.internalInit(descriptor.getExtensions().get(19)); optionalForeignEnumExtensionLite.internalInit(descriptor.getExtensions().get(20)); optionalImportEnumExtensionLite.internalInit(descriptor.getExtensions().get(21)); optionalStringPieceExtensionLite.internalInit(descriptor.getExtensions().get(22)); optionalCordExtensionLite.internalInit(descriptor.getExtensions().get(23)); optionalPublicImportMessageExtensionLite.internalInit(descriptor.getExtensions().get(24)); optionalLazyMessageExtensionLite.internalInit(descriptor.getExtensions().get(25)); optionalUnverifiedLazyMessageExtensionLite.internalInit(descriptor.getExtensions().get(26)); repeatedInt32ExtensionLite.internalInit(descriptor.getExtensions().get(27)); repeatedInt64ExtensionLite.internalInit(descriptor.getExtensions().get(28)); repeatedUint32ExtensionLite.internalInit(descriptor.getExtensions().get(29)); repeatedUint64ExtensionLite.internalInit(descriptor.getExtensions().get(30)); repeatedSint32ExtensionLite.internalInit(descriptor.getExtensions().get(31)); repeatedSint64ExtensionLite.internalInit(descriptor.getExtensions().get(32)); repeatedFixed32ExtensionLite.internalInit(descriptor.getExtensions().get(33)); repeatedFixed64ExtensionLite.internalInit(descriptor.getExtensions().get(34)); repeatedSfixed32ExtensionLite.internalInit(descriptor.getExtensions().get(35)); repeatedSfixed64ExtensionLite.internalInit(descriptor.getExtensions().get(36)); repeatedFloatExtensionLite.internalInit(descriptor.getExtensions().get(37)); repeatedDoubleExtensionLite.internalInit(descriptor.getExtensions().get(38)); repeatedBoolExtensionLite.internalInit(descriptor.getExtensions().get(39)); repeatedStringExtensionLite.internalInit(descriptor.getExtensions().get(40)); repeatedBytesExtensionLite.internalInit(descriptor.getExtensions().get(41)); repeatedGroupExtensionLite.internalInit(descriptor.getExtensions().get(42)); repeatedNestedMessageExtensionLite.internalInit(descriptor.getExtensions().get(43)); repeatedForeignMessageExtensionLite.internalInit(descriptor.getExtensions().get(44)); repeatedImportMessageExtensionLite.internalInit(descriptor.getExtensions().get(45)); repeatedNestedEnumExtensionLite.internalInit(descriptor.getExtensions().get(46)); repeatedForeignEnumExtensionLite.internalInit(descriptor.getExtensions().get(47)); repeatedImportEnumExtensionLite.internalInit(descriptor.getExtensions().get(48)); repeatedStringPieceExtensionLite.internalInit(descriptor.getExtensions().get(49)); repeatedCordExtensionLite.internalInit(descriptor.getExtensions().get(50)); repeatedLazyMessageExtensionLite.internalInit(descriptor.getExtensions().get(51)); defaultInt32ExtensionLite.internalInit(descriptor.getExtensions().get(52)); defaultInt64ExtensionLite.internalInit(descriptor.getExtensions().get(53)); defaultUint32ExtensionLite.internalInit(descriptor.getExtensions().get(54)); defaultUint64ExtensionLite.internalInit(descriptor.getExtensions().get(55)); defaultSint32ExtensionLite.internalInit(descriptor.getExtensions().get(56)); defaultSint64ExtensionLite.internalInit(descriptor.getExtensions().get(57)); defaultFixed32ExtensionLite.internalInit(descriptor.getExtensions().get(58)); defaultFixed64ExtensionLite.internalInit(descriptor.getExtensions().get(59)); defaultSfixed32ExtensionLite.internalInit(descriptor.getExtensions().get(60)); defaultSfixed64ExtensionLite.internalInit(descriptor.getExtensions().get(61)); defaultFloatExtensionLite.internalInit(descriptor.getExtensions().get(62)); defaultDoubleExtensionLite.internalInit(descriptor.getExtensions().get(63)); defaultBoolExtensionLite.internalInit(descriptor.getExtensions().get(64)); defaultStringExtensionLite.internalInit(descriptor.getExtensions().get(65)); defaultBytesExtensionLite.internalInit(descriptor.getExtensions().get(66)); defaultNestedEnumExtensionLite.internalInit(descriptor.getExtensions().get(67)); defaultForeignEnumExtensionLite.internalInit(descriptor.getExtensions().get(68)); defaultImportEnumExtensionLite.internalInit(descriptor.getExtensions().get(69)); defaultStringPieceExtensionLite.internalInit(descriptor.getExtensions().get(70)); defaultCordExtensionLite.internalInit(descriptor.getExtensions().get(71)); oneofUint32ExtensionLite.internalInit(descriptor.getExtensions().get(72)); oneofNestedMessageExtensionLite.internalInit(descriptor.getExtensions().get(73)); oneofStringExtensionLite.internalInit(descriptor.getExtensions().get(74)); oneofBytesExtensionLite.internalInit(descriptor.getExtensions().get(75)); packedInt32ExtensionLite.internalInit(descriptor.getExtensions().get(76)); packedInt64ExtensionLite.internalInit(descriptor.getExtensions().get(77)); packedUint32ExtensionLite.internalInit(descriptor.getExtensions().get(78)); packedUint64ExtensionLite.internalInit(descriptor.getExtensions().get(79)); packedSint32ExtensionLite.internalInit(descriptor.getExtensions().get(80)); packedSint64ExtensionLite.internalInit(descriptor.getExtensions().get(81)); packedFixed32ExtensionLite.internalInit(descriptor.getExtensions().get(82)); packedFixed64ExtensionLite.internalInit(descriptor.getExtensions().get(83)); packedSfixed32ExtensionLite.internalInit(descriptor.getExtensions().get(84)); packedSfixed64ExtensionLite.internalInit(descriptor.getExtensions().get(85)); packedFloatExtensionLite.internalInit(descriptor.getExtensions().get(86)); packedDoubleExtensionLite.internalInit(descriptor.getExtensions().get(87)); packedBoolExtensionLite.internalInit(descriptor.getExtensions().get(88)); packedEnumExtensionLite.internalInit(descriptor.getExtensions().get(89)); testAllTypesLite.internalInit(descriptor.getExtensions().get(90)); com.google.protobuf.UnittestImportLite.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) } PK !àÆu†Hõ Hõ $proto2_unittest/MapLiteUnittest.java// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/map_lite_unittest.proto // Protobuf Java Version: 3.25.0 package proto2_unittest; public final class MapLiteUnittest { private MapLiteUnittest() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { registry.add(proto2_unittest.MapLiteUnittest.TestRequiredLite.single); } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code proto2_unittest.Proto2MapEnumLite} */ public enum Proto2MapEnumLite implements com.google.protobuf.ProtocolMessageEnum { /** * PROTO2_MAP_ENUM_FOO_LITE = 0; */ PROTO2_MAP_ENUM_FOO_LITE(0), /** * PROTO2_MAP_ENUM_BAR_LITE = 1; */ PROTO2_MAP_ENUM_BAR_LITE(1), /** * PROTO2_MAP_ENUM_BAZ_LITE = 2; */ PROTO2_MAP_ENUM_BAZ_LITE(2), ; /** * PROTO2_MAP_ENUM_FOO_LITE = 0; */ public static final int PROTO2_MAP_ENUM_FOO_LITE_VALUE = 0; /** * PROTO2_MAP_ENUM_BAR_LITE = 1; */ public static final int PROTO2_MAP_ENUM_BAR_LITE_VALUE = 1; /** * PROTO2_MAP_ENUM_BAZ_LITE = 2; */ public static final int PROTO2_MAP_ENUM_BAZ_LITE_VALUE = 2; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Proto2MapEnumLite valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Proto2MapEnumLite forNumber(int value) { switch (value) { case 0: return PROTO2_MAP_ENUM_FOO_LITE; case 1: return PROTO2_MAP_ENUM_BAR_LITE; case 2: return PROTO2_MAP_ENUM_BAZ_LITE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Proto2MapEnumLite> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Proto2MapEnumLite findValueByNumber(int number) { return Proto2MapEnumLite.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.getDescriptor().getEnumTypes().get(0); } private static final Proto2MapEnumLite[] VALUES = values(); public static Proto2MapEnumLite 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 value; private Proto2MapEnumLite(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto2_unittest.Proto2MapEnumLite) } /** * Protobuf enum {@code proto2_unittest.Proto2MapEnumPlusExtraLite} */ public enum Proto2MapEnumPlusExtraLite implements com.google.protobuf.ProtocolMessageEnum { /** * E_PROTO2_MAP_ENUM_FOO_LITE = 0; */ E_PROTO2_MAP_ENUM_FOO_LITE(0), /** * E_PROTO2_MAP_ENUM_BAR_LITE = 1; */ E_PROTO2_MAP_ENUM_BAR_LITE(1), /** * E_PROTO2_MAP_ENUM_BAZ_LITE = 2; */ E_PROTO2_MAP_ENUM_BAZ_LITE(2), /** * E_PROTO2_MAP_ENUM_EXTRA_LITE = 3; */ E_PROTO2_MAP_ENUM_EXTRA_LITE(3), ; /** * E_PROTO2_MAP_ENUM_FOO_LITE = 0; */ public static final int E_PROTO2_MAP_ENUM_FOO_LITE_VALUE = 0; /** * E_PROTO2_MAP_ENUM_BAR_LITE = 1; */ public static final int E_PROTO2_MAP_ENUM_BAR_LITE_VALUE = 1; /** * E_PROTO2_MAP_ENUM_BAZ_LITE = 2; */ public static final int E_PROTO2_MAP_ENUM_BAZ_LITE_VALUE = 2; /** * E_PROTO2_MAP_ENUM_EXTRA_LITE = 3; */ public static final int E_PROTO2_MAP_ENUM_EXTRA_LITE_VALUE = 3; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Proto2MapEnumPlusExtraLite valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Proto2MapEnumPlusExtraLite forNumber(int value) { switch (value) { case 0: return E_PROTO2_MAP_ENUM_FOO_LITE; case 1: return E_PROTO2_MAP_ENUM_BAR_LITE; case 2: return E_PROTO2_MAP_ENUM_BAZ_LITE; case 3: return E_PROTO2_MAP_ENUM_EXTRA_LITE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Proto2MapEnumPlusExtraLite> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Proto2MapEnumPlusExtraLite findValueByNumber(int number) { return Proto2MapEnumPlusExtraLite.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.getDescriptor().getEnumTypes().get(1); } private static final Proto2MapEnumPlusExtraLite[] VALUES = values(); public static Proto2MapEnumPlusExtraLite 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 value; private Proto2MapEnumPlusExtraLite(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto2_unittest.Proto2MapEnumPlusExtraLite) } /** * Protobuf enum {@code proto2_unittest.MapEnumLite} */ public enum MapEnumLite implements com.google.protobuf.ProtocolMessageEnum { /** * MAP_ENUM_FOO_LITE = 0; */ MAP_ENUM_FOO_LITE(0), /** * MAP_ENUM_BAR_LITE = 1; */ MAP_ENUM_BAR_LITE(1), /** * MAP_ENUM_BAZ_LITE = 2; */ MAP_ENUM_BAZ_LITE(2), ; /** * MAP_ENUM_FOO_LITE = 0; */ public static final int MAP_ENUM_FOO_LITE_VALUE = 0; /** * MAP_ENUM_BAR_LITE = 1; */ public static final int MAP_ENUM_BAR_LITE_VALUE = 1; /** * MAP_ENUM_BAZ_LITE = 2; */ public static final int MAP_ENUM_BAZ_LITE_VALUE = 2; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MapEnumLite valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static MapEnumLite forNumber(int value) { switch (value) { case 0: return MAP_ENUM_FOO_LITE; case 1: return MAP_ENUM_BAR_LITE; case 2: return MAP_ENUM_BAZ_LITE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< MapEnumLite> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MapEnumLite findValueByNumber(int number) { return MapEnumLite.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.getDescriptor().getEnumTypes().get(2); } private static final MapEnumLite[] VALUES = values(); public static MapEnumLite 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 value; private MapEnumLite(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:proto2_unittest.MapEnumLite) } public interface TestMapLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestMapLite) com.google.protobuf.MessageOrBuilder { /** * map<int32, int32> map_int32_int32 = 1; */ int getMapInt32Int32Count(); /** * map<int32, int32> map_int32_int32 = 1; */ boolean containsMapInt32Int32( int key); /** * Use {@link #getMapInt32Int32Map()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Int32(); /** * map<int32, int32> map_int32_int32 = 1; */ java.util.Map getMapInt32Int32Map(); /** * map<int32, int32> map_int32_int32 = 1; */ int getMapInt32Int32OrDefault( int key, int defaultValue); /** * map<int32, int32> map_int32_int32 = 1; */ int getMapInt32Int32OrThrow( int key); /** * map<int64, int64> map_int64_int64 = 2; */ int getMapInt64Int64Count(); /** * map<int64, int64> map_int64_int64 = 2; */ boolean containsMapInt64Int64( long key); /** * Use {@link #getMapInt64Int64Map()} instead. */ @java.lang.Deprecated java.util.Map getMapInt64Int64(); /** * map<int64, int64> map_int64_int64 = 2; */ java.util.Map getMapInt64Int64Map(); /** * map<int64, int64> map_int64_int64 = 2; */ long getMapInt64Int64OrDefault( long key, long defaultValue); /** * map<int64, int64> map_int64_int64 = 2; */ long getMapInt64Int64OrThrow( long key); /** * map<uint32, uint32> map_uint32_uint32 = 3; */ int getMapUint32Uint32Count(); /** * map<uint32, uint32> map_uint32_uint32 = 3; */ boolean containsMapUint32Uint32( int key); /** * Use {@link #getMapUint32Uint32Map()} instead. */ @java.lang.Deprecated java.util.Map getMapUint32Uint32(); /** * map<uint32, uint32> map_uint32_uint32 = 3; */ java.util.Map getMapUint32Uint32Map(); /** * map<uint32, uint32> map_uint32_uint32 = 3; */ int getMapUint32Uint32OrDefault( int key, int defaultValue); /** * map<uint32, uint32> map_uint32_uint32 = 3; */ int getMapUint32Uint32OrThrow( int key); /** * map<uint64, uint64> map_uint64_uint64 = 4; */ int getMapUint64Uint64Count(); /** * map<uint64, uint64> map_uint64_uint64 = 4; */ boolean containsMapUint64Uint64( long key); /** * Use {@link #getMapUint64Uint64Map()} instead. */ @java.lang.Deprecated java.util.Map getMapUint64Uint64(); /** * map<uint64, uint64> map_uint64_uint64 = 4; */ java.util.Map getMapUint64Uint64Map(); /** * map<uint64, uint64> map_uint64_uint64 = 4; */ long getMapUint64Uint64OrDefault( long key, long defaultValue); /** * map<uint64, uint64> map_uint64_uint64 = 4; */ long getMapUint64Uint64OrThrow( long key); /** * map<sint32, sint32> map_sint32_sint32 = 5; */ int getMapSint32Sint32Count(); /** * map<sint32, sint32> map_sint32_sint32 = 5; */ boolean containsMapSint32Sint32( int key); /** * Use {@link #getMapSint32Sint32Map()} instead. */ @java.lang.Deprecated java.util.Map getMapSint32Sint32(); /** * map<sint32, sint32> map_sint32_sint32 = 5; */ java.util.Map getMapSint32Sint32Map(); /** * map<sint32, sint32> map_sint32_sint32 = 5; */ int getMapSint32Sint32OrDefault( int key, int defaultValue); /** * map<sint32, sint32> map_sint32_sint32 = 5; */ int getMapSint32Sint32OrThrow( int key); /** * map<sint64, sint64> map_sint64_sint64 = 6; */ int getMapSint64Sint64Count(); /** * map<sint64, sint64> map_sint64_sint64 = 6; */ boolean containsMapSint64Sint64( long key); /** * Use {@link #getMapSint64Sint64Map()} instead. */ @java.lang.Deprecated java.util.Map getMapSint64Sint64(); /** * map<sint64, sint64> map_sint64_sint64 = 6; */ java.util.Map getMapSint64Sint64Map(); /** * map<sint64, sint64> map_sint64_sint64 = 6; */ long getMapSint64Sint64OrDefault( long key, long defaultValue); /** * map<sint64, sint64> map_sint64_sint64 = 6; */ long getMapSint64Sint64OrThrow( long key); /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ int getMapFixed32Fixed32Count(); /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ boolean containsMapFixed32Fixed32( int key); /** * Use {@link #getMapFixed32Fixed32Map()} instead. */ @java.lang.Deprecated java.util.Map getMapFixed32Fixed32(); /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ java.util.Map getMapFixed32Fixed32Map(); /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ int getMapFixed32Fixed32OrDefault( int key, int defaultValue); /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ int getMapFixed32Fixed32OrThrow( int key); /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ int getMapFixed64Fixed64Count(); /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ boolean containsMapFixed64Fixed64( long key); /** * Use {@link #getMapFixed64Fixed64Map()} instead. */ @java.lang.Deprecated java.util.Map getMapFixed64Fixed64(); /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ java.util.Map getMapFixed64Fixed64Map(); /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ long getMapFixed64Fixed64OrDefault( long key, long defaultValue); /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ long getMapFixed64Fixed64OrThrow( long key); /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ int getMapSfixed32Sfixed32Count(); /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ boolean containsMapSfixed32Sfixed32( int key); /** * Use {@link #getMapSfixed32Sfixed32Map()} instead. */ @java.lang.Deprecated java.util.Map getMapSfixed32Sfixed32(); /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ java.util.Map getMapSfixed32Sfixed32Map(); /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ int getMapSfixed32Sfixed32OrDefault( int key, int defaultValue); /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ int getMapSfixed32Sfixed32OrThrow( int key); /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ int getMapSfixed64Sfixed64Count(); /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ boolean containsMapSfixed64Sfixed64( long key); /** * Use {@link #getMapSfixed64Sfixed64Map()} instead. */ @java.lang.Deprecated java.util.Map getMapSfixed64Sfixed64(); /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ java.util.Map getMapSfixed64Sfixed64Map(); /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ long getMapSfixed64Sfixed64OrDefault( long key, long defaultValue); /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ long getMapSfixed64Sfixed64OrThrow( long key); /** * map<int32, float> map_int32_float = 11; */ int getMapInt32FloatCount(); /** * map<int32, float> map_int32_float = 11; */ boolean containsMapInt32Float( int key); /** * Use {@link #getMapInt32FloatMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Float(); /** * map<int32, float> map_int32_float = 11; */ java.util.Map getMapInt32FloatMap(); /** * map<int32, float> map_int32_float = 11; */ float getMapInt32FloatOrDefault( int key, float defaultValue); /** * map<int32, float> map_int32_float = 11; */ float getMapInt32FloatOrThrow( int key); /** * map<int32, double> map_int32_double = 12; */ int getMapInt32DoubleCount(); /** * map<int32, double> map_int32_double = 12; */ boolean containsMapInt32Double( int key); /** * Use {@link #getMapInt32DoubleMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Double(); /** * map<int32, double> map_int32_double = 12; */ java.util.Map getMapInt32DoubleMap(); /** * map<int32, double> map_int32_double = 12; */ double getMapInt32DoubleOrDefault( int key, double defaultValue); /** * map<int32, double> map_int32_double = 12; */ double getMapInt32DoubleOrThrow( int key); /** * map<bool, bool> map_bool_bool = 13; */ int getMapBoolBoolCount(); /** * map<bool, bool> map_bool_bool = 13; */ boolean containsMapBoolBool( boolean key); /** * Use {@link #getMapBoolBoolMap()} instead. */ @java.lang.Deprecated java.util.Map getMapBoolBool(); /** * map<bool, bool> map_bool_bool = 13; */ java.util.Map getMapBoolBoolMap(); /** * map<bool, bool> map_bool_bool = 13; */ boolean getMapBoolBoolOrDefault( boolean key, boolean defaultValue); /** * map<bool, bool> map_bool_bool = 13; */ boolean getMapBoolBoolOrThrow( boolean key); /** * map<string, string> map_string_string = 14; */ int getMapStringStringCount(); /** * map<string, string> map_string_string = 14; */ boolean containsMapStringString( java.lang.String key); /** * Use {@link #getMapStringStringMap()} instead. */ @java.lang.Deprecated java.util.Map getMapStringString(); /** * map<string, string> map_string_string = 14; */ java.util.Map getMapStringStringMap(); /** * map<string, string> map_string_string = 14; */ /* nullable */ java.lang.String getMapStringStringOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * map<string, string> map_string_string = 14; */ java.lang.String getMapStringStringOrThrow( java.lang.String key); /** * map<int32, bytes> map_int32_bytes = 15; */ int getMapInt32BytesCount(); /** * map<int32, bytes> map_int32_bytes = 15; */ boolean containsMapInt32Bytes( int key); /** * Use {@link #getMapInt32BytesMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Bytes(); /** * map<int32, bytes> map_int32_bytes = 15; */ java.util.Map getMapInt32BytesMap(); /** * map<int32, bytes> map_int32_bytes = 15; */ /* nullable */ com.google.protobuf.ByteString getMapInt32BytesOrDefault( int key, /* nullable */ com.google.protobuf.ByteString defaultValue); /** * map<int32, bytes> map_int32_bytes = 15; */ com.google.protobuf.ByteString getMapInt32BytesOrThrow( int key); /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ int getMapInt32EnumCount(); /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ boolean containsMapInt32Enum( int key); /** * Use {@link #getMapInt32EnumMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Enum(); /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ java.util.Map getMapInt32EnumMap(); /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite defaultValue); /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrThrow( int key); /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ int getMapInt32ForeignMessageCount(); /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ boolean containsMapInt32ForeignMessage( int key); /** * Use {@link #getMapInt32ForeignMessageMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32ForeignMessage(); /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ java.util.Map getMapInt32ForeignMessageMap(); /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ /* nullable */ com.google.protobuf.UnittestLite.ForeignMessageLite getMapInt32ForeignMessageOrDefault( int key, /* nullable */ com.google.protobuf.UnittestLite.ForeignMessageLite defaultValue); /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ com.google.protobuf.UnittestLite.ForeignMessageLite getMapInt32ForeignMessageOrThrow( int key); /** * map<int32, int32> teboring = 18; */ int getTeboringCount(); /** * map<int32, int32> teboring = 18; */ boolean containsTeboring( int key); /** * Use {@link #getTeboringMap()} instead. */ @java.lang.Deprecated java.util.Map getTeboring(); /** * map<int32, int32> teboring = 18; */ java.util.Map getTeboringMap(); /** * map<int32, int32> teboring = 18; */ int getTeboringOrDefault( int key, int defaultValue); /** * map<int32, int32> teboring = 18; */ int getTeboringOrThrow( int key); } /** * Protobuf type {@code proto2_unittest.TestMapLite} */ public static final class TestMapLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestMapLite) TestMapLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestMapLite.newBuilder() to construct. private TestMapLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestMapLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestMapLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetMapInt32Int32(); case 2: return internalGetMapInt64Int64(); case 3: return internalGetMapUint32Uint32(); case 4: return internalGetMapUint64Uint64(); case 5: return internalGetMapSint32Sint32(); case 6: return internalGetMapSint64Sint64(); case 7: return internalGetMapFixed32Fixed32(); case 8: return internalGetMapFixed64Fixed64(); case 9: return internalGetMapSfixed32Sfixed32(); case 10: return internalGetMapSfixed64Sfixed64(); case 11: return internalGetMapInt32Float(); case 12: return internalGetMapInt32Double(); case 13: return internalGetMapBoolBool(); case 14: return internalGetMapStringString(); case 15: return internalGetMapInt32Bytes(); case 16: return internalGetMapInt32Enum(); case 17: return internalGetMapInt32ForeignMessage(); case 18: return internalGetTeboring(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestMapLite.class, proto2_unittest.MapLiteUnittest.TestMapLite.Builder.class); } public static final int MAP_INT32_INT32_FIELD_NUMBER = 1; private static final class MapInt32Int32DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapInt32Int32Entry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.INT32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapInt32Int32_; private com.google.protobuf.MapField internalGetMapInt32Int32() { if (mapInt32Int32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32Int32DefaultEntryHolder.defaultEntry); } return mapInt32Int32_; } public int getMapInt32Int32Count() { return internalGetMapInt32Int32().getMap().size(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public boolean containsMapInt32Int32( int key) { return internalGetMapInt32Int32().getMap().containsKey(key); } /** * Use {@link #getMapInt32Int32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Int32() { return getMapInt32Int32Map(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public java.util.Map getMapInt32Int32Map() { return internalGetMapInt32Int32().getMap(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public int getMapInt32Int32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapInt32Int32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public int getMapInt32Int32OrThrow( int key) { java.util.Map map = internalGetMapInt32Int32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_INT64_INT64_FIELD_NUMBER = 2; private static final class MapInt64Int64DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapInt64Int64Entry_descriptor, com.google.protobuf.WireFormat.FieldType.INT64, 0L, com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapInt64Int64_; private com.google.protobuf.MapField internalGetMapInt64Int64() { if (mapInt64Int64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt64Int64DefaultEntryHolder.defaultEntry); } return mapInt64Int64_; } public int getMapInt64Int64Count() { return internalGetMapInt64Int64().getMap().size(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public boolean containsMapInt64Int64( long key) { return internalGetMapInt64Int64().getMap().containsKey(key); } /** * Use {@link #getMapInt64Int64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt64Int64() { return getMapInt64Int64Map(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public java.util.Map getMapInt64Int64Map() { return internalGetMapInt64Int64().getMap(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public long getMapInt64Int64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapInt64Int64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public long getMapInt64Int64OrThrow( long key) { java.util.Map map = internalGetMapInt64Int64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_UINT32_UINT32_FIELD_NUMBER = 3; private static final class MapUint32Uint32DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapUint32Uint32Entry_descriptor, com.google.protobuf.WireFormat.FieldType.UINT32, 0, com.google.protobuf.WireFormat.FieldType.UINT32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapUint32Uint32_; private com.google.protobuf.MapField internalGetMapUint32Uint32() { if (mapUint32Uint32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapUint32Uint32DefaultEntryHolder.defaultEntry); } return mapUint32Uint32_; } public int getMapUint32Uint32Count() { return internalGetMapUint32Uint32().getMap().size(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public boolean containsMapUint32Uint32( int key) { return internalGetMapUint32Uint32().getMap().containsKey(key); } /** * Use {@link #getMapUint32Uint32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapUint32Uint32() { return getMapUint32Uint32Map(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public java.util.Map getMapUint32Uint32Map() { return internalGetMapUint32Uint32().getMap(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public int getMapUint32Uint32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapUint32Uint32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public int getMapUint32Uint32OrThrow( int key) { java.util.Map map = internalGetMapUint32Uint32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_UINT64_UINT64_FIELD_NUMBER = 4; private static final class MapUint64Uint64DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapUint64Uint64Entry_descriptor, com.google.protobuf.WireFormat.FieldType.UINT64, 0L, com.google.protobuf.WireFormat.FieldType.UINT64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapUint64Uint64_; private com.google.protobuf.MapField internalGetMapUint64Uint64() { if (mapUint64Uint64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapUint64Uint64DefaultEntryHolder.defaultEntry); } return mapUint64Uint64_; } public int getMapUint64Uint64Count() { return internalGetMapUint64Uint64().getMap().size(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public boolean containsMapUint64Uint64( long key) { return internalGetMapUint64Uint64().getMap().containsKey(key); } /** * Use {@link #getMapUint64Uint64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapUint64Uint64() { return getMapUint64Uint64Map(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public java.util.Map getMapUint64Uint64Map() { return internalGetMapUint64Uint64().getMap(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public long getMapUint64Uint64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapUint64Uint64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public long getMapUint64Uint64OrThrow( long key) { java.util.Map map = internalGetMapUint64Uint64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_SINT32_SINT32_FIELD_NUMBER = 5; private static final class MapSint32Sint32DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapSint32Sint32Entry_descriptor, com.google.protobuf.WireFormat.FieldType.SINT32, 0, com.google.protobuf.WireFormat.FieldType.SINT32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapSint32Sint32_; private com.google.protobuf.MapField internalGetMapSint32Sint32() { if (mapSint32Sint32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSint32Sint32DefaultEntryHolder.defaultEntry); } return mapSint32Sint32_; } public int getMapSint32Sint32Count() { return internalGetMapSint32Sint32().getMap().size(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public boolean containsMapSint32Sint32( int key) { return internalGetMapSint32Sint32().getMap().containsKey(key); } /** * Use {@link #getMapSint32Sint32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSint32Sint32() { return getMapSint32Sint32Map(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public java.util.Map getMapSint32Sint32Map() { return internalGetMapSint32Sint32().getMap(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public int getMapSint32Sint32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapSint32Sint32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public int getMapSint32Sint32OrThrow( int key) { java.util.Map map = internalGetMapSint32Sint32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_SINT64_SINT64_FIELD_NUMBER = 6; private static final class MapSint64Sint64DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapSint64Sint64Entry_descriptor, com.google.protobuf.WireFormat.FieldType.SINT64, 0L, com.google.protobuf.WireFormat.FieldType.SINT64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapSint64Sint64_; private com.google.protobuf.MapField internalGetMapSint64Sint64() { if (mapSint64Sint64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSint64Sint64DefaultEntryHolder.defaultEntry); } return mapSint64Sint64_; } public int getMapSint64Sint64Count() { return internalGetMapSint64Sint64().getMap().size(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public boolean containsMapSint64Sint64( long key) { return internalGetMapSint64Sint64().getMap().containsKey(key); } /** * Use {@link #getMapSint64Sint64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSint64Sint64() { return getMapSint64Sint64Map(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public java.util.Map getMapSint64Sint64Map() { return internalGetMapSint64Sint64().getMap(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public long getMapSint64Sint64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapSint64Sint64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public long getMapSint64Sint64OrThrow( long key) { java.util.Map map = internalGetMapSint64Sint64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_FIXED32_FIXED32_FIELD_NUMBER = 7; private static final class MapFixed32Fixed32DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapFixed32Fixed32Entry_descriptor, com.google.protobuf.WireFormat.FieldType.FIXED32, 0, com.google.protobuf.WireFormat.FieldType.FIXED32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapFixed32Fixed32_; private com.google.protobuf.MapField internalGetMapFixed32Fixed32() { if (mapFixed32Fixed32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapFixed32Fixed32DefaultEntryHolder.defaultEntry); } return mapFixed32Fixed32_; } public int getMapFixed32Fixed32Count() { return internalGetMapFixed32Fixed32().getMap().size(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public boolean containsMapFixed32Fixed32( int key) { return internalGetMapFixed32Fixed32().getMap().containsKey(key); } /** * Use {@link #getMapFixed32Fixed32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapFixed32Fixed32() { return getMapFixed32Fixed32Map(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public java.util.Map getMapFixed32Fixed32Map() { return internalGetMapFixed32Fixed32().getMap(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public int getMapFixed32Fixed32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapFixed32Fixed32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public int getMapFixed32Fixed32OrThrow( int key) { java.util.Map map = internalGetMapFixed32Fixed32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_FIXED64_FIXED64_FIELD_NUMBER = 8; private static final class MapFixed64Fixed64DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapFixed64Fixed64Entry_descriptor, com.google.protobuf.WireFormat.FieldType.FIXED64, 0L, com.google.protobuf.WireFormat.FieldType.FIXED64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapFixed64Fixed64_; private com.google.protobuf.MapField internalGetMapFixed64Fixed64() { if (mapFixed64Fixed64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapFixed64Fixed64DefaultEntryHolder.defaultEntry); } return mapFixed64Fixed64_; } public int getMapFixed64Fixed64Count() { return internalGetMapFixed64Fixed64().getMap().size(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public boolean containsMapFixed64Fixed64( long key) { return internalGetMapFixed64Fixed64().getMap().containsKey(key); } /** * Use {@link #getMapFixed64Fixed64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapFixed64Fixed64() { return getMapFixed64Fixed64Map(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public java.util.Map getMapFixed64Fixed64Map() { return internalGetMapFixed64Fixed64().getMap(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public long getMapFixed64Fixed64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapFixed64Fixed64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public long getMapFixed64Fixed64OrThrow( long key) { java.util.Map map = internalGetMapFixed64Fixed64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_SFIXED32_SFIXED32_FIELD_NUMBER = 9; private static final class MapSfixed32Sfixed32DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapSfixed32Sfixed32Entry_descriptor, com.google.protobuf.WireFormat.FieldType.SFIXED32, 0, com.google.protobuf.WireFormat.FieldType.SFIXED32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapSfixed32Sfixed32_; private com.google.protobuf.MapField internalGetMapSfixed32Sfixed32() { if (mapSfixed32Sfixed32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry); } return mapSfixed32Sfixed32_; } public int getMapSfixed32Sfixed32Count() { return internalGetMapSfixed32Sfixed32().getMap().size(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public boolean containsMapSfixed32Sfixed32( int key) { return internalGetMapSfixed32Sfixed32().getMap().containsKey(key); } /** * Use {@link #getMapSfixed32Sfixed32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSfixed32Sfixed32() { return getMapSfixed32Sfixed32Map(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public java.util.Map getMapSfixed32Sfixed32Map() { return internalGetMapSfixed32Sfixed32().getMap(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public int getMapSfixed32Sfixed32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapSfixed32Sfixed32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public int getMapSfixed32Sfixed32OrThrow( int key) { java.util.Map map = internalGetMapSfixed32Sfixed32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_SFIXED64_SFIXED64_FIELD_NUMBER = 10; private static final class MapSfixed64Sfixed64DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapSfixed64Sfixed64Entry_descriptor, com.google.protobuf.WireFormat.FieldType.SFIXED64, 0L, com.google.protobuf.WireFormat.FieldType.SFIXED64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapSfixed64Sfixed64_; private com.google.protobuf.MapField internalGetMapSfixed64Sfixed64() { if (mapSfixed64Sfixed64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry); } return mapSfixed64Sfixed64_; } public int getMapSfixed64Sfixed64Count() { return internalGetMapSfixed64Sfixed64().getMap().size(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public boolean containsMapSfixed64Sfixed64( long key) { return internalGetMapSfixed64Sfixed64().getMap().containsKey(key); } /** * Use {@link #getMapSfixed64Sfixed64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSfixed64Sfixed64() { return getMapSfixed64Sfixed64Map(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public java.util.Map getMapSfixed64Sfixed64Map() { return internalGetMapSfixed64Sfixed64().getMap(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public long getMapSfixed64Sfixed64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapSfixed64Sfixed64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public long getMapSfixed64Sfixed64OrThrow( long key) { java.util.Map map = internalGetMapSfixed64Sfixed64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_INT32_FLOAT_FIELD_NUMBER = 11; private static final class MapInt32FloatDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Float> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapInt32FloatEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.FLOAT, 0F); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Float> mapInt32Float_; private com.google.protobuf.MapField internalGetMapInt32Float() { if (mapInt32Float_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32FloatDefaultEntryHolder.defaultEntry); } return mapInt32Float_; } public int getMapInt32FloatCount() { return internalGetMapInt32Float().getMap().size(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public boolean containsMapInt32Float( int key) { return internalGetMapInt32Float().getMap().containsKey(key); } /** * Use {@link #getMapInt32FloatMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Float() { return getMapInt32FloatMap(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public java.util.Map getMapInt32FloatMap() { return internalGetMapInt32Float().getMap(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public float getMapInt32FloatOrDefault( int key, float defaultValue) { java.util.Map map = internalGetMapInt32Float().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public float getMapInt32FloatOrThrow( int key) { java.util.Map map = internalGetMapInt32Float().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_INT32_DOUBLE_FIELD_NUMBER = 12; private static final class MapInt32DoubleDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Double> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapInt32DoubleEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.DOUBLE, 0D); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Double> mapInt32Double_; private com.google.protobuf.MapField internalGetMapInt32Double() { if (mapInt32Double_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32DoubleDefaultEntryHolder.defaultEntry); } return mapInt32Double_; } public int getMapInt32DoubleCount() { return internalGetMapInt32Double().getMap().size(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public boolean containsMapInt32Double( int key) { return internalGetMapInt32Double().getMap().containsKey(key); } /** * Use {@link #getMapInt32DoubleMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Double() { return getMapInt32DoubleMap(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public java.util.Map getMapInt32DoubleMap() { return internalGetMapInt32Double().getMap(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public double getMapInt32DoubleOrDefault( int key, double defaultValue) { java.util.Map map = internalGetMapInt32Double().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public double getMapInt32DoubleOrThrow( int key) { java.util.Map map = internalGetMapInt32Double().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_BOOL_BOOL_FIELD_NUMBER = 13; private static final class MapBoolBoolDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Boolean, java.lang.Boolean> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapBoolBoolEntry_descriptor, com.google.protobuf.WireFormat.FieldType.BOOL, false, com.google.protobuf.WireFormat.FieldType.BOOL, false); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Boolean, java.lang.Boolean> mapBoolBool_; private com.google.protobuf.MapField internalGetMapBoolBool() { if (mapBoolBool_ == null) { return com.google.protobuf.MapField.emptyMapField( MapBoolBoolDefaultEntryHolder.defaultEntry); } return mapBoolBool_; } public int getMapBoolBoolCount() { return internalGetMapBoolBool().getMap().size(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean containsMapBoolBool( boolean key) { return internalGetMapBoolBool().getMap().containsKey(key); } /** * Use {@link #getMapBoolBoolMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapBoolBool() { return getMapBoolBoolMap(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public java.util.Map getMapBoolBoolMap() { return internalGetMapBoolBool().getMap(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean getMapBoolBoolOrDefault( boolean key, boolean defaultValue) { java.util.Map map = internalGetMapBoolBool().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean getMapBoolBoolOrThrow( boolean key) { java.util.Map map = internalGetMapBoolBool().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_STRING_STRING_FIELD_NUMBER = 14; private static final class MapStringStringDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapStringStringEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> mapStringString_; private com.google.protobuf.MapField internalGetMapStringString() { if (mapStringString_ == null) { return com.google.protobuf.MapField.emptyMapField( MapStringStringDefaultEntryHolder.defaultEntry); } return mapStringString_; } public int getMapStringStringCount() { return internalGetMapStringString().getMap().size(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public boolean containsMapStringString( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMapStringString().getMap().containsKey(key); } /** * Use {@link #getMapStringStringMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapStringString() { return getMapStringStringMap(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public java.util.Map getMapStringStringMap() { return internalGetMapStringString().getMap(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public /* nullable */ java.lang.String getMapStringStringOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMapStringString().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public java.lang.String getMapStringStringOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMapStringString().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_INT32_BYTES_FIELD_NUMBER = 15; private static final class MapInt32BytesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapInt32BytesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, com.google.protobuf.ByteString> mapInt32Bytes_; private com.google.protobuf.MapField internalGetMapInt32Bytes() { if (mapInt32Bytes_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32BytesDefaultEntryHolder.defaultEntry); } return mapInt32Bytes_; } public int getMapInt32BytesCount() { return internalGetMapInt32Bytes().getMap().size(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public boolean containsMapInt32Bytes( int key) { return internalGetMapInt32Bytes().getMap().containsKey(key); } /** * Use {@link #getMapInt32BytesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Bytes() { return getMapInt32BytesMap(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public java.util.Map getMapInt32BytesMap() { return internalGetMapInt32Bytes().getMap(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getMapInt32BytesOrDefault( int key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetMapInt32Bytes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public com.google.protobuf.ByteString getMapInt32BytesOrThrow( int key) { java.util.Map map = internalGetMapInt32Bytes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_INT32_ENUM_FIELD_NUMBER = 16; private static final class MapInt32EnumDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapInt32EnumEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.ENUM, proto2_unittest.MapLiteUnittest.MapEnumLite.MAP_ENUM_FOO_LITE.getNumber()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapInt32Enum_; private com.google.protobuf.MapField internalGetMapInt32Enum() { if (mapInt32Enum_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32EnumDefaultEntryHolder.defaultEntry); } return mapInt32Enum_; } private static final com.google.protobuf.Internal.MapAdapter.Converter< java.lang.Integer, proto2_unittest.MapLiteUnittest.MapEnumLite> mapInt32EnumValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( proto2_unittest.MapLiteUnittest.MapEnumLite.internalGetValueMap(), proto2_unittest.MapLiteUnittest.MapEnumLite.MAP_ENUM_FOO_LITE); private static final java.util.Map internalGetAdaptedMapInt32EnumMap( java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< java.lang.Integer, proto2_unittest.MapLiteUnittest.MapEnumLite, java.lang.Integer>( map, mapInt32EnumValueConverter); } public int getMapInt32EnumCount() { return internalGetMapInt32Enum().getMap().size(); } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public boolean containsMapInt32Enum( int key) { return internalGetMapInt32Enum().getMap().containsKey(key); } /** * Use {@link #getMapInt32EnumMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Enum() { return getMapInt32EnumMap(); } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public java.util.Map getMapInt32EnumMap() { return internalGetAdaptedMapInt32EnumMap( internalGetMapInt32Enum().getMap());} /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite defaultValue) { java.util.Map map = internalGetMapInt32Enum().getMap(); return map.containsKey(key) ? mapInt32EnumValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrThrow( int key) { java.util.Map map = internalGetMapInt32Enum().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return mapInt32EnumValueConverter.doForward(map.get(key)); } public static final int MAP_INT32_FOREIGN_MESSAGE_FIELD_NUMBER = 17; private static final class MapInt32ForeignMessageDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignMessageLite> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_MapInt32ForeignMessageEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.UnittestLite.ForeignMessageLite.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignMessageLite> mapInt32ForeignMessage_; private com.google.protobuf.MapField internalGetMapInt32ForeignMessage() { if (mapInt32ForeignMessage_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32ForeignMessageDefaultEntryHolder.defaultEntry); } return mapInt32ForeignMessage_; } public int getMapInt32ForeignMessageCount() { return internalGetMapInt32ForeignMessage().getMap().size(); } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ @java.lang.Override public boolean containsMapInt32ForeignMessage( int key) { return internalGetMapInt32ForeignMessage().getMap().containsKey(key); } /** * Use {@link #getMapInt32ForeignMessageMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32ForeignMessage() { return getMapInt32ForeignMessageMap(); } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ @java.lang.Override public java.util.Map getMapInt32ForeignMessageMap() { return internalGetMapInt32ForeignMessage().getMap(); } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ @java.lang.Override public /* nullable */ com.google.protobuf.UnittestLite.ForeignMessageLite getMapInt32ForeignMessageOrDefault( int key, /* nullable */ com.google.protobuf.UnittestLite.ForeignMessageLite defaultValue) { java.util.Map map = internalGetMapInt32ForeignMessage().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLite getMapInt32ForeignMessageOrThrow( int key) { java.util.Map map = internalGetMapInt32ForeignMessage().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TEBORING_FIELD_NUMBER = 18; private static final class TeboringDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_TeboringEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.INT32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> teboring_; private com.google.protobuf.MapField internalGetTeboring() { if (teboring_ == null) { return com.google.protobuf.MapField.emptyMapField( TeboringDefaultEntryHolder.defaultEntry); } return teboring_; } public int getTeboringCount() { return internalGetTeboring().getMap().size(); } /** * map<int32, int32> teboring = 18; */ @java.lang.Override public boolean containsTeboring( int key) { return internalGetTeboring().getMap().containsKey(key); } /** * Use {@link #getTeboringMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTeboring() { return getTeboringMap(); } /** * map<int32, int32> teboring = 18; */ @java.lang.Override public java.util.Map getTeboringMap() { return internalGetTeboring().getMap(); } /** * map<int32, int32> teboring = 18; */ @java.lang.Override public int getTeboringOrDefault( int key, int defaultValue) { java.util.Map map = internalGetTeboring().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, int32> teboring = 18; */ @java.lang.Override public int getTeboringOrThrow( int key) { java.util.Map map = internalGetTeboring().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Int32(), MapInt32Int32DefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetMapInt64Int64(), MapInt64Int64DefaultEntryHolder.defaultEntry, 2); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapUint32Uint32(), MapUint32Uint32DefaultEntryHolder.defaultEntry, 3); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetMapUint64Uint64(), MapUint64Uint64DefaultEntryHolder.defaultEntry, 4); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapSint32Sint32(), MapSint32Sint32DefaultEntryHolder.defaultEntry, 5); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetMapSint64Sint64(), MapSint64Sint64DefaultEntryHolder.defaultEntry, 6); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapFixed32Fixed32(), MapFixed32Fixed32DefaultEntryHolder.defaultEntry, 7); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetMapFixed64Fixed64(), MapFixed64Fixed64DefaultEntryHolder.defaultEntry, 8); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapSfixed32Sfixed32(), MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry, 9); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetMapSfixed64Sfixed64(), MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry, 10); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Float(), MapInt32FloatDefaultEntryHolder.defaultEntry, 11); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Double(), MapInt32DoubleDefaultEntryHolder.defaultEntry, 12); com.google.protobuf.GeneratedMessageV3 .serializeBooleanMapTo( output, internalGetMapBoolBool(), MapBoolBoolDefaultEntryHolder.defaultEntry, 13); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMapStringString(), MapStringStringDefaultEntryHolder.defaultEntry, 14); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Bytes(), MapInt32BytesDefaultEntryHolder.defaultEntry, 15); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Enum(), MapInt32EnumDefaultEntryHolder.defaultEntry, 16); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32ForeignMessage(), MapInt32ForeignMessageDefaultEntryHolder.defaultEntry, 17); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetTeboring(), TeboringDefaultEntryHolder.defaultEntry, 18); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetMapInt32Int32().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Int32__ = MapInt32Int32DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, mapInt32Int32__); } for (java.util.Map.Entry entry : internalGetMapInt64Int64().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt64Int64__ = MapInt64Int64DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, mapInt64Int64__); } for (java.util.Map.Entry entry : internalGetMapUint32Uint32().getMap().entrySet()) { com.google.protobuf.MapEntry mapUint32Uint32__ = MapUint32Uint32DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, mapUint32Uint32__); } for (java.util.Map.Entry entry : internalGetMapUint64Uint64().getMap().entrySet()) { com.google.protobuf.MapEntry mapUint64Uint64__ = MapUint64Uint64DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, mapUint64Uint64__); } for (java.util.Map.Entry entry : internalGetMapSint32Sint32().getMap().entrySet()) { com.google.protobuf.MapEntry mapSint32Sint32__ = MapSint32Sint32DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, mapSint32Sint32__); } for (java.util.Map.Entry entry : internalGetMapSint64Sint64().getMap().entrySet()) { com.google.protobuf.MapEntry mapSint64Sint64__ = MapSint64Sint64DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, mapSint64Sint64__); } for (java.util.Map.Entry entry : internalGetMapFixed32Fixed32().getMap().entrySet()) { com.google.protobuf.MapEntry mapFixed32Fixed32__ = MapFixed32Fixed32DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, mapFixed32Fixed32__); } for (java.util.Map.Entry entry : internalGetMapFixed64Fixed64().getMap().entrySet()) { com.google.protobuf.MapEntry mapFixed64Fixed64__ = MapFixed64Fixed64DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, mapFixed64Fixed64__); } for (java.util.Map.Entry entry : internalGetMapSfixed32Sfixed32().getMap().entrySet()) { com.google.protobuf.MapEntry mapSfixed32Sfixed32__ = MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, mapSfixed32Sfixed32__); } for (java.util.Map.Entry entry : internalGetMapSfixed64Sfixed64().getMap().entrySet()) { com.google.protobuf.MapEntry mapSfixed64Sfixed64__ = MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, mapSfixed64Sfixed64__); } for (java.util.Map.Entry entry : internalGetMapInt32Float().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Float__ = MapInt32FloatDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, mapInt32Float__); } for (java.util.Map.Entry entry : internalGetMapInt32Double().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Double__ = MapInt32DoubleDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, mapInt32Double__); } for (java.util.Map.Entry entry : internalGetMapBoolBool().getMap().entrySet()) { com.google.protobuf.MapEntry mapBoolBool__ = MapBoolBoolDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, mapBoolBool__); } for (java.util.Map.Entry entry : internalGetMapStringString().getMap().entrySet()) { com.google.protobuf.MapEntry mapStringString__ = MapStringStringDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, mapStringString__); } for (java.util.Map.Entry entry : internalGetMapInt32Bytes().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Bytes__ = MapInt32BytesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, mapInt32Bytes__); } for (java.util.Map.Entry entry : internalGetMapInt32Enum().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Enum__ = MapInt32EnumDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, mapInt32Enum__); } for (java.util.Map.Entry entry : internalGetMapInt32ForeignMessage().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32ForeignMessage__ = MapInt32ForeignMessageDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, mapInt32ForeignMessage__); } for (java.util.Map.Entry entry : internalGetTeboring().getMap().entrySet()) { com.google.protobuf.MapEntry teboring__ = TeboringDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, teboring__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto2_unittest.MapLiteUnittest.TestMapLite)) { return super.equals(obj); } proto2_unittest.MapLiteUnittest.TestMapLite other = (proto2_unittest.MapLiteUnittest.TestMapLite) obj; if (!internalGetMapInt32Int32().equals( other.internalGetMapInt32Int32())) return false; if (!internalGetMapInt64Int64().equals( other.internalGetMapInt64Int64())) return false; if (!internalGetMapUint32Uint32().equals( other.internalGetMapUint32Uint32())) return false; if (!internalGetMapUint64Uint64().equals( other.internalGetMapUint64Uint64())) return false; if (!internalGetMapSint32Sint32().equals( other.internalGetMapSint32Sint32())) return false; if (!internalGetMapSint64Sint64().equals( other.internalGetMapSint64Sint64())) return false; if (!internalGetMapFixed32Fixed32().equals( other.internalGetMapFixed32Fixed32())) return false; if (!internalGetMapFixed64Fixed64().equals( other.internalGetMapFixed64Fixed64())) return false; if (!internalGetMapSfixed32Sfixed32().equals( other.internalGetMapSfixed32Sfixed32())) return false; if (!internalGetMapSfixed64Sfixed64().equals( other.internalGetMapSfixed64Sfixed64())) return false; if (!internalGetMapInt32Float().equals( other.internalGetMapInt32Float())) return false; if (!internalGetMapInt32Double().equals( other.internalGetMapInt32Double())) return false; if (!internalGetMapBoolBool().equals( other.internalGetMapBoolBool())) return false; if (!internalGetMapStringString().equals( other.internalGetMapStringString())) return false; if (!internalGetMapInt32Bytes().equals( other.internalGetMapInt32Bytes())) return false; if (!internalGetMapInt32Enum().equals( other.internalGetMapInt32Enum())) return false; if (!internalGetMapInt32ForeignMessage().equals( other.internalGetMapInt32ForeignMessage())) return false; if (!internalGetTeboring().equals( other.internalGetTeboring())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetMapInt32Int32().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_INT32_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Int32().hashCode(); } if (!internalGetMapInt64Int64().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT64_INT64_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt64Int64().hashCode(); } if (!internalGetMapUint32Uint32().getMap().isEmpty()) { hash = (37 * hash) + MAP_UINT32_UINT32_FIELD_NUMBER; hash = (53 * hash) + internalGetMapUint32Uint32().hashCode(); } if (!internalGetMapUint64Uint64().getMap().isEmpty()) { hash = (37 * hash) + MAP_UINT64_UINT64_FIELD_NUMBER; hash = (53 * hash) + internalGetMapUint64Uint64().hashCode(); } if (!internalGetMapSint32Sint32().getMap().isEmpty()) { hash = (37 * hash) + MAP_SINT32_SINT32_FIELD_NUMBER; hash = (53 * hash) + internalGetMapSint32Sint32().hashCode(); } if (!internalGetMapSint64Sint64().getMap().isEmpty()) { hash = (37 * hash) + MAP_SINT64_SINT64_FIELD_NUMBER; hash = (53 * hash) + internalGetMapSint64Sint64().hashCode(); } if (!internalGetMapFixed32Fixed32().getMap().isEmpty()) { hash = (37 * hash) + MAP_FIXED32_FIXED32_FIELD_NUMBER; hash = (53 * hash) + internalGetMapFixed32Fixed32().hashCode(); } if (!internalGetMapFixed64Fixed64().getMap().isEmpty()) { hash = (37 * hash) + MAP_FIXED64_FIXED64_FIELD_NUMBER; hash = (53 * hash) + internalGetMapFixed64Fixed64().hashCode(); } if (!internalGetMapSfixed32Sfixed32().getMap().isEmpty()) { hash = (37 * hash) + MAP_SFIXED32_SFIXED32_FIELD_NUMBER; hash = (53 * hash) + internalGetMapSfixed32Sfixed32().hashCode(); } if (!internalGetMapSfixed64Sfixed64().getMap().isEmpty()) { hash = (37 * hash) + MAP_SFIXED64_SFIXED64_FIELD_NUMBER; hash = (53 * hash) + internalGetMapSfixed64Sfixed64().hashCode(); } if (!internalGetMapInt32Float().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_FLOAT_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Float().hashCode(); } if (!internalGetMapInt32Double().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_DOUBLE_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Double().hashCode(); } if (!internalGetMapBoolBool().getMap().isEmpty()) { hash = (37 * hash) + MAP_BOOL_BOOL_FIELD_NUMBER; hash = (53 * hash) + internalGetMapBoolBool().hashCode(); } if (!internalGetMapStringString().getMap().isEmpty()) { hash = (37 * hash) + MAP_STRING_STRING_FIELD_NUMBER; hash = (53 * hash) + internalGetMapStringString().hashCode(); } if (!internalGetMapInt32Bytes().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_BYTES_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Bytes().hashCode(); } if (!internalGetMapInt32Enum().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_ENUM_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Enum().hashCode(); } if (!internalGetMapInt32ForeignMessage().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_FOREIGN_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32ForeignMessage().hashCode(); } if (!internalGetTeboring().getMap().isEmpty()) { hash = (37 * hash) + TEBORING_FIELD_NUMBER; hash = (53 * hash) + internalGetTeboring().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static proto2_unittest.MapLiteUnittest.TestMapLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestMapLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(proto2_unittest.MapLiteUnittest.TestMapLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestMapLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestMapLite) proto2_unittest.MapLiteUnittest.TestMapLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetMapInt32Int32(); case 2: return internalGetMapInt64Int64(); case 3: return internalGetMapUint32Uint32(); case 4: return internalGetMapUint64Uint64(); case 5: return internalGetMapSint32Sint32(); case 6: return internalGetMapSint64Sint64(); case 7: return internalGetMapFixed32Fixed32(); case 8: return internalGetMapFixed64Fixed64(); case 9: return internalGetMapSfixed32Sfixed32(); case 10: return internalGetMapSfixed64Sfixed64(); case 11: return internalGetMapInt32Float(); case 12: return internalGetMapInt32Double(); case 13: return internalGetMapBoolBool(); case 14: return internalGetMapStringString(); case 15: return internalGetMapInt32Bytes(); case 16: return internalGetMapInt32Enum(); case 17: return internalGetMapInt32ForeignMessage(); case 18: return internalGetTeboring(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: return internalGetMutableMapInt32Int32(); case 2: return internalGetMutableMapInt64Int64(); case 3: return internalGetMutableMapUint32Uint32(); case 4: return internalGetMutableMapUint64Uint64(); case 5: return internalGetMutableMapSint32Sint32(); case 6: return internalGetMutableMapSint64Sint64(); case 7: return internalGetMutableMapFixed32Fixed32(); case 8: return internalGetMutableMapFixed64Fixed64(); case 9: return internalGetMutableMapSfixed32Sfixed32(); case 10: return internalGetMutableMapSfixed64Sfixed64(); case 11: return internalGetMutableMapInt32Float(); case 12: return internalGetMutableMapInt32Double(); case 13: return internalGetMutableMapBoolBool(); case 14: return internalGetMutableMapStringString(); case 15: return internalGetMutableMapInt32Bytes(); case 16: return internalGetMutableMapInt32Enum(); case 17: return internalGetMutableMapInt32ForeignMessage(); case 18: return internalGetMutableTeboring(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestMapLite.class, proto2_unittest.MapLiteUnittest.TestMapLite.Builder.class); } // Construct using proto2_unittest.MapLiteUnittest.TestMapLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableMapInt32Int32().clear(); internalGetMutableMapInt64Int64().clear(); internalGetMutableMapUint32Uint32().clear(); internalGetMutableMapUint64Uint64().clear(); internalGetMutableMapSint32Sint32().clear(); internalGetMutableMapSint64Sint64().clear(); internalGetMutableMapFixed32Fixed32().clear(); internalGetMutableMapFixed64Fixed64().clear(); internalGetMutableMapSfixed32Sfixed32().clear(); internalGetMutableMapSfixed64Sfixed64().clear(); internalGetMutableMapInt32Float().clear(); internalGetMutableMapInt32Double().clear(); internalGetMutableMapBoolBool().clear(); internalGetMutableMapStringString().clear(); internalGetMutableMapInt32Bytes().clear(); internalGetMutableMapInt32Enum().clear(); internalGetMutableMapInt32ForeignMessage().clear(); internalGetMutableTeboring().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMapLite_descriptor; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestMapLite getDefaultInstanceForType() { return proto2_unittest.MapLiteUnittest.TestMapLite.getDefaultInstance(); } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestMapLite build() { proto2_unittest.MapLiteUnittest.TestMapLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestMapLite buildPartial() { proto2_unittest.MapLiteUnittest.TestMapLite result = new proto2_unittest.MapLiteUnittest.TestMapLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(proto2_unittest.MapLiteUnittest.TestMapLite result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.mapInt32Int32_ = internalGetMapInt32Int32(); result.mapInt32Int32_.makeImmutable(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.mapInt64Int64_ = internalGetMapInt64Int64(); result.mapInt64Int64_.makeImmutable(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.mapUint32Uint32_ = internalGetMapUint32Uint32(); result.mapUint32Uint32_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.mapUint64Uint64_ = internalGetMapUint64Uint64(); result.mapUint64Uint64_.makeImmutable(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.mapSint32Sint32_ = internalGetMapSint32Sint32(); result.mapSint32Sint32_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.mapSint64Sint64_ = internalGetMapSint64Sint64(); result.mapSint64Sint64_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.mapFixed32Fixed32_ = internalGetMapFixed32Fixed32(); result.mapFixed32Fixed32_.makeImmutable(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.mapFixed64Fixed64_ = internalGetMapFixed64Fixed64(); result.mapFixed64Fixed64_.makeImmutable(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.mapSfixed32Sfixed32_ = internalGetMapSfixed32Sfixed32(); result.mapSfixed32Sfixed32_.makeImmutable(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.mapSfixed64Sfixed64_ = internalGetMapSfixed64Sfixed64(); result.mapSfixed64Sfixed64_.makeImmutable(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.mapInt32Float_ = internalGetMapInt32Float(); result.mapInt32Float_.makeImmutable(); } if (((from_bitField0_ & 0x00000800) != 0)) { result.mapInt32Double_ = internalGetMapInt32Double(); result.mapInt32Double_.makeImmutable(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.mapBoolBool_ = internalGetMapBoolBool(); result.mapBoolBool_.makeImmutable(); } if (((from_bitField0_ & 0x00002000) != 0)) { result.mapStringString_ = internalGetMapStringString(); result.mapStringString_.makeImmutable(); } if (((from_bitField0_ & 0x00004000) != 0)) { result.mapInt32Bytes_ = internalGetMapInt32Bytes(); result.mapInt32Bytes_.makeImmutable(); } if (((from_bitField0_ & 0x00008000) != 0)) { result.mapInt32Enum_ = internalGetMapInt32Enum(); result.mapInt32Enum_.makeImmutable(); } if (((from_bitField0_ & 0x00010000) != 0)) { result.mapInt32ForeignMessage_ = internalGetMapInt32ForeignMessage().build(MapInt32ForeignMessageDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00020000) != 0)) { result.teboring_ = internalGetTeboring(); result.teboring_.makeImmutable(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto2_unittest.MapLiteUnittest.TestMapLite) { return mergeFrom((proto2_unittest.MapLiteUnittest.TestMapLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto2_unittest.MapLiteUnittest.TestMapLite other) { if (other == proto2_unittest.MapLiteUnittest.TestMapLite.getDefaultInstance()) return this; internalGetMutableMapInt32Int32().mergeFrom( other.internalGetMapInt32Int32()); bitField0_ |= 0x00000001; internalGetMutableMapInt64Int64().mergeFrom( other.internalGetMapInt64Int64()); bitField0_ |= 0x00000002; internalGetMutableMapUint32Uint32().mergeFrom( other.internalGetMapUint32Uint32()); bitField0_ |= 0x00000004; internalGetMutableMapUint64Uint64().mergeFrom( other.internalGetMapUint64Uint64()); bitField0_ |= 0x00000008; internalGetMutableMapSint32Sint32().mergeFrom( other.internalGetMapSint32Sint32()); bitField0_ |= 0x00000010; internalGetMutableMapSint64Sint64().mergeFrom( other.internalGetMapSint64Sint64()); bitField0_ |= 0x00000020; internalGetMutableMapFixed32Fixed32().mergeFrom( other.internalGetMapFixed32Fixed32()); bitField0_ |= 0x00000040; internalGetMutableMapFixed64Fixed64().mergeFrom( other.internalGetMapFixed64Fixed64()); bitField0_ |= 0x00000080; internalGetMutableMapSfixed32Sfixed32().mergeFrom( other.internalGetMapSfixed32Sfixed32()); bitField0_ |= 0x00000100; internalGetMutableMapSfixed64Sfixed64().mergeFrom( other.internalGetMapSfixed64Sfixed64()); bitField0_ |= 0x00000200; internalGetMutableMapInt32Float().mergeFrom( other.internalGetMapInt32Float()); bitField0_ |= 0x00000400; internalGetMutableMapInt32Double().mergeFrom( other.internalGetMapInt32Double()); bitField0_ |= 0x00000800; internalGetMutableMapBoolBool().mergeFrom( other.internalGetMapBoolBool()); bitField0_ |= 0x00001000; internalGetMutableMapStringString().mergeFrom( other.internalGetMapStringString()); bitField0_ |= 0x00002000; internalGetMutableMapInt32Bytes().mergeFrom( other.internalGetMapInt32Bytes()); bitField0_ |= 0x00004000; internalGetMutableMapInt32Enum().mergeFrom( other.internalGetMapInt32Enum()); bitField0_ |= 0x00008000; internalGetMutableMapInt32ForeignMessage().mergeFrom( other.internalGetMapInt32ForeignMessage()); bitField0_ |= 0x00010000; internalGetMutableTeboring().mergeFrom( other.internalGetTeboring()); bitField0_ |= 0x00020000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry mapInt32Int32__ = input.readMessage( MapInt32Int32DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32Int32().getMutableMap().put( mapInt32Int32__.getKey(), mapInt32Int32__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry mapInt64Int64__ = input.readMessage( MapInt64Int64DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt64Int64().getMutableMap().put( mapInt64Int64__.getKey(), mapInt64Int64__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry mapUint32Uint32__ = input.readMessage( MapUint32Uint32DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapUint32Uint32().getMutableMap().put( mapUint32Uint32__.getKey(), mapUint32Uint32__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry mapUint64Uint64__ = input.readMessage( MapUint64Uint64DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapUint64Uint64().getMutableMap().put( mapUint64Uint64__.getKey(), mapUint64Uint64__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.google.protobuf.MapEntry mapSint32Sint32__ = input.readMessage( MapSint32Sint32DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapSint32Sint32().getMutableMap().put( mapSint32Sint32__.getKey(), mapSint32Sint32__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.google.protobuf.MapEntry mapSint64Sint64__ = input.readMessage( MapSint64Sint64DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapSint64Sint64().getMutableMap().put( mapSint64Sint64__.getKey(), mapSint64Sint64__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 58: { com.google.protobuf.MapEntry mapFixed32Fixed32__ = input.readMessage( MapFixed32Fixed32DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapFixed32Fixed32().getMutableMap().put( mapFixed32Fixed32__.getKey(), mapFixed32Fixed32__.getValue()); bitField0_ |= 0x00000040; break; } // case 58 case 66: { com.google.protobuf.MapEntry mapFixed64Fixed64__ = input.readMessage( MapFixed64Fixed64DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapFixed64Fixed64().getMutableMap().put( mapFixed64Fixed64__.getKey(), mapFixed64Fixed64__.getValue()); bitField0_ |= 0x00000080; break; } // case 66 case 74: { com.google.protobuf.MapEntry mapSfixed32Sfixed32__ = input.readMessage( MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapSfixed32Sfixed32().getMutableMap().put( mapSfixed32Sfixed32__.getKey(), mapSfixed32Sfixed32__.getValue()); bitField0_ |= 0x00000100; break; } // case 74 case 82: { com.google.protobuf.MapEntry mapSfixed64Sfixed64__ = input.readMessage( MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapSfixed64Sfixed64().getMutableMap().put( mapSfixed64Sfixed64__.getKey(), mapSfixed64Sfixed64__.getValue()); bitField0_ |= 0x00000200; break; } // case 82 case 90: { com.google.protobuf.MapEntry mapInt32Float__ = input.readMessage( MapInt32FloatDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32Float().getMutableMap().put( mapInt32Float__.getKey(), mapInt32Float__.getValue()); bitField0_ |= 0x00000400; break; } // case 90 case 98: { com.google.protobuf.MapEntry mapInt32Double__ = input.readMessage( MapInt32DoubleDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32Double().getMutableMap().put( mapInt32Double__.getKey(), mapInt32Double__.getValue()); bitField0_ |= 0x00000800; break; } // case 98 case 106: { com.google.protobuf.MapEntry mapBoolBool__ = input.readMessage( MapBoolBoolDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapBoolBool().getMutableMap().put( mapBoolBool__.getKey(), mapBoolBool__.getValue()); bitField0_ |= 0x00001000; break; } // case 106 case 114: { com.google.protobuf.MapEntry mapStringString__ = input.readMessage( MapStringStringDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapStringString().getMutableMap().put( mapStringString__.getKey(), mapStringString__.getValue()); bitField0_ |= 0x00002000; break; } // case 114 case 122: { com.google.protobuf.MapEntry mapInt32Bytes__ = input.readMessage( MapInt32BytesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32Bytes().getMutableMap().put( mapInt32Bytes__.getKey(), mapInt32Bytes__.getValue()); bitField0_ |= 0x00004000; break; } // case 122 case 130: { com.google.protobuf.ByteString bytes = input.readBytes(); com.google.protobuf.MapEntry mapInt32Enum__ = MapInt32EnumDefaultEntryHolder.defaultEntry.getParserForType().parseFrom(bytes); if (proto2_unittest.MapLiteUnittest.MapEnumLite.forNumber(mapInt32Enum__.getValue()) == null) { mergeUnknownLengthDelimitedField(16, bytes); } else { internalGetMutableMapInt32Enum().getMutableMap().put( mapInt32Enum__.getKey(), mapInt32Enum__.getValue()); bitField0_ |= 0x00008000; } break; } // case 130 case 138: { com.google.protobuf.MapEntry mapInt32ForeignMessage__ = input.readMessage( MapInt32ForeignMessageDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32ForeignMessage().ensureBuilderMap().put( mapInt32ForeignMessage__.getKey(), mapInt32ForeignMessage__.getValue()); bitField0_ |= 0x00010000; break; } // case 138 case 146: { com.google.protobuf.MapEntry teboring__ = input.readMessage( TeboringDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableTeboring().getMutableMap().put( teboring__.getKey(), teboring__.getValue()); bitField0_ |= 0x00020000; break; } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapInt32Int32_; private com.google.protobuf.MapField internalGetMapInt32Int32() { if (mapInt32Int32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32Int32DefaultEntryHolder.defaultEntry); } return mapInt32Int32_; } private com.google.protobuf.MapField internalGetMutableMapInt32Int32() { if (mapInt32Int32_ == null) { mapInt32Int32_ = com.google.protobuf.MapField.newMapField( MapInt32Int32DefaultEntryHolder.defaultEntry); } if (!mapInt32Int32_.isMutable()) { mapInt32Int32_ = mapInt32Int32_.copy(); } bitField0_ |= 0x00000001; onChanged(); return mapInt32Int32_; } public int getMapInt32Int32Count() { return internalGetMapInt32Int32().getMap().size(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public boolean containsMapInt32Int32( int key) { return internalGetMapInt32Int32().getMap().containsKey(key); } /** * Use {@link #getMapInt32Int32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Int32() { return getMapInt32Int32Map(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public java.util.Map getMapInt32Int32Map() { return internalGetMapInt32Int32().getMap(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public int getMapInt32Int32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapInt32Int32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public int getMapInt32Int32OrThrow( int key) { java.util.Map map = internalGetMapInt32Int32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapInt32Int32() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableMapInt32Int32().getMutableMap() .clear(); return this; } /** * map<int32, int32> map_int32_int32 = 1; */ public Builder removeMapInt32Int32( int key) { internalGetMutableMapInt32Int32().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Int32() { bitField0_ |= 0x00000001; return internalGetMutableMapInt32Int32().getMutableMap(); } /** * map<int32, int32> map_int32_int32 = 1; */ public Builder putMapInt32Int32( int key, int value) { internalGetMutableMapInt32Int32().getMutableMap() .put(key, value); bitField0_ |= 0x00000001; return this; } /** * map<int32, int32> map_int32_int32 = 1; */ public Builder putAllMapInt32Int32( java.util.Map values) { internalGetMutableMapInt32Int32().getMutableMap() .putAll(values); bitField0_ |= 0x00000001; return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapInt64Int64_; private com.google.protobuf.MapField internalGetMapInt64Int64() { if (mapInt64Int64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt64Int64DefaultEntryHolder.defaultEntry); } return mapInt64Int64_; } private com.google.protobuf.MapField internalGetMutableMapInt64Int64() { if (mapInt64Int64_ == null) { mapInt64Int64_ = com.google.protobuf.MapField.newMapField( MapInt64Int64DefaultEntryHolder.defaultEntry); } if (!mapInt64Int64_.isMutable()) { mapInt64Int64_ = mapInt64Int64_.copy(); } bitField0_ |= 0x00000002; onChanged(); return mapInt64Int64_; } public int getMapInt64Int64Count() { return internalGetMapInt64Int64().getMap().size(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public boolean containsMapInt64Int64( long key) { return internalGetMapInt64Int64().getMap().containsKey(key); } /** * Use {@link #getMapInt64Int64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt64Int64() { return getMapInt64Int64Map(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public java.util.Map getMapInt64Int64Map() { return internalGetMapInt64Int64().getMap(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public long getMapInt64Int64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapInt64Int64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public long getMapInt64Int64OrThrow( long key) { java.util.Map map = internalGetMapInt64Int64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapInt64Int64() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableMapInt64Int64().getMutableMap() .clear(); return this; } /** * map<int64, int64> map_int64_int64 = 2; */ public Builder removeMapInt64Int64( long key) { internalGetMutableMapInt64Int64().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt64Int64() { bitField0_ |= 0x00000002; return internalGetMutableMapInt64Int64().getMutableMap(); } /** * map<int64, int64> map_int64_int64 = 2; */ public Builder putMapInt64Int64( long key, long value) { internalGetMutableMapInt64Int64().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** * map<int64, int64> map_int64_int64 = 2; */ public Builder putAllMapInt64Int64( java.util.Map values) { internalGetMutableMapInt64Int64().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapUint32Uint32_; private com.google.protobuf.MapField internalGetMapUint32Uint32() { if (mapUint32Uint32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapUint32Uint32DefaultEntryHolder.defaultEntry); } return mapUint32Uint32_; } private com.google.protobuf.MapField internalGetMutableMapUint32Uint32() { if (mapUint32Uint32_ == null) { mapUint32Uint32_ = com.google.protobuf.MapField.newMapField( MapUint32Uint32DefaultEntryHolder.defaultEntry); } if (!mapUint32Uint32_.isMutable()) { mapUint32Uint32_ = mapUint32Uint32_.copy(); } bitField0_ |= 0x00000004; onChanged(); return mapUint32Uint32_; } public int getMapUint32Uint32Count() { return internalGetMapUint32Uint32().getMap().size(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public boolean containsMapUint32Uint32( int key) { return internalGetMapUint32Uint32().getMap().containsKey(key); } /** * Use {@link #getMapUint32Uint32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapUint32Uint32() { return getMapUint32Uint32Map(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public java.util.Map getMapUint32Uint32Map() { return internalGetMapUint32Uint32().getMap(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public int getMapUint32Uint32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapUint32Uint32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public int getMapUint32Uint32OrThrow( int key) { java.util.Map map = internalGetMapUint32Uint32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapUint32Uint32() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableMapUint32Uint32().getMutableMap() .clear(); return this; } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ public Builder removeMapUint32Uint32( int key) { internalGetMutableMapUint32Uint32().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapUint32Uint32() { bitField0_ |= 0x00000004; return internalGetMutableMapUint32Uint32().getMutableMap(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ public Builder putMapUint32Uint32( int key, int value) { internalGetMutableMapUint32Uint32().getMutableMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ public Builder putAllMapUint32Uint32( java.util.Map values) { internalGetMutableMapUint32Uint32().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapUint64Uint64_; private com.google.protobuf.MapField internalGetMapUint64Uint64() { if (mapUint64Uint64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapUint64Uint64DefaultEntryHolder.defaultEntry); } return mapUint64Uint64_; } private com.google.protobuf.MapField internalGetMutableMapUint64Uint64() { if (mapUint64Uint64_ == null) { mapUint64Uint64_ = com.google.protobuf.MapField.newMapField( MapUint64Uint64DefaultEntryHolder.defaultEntry); } if (!mapUint64Uint64_.isMutable()) { mapUint64Uint64_ = mapUint64Uint64_.copy(); } bitField0_ |= 0x00000008; onChanged(); return mapUint64Uint64_; } public int getMapUint64Uint64Count() { return internalGetMapUint64Uint64().getMap().size(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public boolean containsMapUint64Uint64( long key) { return internalGetMapUint64Uint64().getMap().containsKey(key); } /** * Use {@link #getMapUint64Uint64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapUint64Uint64() { return getMapUint64Uint64Map(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public java.util.Map getMapUint64Uint64Map() { return internalGetMapUint64Uint64().getMap(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public long getMapUint64Uint64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapUint64Uint64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public long getMapUint64Uint64OrThrow( long key) { java.util.Map map = internalGetMapUint64Uint64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapUint64Uint64() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableMapUint64Uint64().getMutableMap() .clear(); return this; } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ public Builder removeMapUint64Uint64( long key) { internalGetMutableMapUint64Uint64().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapUint64Uint64() { bitField0_ |= 0x00000008; return internalGetMutableMapUint64Uint64().getMutableMap(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ public Builder putMapUint64Uint64( long key, long value) { internalGetMutableMapUint64Uint64().getMutableMap() .put(key, value); bitField0_ |= 0x00000008; return this; } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ public Builder putAllMapUint64Uint64( java.util.Map values) { internalGetMutableMapUint64Uint64().getMutableMap() .putAll(values); bitField0_ |= 0x00000008; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapSint32Sint32_; private com.google.protobuf.MapField internalGetMapSint32Sint32() { if (mapSint32Sint32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSint32Sint32DefaultEntryHolder.defaultEntry); } return mapSint32Sint32_; } private com.google.protobuf.MapField internalGetMutableMapSint32Sint32() { if (mapSint32Sint32_ == null) { mapSint32Sint32_ = com.google.protobuf.MapField.newMapField( MapSint32Sint32DefaultEntryHolder.defaultEntry); } if (!mapSint32Sint32_.isMutable()) { mapSint32Sint32_ = mapSint32Sint32_.copy(); } bitField0_ |= 0x00000010; onChanged(); return mapSint32Sint32_; } public int getMapSint32Sint32Count() { return internalGetMapSint32Sint32().getMap().size(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public boolean containsMapSint32Sint32( int key) { return internalGetMapSint32Sint32().getMap().containsKey(key); } /** * Use {@link #getMapSint32Sint32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSint32Sint32() { return getMapSint32Sint32Map(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public java.util.Map getMapSint32Sint32Map() { return internalGetMapSint32Sint32().getMap(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public int getMapSint32Sint32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapSint32Sint32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public int getMapSint32Sint32OrThrow( int key) { java.util.Map map = internalGetMapSint32Sint32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapSint32Sint32() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableMapSint32Sint32().getMutableMap() .clear(); return this; } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ public Builder removeMapSint32Sint32( int key) { internalGetMutableMapSint32Sint32().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapSint32Sint32() { bitField0_ |= 0x00000010; return internalGetMutableMapSint32Sint32().getMutableMap(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ public Builder putMapSint32Sint32( int key, int value) { internalGetMutableMapSint32Sint32().getMutableMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ public Builder putAllMapSint32Sint32( java.util.Map values) { internalGetMutableMapSint32Sint32().getMutableMap() .putAll(values); bitField0_ |= 0x00000010; return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapSint64Sint64_; private com.google.protobuf.MapField internalGetMapSint64Sint64() { if (mapSint64Sint64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSint64Sint64DefaultEntryHolder.defaultEntry); } return mapSint64Sint64_; } private com.google.protobuf.MapField internalGetMutableMapSint64Sint64() { if (mapSint64Sint64_ == null) { mapSint64Sint64_ = com.google.protobuf.MapField.newMapField( MapSint64Sint64DefaultEntryHolder.defaultEntry); } if (!mapSint64Sint64_.isMutable()) { mapSint64Sint64_ = mapSint64Sint64_.copy(); } bitField0_ |= 0x00000020; onChanged(); return mapSint64Sint64_; } public int getMapSint64Sint64Count() { return internalGetMapSint64Sint64().getMap().size(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public boolean containsMapSint64Sint64( long key) { return internalGetMapSint64Sint64().getMap().containsKey(key); } /** * Use {@link #getMapSint64Sint64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSint64Sint64() { return getMapSint64Sint64Map(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public java.util.Map getMapSint64Sint64Map() { return internalGetMapSint64Sint64().getMap(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public long getMapSint64Sint64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapSint64Sint64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public long getMapSint64Sint64OrThrow( long key) { java.util.Map map = internalGetMapSint64Sint64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapSint64Sint64() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableMapSint64Sint64().getMutableMap() .clear(); return this; } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ public Builder removeMapSint64Sint64( long key) { internalGetMutableMapSint64Sint64().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapSint64Sint64() { bitField0_ |= 0x00000020; return internalGetMutableMapSint64Sint64().getMutableMap(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ public Builder putMapSint64Sint64( long key, long value) { internalGetMutableMapSint64Sint64().getMutableMap() .put(key, value); bitField0_ |= 0x00000020; return this; } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ public Builder putAllMapSint64Sint64( java.util.Map values) { internalGetMutableMapSint64Sint64().getMutableMap() .putAll(values); bitField0_ |= 0x00000020; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapFixed32Fixed32_; private com.google.protobuf.MapField internalGetMapFixed32Fixed32() { if (mapFixed32Fixed32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapFixed32Fixed32DefaultEntryHolder.defaultEntry); } return mapFixed32Fixed32_; } private com.google.protobuf.MapField internalGetMutableMapFixed32Fixed32() { if (mapFixed32Fixed32_ == null) { mapFixed32Fixed32_ = com.google.protobuf.MapField.newMapField( MapFixed32Fixed32DefaultEntryHolder.defaultEntry); } if (!mapFixed32Fixed32_.isMutable()) { mapFixed32Fixed32_ = mapFixed32Fixed32_.copy(); } bitField0_ |= 0x00000040; onChanged(); return mapFixed32Fixed32_; } public int getMapFixed32Fixed32Count() { return internalGetMapFixed32Fixed32().getMap().size(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public boolean containsMapFixed32Fixed32( int key) { return internalGetMapFixed32Fixed32().getMap().containsKey(key); } /** * Use {@link #getMapFixed32Fixed32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapFixed32Fixed32() { return getMapFixed32Fixed32Map(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public java.util.Map getMapFixed32Fixed32Map() { return internalGetMapFixed32Fixed32().getMap(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public int getMapFixed32Fixed32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapFixed32Fixed32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public int getMapFixed32Fixed32OrThrow( int key) { java.util.Map map = internalGetMapFixed32Fixed32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapFixed32Fixed32() { bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableMapFixed32Fixed32().getMutableMap() .clear(); return this; } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ public Builder removeMapFixed32Fixed32( int key) { internalGetMutableMapFixed32Fixed32().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapFixed32Fixed32() { bitField0_ |= 0x00000040; return internalGetMutableMapFixed32Fixed32().getMutableMap(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ public Builder putMapFixed32Fixed32( int key, int value) { internalGetMutableMapFixed32Fixed32().getMutableMap() .put(key, value); bitField0_ |= 0x00000040; return this; } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ public Builder putAllMapFixed32Fixed32( java.util.Map values) { internalGetMutableMapFixed32Fixed32().getMutableMap() .putAll(values); bitField0_ |= 0x00000040; return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapFixed64Fixed64_; private com.google.protobuf.MapField internalGetMapFixed64Fixed64() { if (mapFixed64Fixed64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapFixed64Fixed64DefaultEntryHolder.defaultEntry); } return mapFixed64Fixed64_; } private com.google.protobuf.MapField internalGetMutableMapFixed64Fixed64() { if (mapFixed64Fixed64_ == null) { mapFixed64Fixed64_ = com.google.protobuf.MapField.newMapField( MapFixed64Fixed64DefaultEntryHolder.defaultEntry); } if (!mapFixed64Fixed64_.isMutable()) { mapFixed64Fixed64_ = mapFixed64Fixed64_.copy(); } bitField0_ |= 0x00000080; onChanged(); return mapFixed64Fixed64_; } public int getMapFixed64Fixed64Count() { return internalGetMapFixed64Fixed64().getMap().size(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public boolean containsMapFixed64Fixed64( long key) { return internalGetMapFixed64Fixed64().getMap().containsKey(key); } /** * Use {@link #getMapFixed64Fixed64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapFixed64Fixed64() { return getMapFixed64Fixed64Map(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public java.util.Map getMapFixed64Fixed64Map() { return internalGetMapFixed64Fixed64().getMap(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public long getMapFixed64Fixed64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapFixed64Fixed64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public long getMapFixed64Fixed64OrThrow( long key) { java.util.Map map = internalGetMapFixed64Fixed64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapFixed64Fixed64() { bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableMapFixed64Fixed64().getMutableMap() .clear(); return this; } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ public Builder removeMapFixed64Fixed64( long key) { internalGetMutableMapFixed64Fixed64().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapFixed64Fixed64() { bitField0_ |= 0x00000080; return internalGetMutableMapFixed64Fixed64().getMutableMap(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ public Builder putMapFixed64Fixed64( long key, long value) { internalGetMutableMapFixed64Fixed64().getMutableMap() .put(key, value); bitField0_ |= 0x00000080; return this; } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ public Builder putAllMapFixed64Fixed64( java.util.Map values) { internalGetMutableMapFixed64Fixed64().getMutableMap() .putAll(values); bitField0_ |= 0x00000080; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapSfixed32Sfixed32_; private com.google.protobuf.MapField internalGetMapSfixed32Sfixed32() { if (mapSfixed32Sfixed32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry); } return mapSfixed32Sfixed32_; } private com.google.protobuf.MapField internalGetMutableMapSfixed32Sfixed32() { if (mapSfixed32Sfixed32_ == null) { mapSfixed32Sfixed32_ = com.google.protobuf.MapField.newMapField( MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry); } if (!mapSfixed32Sfixed32_.isMutable()) { mapSfixed32Sfixed32_ = mapSfixed32Sfixed32_.copy(); } bitField0_ |= 0x00000100; onChanged(); return mapSfixed32Sfixed32_; } public int getMapSfixed32Sfixed32Count() { return internalGetMapSfixed32Sfixed32().getMap().size(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public boolean containsMapSfixed32Sfixed32( int key) { return internalGetMapSfixed32Sfixed32().getMap().containsKey(key); } /** * Use {@link #getMapSfixed32Sfixed32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSfixed32Sfixed32() { return getMapSfixed32Sfixed32Map(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public java.util.Map getMapSfixed32Sfixed32Map() { return internalGetMapSfixed32Sfixed32().getMap(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public int getMapSfixed32Sfixed32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapSfixed32Sfixed32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public int getMapSfixed32Sfixed32OrThrow( int key) { java.util.Map map = internalGetMapSfixed32Sfixed32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapSfixed32Sfixed32() { bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableMapSfixed32Sfixed32().getMutableMap() .clear(); return this; } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ public Builder removeMapSfixed32Sfixed32( int key) { internalGetMutableMapSfixed32Sfixed32().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapSfixed32Sfixed32() { bitField0_ |= 0x00000100; return internalGetMutableMapSfixed32Sfixed32().getMutableMap(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ public Builder putMapSfixed32Sfixed32( int key, int value) { internalGetMutableMapSfixed32Sfixed32().getMutableMap() .put(key, value); bitField0_ |= 0x00000100; return this; } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ public Builder putAllMapSfixed32Sfixed32( java.util.Map values) { internalGetMutableMapSfixed32Sfixed32().getMutableMap() .putAll(values); bitField0_ |= 0x00000100; return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapSfixed64Sfixed64_; private com.google.protobuf.MapField internalGetMapSfixed64Sfixed64() { if (mapSfixed64Sfixed64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry); } return mapSfixed64Sfixed64_; } private com.google.protobuf.MapField internalGetMutableMapSfixed64Sfixed64() { if (mapSfixed64Sfixed64_ == null) { mapSfixed64Sfixed64_ = com.google.protobuf.MapField.newMapField( MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry); } if (!mapSfixed64Sfixed64_.isMutable()) { mapSfixed64Sfixed64_ = mapSfixed64Sfixed64_.copy(); } bitField0_ |= 0x00000200; onChanged(); return mapSfixed64Sfixed64_; } public int getMapSfixed64Sfixed64Count() { return internalGetMapSfixed64Sfixed64().getMap().size(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public boolean containsMapSfixed64Sfixed64( long key) { return internalGetMapSfixed64Sfixed64().getMap().containsKey(key); } /** * Use {@link #getMapSfixed64Sfixed64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSfixed64Sfixed64() { return getMapSfixed64Sfixed64Map(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public java.util.Map getMapSfixed64Sfixed64Map() { return internalGetMapSfixed64Sfixed64().getMap(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public long getMapSfixed64Sfixed64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapSfixed64Sfixed64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public long getMapSfixed64Sfixed64OrThrow( long key) { java.util.Map map = internalGetMapSfixed64Sfixed64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapSfixed64Sfixed64() { bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableMapSfixed64Sfixed64().getMutableMap() .clear(); return this; } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ public Builder removeMapSfixed64Sfixed64( long key) { internalGetMutableMapSfixed64Sfixed64().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapSfixed64Sfixed64() { bitField0_ |= 0x00000200; return internalGetMutableMapSfixed64Sfixed64().getMutableMap(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ public Builder putMapSfixed64Sfixed64( long key, long value) { internalGetMutableMapSfixed64Sfixed64().getMutableMap() .put(key, value); bitField0_ |= 0x00000200; return this; } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ public Builder putAllMapSfixed64Sfixed64( java.util.Map values) { internalGetMutableMapSfixed64Sfixed64().getMutableMap() .putAll(values); bitField0_ |= 0x00000200; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Float> mapInt32Float_; private com.google.protobuf.MapField internalGetMapInt32Float() { if (mapInt32Float_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32FloatDefaultEntryHolder.defaultEntry); } return mapInt32Float_; } private com.google.protobuf.MapField internalGetMutableMapInt32Float() { if (mapInt32Float_ == null) { mapInt32Float_ = com.google.protobuf.MapField.newMapField( MapInt32FloatDefaultEntryHolder.defaultEntry); } if (!mapInt32Float_.isMutable()) { mapInt32Float_ = mapInt32Float_.copy(); } bitField0_ |= 0x00000400; onChanged(); return mapInt32Float_; } public int getMapInt32FloatCount() { return internalGetMapInt32Float().getMap().size(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public boolean containsMapInt32Float( int key) { return internalGetMapInt32Float().getMap().containsKey(key); } /** * Use {@link #getMapInt32FloatMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Float() { return getMapInt32FloatMap(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public java.util.Map getMapInt32FloatMap() { return internalGetMapInt32Float().getMap(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public float getMapInt32FloatOrDefault( int key, float defaultValue) { java.util.Map map = internalGetMapInt32Float().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public float getMapInt32FloatOrThrow( int key) { java.util.Map map = internalGetMapInt32Float().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapInt32Float() { bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableMapInt32Float().getMutableMap() .clear(); return this; } /** * map<int32, float> map_int32_float = 11; */ public Builder removeMapInt32Float( int key) { internalGetMutableMapInt32Float().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Float() { bitField0_ |= 0x00000400; return internalGetMutableMapInt32Float().getMutableMap(); } /** * map<int32, float> map_int32_float = 11; */ public Builder putMapInt32Float( int key, float value) { internalGetMutableMapInt32Float().getMutableMap() .put(key, value); bitField0_ |= 0x00000400; return this; } /** * map<int32, float> map_int32_float = 11; */ public Builder putAllMapInt32Float( java.util.Map values) { internalGetMutableMapInt32Float().getMutableMap() .putAll(values); bitField0_ |= 0x00000400; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Double> mapInt32Double_; private com.google.protobuf.MapField internalGetMapInt32Double() { if (mapInt32Double_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32DoubleDefaultEntryHolder.defaultEntry); } return mapInt32Double_; } private com.google.protobuf.MapField internalGetMutableMapInt32Double() { if (mapInt32Double_ == null) { mapInt32Double_ = com.google.protobuf.MapField.newMapField( MapInt32DoubleDefaultEntryHolder.defaultEntry); } if (!mapInt32Double_.isMutable()) { mapInt32Double_ = mapInt32Double_.copy(); } bitField0_ |= 0x00000800; onChanged(); return mapInt32Double_; } public int getMapInt32DoubleCount() { return internalGetMapInt32Double().getMap().size(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public boolean containsMapInt32Double( int key) { return internalGetMapInt32Double().getMap().containsKey(key); } /** * Use {@link #getMapInt32DoubleMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Double() { return getMapInt32DoubleMap(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public java.util.Map getMapInt32DoubleMap() { return internalGetMapInt32Double().getMap(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public double getMapInt32DoubleOrDefault( int key, double defaultValue) { java.util.Map map = internalGetMapInt32Double().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public double getMapInt32DoubleOrThrow( int key) { java.util.Map map = internalGetMapInt32Double().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapInt32Double() { bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableMapInt32Double().getMutableMap() .clear(); return this; } /** * map<int32, double> map_int32_double = 12; */ public Builder removeMapInt32Double( int key) { internalGetMutableMapInt32Double().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Double() { bitField0_ |= 0x00000800; return internalGetMutableMapInt32Double().getMutableMap(); } /** * map<int32, double> map_int32_double = 12; */ public Builder putMapInt32Double( int key, double value) { internalGetMutableMapInt32Double().getMutableMap() .put(key, value); bitField0_ |= 0x00000800; return this; } /** * map<int32, double> map_int32_double = 12; */ public Builder putAllMapInt32Double( java.util.Map values) { internalGetMutableMapInt32Double().getMutableMap() .putAll(values); bitField0_ |= 0x00000800; return this; } private com.google.protobuf.MapField< java.lang.Boolean, java.lang.Boolean> mapBoolBool_; private com.google.protobuf.MapField internalGetMapBoolBool() { if (mapBoolBool_ == null) { return com.google.protobuf.MapField.emptyMapField( MapBoolBoolDefaultEntryHolder.defaultEntry); } return mapBoolBool_; } private com.google.protobuf.MapField internalGetMutableMapBoolBool() { if (mapBoolBool_ == null) { mapBoolBool_ = com.google.protobuf.MapField.newMapField( MapBoolBoolDefaultEntryHolder.defaultEntry); } if (!mapBoolBool_.isMutable()) { mapBoolBool_ = mapBoolBool_.copy(); } bitField0_ |= 0x00001000; onChanged(); return mapBoolBool_; } public int getMapBoolBoolCount() { return internalGetMapBoolBool().getMap().size(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean containsMapBoolBool( boolean key) { return internalGetMapBoolBool().getMap().containsKey(key); } /** * Use {@link #getMapBoolBoolMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapBoolBool() { return getMapBoolBoolMap(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public java.util.Map getMapBoolBoolMap() { return internalGetMapBoolBool().getMap(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean getMapBoolBoolOrDefault( boolean key, boolean defaultValue) { java.util.Map map = internalGetMapBoolBool().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean getMapBoolBoolOrThrow( boolean key) { java.util.Map map = internalGetMapBoolBool().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapBoolBool() { bitField0_ = (bitField0_ & ~0x00001000); internalGetMutableMapBoolBool().getMutableMap() .clear(); return this; } /** * map<bool, bool> map_bool_bool = 13; */ public Builder removeMapBoolBool( boolean key) { internalGetMutableMapBoolBool().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapBoolBool() { bitField0_ |= 0x00001000; return internalGetMutableMapBoolBool().getMutableMap(); } /** * map<bool, bool> map_bool_bool = 13; */ public Builder putMapBoolBool( boolean key, boolean value) { internalGetMutableMapBoolBool().getMutableMap() .put(key, value); bitField0_ |= 0x00001000; return this; } /** * map<bool, bool> map_bool_bool = 13; */ public Builder putAllMapBoolBool( java.util.Map values) { internalGetMutableMapBoolBool().getMutableMap() .putAll(values); bitField0_ |= 0x00001000; return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> mapStringString_; private com.google.protobuf.MapField internalGetMapStringString() { if (mapStringString_ == null) { return com.google.protobuf.MapField.emptyMapField( MapStringStringDefaultEntryHolder.defaultEntry); } return mapStringString_; } private com.google.protobuf.MapField internalGetMutableMapStringString() { if (mapStringString_ == null) { mapStringString_ = com.google.protobuf.MapField.newMapField( MapStringStringDefaultEntryHolder.defaultEntry); } if (!mapStringString_.isMutable()) { mapStringString_ = mapStringString_.copy(); } bitField0_ |= 0x00002000; onChanged(); return mapStringString_; } public int getMapStringStringCount() { return internalGetMapStringString().getMap().size(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public boolean containsMapStringString( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMapStringString().getMap().containsKey(key); } /** * Use {@link #getMapStringStringMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapStringString() { return getMapStringStringMap(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public java.util.Map getMapStringStringMap() { return internalGetMapStringString().getMap(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public /* nullable */ java.lang.String getMapStringStringOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMapStringString().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public java.lang.String getMapStringStringOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMapStringString().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapStringString() { bitField0_ = (bitField0_ & ~0x00002000); internalGetMutableMapStringString().getMutableMap() .clear(); return this; } /** * map<string, string> map_string_string = 14; */ public Builder removeMapStringString( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableMapStringString().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapStringString() { bitField0_ |= 0x00002000; return internalGetMutableMapStringString().getMutableMap(); } /** * map<string, string> map_string_string = 14; */ public Builder putMapStringString( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMapStringString().getMutableMap() .put(key, value); bitField0_ |= 0x00002000; return this; } /** * map<string, string> map_string_string = 14; */ public Builder putAllMapStringString( java.util.Map values) { internalGetMutableMapStringString().getMutableMap() .putAll(values); bitField0_ |= 0x00002000; return this; } private com.google.protobuf.MapField< java.lang.Integer, com.google.protobuf.ByteString> mapInt32Bytes_; private com.google.protobuf.MapField internalGetMapInt32Bytes() { if (mapInt32Bytes_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32BytesDefaultEntryHolder.defaultEntry); } return mapInt32Bytes_; } private com.google.protobuf.MapField internalGetMutableMapInt32Bytes() { if (mapInt32Bytes_ == null) { mapInt32Bytes_ = com.google.protobuf.MapField.newMapField( MapInt32BytesDefaultEntryHolder.defaultEntry); } if (!mapInt32Bytes_.isMutable()) { mapInt32Bytes_ = mapInt32Bytes_.copy(); } bitField0_ |= 0x00004000; onChanged(); return mapInt32Bytes_; } public int getMapInt32BytesCount() { return internalGetMapInt32Bytes().getMap().size(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public boolean containsMapInt32Bytes( int key) { return internalGetMapInt32Bytes().getMap().containsKey(key); } /** * Use {@link #getMapInt32BytesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Bytes() { return getMapInt32BytesMap(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public java.util.Map getMapInt32BytesMap() { return internalGetMapInt32Bytes().getMap(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getMapInt32BytesOrDefault( int key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetMapInt32Bytes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public com.google.protobuf.ByteString getMapInt32BytesOrThrow( int key) { java.util.Map map = internalGetMapInt32Bytes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapInt32Bytes() { bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableMapInt32Bytes().getMutableMap() .clear(); return this; } /** * map<int32, bytes> map_int32_bytes = 15; */ public Builder removeMapInt32Bytes( int key) { internalGetMutableMapInt32Bytes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Bytes() { bitField0_ |= 0x00004000; return internalGetMutableMapInt32Bytes().getMutableMap(); } /** * map<int32, bytes> map_int32_bytes = 15; */ public Builder putMapInt32Bytes( int key, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMapInt32Bytes().getMutableMap() .put(key, value); bitField0_ |= 0x00004000; return this; } /** * map<int32, bytes> map_int32_bytes = 15; */ public Builder putAllMapInt32Bytes( java.util.Map values) { internalGetMutableMapInt32Bytes().getMutableMap() .putAll(values); bitField0_ |= 0x00004000; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapInt32Enum_; private com.google.protobuf.MapField internalGetMapInt32Enum() { if (mapInt32Enum_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32EnumDefaultEntryHolder.defaultEntry); } return mapInt32Enum_; } private com.google.protobuf.MapField internalGetMutableMapInt32Enum() { if (mapInt32Enum_ == null) { mapInt32Enum_ = com.google.protobuf.MapField.newMapField( MapInt32EnumDefaultEntryHolder.defaultEntry); } if (!mapInt32Enum_.isMutable()) { mapInt32Enum_ = mapInt32Enum_.copy(); } bitField0_ |= 0x00008000; onChanged(); return mapInt32Enum_; } public int getMapInt32EnumCount() { return internalGetMapInt32Enum().getMap().size(); } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public boolean containsMapInt32Enum( int key) { return internalGetMapInt32Enum().getMap().containsKey(key); } /** * Use {@link #getMapInt32EnumMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Enum() { return getMapInt32EnumMap(); } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public java.util.Map getMapInt32EnumMap() { return internalGetAdaptedMapInt32EnumMap( internalGetMapInt32Enum().getMap());} /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite defaultValue) { java.util.Map map = internalGetMapInt32Enum().getMap(); return map.containsKey(key) ? mapInt32EnumValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrThrow( int key) { java.util.Map map = internalGetMapInt32Enum().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return mapInt32EnumValueConverter.doForward(map.get(key)); } public Builder clearMapInt32Enum() { bitField0_ = (bitField0_ & ~0x00008000); internalGetMutableMapInt32Enum().getMutableMap() .clear(); return this; } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ public Builder removeMapInt32Enum( int key) { internalGetMutableMapInt32Enum().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Enum() { bitField0_ |= 0x00008000; return internalGetAdaptedMapInt32EnumMap( internalGetMutableMapInt32Enum().getMutableMap()); } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ public Builder putMapInt32Enum( int key, proto2_unittest.MapLiteUnittest.MapEnumLite value) { internalGetMutableMapInt32Enum().getMutableMap() .put(key, mapInt32EnumValueConverter.doBackward(value)); bitField0_ |= 0x00008000; return this; } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ public Builder putAllMapInt32Enum( java.util.Map values) { internalGetAdaptedMapInt32EnumMap( internalGetMutableMapInt32Enum().getMutableMap()) .putAll(values); bitField0_ |= 0x00008000; return this; } private static final class MapInt32ForeignMessageConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLite build(com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder val) { if (val instanceof com.google.protobuf.UnittestLite.ForeignMessageLite) { return (com.google.protobuf.UnittestLite.ForeignMessageLite) val; } return ((com.google.protobuf.UnittestLite.ForeignMessageLite.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return MapInt32ForeignMessageDefaultEntryHolder.defaultEntry; } }; private static final MapInt32ForeignMessageConverter mapInt32ForeignMessageConverter = new MapInt32ForeignMessageConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.Integer, com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder, com.google.protobuf.UnittestLite.ForeignMessageLite, com.google.protobuf.UnittestLite.ForeignMessageLite.Builder> mapInt32ForeignMessage_; private com.google.protobuf.MapFieldBuilder internalGetMapInt32ForeignMessage() { if (mapInt32ForeignMessage_ == null) { return new com.google.protobuf.MapFieldBuilder<>(mapInt32ForeignMessageConverter); } return mapInt32ForeignMessage_; } private com.google.protobuf.MapFieldBuilder internalGetMutableMapInt32ForeignMessage() { if (mapInt32ForeignMessage_ == null) { mapInt32ForeignMessage_ = new com.google.protobuf.MapFieldBuilder<>(mapInt32ForeignMessageConverter); } bitField0_ |= 0x00010000; onChanged(); return mapInt32ForeignMessage_; } public int getMapInt32ForeignMessageCount() { return internalGetMapInt32ForeignMessage().ensureBuilderMap().size(); } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ @java.lang.Override public boolean containsMapInt32ForeignMessage( int key) { return internalGetMapInt32ForeignMessage().ensureBuilderMap().containsKey(key); } /** * Use {@link #getMapInt32ForeignMessageMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32ForeignMessage() { return getMapInt32ForeignMessageMap(); } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ @java.lang.Override public java.util.Map getMapInt32ForeignMessageMap() { return internalGetMapInt32ForeignMessage().getImmutableMap(); } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ @java.lang.Override public /* nullable */ com.google.protobuf.UnittestLite.ForeignMessageLite getMapInt32ForeignMessageOrDefault( int key, /* nullable */ com.google.protobuf.UnittestLite.ForeignMessageLite defaultValue) { java.util.Map map = internalGetMutableMapInt32ForeignMessage().ensureBuilderMap(); return map.containsKey(key) ? mapInt32ForeignMessageConverter.build(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ @java.lang.Override public com.google.protobuf.UnittestLite.ForeignMessageLite getMapInt32ForeignMessageOrThrow( int key) { java.util.Map map = internalGetMutableMapInt32ForeignMessage().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return mapInt32ForeignMessageConverter.build(map.get(key)); } public Builder clearMapInt32ForeignMessage() { bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableMapInt32ForeignMessage().clear(); return this; } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ public Builder removeMapInt32ForeignMessage( int key) { internalGetMutableMapInt32ForeignMessage().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32ForeignMessage() { bitField0_ |= 0x00010000; return internalGetMutableMapInt32ForeignMessage().ensureMessageMap(); } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ public Builder putMapInt32ForeignMessage( int key, com.google.protobuf.UnittestLite.ForeignMessageLite value) { if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMapInt32ForeignMessage().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00010000; return this; } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ public Builder putAllMapInt32ForeignMessage( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableMapInt32ForeignMessage().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00010000; return this; } /** * map<int32, .proto2_unittest.ForeignMessageLite> map_int32_foreign_message = 17; */ public com.google.protobuf.UnittestLite.ForeignMessageLite.Builder putMapInt32ForeignMessageBuilderIfAbsent( int key) { java.util.Map builderMap = internalGetMutableMapInt32ForeignMessage().ensureBuilderMap(); com.google.protobuf.UnittestLite.ForeignMessageLiteOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.protobuf.UnittestLite.ForeignMessageLite.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.google.protobuf.UnittestLite.ForeignMessageLite) { entry = ((com.google.protobuf.UnittestLite.ForeignMessageLite) entry).toBuilder(); builderMap.put(key, entry); } return (com.google.protobuf.UnittestLite.ForeignMessageLite.Builder) entry; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> teboring_; private com.google.protobuf.MapField internalGetTeboring() { if (teboring_ == null) { return com.google.protobuf.MapField.emptyMapField( TeboringDefaultEntryHolder.defaultEntry); } return teboring_; } private com.google.protobuf.MapField internalGetMutableTeboring() { if (teboring_ == null) { teboring_ = com.google.protobuf.MapField.newMapField( TeboringDefaultEntryHolder.defaultEntry); } if (!teboring_.isMutable()) { teboring_ = teboring_.copy(); } bitField0_ |= 0x00020000; onChanged(); return teboring_; } public int getTeboringCount() { return internalGetTeboring().getMap().size(); } /** * map<int32, int32> teboring = 18; */ @java.lang.Override public boolean containsTeboring( int key) { return internalGetTeboring().getMap().containsKey(key); } /** * Use {@link #getTeboringMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTeboring() { return getTeboringMap(); } /** * map<int32, int32> teboring = 18; */ @java.lang.Override public java.util.Map getTeboringMap() { return internalGetTeboring().getMap(); } /** * map<int32, int32> teboring = 18; */ @java.lang.Override public int getTeboringOrDefault( int key, int defaultValue) { java.util.Map map = internalGetTeboring().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, int32> teboring = 18; */ @java.lang.Override public int getTeboringOrThrow( int key) { java.util.Map map = internalGetTeboring().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTeboring() { bitField0_ = (bitField0_ & ~0x00020000); internalGetMutableTeboring().getMutableMap() .clear(); return this; } /** * map<int32, int32> teboring = 18; */ public Builder removeTeboring( int key) { internalGetMutableTeboring().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTeboring() { bitField0_ |= 0x00020000; return internalGetMutableTeboring().getMutableMap(); } /** * map<int32, int32> teboring = 18; */ public Builder putTeboring( int key, int value) { internalGetMutableTeboring().getMutableMap() .put(key, value); bitField0_ |= 0x00020000; return this; } /** * map<int32, int32> teboring = 18; */ public Builder putAllTeboring( java.util.Map values) { internalGetMutableTeboring().getMutableMap() .putAll(values); bitField0_ |= 0x00020000; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestMapLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestMapLite) private static final proto2_unittest.MapLiteUnittest.TestMapLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto2_unittest.MapLiteUnittest.TestMapLite(); } public static proto2_unittest.MapLiteUnittest.TestMapLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestMapLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestMapLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestArenaMapLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestArenaMapLite) com.google.protobuf.MessageOrBuilder { /** * map<int32, int32> map_int32_int32 = 1; */ int getMapInt32Int32Count(); /** * map<int32, int32> map_int32_int32 = 1; */ boolean containsMapInt32Int32( int key); /** * Use {@link #getMapInt32Int32Map()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Int32(); /** * map<int32, int32> map_int32_int32 = 1; */ java.util.Map getMapInt32Int32Map(); /** * map<int32, int32> map_int32_int32 = 1; */ int getMapInt32Int32OrDefault( int key, int defaultValue); /** * map<int32, int32> map_int32_int32 = 1; */ int getMapInt32Int32OrThrow( int key); /** * map<int64, int64> map_int64_int64 = 2; */ int getMapInt64Int64Count(); /** * map<int64, int64> map_int64_int64 = 2; */ boolean containsMapInt64Int64( long key); /** * Use {@link #getMapInt64Int64Map()} instead. */ @java.lang.Deprecated java.util.Map getMapInt64Int64(); /** * map<int64, int64> map_int64_int64 = 2; */ java.util.Map getMapInt64Int64Map(); /** * map<int64, int64> map_int64_int64 = 2; */ long getMapInt64Int64OrDefault( long key, long defaultValue); /** * map<int64, int64> map_int64_int64 = 2; */ long getMapInt64Int64OrThrow( long key); /** * map<uint32, uint32> map_uint32_uint32 = 3; */ int getMapUint32Uint32Count(); /** * map<uint32, uint32> map_uint32_uint32 = 3; */ boolean containsMapUint32Uint32( int key); /** * Use {@link #getMapUint32Uint32Map()} instead. */ @java.lang.Deprecated java.util.Map getMapUint32Uint32(); /** * map<uint32, uint32> map_uint32_uint32 = 3; */ java.util.Map getMapUint32Uint32Map(); /** * map<uint32, uint32> map_uint32_uint32 = 3; */ int getMapUint32Uint32OrDefault( int key, int defaultValue); /** * map<uint32, uint32> map_uint32_uint32 = 3; */ int getMapUint32Uint32OrThrow( int key); /** * map<uint64, uint64> map_uint64_uint64 = 4; */ int getMapUint64Uint64Count(); /** * map<uint64, uint64> map_uint64_uint64 = 4; */ boolean containsMapUint64Uint64( long key); /** * Use {@link #getMapUint64Uint64Map()} instead. */ @java.lang.Deprecated java.util.Map getMapUint64Uint64(); /** * map<uint64, uint64> map_uint64_uint64 = 4; */ java.util.Map getMapUint64Uint64Map(); /** * map<uint64, uint64> map_uint64_uint64 = 4; */ long getMapUint64Uint64OrDefault( long key, long defaultValue); /** * map<uint64, uint64> map_uint64_uint64 = 4; */ long getMapUint64Uint64OrThrow( long key); /** * map<sint32, sint32> map_sint32_sint32 = 5; */ int getMapSint32Sint32Count(); /** * map<sint32, sint32> map_sint32_sint32 = 5; */ boolean containsMapSint32Sint32( int key); /** * Use {@link #getMapSint32Sint32Map()} instead. */ @java.lang.Deprecated java.util.Map getMapSint32Sint32(); /** * map<sint32, sint32> map_sint32_sint32 = 5; */ java.util.Map getMapSint32Sint32Map(); /** * map<sint32, sint32> map_sint32_sint32 = 5; */ int getMapSint32Sint32OrDefault( int key, int defaultValue); /** * map<sint32, sint32> map_sint32_sint32 = 5; */ int getMapSint32Sint32OrThrow( int key); /** * map<sint64, sint64> map_sint64_sint64 = 6; */ int getMapSint64Sint64Count(); /** * map<sint64, sint64> map_sint64_sint64 = 6; */ boolean containsMapSint64Sint64( long key); /** * Use {@link #getMapSint64Sint64Map()} instead. */ @java.lang.Deprecated java.util.Map getMapSint64Sint64(); /** * map<sint64, sint64> map_sint64_sint64 = 6; */ java.util.Map getMapSint64Sint64Map(); /** * map<sint64, sint64> map_sint64_sint64 = 6; */ long getMapSint64Sint64OrDefault( long key, long defaultValue); /** * map<sint64, sint64> map_sint64_sint64 = 6; */ long getMapSint64Sint64OrThrow( long key); /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ int getMapFixed32Fixed32Count(); /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ boolean containsMapFixed32Fixed32( int key); /** * Use {@link #getMapFixed32Fixed32Map()} instead. */ @java.lang.Deprecated java.util.Map getMapFixed32Fixed32(); /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ java.util.Map getMapFixed32Fixed32Map(); /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ int getMapFixed32Fixed32OrDefault( int key, int defaultValue); /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ int getMapFixed32Fixed32OrThrow( int key); /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ int getMapFixed64Fixed64Count(); /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ boolean containsMapFixed64Fixed64( long key); /** * Use {@link #getMapFixed64Fixed64Map()} instead. */ @java.lang.Deprecated java.util.Map getMapFixed64Fixed64(); /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ java.util.Map getMapFixed64Fixed64Map(); /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ long getMapFixed64Fixed64OrDefault( long key, long defaultValue); /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ long getMapFixed64Fixed64OrThrow( long key); /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ int getMapSfixed32Sfixed32Count(); /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ boolean containsMapSfixed32Sfixed32( int key); /** * Use {@link #getMapSfixed32Sfixed32Map()} instead. */ @java.lang.Deprecated java.util.Map getMapSfixed32Sfixed32(); /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ java.util.Map getMapSfixed32Sfixed32Map(); /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ int getMapSfixed32Sfixed32OrDefault( int key, int defaultValue); /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ int getMapSfixed32Sfixed32OrThrow( int key); /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ int getMapSfixed64Sfixed64Count(); /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ boolean containsMapSfixed64Sfixed64( long key); /** * Use {@link #getMapSfixed64Sfixed64Map()} instead. */ @java.lang.Deprecated java.util.Map getMapSfixed64Sfixed64(); /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ java.util.Map getMapSfixed64Sfixed64Map(); /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ long getMapSfixed64Sfixed64OrDefault( long key, long defaultValue); /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ long getMapSfixed64Sfixed64OrThrow( long key); /** * map<int32, float> map_int32_float = 11; */ int getMapInt32FloatCount(); /** * map<int32, float> map_int32_float = 11; */ boolean containsMapInt32Float( int key); /** * Use {@link #getMapInt32FloatMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Float(); /** * map<int32, float> map_int32_float = 11; */ java.util.Map getMapInt32FloatMap(); /** * map<int32, float> map_int32_float = 11; */ float getMapInt32FloatOrDefault( int key, float defaultValue); /** * map<int32, float> map_int32_float = 11; */ float getMapInt32FloatOrThrow( int key); /** * map<int32, double> map_int32_double = 12; */ int getMapInt32DoubleCount(); /** * map<int32, double> map_int32_double = 12; */ boolean containsMapInt32Double( int key); /** * Use {@link #getMapInt32DoubleMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Double(); /** * map<int32, double> map_int32_double = 12; */ java.util.Map getMapInt32DoubleMap(); /** * map<int32, double> map_int32_double = 12; */ double getMapInt32DoubleOrDefault( int key, double defaultValue); /** * map<int32, double> map_int32_double = 12; */ double getMapInt32DoubleOrThrow( int key); /** * map<bool, bool> map_bool_bool = 13; */ int getMapBoolBoolCount(); /** * map<bool, bool> map_bool_bool = 13; */ boolean containsMapBoolBool( boolean key); /** * Use {@link #getMapBoolBoolMap()} instead. */ @java.lang.Deprecated java.util.Map getMapBoolBool(); /** * map<bool, bool> map_bool_bool = 13; */ java.util.Map getMapBoolBoolMap(); /** * map<bool, bool> map_bool_bool = 13; */ boolean getMapBoolBoolOrDefault( boolean key, boolean defaultValue); /** * map<bool, bool> map_bool_bool = 13; */ boolean getMapBoolBoolOrThrow( boolean key); /** * map<string, string> map_string_string = 14; */ int getMapStringStringCount(); /** * map<string, string> map_string_string = 14; */ boolean containsMapStringString( java.lang.String key); /** * Use {@link #getMapStringStringMap()} instead. */ @java.lang.Deprecated java.util.Map getMapStringString(); /** * map<string, string> map_string_string = 14; */ java.util.Map getMapStringStringMap(); /** * map<string, string> map_string_string = 14; */ /* nullable */ java.lang.String getMapStringStringOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * map<string, string> map_string_string = 14; */ java.lang.String getMapStringStringOrThrow( java.lang.String key); /** * map<int32, bytes> map_int32_bytes = 15; */ int getMapInt32BytesCount(); /** * map<int32, bytes> map_int32_bytes = 15; */ boolean containsMapInt32Bytes( int key); /** * Use {@link #getMapInt32BytesMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Bytes(); /** * map<int32, bytes> map_int32_bytes = 15; */ java.util.Map getMapInt32BytesMap(); /** * map<int32, bytes> map_int32_bytes = 15; */ /* nullable */ com.google.protobuf.ByteString getMapInt32BytesOrDefault( int key, /* nullable */ com.google.protobuf.ByteString defaultValue); /** * map<int32, bytes> map_int32_bytes = 15; */ com.google.protobuf.ByteString getMapInt32BytesOrThrow( int key); /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ int getMapInt32EnumCount(); /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ boolean containsMapInt32Enum( int key); /** * Use {@link #getMapInt32EnumMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Enum(); /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ java.util.Map getMapInt32EnumMap(); /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite defaultValue); /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrThrow( int key); /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ int getMapInt32ForeignMessageCount(); /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ boolean containsMapInt32ForeignMessage( int key); /** * Use {@link #getMapInt32ForeignMessageMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32ForeignMessage(); /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ java.util.Map getMapInt32ForeignMessageMap(); /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ /* nullable */ proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite getMapInt32ForeignMessageOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite defaultValue); /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite getMapInt32ForeignMessageOrThrow( int key); } /** * Protobuf type {@code proto2_unittest.TestArenaMapLite} */ public static final class TestArenaMapLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestArenaMapLite) TestArenaMapLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestArenaMapLite.newBuilder() to construct. private TestArenaMapLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestArenaMapLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestArenaMapLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetMapInt32Int32(); case 2: return internalGetMapInt64Int64(); case 3: return internalGetMapUint32Uint32(); case 4: return internalGetMapUint64Uint64(); case 5: return internalGetMapSint32Sint32(); case 6: return internalGetMapSint64Sint64(); case 7: return internalGetMapFixed32Fixed32(); case 8: return internalGetMapFixed64Fixed64(); case 9: return internalGetMapSfixed32Sfixed32(); case 10: return internalGetMapSfixed64Sfixed64(); case 11: return internalGetMapInt32Float(); case 12: return internalGetMapInt32Double(); case 13: return internalGetMapBoolBool(); case 14: return internalGetMapStringString(); case 15: return internalGetMapInt32Bytes(); case 16: return internalGetMapInt32Enum(); case 17: return internalGetMapInt32ForeignMessage(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestArenaMapLite.class, proto2_unittest.MapLiteUnittest.TestArenaMapLite.Builder.class); } public static final int MAP_INT32_INT32_FIELD_NUMBER = 1; private static final class MapInt32Int32DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapInt32Int32Entry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.INT32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapInt32Int32_; private com.google.protobuf.MapField internalGetMapInt32Int32() { if (mapInt32Int32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32Int32DefaultEntryHolder.defaultEntry); } return mapInt32Int32_; } public int getMapInt32Int32Count() { return internalGetMapInt32Int32().getMap().size(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public boolean containsMapInt32Int32( int key) { return internalGetMapInt32Int32().getMap().containsKey(key); } /** * Use {@link #getMapInt32Int32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Int32() { return getMapInt32Int32Map(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public java.util.Map getMapInt32Int32Map() { return internalGetMapInt32Int32().getMap(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public int getMapInt32Int32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapInt32Int32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public int getMapInt32Int32OrThrow( int key) { java.util.Map map = internalGetMapInt32Int32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_INT64_INT64_FIELD_NUMBER = 2; private static final class MapInt64Int64DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapInt64Int64Entry_descriptor, com.google.protobuf.WireFormat.FieldType.INT64, 0L, com.google.protobuf.WireFormat.FieldType.INT64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapInt64Int64_; private com.google.protobuf.MapField internalGetMapInt64Int64() { if (mapInt64Int64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt64Int64DefaultEntryHolder.defaultEntry); } return mapInt64Int64_; } public int getMapInt64Int64Count() { return internalGetMapInt64Int64().getMap().size(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public boolean containsMapInt64Int64( long key) { return internalGetMapInt64Int64().getMap().containsKey(key); } /** * Use {@link #getMapInt64Int64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt64Int64() { return getMapInt64Int64Map(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public java.util.Map getMapInt64Int64Map() { return internalGetMapInt64Int64().getMap(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public long getMapInt64Int64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapInt64Int64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public long getMapInt64Int64OrThrow( long key) { java.util.Map map = internalGetMapInt64Int64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_UINT32_UINT32_FIELD_NUMBER = 3; private static final class MapUint32Uint32DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapUint32Uint32Entry_descriptor, com.google.protobuf.WireFormat.FieldType.UINT32, 0, com.google.protobuf.WireFormat.FieldType.UINT32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapUint32Uint32_; private com.google.protobuf.MapField internalGetMapUint32Uint32() { if (mapUint32Uint32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapUint32Uint32DefaultEntryHolder.defaultEntry); } return mapUint32Uint32_; } public int getMapUint32Uint32Count() { return internalGetMapUint32Uint32().getMap().size(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public boolean containsMapUint32Uint32( int key) { return internalGetMapUint32Uint32().getMap().containsKey(key); } /** * Use {@link #getMapUint32Uint32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapUint32Uint32() { return getMapUint32Uint32Map(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public java.util.Map getMapUint32Uint32Map() { return internalGetMapUint32Uint32().getMap(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public int getMapUint32Uint32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapUint32Uint32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public int getMapUint32Uint32OrThrow( int key) { java.util.Map map = internalGetMapUint32Uint32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_UINT64_UINT64_FIELD_NUMBER = 4; private static final class MapUint64Uint64DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapUint64Uint64Entry_descriptor, com.google.protobuf.WireFormat.FieldType.UINT64, 0L, com.google.protobuf.WireFormat.FieldType.UINT64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapUint64Uint64_; private com.google.protobuf.MapField internalGetMapUint64Uint64() { if (mapUint64Uint64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapUint64Uint64DefaultEntryHolder.defaultEntry); } return mapUint64Uint64_; } public int getMapUint64Uint64Count() { return internalGetMapUint64Uint64().getMap().size(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public boolean containsMapUint64Uint64( long key) { return internalGetMapUint64Uint64().getMap().containsKey(key); } /** * Use {@link #getMapUint64Uint64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapUint64Uint64() { return getMapUint64Uint64Map(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public java.util.Map getMapUint64Uint64Map() { return internalGetMapUint64Uint64().getMap(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public long getMapUint64Uint64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapUint64Uint64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public long getMapUint64Uint64OrThrow( long key) { java.util.Map map = internalGetMapUint64Uint64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_SINT32_SINT32_FIELD_NUMBER = 5; private static final class MapSint32Sint32DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapSint32Sint32Entry_descriptor, com.google.protobuf.WireFormat.FieldType.SINT32, 0, com.google.protobuf.WireFormat.FieldType.SINT32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapSint32Sint32_; private com.google.protobuf.MapField internalGetMapSint32Sint32() { if (mapSint32Sint32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSint32Sint32DefaultEntryHolder.defaultEntry); } return mapSint32Sint32_; } public int getMapSint32Sint32Count() { return internalGetMapSint32Sint32().getMap().size(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public boolean containsMapSint32Sint32( int key) { return internalGetMapSint32Sint32().getMap().containsKey(key); } /** * Use {@link #getMapSint32Sint32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSint32Sint32() { return getMapSint32Sint32Map(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public java.util.Map getMapSint32Sint32Map() { return internalGetMapSint32Sint32().getMap(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public int getMapSint32Sint32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapSint32Sint32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public int getMapSint32Sint32OrThrow( int key) { java.util.Map map = internalGetMapSint32Sint32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_SINT64_SINT64_FIELD_NUMBER = 6; private static final class MapSint64Sint64DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapSint64Sint64Entry_descriptor, com.google.protobuf.WireFormat.FieldType.SINT64, 0L, com.google.protobuf.WireFormat.FieldType.SINT64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapSint64Sint64_; private com.google.protobuf.MapField internalGetMapSint64Sint64() { if (mapSint64Sint64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSint64Sint64DefaultEntryHolder.defaultEntry); } return mapSint64Sint64_; } public int getMapSint64Sint64Count() { return internalGetMapSint64Sint64().getMap().size(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public boolean containsMapSint64Sint64( long key) { return internalGetMapSint64Sint64().getMap().containsKey(key); } /** * Use {@link #getMapSint64Sint64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSint64Sint64() { return getMapSint64Sint64Map(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public java.util.Map getMapSint64Sint64Map() { return internalGetMapSint64Sint64().getMap(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public long getMapSint64Sint64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapSint64Sint64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public long getMapSint64Sint64OrThrow( long key) { java.util.Map map = internalGetMapSint64Sint64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_FIXED32_FIXED32_FIELD_NUMBER = 7; private static final class MapFixed32Fixed32DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapFixed32Fixed32Entry_descriptor, com.google.protobuf.WireFormat.FieldType.FIXED32, 0, com.google.protobuf.WireFormat.FieldType.FIXED32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapFixed32Fixed32_; private com.google.protobuf.MapField internalGetMapFixed32Fixed32() { if (mapFixed32Fixed32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapFixed32Fixed32DefaultEntryHolder.defaultEntry); } return mapFixed32Fixed32_; } public int getMapFixed32Fixed32Count() { return internalGetMapFixed32Fixed32().getMap().size(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public boolean containsMapFixed32Fixed32( int key) { return internalGetMapFixed32Fixed32().getMap().containsKey(key); } /** * Use {@link #getMapFixed32Fixed32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapFixed32Fixed32() { return getMapFixed32Fixed32Map(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public java.util.Map getMapFixed32Fixed32Map() { return internalGetMapFixed32Fixed32().getMap(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public int getMapFixed32Fixed32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapFixed32Fixed32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public int getMapFixed32Fixed32OrThrow( int key) { java.util.Map map = internalGetMapFixed32Fixed32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_FIXED64_FIXED64_FIELD_NUMBER = 8; private static final class MapFixed64Fixed64DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapFixed64Fixed64Entry_descriptor, com.google.protobuf.WireFormat.FieldType.FIXED64, 0L, com.google.protobuf.WireFormat.FieldType.FIXED64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapFixed64Fixed64_; private com.google.protobuf.MapField internalGetMapFixed64Fixed64() { if (mapFixed64Fixed64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapFixed64Fixed64DefaultEntryHolder.defaultEntry); } return mapFixed64Fixed64_; } public int getMapFixed64Fixed64Count() { return internalGetMapFixed64Fixed64().getMap().size(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public boolean containsMapFixed64Fixed64( long key) { return internalGetMapFixed64Fixed64().getMap().containsKey(key); } /** * Use {@link #getMapFixed64Fixed64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapFixed64Fixed64() { return getMapFixed64Fixed64Map(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public java.util.Map getMapFixed64Fixed64Map() { return internalGetMapFixed64Fixed64().getMap(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public long getMapFixed64Fixed64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapFixed64Fixed64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public long getMapFixed64Fixed64OrThrow( long key) { java.util.Map map = internalGetMapFixed64Fixed64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_SFIXED32_SFIXED32_FIELD_NUMBER = 9; private static final class MapSfixed32Sfixed32DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapSfixed32Sfixed32Entry_descriptor, com.google.protobuf.WireFormat.FieldType.SFIXED32, 0, com.google.protobuf.WireFormat.FieldType.SFIXED32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapSfixed32Sfixed32_; private com.google.protobuf.MapField internalGetMapSfixed32Sfixed32() { if (mapSfixed32Sfixed32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry); } return mapSfixed32Sfixed32_; } public int getMapSfixed32Sfixed32Count() { return internalGetMapSfixed32Sfixed32().getMap().size(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public boolean containsMapSfixed32Sfixed32( int key) { return internalGetMapSfixed32Sfixed32().getMap().containsKey(key); } /** * Use {@link #getMapSfixed32Sfixed32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSfixed32Sfixed32() { return getMapSfixed32Sfixed32Map(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public java.util.Map getMapSfixed32Sfixed32Map() { return internalGetMapSfixed32Sfixed32().getMap(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public int getMapSfixed32Sfixed32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapSfixed32Sfixed32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public int getMapSfixed32Sfixed32OrThrow( int key) { java.util.Map map = internalGetMapSfixed32Sfixed32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_SFIXED64_SFIXED64_FIELD_NUMBER = 10; private static final class MapSfixed64Sfixed64DefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Long, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapSfixed64Sfixed64Entry_descriptor, com.google.protobuf.WireFormat.FieldType.SFIXED64, 0L, com.google.protobuf.WireFormat.FieldType.SFIXED64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapSfixed64Sfixed64_; private com.google.protobuf.MapField internalGetMapSfixed64Sfixed64() { if (mapSfixed64Sfixed64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry); } return mapSfixed64Sfixed64_; } public int getMapSfixed64Sfixed64Count() { return internalGetMapSfixed64Sfixed64().getMap().size(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public boolean containsMapSfixed64Sfixed64( long key) { return internalGetMapSfixed64Sfixed64().getMap().containsKey(key); } /** * Use {@link #getMapSfixed64Sfixed64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSfixed64Sfixed64() { return getMapSfixed64Sfixed64Map(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public java.util.Map getMapSfixed64Sfixed64Map() { return internalGetMapSfixed64Sfixed64().getMap(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public long getMapSfixed64Sfixed64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapSfixed64Sfixed64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public long getMapSfixed64Sfixed64OrThrow( long key) { java.util.Map map = internalGetMapSfixed64Sfixed64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_INT32_FLOAT_FIELD_NUMBER = 11; private static final class MapInt32FloatDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Float> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapInt32FloatEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.FLOAT, 0F); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Float> mapInt32Float_; private com.google.protobuf.MapField internalGetMapInt32Float() { if (mapInt32Float_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32FloatDefaultEntryHolder.defaultEntry); } return mapInt32Float_; } public int getMapInt32FloatCount() { return internalGetMapInt32Float().getMap().size(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public boolean containsMapInt32Float( int key) { return internalGetMapInt32Float().getMap().containsKey(key); } /** * Use {@link #getMapInt32FloatMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Float() { return getMapInt32FloatMap(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public java.util.Map getMapInt32FloatMap() { return internalGetMapInt32Float().getMap(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public float getMapInt32FloatOrDefault( int key, float defaultValue) { java.util.Map map = internalGetMapInt32Float().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public float getMapInt32FloatOrThrow( int key) { java.util.Map map = internalGetMapInt32Float().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_INT32_DOUBLE_FIELD_NUMBER = 12; private static final class MapInt32DoubleDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Double> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapInt32DoubleEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.DOUBLE, 0D); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Double> mapInt32Double_; private com.google.protobuf.MapField internalGetMapInt32Double() { if (mapInt32Double_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32DoubleDefaultEntryHolder.defaultEntry); } return mapInt32Double_; } public int getMapInt32DoubleCount() { return internalGetMapInt32Double().getMap().size(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public boolean containsMapInt32Double( int key) { return internalGetMapInt32Double().getMap().containsKey(key); } /** * Use {@link #getMapInt32DoubleMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Double() { return getMapInt32DoubleMap(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public java.util.Map getMapInt32DoubleMap() { return internalGetMapInt32Double().getMap(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public double getMapInt32DoubleOrDefault( int key, double defaultValue) { java.util.Map map = internalGetMapInt32Double().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public double getMapInt32DoubleOrThrow( int key) { java.util.Map map = internalGetMapInt32Double().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_BOOL_BOOL_FIELD_NUMBER = 13; private static final class MapBoolBoolDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Boolean, java.lang.Boolean> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapBoolBoolEntry_descriptor, com.google.protobuf.WireFormat.FieldType.BOOL, false, com.google.protobuf.WireFormat.FieldType.BOOL, false); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Boolean, java.lang.Boolean> mapBoolBool_; private com.google.protobuf.MapField internalGetMapBoolBool() { if (mapBoolBool_ == null) { return com.google.protobuf.MapField.emptyMapField( MapBoolBoolDefaultEntryHolder.defaultEntry); } return mapBoolBool_; } public int getMapBoolBoolCount() { return internalGetMapBoolBool().getMap().size(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean containsMapBoolBool( boolean key) { return internalGetMapBoolBool().getMap().containsKey(key); } /** * Use {@link #getMapBoolBoolMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapBoolBool() { return getMapBoolBoolMap(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public java.util.Map getMapBoolBoolMap() { return internalGetMapBoolBool().getMap(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean getMapBoolBoolOrDefault( boolean key, boolean defaultValue) { java.util.Map map = internalGetMapBoolBool().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean getMapBoolBoolOrThrow( boolean key) { java.util.Map map = internalGetMapBoolBool().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_STRING_STRING_FIELD_NUMBER = 14; private static final class MapStringStringDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapStringStringEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> mapStringString_; private com.google.protobuf.MapField internalGetMapStringString() { if (mapStringString_ == null) { return com.google.protobuf.MapField.emptyMapField( MapStringStringDefaultEntryHolder.defaultEntry); } return mapStringString_; } public int getMapStringStringCount() { return internalGetMapStringString().getMap().size(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public boolean containsMapStringString( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMapStringString().getMap().containsKey(key); } /** * Use {@link #getMapStringStringMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapStringString() { return getMapStringStringMap(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public java.util.Map getMapStringStringMap() { return internalGetMapStringString().getMap(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public /* nullable */ java.lang.String getMapStringStringOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMapStringString().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public java.lang.String getMapStringStringOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMapStringString().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_INT32_BYTES_FIELD_NUMBER = 15; private static final class MapInt32BytesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapInt32BytesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, com.google.protobuf.ByteString> mapInt32Bytes_; private com.google.protobuf.MapField internalGetMapInt32Bytes() { if (mapInt32Bytes_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32BytesDefaultEntryHolder.defaultEntry); } return mapInt32Bytes_; } public int getMapInt32BytesCount() { return internalGetMapInt32Bytes().getMap().size(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public boolean containsMapInt32Bytes( int key) { return internalGetMapInt32Bytes().getMap().containsKey(key); } /** * Use {@link #getMapInt32BytesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Bytes() { return getMapInt32BytesMap(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public java.util.Map getMapInt32BytesMap() { return internalGetMapInt32Bytes().getMap(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getMapInt32BytesOrDefault( int key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetMapInt32Bytes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public com.google.protobuf.ByteString getMapInt32BytesOrThrow( int key) { java.util.Map map = internalGetMapInt32Bytes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAP_INT32_ENUM_FIELD_NUMBER = 16; private static final class MapInt32EnumDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapInt32EnumEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.ENUM, proto2_unittest.MapLiteUnittest.MapEnumLite.MAP_ENUM_FOO_LITE.getNumber()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapInt32Enum_; private com.google.protobuf.MapField internalGetMapInt32Enum() { if (mapInt32Enum_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32EnumDefaultEntryHolder.defaultEntry); } return mapInt32Enum_; } private static final com.google.protobuf.Internal.MapAdapter.Converter< java.lang.Integer, proto2_unittest.MapLiteUnittest.MapEnumLite> mapInt32EnumValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( proto2_unittest.MapLiteUnittest.MapEnumLite.internalGetValueMap(), proto2_unittest.MapLiteUnittest.MapEnumLite.MAP_ENUM_FOO_LITE); private static final java.util.Map internalGetAdaptedMapInt32EnumMap( java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< java.lang.Integer, proto2_unittest.MapLiteUnittest.MapEnumLite, java.lang.Integer>( map, mapInt32EnumValueConverter); } public int getMapInt32EnumCount() { return internalGetMapInt32Enum().getMap().size(); } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public boolean containsMapInt32Enum( int key) { return internalGetMapInt32Enum().getMap().containsKey(key); } /** * Use {@link #getMapInt32EnumMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Enum() { return getMapInt32EnumMap(); } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public java.util.Map getMapInt32EnumMap() { return internalGetAdaptedMapInt32EnumMap( internalGetMapInt32Enum().getMap());} /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite defaultValue) { java.util.Map map = internalGetMapInt32Enum().getMap(); return map.containsKey(key) ? mapInt32EnumValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrThrow( int key) { java.util.Map map = internalGetMapInt32Enum().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return mapInt32EnumValueConverter.doForward(map.get(key)); } public static final int MAP_INT32_FOREIGN_MESSAGE_FIELD_NUMBER = 17; private static final class MapInt32ForeignMessageDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_MapInt32ForeignMessageEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.MESSAGE, proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite> mapInt32ForeignMessage_; private com.google.protobuf.MapField internalGetMapInt32ForeignMessage() { if (mapInt32ForeignMessage_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32ForeignMessageDefaultEntryHolder.defaultEntry); } return mapInt32ForeignMessage_; } public int getMapInt32ForeignMessageCount() { return internalGetMapInt32ForeignMessage().getMap().size(); } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ @java.lang.Override public boolean containsMapInt32ForeignMessage( int key) { return internalGetMapInt32ForeignMessage().getMap().containsKey(key); } /** * Use {@link #getMapInt32ForeignMessageMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32ForeignMessage() { return getMapInt32ForeignMessageMap(); } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ @java.lang.Override public java.util.Map getMapInt32ForeignMessageMap() { return internalGetMapInt32ForeignMessage().getMap(); } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite getMapInt32ForeignMessageOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite defaultValue) { java.util.Map map = internalGetMapInt32ForeignMessage().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite getMapInt32ForeignMessageOrThrow( int key) { java.util.Map map = internalGetMapInt32ForeignMessage().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Int32(), MapInt32Int32DefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetMapInt64Int64(), MapInt64Int64DefaultEntryHolder.defaultEntry, 2); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapUint32Uint32(), MapUint32Uint32DefaultEntryHolder.defaultEntry, 3); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetMapUint64Uint64(), MapUint64Uint64DefaultEntryHolder.defaultEntry, 4); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapSint32Sint32(), MapSint32Sint32DefaultEntryHolder.defaultEntry, 5); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetMapSint64Sint64(), MapSint64Sint64DefaultEntryHolder.defaultEntry, 6); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapFixed32Fixed32(), MapFixed32Fixed32DefaultEntryHolder.defaultEntry, 7); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetMapFixed64Fixed64(), MapFixed64Fixed64DefaultEntryHolder.defaultEntry, 8); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapSfixed32Sfixed32(), MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry, 9); com.google.protobuf.GeneratedMessageV3 .serializeLongMapTo( output, internalGetMapSfixed64Sfixed64(), MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry, 10); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Float(), MapInt32FloatDefaultEntryHolder.defaultEntry, 11); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Double(), MapInt32DoubleDefaultEntryHolder.defaultEntry, 12); com.google.protobuf.GeneratedMessageV3 .serializeBooleanMapTo( output, internalGetMapBoolBool(), MapBoolBoolDefaultEntryHolder.defaultEntry, 13); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMapStringString(), MapStringStringDefaultEntryHolder.defaultEntry, 14); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Bytes(), MapInt32BytesDefaultEntryHolder.defaultEntry, 15); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Enum(), MapInt32EnumDefaultEntryHolder.defaultEntry, 16); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32ForeignMessage(), MapInt32ForeignMessageDefaultEntryHolder.defaultEntry, 17); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetMapInt32Int32().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Int32__ = MapInt32Int32DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, mapInt32Int32__); } for (java.util.Map.Entry entry : internalGetMapInt64Int64().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt64Int64__ = MapInt64Int64DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, mapInt64Int64__); } for (java.util.Map.Entry entry : internalGetMapUint32Uint32().getMap().entrySet()) { com.google.protobuf.MapEntry mapUint32Uint32__ = MapUint32Uint32DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, mapUint32Uint32__); } for (java.util.Map.Entry entry : internalGetMapUint64Uint64().getMap().entrySet()) { com.google.protobuf.MapEntry mapUint64Uint64__ = MapUint64Uint64DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, mapUint64Uint64__); } for (java.util.Map.Entry entry : internalGetMapSint32Sint32().getMap().entrySet()) { com.google.protobuf.MapEntry mapSint32Sint32__ = MapSint32Sint32DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, mapSint32Sint32__); } for (java.util.Map.Entry entry : internalGetMapSint64Sint64().getMap().entrySet()) { com.google.protobuf.MapEntry mapSint64Sint64__ = MapSint64Sint64DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, mapSint64Sint64__); } for (java.util.Map.Entry entry : internalGetMapFixed32Fixed32().getMap().entrySet()) { com.google.protobuf.MapEntry mapFixed32Fixed32__ = MapFixed32Fixed32DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, mapFixed32Fixed32__); } for (java.util.Map.Entry entry : internalGetMapFixed64Fixed64().getMap().entrySet()) { com.google.protobuf.MapEntry mapFixed64Fixed64__ = MapFixed64Fixed64DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, mapFixed64Fixed64__); } for (java.util.Map.Entry entry : internalGetMapSfixed32Sfixed32().getMap().entrySet()) { com.google.protobuf.MapEntry mapSfixed32Sfixed32__ = MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, mapSfixed32Sfixed32__); } for (java.util.Map.Entry entry : internalGetMapSfixed64Sfixed64().getMap().entrySet()) { com.google.protobuf.MapEntry mapSfixed64Sfixed64__ = MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, mapSfixed64Sfixed64__); } for (java.util.Map.Entry entry : internalGetMapInt32Float().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Float__ = MapInt32FloatDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, mapInt32Float__); } for (java.util.Map.Entry entry : internalGetMapInt32Double().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Double__ = MapInt32DoubleDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, mapInt32Double__); } for (java.util.Map.Entry entry : internalGetMapBoolBool().getMap().entrySet()) { com.google.protobuf.MapEntry mapBoolBool__ = MapBoolBoolDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, mapBoolBool__); } for (java.util.Map.Entry entry : internalGetMapStringString().getMap().entrySet()) { com.google.protobuf.MapEntry mapStringString__ = MapStringStringDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, mapStringString__); } for (java.util.Map.Entry entry : internalGetMapInt32Bytes().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Bytes__ = MapInt32BytesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, mapInt32Bytes__); } for (java.util.Map.Entry entry : internalGetMapInt32Enum().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Enum__ = MapInt32EnumDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, mapInt32Enum__); } for (java.util.Map.Entry entry : internalGetMapInt32ForeignMessage().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32ForeignMessage__ = MapInt32ForeignMessageDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, mapInt32ForeignMessage__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto2_unittest.MapLiteUnittest.TestArenaMapLite)) { return super.equals(obj); } proto2_unittest.MapLiteUnittest.TestArenaMapLite other = (proto2_unittest.MapLiteUnittest.TestArenaMapLite) obj; if (!internalGetMapInt32Int32().equals( other.internalGetMapInt32Int32())) return false; if (!internalGetMapInt64Int64().equals( other.internalGetMapInt64Int64())) return false; if (!internalGetMapUint32Uint32().equals( other.internalGetMapUint32Uint32())) return false; if (!internalGetMapUint64Uint64().equals( other.internalGetMapUint64Uint64())) return false; if (!internalGetMapSint32Sint32().equals( other.internalGetMapSint32Sint32())) return false; if (!internalGetMapSint64Sint64().equals( other.internalGetMapSint64Sint64())) return false; if (!internalGetMapFixed32Fixed32().equals( other.internalGetMapFixed32Fixed32())) return false; if (!internalGetMapFixed64Fixed64().equals( other.internalGetMapFixed64Fixed64())) return false; if (!internalGetMapSfixed32Sfixed32().equals( other.internalGetMapSfixed32Sfixed32())) return false; if (!internalGetMapSfixed64Sfixed64().equals( other.internalGetMapSfixed64Sfixed64())) return false; if (!internalGetMapInt32Float().equals( other.internalGetMapInt32Float())) return false; if (!internalGetMapInt32Double().equals( other.internalGetMapInt32Double())) return false; if (!internalGetMapBoolBool().equals( other.internalGetMapBoolBool())) return false; if (!internalGetMapStringString().equals( other.internalGetMapStringString())) return false; if (!internalGetMapInt32Bytes().equals( other.internalGetMapInt32Bytes())) return false; if (!internalGetMapInt32Enum().equals( other.internalGetMapInt32Enum())) return false; if (!internalGetMapInt32ForeignMessage().equals( other.internalGetMapInt32ForeignMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetMapInt32Int32().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_INT32_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Int32().hashCode(); } if (!internalGetMapInt64Int64().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT64_INT64_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt64Int64().hashCode(); } if (!internalGetMapUint32Uint32().getMap().isEmpty()) { hash = (37 * hash) + MAP_UINT32_UINT32_FIELD_NUMBER; hash = (53 * hash) + internalGetMapUint32Uint32().hashCode(); } if (!internalGetMapUint64Uint64().getMap().isEmpty()) { hash = (37 * hash) + MAP_UINT64_UINT64_FIELD_NUMBER; hash = (53 * hash) + internalGetMapUint64Uint64().hashCode(); } if (!internalGetMapSint32Sint32().getMap().isEmpty()) { hash = (37 * hash) + MAP_SINT32_SINT32_FIELD_NUMBER; hash = (53 * hash) + internalGetMapSint32Sint32().hashCode(); } if (!internalGetMapSint64Sint64().getMap().isEmpty()) { hash = (37 * hash) + MAP_SINT64_SINT64_FIELD_NUMBER; hash = (53 * hash) + internalGetMapSint64Sint64().hashCode(); } if (!internalGetMapFixed32Fixed32().getMap().isEmpty()) { hash = (37 * hash) + MAP_FIXED32_FIXED32_FIELD_NUMBER; hash = (53 * hash) + internalGetMapFixed32Fixed32().hashCode(); } if (!internalGetMapFixed64Fixed64().getMap().isEmpty()) { hash = (37 * hash) + MAP_FIXED64_FIXED64_FIELD_NUMBER; hash = (53 * hash) + internalGetMapFixed64Fixed64().hashCode(); } if (!internalGetMapSfixed32Sfixed32().getMap().isEmpty()) { hash = (37 * hash) + MAP_SFIXED32_SFIXED32_FIELD_NUMBER; hash = (53 * hash) + internalGetMapSfixed32Sfixed32().hashCode(); } if (!internalGetMapSfixed64Sfixed64().getMap().isEmpty()) { hash = (37 * hash) + MAP_SFIXED64_SFIXED64_FIELD_NUMBER; hash = (53 * hash) + internalGetMapSfixed64Sfixed64().hashCode(); } if (!internalGetMapInt32Float().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_FLOAT_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Float().hashCode(); } if (!internalGetMapInt32Double().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_DOUBLE_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Double().hashCode(); } if (!internalGetMapBoolBool().getMap().isEmpty()) { hash = (37 * hash) + MAP_BOOL_BOOL_FIELD_NUMBER; hash = (53 * hash) + internalGetMapBoolBool().hashCode(); } if (!internalGetMapStringString().getMap().isEmpty()) { hash = (37 * hash) + MAP_STRING_STRING_FIELD_NUMBER; hash = (53 * hash) + internalGetMapStringString().hashCode(); } if (!internalGetMapInt32Bytes().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_BYTES_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Bytes().hashCode(); } if (!internalGetMapInt32Enum().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_ENUM_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Enum().hashCode(); } if (!internalGetMapInt32ForeignMessage().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_FOREIGN_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32ForeignMessage().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(proto2_unittest.MapLiteUnittest.TestArenaMapLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestArenaMapLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestArenaMapLite) proto2_unittest.MapLiteUnittest.TestArenaMapLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetMapInt32Int32(); case 2: return internalGetMapInt64Int64(); case 3: return internalGetMapUint32Uint32(); case 4: return internalGetMapUint64Uint64(); case 5: return internalGetMapSint32Sint32(); case 6: return internalGetMapSint64Sint64(); case 7: return internalGetMapFixed32Fixed32(); case 8: return internalGetMapFixed64Fixed64(); case 9: return internalGetMapSfixed32Sfixed32(); case 10: return internalGetMapSfixed64Sfixed64(); case 11: return internalGetMapInt32Float(); case 12: return internalGetMapInt32Double(); case 13: return internalGetMapBoolBool(); case 14: return internalGetMapStringString(); case 15: return internalGetMapInt32Bytes(); case 16: return internalGetMapInt32Enum(); case 17: return internalGetMapInt32ForeignMessage(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: return internalGetMutableMapInt32Int32(); case 2: return internalGetMutableMapInt64Int64(); case 3: return internalGetMutableMapUint32Uint32(); case 4: return internalGetMutableMapUint64Uint64(); case 5: return internalGetMutableMapSint32Sint32(); case 6: return internalGetMutableMapSint64Sint64(); case 7: return internalGetMutableMapFixed32Fixed32(); case 8: return internalGetMutableMapFixed64Fixed64(); case 9: return internalGetMutableMapSfixed32Sfixed32(); case 10: return internalGetMutableMapSfixed64Sfixed64(); case 11: return internalGetMutableMapInt32Float(); case 12: return internalGetMutableMapInt32Double(); case 13: return internalGetMutableMapBoolBool(); case 14: return internalGetMutableMapStringString(); case 15: return internalGetMutableMapInt32Bytes(); case 16: return internalGetMutableMapInt32Enum(); case 17: return internalGetMutableMapInt32ForeignMessage(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestArenaMapLite.class, proto2_unittest.MapLiteUnittest.TestArenaMapLite.Builder.class); } // Construct using proto2_unittest.MapLiteUnittest.TestArenaMapLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableMapInt32Int32().clear(); internalGetMutableMapInt64Int64().clear(); internalGetMutableMapUint32Uint32().clear(); internalGetMutableMapUint64Uint64().clear(); internalGetMutableMapSint32Sint32().clear(); internalGetMutableMapSint64Sint64().clear(); internalGetMutableMapFixed32Fixed32().clear(); internalGetMutableMapFixed64Fixed64().clear(); internalGetMutableMapSfixed32Sfixed32().clear(); internalGetMutableMapSfixed64Sfixed64().clear(); internalGetMutableMapInt32Float().clear(); internalGetMutableMapInt32Double().clear(); internalGetMutableMapBoolBool().clear(); internalGetMutableMapStringString().clear(); internalGetMutableMapInt32Bytes().clear(); internalGetMutableMapInt32Enum().clear(); internalGetMutableMapInt32ForeignMessage().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestArenaMapLite_descriptor; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestArenaMapLite getDefaultInstanceForType() { return proto2_unittest.MapLiteUnittest.TestArenaMapLite.getDefaultInstance(); } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestArenaMapLite build() { proto2_unittest.MapLiteUnittest.TestArenaMapLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestArenaMapLite buildPartial() { proto2_unittest.MapLiteUnittest.TestArenaMapLite result = new proto2_unittest.MapLiteUnittest.TestArenaMapLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(proto2_unittest.MapLiteUnittest.TestArenaMapLite result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.mapInt32Int32_ = internalGetMapInt32Int32(); result.mapInt32Int32_.makeImmutable(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.mapInt64Int64_ = internalGetMapInt64Int64(); result.mapInt64Int64_.makeImmutable(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.mapUint32Uint32_ = internalGetMapUint32Uint32(); result.mapUint32Uint32_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.mapUint64Uint64_ = internalGetMapUint64Uint64(); result.mapUint64Uint64_.makeImmutable(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.mapSint32Sint32_ = internalGetMapSint32Sint32(); result.mapSint32Sint32_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.mapSint64Sint64_ = internalGetMapSint64Sint64(); result.mapSint64Sint64_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.mapFixed32Fixed32_ = internalGetMapFixed32Fixed32(); result.mapFixed32Fixed32_.makeImmutable(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.mapFixed64Fixed64_ = internalGetMapFixed64Fixed64(); result.mapFixed64Fixed64_.makeImmutable(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.mapSfixed32Sfixed32_ = internalGetMapSfixed32Sfixed32(); result.mapSfixed32Sfixed32_.makeImmutable(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.mapSfixed64Sfixed64_ = internalGetMapSfixed64Sfixed64(); result.mapSfixed64Sfixed64_.makeImmutable(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.mapInt32Float_ = internalGetMapInt32Float(); result.mapInt32Float_.makeImmutable(); } if (((from_bitField0_ & 0x00000800) != 0)) { result.mapInt32Double_ = internalGetMapInt32Double(); result.mapInt32Double_.makeImmutable(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.mapBoolBool_ = internalGetMapBoolBool(); result.mapBoolBool_.makeImmutable(); } if (((from_bitField0_ & 0x00002000) != 0)) { result.mapStringString_ = internalGetMapStringString(); result.mapStringString_.makeImmutable(); } if (((from_bitField0_ & 0x00004000) != 0)) { result.mapInt32Bytes_ = internalGetMapInt32Bytes(); result.mapInt32Bytes_.makeImmutable(); } if (((from_bitField0_ & 0x00008000) != 0)) { result.mapInt32Enum_ = internalGetMapInt32Enum(); result.mapInt32Enum_.makeImmutable(); } if (((from_bitField0_ & 0x00010000) != 0)) { result.mapInt32ForeignMessage_ = internalGetMapInt32ForeignMessage().build(MapInt32ForeignMessageDefaultEntryHolder.defaultEntry); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto2_unittest.MapLiteUnittest.TestArenaMapLite) { return mergeFrom((proto2_unittest.MapLiteUnittest.TestArenaMapLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto2_unittest.MapLiteUnittest.TestArenaMapLite other) { if (other == proto2_unittest.MapLiteUnittest.TestArenaMapLite.getDefaultInstance()) return this; internalGetMutableMapInt32Int32().mergeFrom( other.internalGetMapInt32Int32()); bitField0_ |= 0x00000001; internalGetMutableMapInt64Int64().mergeFrom( other.internalGetMapInt64Int64()); bitField0_ |= 0x00000002; internalGetMutableMapUint32Uint32().mergeFrom( other.internalGetMapUint32Uint32()); bitField0_ |= 0x00000004; internalGetMutableMapUint64Uint64().mergeFrom( other.internalGetMapUint64Uint64()); bitField0_ |= 0x00000008; internalGetMutableMapSint32Sint32().mergeFrom( other.internalGetMapSint32Sint32()); bitField0_ |= 0x00000010; internalGetMutableMapSint64Sint64().mergeFrom( other.internalGetMapSint64Sint64()); bitField0_ |= 0x00000020; internalGetMutableMapFixed32Fixed32().mergeFrom( other.internalGetMapFixed32Fixed32()); bitField0_ |= 0x00000040; internalGetMutableMapFixed64Fixed64().mergeFrom( other.internalGetMapFixed64Fixed64()); bitField0_ |= 0x00000080; internalGetMutableMapSfixed32Sfixed32().mergeFrom( other.internalGetMapSfixed32Sfixed32()); bitField0_ |= 0x00000100; internalGetMutableMapSfixed64Sfixed64().mergeFrom( other.internalGetMapSfixed64Sfixed64()); bitField0_ |= 0x00000200; internalGetMutableMapInt32Float().mergeFrom( other.internalGetMapInt32Float()); bitField0_ |= 0x00000400; internalGetMutableMapInt32Double().mergeFrom( other.internalGetMapInt32Double()); bitField0_ |= 0x00000800; internalGetMutableMapBoolBool().mergeFrom( other.internalGetMapBoolBool()); bitField0_ |= 0x00001000; internalGetMutableMapStringString().mergeFrom( other.internalGetMapStringString()); bitField0_ |= 0x00002000; internalGetMutableMapInt32Bytes().mergeFrom( other.internalGetMapInt32Bytes()); bitField0_ |= 0x00004000; internalGetMutableMapInt32Enum().mergeFrom( other.internalGetMapInt32Enum()); bitField0_ |= 0x00008000; internalGetMutableMapInt32ForeignMessage().mergeFrom( other.internalGetMapInt32ForeignMessage()); bitField0_ |= 0x00010000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry mapInt32Int32__ = input.readMessage( MapInt32Int32DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32Int32().getMutableMap().put( mapInt32Int32__.getKey(), mapInt32Int32__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry mapInt64Int64__ = input.readMessage( MapInt64Int64DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt64Int64().getMutableMap().put( mapInt64Int64__.getKey(), mapInt64Int64__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry mapUint32Uint32__ = input.readMessage( MapUint32Uint32DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapUint32Uint32().getMutableMap().put( mapUint32Uint32__.getKey(), mapUint32Uint32__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry mapUint64Uint64__ = input.readMessage( MapUint64Uint64DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapUint64Uint64().getMutableMap().put( mapUint64Uint64__.getKey(), mapUint64Uint64__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.google.protobuf.MapEntry mapSint32Sint32__ = input.readMessage( MapSint32Sint32DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapSint32Sint32().getMutableMap().put( mapSint32Sint32__.getKey(), mapSint32Sint32__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.google.protobuf.MapEntry mapSint64Sint64__ = input.readMessage( MapSint64Sint64DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapSint64Sint64().getMutableMap().put( mapSint64Sint64__.getKey(), mapSint64Sint64__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 58: { com.google.protobuf.MapEntry mapFixed32Fixed32__ = input.readMessage( MapFixed32Fixed32DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapFixed32Fixed32().getMutableMap().put( mapFixed32Fixed32__.getKey(), mapFixed32Fixed32__.getValue()); bitField0_ |= 0x00000040; break; } // case 58 case 66: { com.google.protobuf.MapEntry mapFixed64Fixed64__ = input.readMessage( MapFixed64Fixed64DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapFixed64Fixed64().getMutableMap().put( mapFixed64Fixed64__.getKey(), mapFixed64Fixed64__.getValue()); bitField0_ |= 0x00000080; break; } // case 66 case 74: { com.google.protobuf.MapEntry mapSfixed32Sfixed32__ = input.readMessage( MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapSfixed32Sfixed32().getMutableMap().put( mapSfixed32Sfixed32__.getKey(), mapSfixed32Sfixed32__.getValue()); bitField0_ |= 0x00000100; break; } // case 74 case 82: { com.google.protobuf.MapEntry mapSfixed64Sfixed64__ = input.readMessage( MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapSfixed64Sfixed64().getMutableMap().put( mapSfixed64Sfixed64__.getKey(), mapSfixed64Sfixed64__.getValue()); bitField0_ |= 0x00000200; break; } // case 82 case 90: { com.google.protobuf.MapEntry mapInt32Float__ = input.readMessage( MapInt32FloatDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32Float().getMutableMap().put( mapInt32Float__.getKey(), mapInt32Float__.getValue()); bitField0_ |= 0x00000400; break; } // case 90 case 98: { com.google.protobuf.MapEntry mapInt32Double__ = input.readMessage( MapInt32DoubleDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32Double().getMutableMap().put( mapInt32Double__.getKey(), mapInt32Double__.getValue()); bitField0_ |= 0x00000800; break; } // case 98 case 106: { com.google.protobuf.MapEntry mapBoolBool__ = input.readMessage( MapBoolBoolDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapBoolBool().getMutableMap().put( mapBoolBool__.getKey(), mapBoolBool__.getValue()); bitField0_ |= 0x00001000; break; } // case 106 case 114: { com.google.protobuf.MapEntry mapStringString__ = input.readMessage( MapStringStringDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapStringString().getMutableMap().put( mapStringString__.getKey(), mapStringString__.getValue()); bitField0_ |= 0x00002000; break; } // case 114 case 122: { com.google.protobuf.MapEntry mapInt32Bytes__ = input.readMessage( MapInt32BytesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32Bytes().getMutableMap().put( mapInt32Bytes__.getKey(), mapInt32Bytes__.getValue()); bitField0_ |= 0x00004000; break; } // case 122 case 130: { com.google.protobuf.ByteString bytes = input.readBytes(); com.google.protobuf.MapEntry mapInt32Enum__ = MapInt32EnumDefaultEntryHolder.defaultEntry.getParserForType().parseFrom(bytes); if (proto2_unittest.MapLiteUnittest.MapEnumLite.forNumber(mapInt32Enum__.getValue()) == null) { mergeUnknownLengthDelimitedField(16, bytes); } else { internalGetMutableMapInt32Enum().getMutableMap().put( mapInt32Enum__.getKey(), mapInt32Enum__.getValue()); bitField0_ |= 0x00008000; } break; } // case 130 case 138: { com.google.protobuf.MapEntry mapInt32ForeignMessage__ = input.readMessage( MapInt32ForeignMessageDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32ForeignMessage().ensureBuilderMap().put( mapInt32ForeignMessage__.getKey(), mapInt32ForeignMessage__.getValue()); bitField0_ |= 0x00010000; break; } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapInt32Int32_; private com.google.protobuf.MapField internalGetMapInt32Int32() { if (mapInt32Int32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32Int32DefaultEntryHolder.defaultEntry); } return mapInt32Int32_; } private com.google.protobuf.MapField internalGetMutableMapInt32Int32() { if (mapInt32Int32_ == null) { mapInt32Int32_ = com.google.protobuf.MapField.newMapField( MapInt32Int32DefaultEntryHolder.defaultEntry); } if (!mapInt32Int32_.isMutable()) { mapInt32Int32_ = mapInt32Int32_.copy(); } bitField0_ |= 0x00000001; onChanged(); return mapInt32Int32_; } public int getMapInt32Int32Count() { return internalGetMapInt32Int32().getMap().size(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public boolean containsMapInt32Int32( int key) { return internalGetMapInt32Int32().getMap().containsKey(key); } /** * Use {@link #getMapInt32Int32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Int32() { return getMapInt32Int32Map(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public java.util.Map getMapInt32Int32Map() { return internalGetMapInt32Int32().getMap(); } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public int getMapInt32Int32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapInt32Int32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, int32> map_int32_int32 = 1; */ @java.lang.Override public int getMapInt32Int32OrThrow( int key) { java.util.Map map = internalGetMapInt32Int32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapInt32Int32() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableMapInt32Int32().getMutableMap() .clear(); return this; } /** * map<int32, int32> map_int32_int32 = 1; */ public Builder removeMapInt32Int32( int key) { internalGetMutableMapInt32Int32().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Int32() { bitField0_ |= 0x00000001; return internalGetMutableMapInt32Int32().getMutableMap(); } /** * map<int32, int32> map_int32_int32 = 1; */ public Builder putMapInt32Int32( int key, int value) { internalGetMutableMapInt32Int32().getMutableMap() .put(key, value); bitField0_ |= 0x00000001; return this; } /** * map<int32, int32> map_int32_int32 = 1; */ public Builder putAllMapInt32Int32( java.util.Map values) { internalGetMutableMapInt32Int32().getMutableMap() .putAll(values); bitField0_ |= 0x00000001; return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapInt64Int64_; private com.google.protobuf.MapField internalGetMapInt64Int64() { if (mapInt64Int64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt64Int64DefaultEntryHolder.defaultEntry); } return mapInt64Int64_; } private com.google.protobuf.MapField internalGetMutableMapInt64Int64() { if (mapInt64Int64_ == null) { mapInt64Int64_ = com.google.protobuf.MapField.newMapField( MapInt64Int64DefaultEntryHolder.defaultEntry); } if (!mapInt64Int64_.isMutable()) { mapInt64Int64_ = mapInt64Int64_.copy(); } bitField0_ |= 0x00000002; onChanged(); return mapInt64Int64_; } public int getMapInt64Int64Count() { return internalGetMapInt64Int64().getMap().size(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public boolean containsMapInt64Int64( long key) { return internalGetMapInt64Int64().getMap().containsKey(key); } /** * Use {@link #getMapInt64Int64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt64Int64() { return getMapInt64Int64Map(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public java.util.Map getMapInt64Int64Map() { return internalGetMapInt64Int64().getMap(); } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public long getMapInt64Int64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapInt64Int64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int64, int64> map_int64_int64 = 2; */ @java.lang.Override public long getMapInt64Int64OrThrow( long key) { java.util.Map map = internalGetMapInt64Int64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapInt64Int64() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableMapInt64Int64().getMutableMap() .clear(); return this; } /** * map<int64, int64> map_int64_int64 = 2; */ public Builder removeMapInt64Int64( long key) { internalGetMutableMapInt64Int64().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt64Int64() { bitField0_ |= 0x00000002; return internalGetMutableMapInt64Int64().getMutableMap(); } /** * map<int64, int64> map_int64_int64 = 2; */ public Builder putMapInt64Int64( long key, long value) { internalGetMutableMapInt64Int64().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** * map<int64, int64> map_int64_int64 = 2; */ public Builder putAllMapInt64Int64( java.util.Map values) { internalGetMutableMapInt64Int64().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapUint32Uint32_; private com.google.protobuf.MapField internalGetMapUint32Uint32() { if (mapUint32Uint32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapUint32Uint32DefaultEntryHolder.defaultEntry); } return mapUint32Uint32_; } private com.google.protobuf.MapField internalGetMutableMapUint32Uint32() { if (mapUint32Uint32_ == null) { mapUint32Uint32_ = com.google.protobuf.MapField.newMapField( MapUint32Uint32DefaultEntryHolder.defaultEntry); } if (!mapUint32Uint32_.isMutable()) { mapUint32Uint32_ = mapUint32Uint32_.copy(); } bitField0_ |= 0x00000004; onChanged(); return mapUint32Uint32_; } public int getMapUint32Uint32Count() { return internalGetMapUint32Uint32().getMap().size(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public boolean containsMapUint32Uint32( int key) { return internalGetMapUint32Uint32().getMap().containsKey(key); } /** * Use {@link #getMapUint32Uint32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapUint32Uint32() { return getMapUint32Uint32Map(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public java.util.Map getMapUint32Uint32Map() { return internalGetMapUint32Uint32().getMap(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public int getMapUint32Uint32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapUint32Uint32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ @java.lang.Override public int getMapUint32Uint32OrThrow( int key) { java.util.Map map = internalGetMapUint32Uint32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapUint32Uint32() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableMapUint32Uint32().getMutableMap() .clear(); return this; } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ public Builder removeMapUint32Uint32( int key) { internalGetMutableMapUint32Uint32().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapUint32Uint32() { bitField0_ |= 0x00000004; return internalGetMutableMapUint32Uint32().getMutableMap(); } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ public Builder putMapUint32Uint32( int key, int value) { internalGetMutableMapUint32Uint32().getMutableMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** * map<uint32, uint32> map_uint32_uint32 = 3; */ public Builder putAllMapUint32Uint32( java.util.Map values) { internalGetMutableMapUint32Uint32().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapUint64Uint64_; private com.google.protobuf.MapField internalGetMapUint64Uint64() { if (mapUint64Uint64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapUint64Uint64DefaultEntryHolder.defaultEntry); } return mapUint64Uint64_; } private com.google.protobuf.MapField internalGetMutableMapUint64Uint64() { if (mapUint64Uint64_ == null) { mapUint64Uint64_ = com.google.protobuf.MapField.newMapField( MapUint64Uint64DefaultEntryHolder.defaultEntry); } if (!mapUint64Uint64_.isMutable()) { mapUint64Uint64_ = mapUint64Uint64_.copy(); } bitField0_ |= 0x00000008; onChanged(); return mapUint64Uint64_; } public int getMapUint64Uint64Count() { return internalGetMapUint64Uint64().getMap().size(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public boolean containsMapUint64Uint64( long key) { return internalGetMapUint64Uint64().getMap().containsKey(key); } /** * Use {@link #getMapUint64Uint64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapUint64Uint64() { return getMapUint64Uint64Map(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public java.util.Map getMapUint64Uint64Map() { return internalGetMapUint64Uint64().getMap(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public long getMapUint64Uint64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapUint64Uint64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ @java.lang.Override public long getMapUint64Uint64OrThrow( long key) { java.util.Map map = internalGetMapUint64Uint64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapUint64Uint64() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableMapUint64Uint64().getMutableMap() .clear(); return this; } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ public Builder removeMapUint64Uint64( long key) { internalGetMutableMapUint64Uint64().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapUint64Uint64() { bitField0_ |= 0x00000008; return internalGetMutableMapUint64Uint64().getMutableMap(); } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ public Builder putMapUint64Uint64( long key, long value) { internalGetMutableMapUint64Uint64().getMutableMap() .put(key, value); bitField0_ |= 0x00000008; return this; } /** * map<uint64, uint64> map_uint64_uint64 = 4; */ public Builder putAllMapUint64Uint64( java.util.Map values) { internalGetMutableMapUint64Uint64().getMutableMap() .putAll(values); bitField0_ |= 0x00000008; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapSint32Sint32_; private com.google.protobuf.MapField internalGetMapSint32Sint32() { if (mapSint32Sint32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSint32Sint32DefaultEntryHolder.defaultEntry); } return mapSint32Sint32_; } private com.google.protobuf.MapField internalGetMutableMapSint32Sint32() { if (mapSint32Sint32_ == null) { mapSint32Sint32_ = com.google.protobuf.MapField.newMapField( MapSint32Sint32DefaultEntryHolder.defaultEntry); } if (!mapSint32Sint32_.isMutable()) { mapSint32Sint32_ = mapSint32Sint32_.copy(); } bitField0_ |= 0x00000010; onChanged(); return mapSint32Sint32_; } public int getMapSint32Sint32Count() { return internalGetMapSint32Sint32().getMap().size(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public boolean containsMapSint32Sint32( int key) { return internalGetMapSint32Sint32().getMap().containsKey(key); } /** * Use {@link #getMapSint32Sint32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSint32Sint32() { return getMapSint32Sint32Map(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public java.util.Map getMapSint32Sint32Map() { return internalGetMapSint32Sint32().getMap(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public int getMapSint32Sint32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapSint32Sint32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ @java.lang.Override public int getMapSint32Sint32OrThrow( int key) { java.util.Map map = internalGetMapSint32Sint32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapSint32Sint32() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableMapSint32Sint32().getMutableMap() .clear(); return this; } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ public Builder removeMapSint32Sint32( int key) { internalGetMutableMapSint32Sint32().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapSint32Sint32() { bitField0_ |= 0x00000010; return internalGetMutableMapSint32Sint32().getMutableMap(); } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ public Builder putMapSint32Sint32( int key, int value) { internalGetMutableMapSint32Sint32().getMutableMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** * map<sint32, sint32> map_sint32_sint32 = 5; */ public Builder putAllMapSint32Sint32( java.util.Map values) { internalGetMutableMapSint32Sint32().getMutableMap() .putAll(values); bitField0_ |= 0x00000010; return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapSint64Sint64_; private com.google.protobuf.MapField internalGetMapSint64Sint64() { if (mapSint64Sint64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSint64Sint64DefaultEntryHolder.defaultEntry); } return mapSint64Sint64_; } private com.google.protobuf.MapField internalGetMutableMapSint64Sint64() { if (mapSint64Sint64_ == null) { mapSint64Sint64_ = com.google.protobuf.MapField.newMapField( MapSint64Sint64DefaultEntryHolder.defaultEntry); } if (!mapSint64Sint64_.isMutable()) { mapSint64Sint64_ = mapSint64Sint64_.copy(); } bitField0_ |= 0x00000020; onChanged(); return mapSint64Sint64_; } public int getMapSint64Sint64Count() { return internalGetMapSint64Sint64().getMap().size(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public boolean containsMapSint64Sint64( long key) { return internalGetMapSint64Sint64().getMap().containsKey(key); } /** * Use {@link #getMapSint64Sint64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSint64Sint64() { return getMapSint64Sint64Map(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public java.util.Map getMapSint64Sint64Map() { return internalGetMapSint64Sint64().getMap(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public long getMapSint64Sint64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapSint64Sint64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ @java.lang.Override public long getMapSint64Sint64OrThrow( long key) { java.util.Map map = internalGetMapSint64Sint64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapSint64Sint64() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableMapSint64Sint64().getMutableMap() .clear(); return this; } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ public Builder removeMapSint64Sint64( long key) { internalGetMutableMapSint64Sint64().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapSint64Sint64() { bitField0_ |= 0x00000020; return internalGetMutableMapSint64Sint64().getMutableMap(); } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ public Builder putMapSint64Sint64( long key, long value) { internalGetMutableMapSint64Sint64().getMutableMap() .put(key, value); bitField0_ |= 0x00000020; return this; } /** * map<sint64, sint64> map_sint64_sint64 = 6; */ public Builder putAllMapSint64Sint64( java.util.Map values) { internalGetMutableMapSint64Sint64().getMutableMap() .putAll(values); bitField0_ |= 0x00000020; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapFixed32Fixed32_; private com.google.protobuf.MapField internalGetMapFixed32Fixed32() { if (mapFixed32Fixed32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapFixed32Fixed32DefaultEntryHolder.defaultEntry); } return mapFixed32Fixed32_; } private com.google.protobuf.MapField internalGetMutableMapFixed32Fixed32() { if (mapFixed32Fixed32_ == null) { mapFixed32Fixed32_ = com.google.protobuf.MapField.newMapField( MapFixed32Fixed32DefaultEntryHolder.defaultEntry); } if (!mapFixed32Fixed32_.isMutable()) { mapFixed32Fixed32_ = mapFixed32Fixed32_.copy(); } bitField0_ |= 0x00000040; onChanged(); return mapFixed32Fixed32_; } public int getMapFixed32Fixed32Count() { return internalGetMapFixed32Fixed32().getMap().size(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public boolean containsMapFixed32Fixed32( int key) { return internalGetMapFixed32Fixed32().getMap().containsKey(key); } /** * Use {@link #getMapFixed32Fixed32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapFixed32Fixed32() { return getMapFixed32Fixed32Map(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public java.util.Map getMapFixed32Fixed32Map() { return internalGetMapFixed32Fixed32().getMap(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public int getMapFixed32Fixed32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapFixed32Fixed32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ @java.lang.Override public int getMapFixed32Fixed32OrThrow( int key) { java.util.Map map = internalGetMapFixed32Fixed32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapFixed32Fixed32() { bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableMapFixed32Fixed32().getMutableMap() .clear(); return this; } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ public Builder removeMapFixed32Fixed32( int key) { internalGetMutableMapFixed32Fixed32().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapFixed32Fixed32() { bitField0_ |= 0x00000040; return internalGetMutableMapFixed32Fixed32().getMutableMap(); } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ public Builder putMapFixed32Fixed32( int key, int value) { internalGetMutableMapFixed32Fixed32().getMutableMap() .put(key, value); bitField0_ |= 0x00000040; return this; } /** * map<fixed32, fixed32> map_fixed32_fixed32 = 7; */ public Builder putAllMapFixed32Fixed32( java.util.Map values) { internalGetMutableMapFixed32Fixed32().getMutableMap() .putAll(values); bitField0_ |= 0x00000040; return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapFixed64Fixed64_; private com.google.protobuf.MapField internalGetMapFixed64Fixed64() { if (mapFixed64Fixed64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapFixed64Fixed64DefaultEntryHolder.defaultEntry); } return mapFixed64Fixed64_; } private com.google.protobuf.MapField internalGetMutableMapFixed64Fixed64() { if (mapFixed64Fixed64_ == null) { mapFixed64Fixed64_ = com.google.protobuf.MapField.newMapField( MapFixed64Fixed64DefaultEntryHolder.defaultEntry); } if (!mapFixed64Fixed64_.isMutable()) { mapFixed64Fixed64_ = mapFixed64Fixed64_.copy(); } bitField0_ |= 0x00000080; onChanged(); return mapFixed64Fixed64_; } public int getMapFixed64Fixed64Count() { return internalGetMapFixed64Fixed64().getMap().size(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public boolean containsMapFixed64Fixed64( long key) { return internalGetMapFixed64Fixed64().getMap().containsKey(key); } /** * Use {@link #getMapFixed64Fixed64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapFixed64Fixed64() { return getMapFixed64Fixed64Map(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public java.util.Map getMapFixed64Fixed64Map() { return internalGetMapFixed64Fixed64().getMap(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public long getMapFixed64Fixed64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapFixed64Fixed64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ @java.lang.Override public long getMapFixed64Fixed64OrThrow( long key) { java.util.Map map = internalGetMapFixed64Fixed64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapFixed64Fixed64() { bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableMapFixed64Fixed64().getMutableMap() .clear(); return this; } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ public Builder removeMapFixed64Fixed64( long key) { internalGetMutableMapFixed64Fixed64().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapFixed64Fixed64() { bitField0_ |= 0x00000080; return internalGetMutableMapFixed64Fixed64().getMutableMap(); } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ public Builder putMapFixed64Fixed64( long key, long value) { internalGetMutableMapFixed64Fixed64().getMutableMap() .put(key, value); bitField0_ |= 0x00000080; return this; } /** * map<fixed64, fixed64> map_fixed64_fixed64 = 8; */ public Builder putAllMapFixed64Fixed64( java.util.Map values) { internalGetMutableMapFixed64Fixed64().getMutableMap() .putAll(values); bitField0_ |= 0x00000080; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapSfixed32Sfixed32_; private com.google.protobuf.MapField internalGetMapSfixed32Sfixed32() { if (mapSfixed32Sfixed32_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry); } return mapSfixed32Sfixed32_; } private com.google.protobuf.MapField internalGetMutableMapSfixed32Sfixed32() { if (mapSfixed32Sfixed32_ == null) { mapSfixed32Sfixed32_ = com.google.protobuf.MapField.newMapField( MapSfixed32Sfixed32DefaultEntryHolder.defaultEntry); } if (!mapSfixed32Sfixed32_.isMutable()) { mapSfixed32Sfixed32_ = mapSfixed32Sfixed32_.copy(); } bitField0_ |= 0x00000100; onChanged(); return mapSfixed32Sfixed32_; } public int getMapSfixed32Sfixed32Count() { return internalGetMapSfixed32Sfixed32().getMap().size(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public boolean containsMapSfixed32Sfixed32( int key) { return internalGetMapSfixed32Sfixed32().getMap().containsKey(key); } /** * Use {@link #getMapSfixed32Sfixed32Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSfixed32Sfixed32() { return getMapSfixed32Sfixed32Map(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public java.util.Map getMapSfixed32Sfixed32Map() { return internalGetMapSfixed32Sfixed32().getMap(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public int getMapSfixed32Sfixed32OrDefault( int key, int defaultValue) { java.util.Map map = internalGetMapSfixed32Sfixed32().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ @java.lang.Override public int getMapSfixed32Sfixed32OrThrow( int key) { java.util.Map map = internalGetMapSfixed32Sfixed32().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapSfixed32Sfixed32() { bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableMapSfixed32Sfixed32().getMutableMap() .clear(); return this; } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ public Builder removeMapSfixed32Sfixed32( int key) { internalGetMutableMapSfixed32Sfixed32().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapSfixed32Sfixed32() { bitField0_ |= 0x00000100; return internalGetMutableMapSfixed32Sfixed32().getMutableMap(); } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ public Builder putMapSfixed32Sfixed32( int key, int value) { internalGetMutableMapSfixed32Sfixed32().getMutableMap() .put(key, value); bitField0_ |= 0x00000100; return this; } /** * map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9; */ public Builder putAllMapSfixed32Sfixed32( java.util.Map values) { internalGetMutableMapSfixed32Sfixed32().getMutableMap() .putAll(values); bitField0_ |= 0x00000100; return this; } private com.google.protobuf.MapField< java.lang.Long, java.lang.Long> mapSfixed64Sfixed64_; private com.google.protobuf.MapField internalGetMapSfixed64Sfixed64() { if (mapSfixed64Sfixed64_ == null) { return com.google.protobuf.MapField.emptyMapField( MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry); } return mapSfixed64Sfixed64_; } private com.google.protobuf.MapField internalGetMutableMapSfixed64Sfixed64() { if (mapSfixed64Sfixed64_ == null) { mapSfixed64Sfixed64_ = com.google.protobuf.MapField.newMapField( MapSfixed64Sfixed64DefaultEntryHolder.defaultEntry); } if (!mapSfixed64Sfixed64_.isMutable()) { mapSfixed64Sfixed64_ = mapSfixed64Sfixed64_.copy(); } bitField0_ |= 0x00000200; onChanged(); return mapSfixed64Sfixed64_; } public int getMapSfixed64Sfixed64Count() { return internalGetMapSfixed64Sfixed64().getMap().size(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public boolean containsMapSfixed64Sfixed64( long key) { return internalGetMapSfixed64Sfixed64().getMap().containsKey(key); } /** * Use {@link #getMapSfixed64Sfixed64Map()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapSfixed64Sfixed64() { return getMapSfixed64Sfixed64Map(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public java.util.Map getMapSfixed64Sfixed64Map() { return internalGetMapSfixed64Sfixed64().getMap(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public long getMapSfixed64Sfixed64OrDefault( long key, long defaultValue) { java.util.Map map = internalGetMapSfixed64Sfixed64().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ @java.lang.Override public long getMapSfixed64Sfixed64OrThrow( long key) { java.util.Map map = internalGetMapSfixed64Sfixed64().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapSfixed64Sfixed64() { bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableMapSfixed64Sfixed64().getMutableMap() .clear(); return this; } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ public Builder removeMapSfixed64Sfixed64( long key) { internalGetMutableMapSfixed64Sfixed64().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapSfixed64Sfixed64() { bitField0_ |= 0x00000200; return internalGetMutableMapSfixed64Sfixed64().getMutableMap(); } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ public Builder putMapSfixed64Sfixed64( long key, long value) { internalGetMutableMapSfixed64Sfixed64().getMutableMap() .put(key, value); bitField0_ |= 0x00000200; return this; } /** * map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10; */ public Builder putAllMapSfixed64Sfixed64( java.util.Map values) { internalGetMutableMapSfixed64Sfixed64().getMutableMap() .putAll(values); bitField0_ |= 0x00000200; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Float> mapInt32Float_; private com.google.protobuf.MapField internalGetMapInt32Float() { if (mapInt32Float_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32FloatDefaultEntryHolder.defaultEntry); } return mapInt32Float_; } private com.google.protobuf.MapField internalGetMutableMapInt32Float() { if (mapInt32Float_ == null) { mapInt32Float_ = com.google.protobuf.MapField.newMapField( MapInt32FloatDefaultEntryHolder.defaultEntry); } if (!mapInt32Float_.isMutable()) { mapInt32Float_ = mapInt32Float_.copy(); } bitField0_ |= 0x00000400; onChanged(); return mapInt32Float_; } public int getMapInt32FloatCount() { return internalGetMapInt32Float().getMap().size(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public boolean containsMapInt32Float( int key) { return internalGetMapInt32Float().getMap().containsKey(key); } /** * Use {@link #getMapInt32FloatMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Float() { return getMapInt32FloatMap(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public java.util.Map getMapInt32FloatMap() { return internalGetMapInt32Float().getMap(); } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public float getMapInt32FloatOrDefault( int key, float defaultValue) { java.util.Map map = internalGetMapInt32Float().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, float> map_int32_float = 11; */ @java.lang.Override public float getMapInt32FloatOrThrow( int key) { java.util.Map map = internalGetMapInt32Float().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapInt32Float() { bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableMapInt32Float().getMutableMap() .clear(); return this; } /** * map<int32, float> map_int32_float = 11; */ public Builder removeMapInt32Float( int key) { internalGetMutableMapInt32Float().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Float() { bitField0_ |= 0x00000400; return internalGetMutableMapInt32Float().getMutableMap(); } /** * map<int32, float> map_int32_float = 11; */ public Builder putMapInt32Float( int key, float value) { internalGetMutableMapInt32Float().getMutableMap() .put(key, value); bitField0_ |= 0x00000400; return this; } /** * map<int32, float> map_int32_float = 11; */ public Builder putAllMapInt32Float( java.util.Map values) { internalGetMutableMapInt32Float().getMutableMap() .putAll(values); bitField0_ |= 0x00000400; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Double> mapInt32Double_; private com.google.protobuf.MapField internalGetMapInt32Double() { if (mapInt32Double_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32DoubleDefaultEntryHolder.defaultEntry); } return mapInt32Double_; } private com.google.protobuf.MapField internalGetMutableMapInt32Double() { if (mapInt32Double_ == null) { mapInt32Double_ = com.google.protobuf.MapField.newMapField( MapInt32DoubleDefaultEntryHolder.defaultEntry); } if (!mapInt32Double_.isMutable()) { mapInt32Double_ = mapInt32Double_.copy(); } bitField0_ |= 0x00000800; onChanged(); return mapInt32Double_; } public int getMapInt32DoubleCount() { return internalGetMapInt32Double().getMap().size(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public boolean containsMapInt32Double( int key) { return internalGetMapInt32Double().getMap().containsKey(key); } /** * Use {@link #getMapInt32DoubleMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Double() { return getMapInt32DoubleMap(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public java.util.Map getMapInt32DoubleMap() { return internalGetMapInt32Double().getMap(); } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public double getMapInt32DoubleOrDefault( int key, double defaultValue) { java.util.Map map = internalGetMapInt32Double().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, double> map_int32_double = 12; */ @java.lang.Override public double getMapInt32DoubleOrThrow( int key) { java.util.Map map = internalGetMapInt32Double().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapInt32Double() { bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableMapInt32Double().getMutableMap() .clear(); return this; } /** * map<int32, double> map_int32_double = 12; */ public Builder removeMapInt32Double( int key) { internalGetMutableMapInt32Double().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Double() { bitField0_ |= 0x00000800; return internalGetMutableMapInt32Double().getMutableMap(); } /** * map<int32, double> map_int32_double = 12; */ public Builder putMapInt32Double( int key, double value) { internalGetMutableMapInt32Double().getMutableMap() .put(key, value); bitField0_ |= 0x00000800; return this; } /** * map<int32, double> map_int32_double = 12; */ public Builder putAllMapInt32Double( java.util.Map values) { internalGetMutableMapInt32Double().getMutableMap() .putAll(values); bitField0_ |= 0x00000800; return this; } private com.google.protobuf.MapField< java.lang.Boolean, java.lang.Boolean> mapBoolBool_; private com.google.protobuf.MapField internalGetMapBoolBool() { if (mapBoolBool_ == null) { return com.google.protobuf.MapField.emptyMapField( MapBoolBoolDefaultEntryHolder.defaultEntry); } return mapBoolBool_; } private com.google.protobuf.MapField internalGetMutableMapBoolBool() { if (mapBoolBool_ == null) { mapBoolBool_ = com.google.protobuf.MapField.newMapField( MapBoolBoolDefaultEntryHolder.defaultEntry); } if (!mapBoolBool_.isMutable()) { mapBoolBool_ = mapBoolBool_.copy(); } bitField0_ |= 0x00001000; onChanged(); return mapBoolBool_; } public int getMapBoolBoolCount() { return internalGetMapBoolBool().getMap().size(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean containsMapBoolBool( boolean key) { return internalGetMapBoolBool().getMap().containsKey(key); } /** * Use {@link #getMapBoolBoolMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapBoolBool() { return getMapBoolBoolMap(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public java.util.Map getMapBoolBoolMap() { return internalGetMapBoolBool().getMap(); } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean getMapBoolBoolOrDefault( boolean key, boolean defaultValue) { java.util.Map map = internalGetMapBoolBool().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<bool, bool> map_bool_bool = 13; */ @java.lang.Override public boolean getMapBoolBoolOrThrow( boolean key) { java.util.Map map = internalGetMapBoolBool().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapBoolBool() { bitField0_ = (bitField0_ & ~0x00001000); internalGetMutableMapBoolBool().getMutableMap() .clear(); return this; } /** * map<bool, bool> map_bool_bool = 13; */ public Builder removeMapBoolBool( boolean key) { internalGetMutableMapBoolBool().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapBoolBool() { bitField0_ |= 0x00001000; return internalGetMutableMapBoolBool().getMutableMap(); } /** * map<bool, bool> map_bool_bool = 13; */ public Builder putMapBoolBool( boolean key, boolean value) { internalGetMutableMapBoolBool().getMutableMap() .put(key, value); bitField0_ |= 0x00001000; return this; } /** * map<bool, bool> map_bool_bool = 13; */ public Builder putAllMapBoolBool( java.util.Map values) { internalGetMutableMapBoolBool().getMutableMap() .putAll(values); bitField0_ |= 0x00001000; return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> mapStringString_; private com.google.protobuf.MapField internalGetMapStringString() { if (mapStringString_ == null) { return com.google.protobuf.MapField.emptyMapField( MapStringStringDefaultEntryHolder.defaultEntry); } return mapStringString_; } private com.google.protobuf.MapField internalGetMutableMapStringString() { if (mapStringString_ == null) { mapStringString_ = com.google.protobuf.MapField.newMapField( MapStringStringDefaultEntryHolder.defaultEntry); } if (!mapStringString_.isMutable()) { mapStringString_ = mapStringString_.copy(); } bitField0_ |= 0x00002000; onChanged(); return mapStringString_; } public int getMapStringStringCount() { return internalGetMapStringString().getMap().size(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public boolean containsMapStringString( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMapStringString().getMap().containsKey(key); } /** * Use {@link #getMapStringStringMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapStringString() { return getMapStringStringMap(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public java.util.Map getMapStringStringMap() { return internalGetMapStringString().getMap(); } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public /* nullable */ java.lang.String getMapStringStringOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMapStringString().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> map_string_string = 14; */ @java.lang.Override public java.lang.String getMapStringStringOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMapStringString().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapStringString() { bitField0_ = (bitField0_ & ~0x00002000); internalGetMutableMapStringString().getMutableMap() .clear(); return this; } /** * map<string, string> map_string_string = 14; */ public Builder removeMapStringString( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableMapStringString().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapStringString() { bitField0_ |= 0x00002000; return internalGetMutableMapStringString().getMutableMap(); } /** * map<string, string> map_string_string = 14; */ public Builder putMapStringString( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMapStringString().getMutableMap() .put(key, value); bitField0_ |= 0x00002000; return this; } /** * map<string, string> map_string_string = 14; */ public Builder putAllMapStringString( java.util.Map values) { internalGetMutableMapStringString().getMutableMap() .putAll(values); bitField0_ |= 0x00002000; return this; } private com.google.protobuf.MapField< java.lang.Integer, com.google.protobuf.ByteString> mapInt32Bytes_; private com.google.protobuf.MapField internalGetMapInt32Bytes() { if (mapInt32Bytes_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32BytesDefaultEntryHolder.defaultEntry); } return mapInt32Bytes_; } private com.google.protobuf.MapField internalGetMutableMapInt32Bytes() { if (mapInt32Bytes_ == null) { mapInt32Bytes_ = com.google.protobuf.MapField.newMapField( MapInt32BytesDefaultEntryHolder.defaultEntry); } if (!mapInt32Bytes_.isMutable()) { mapInt32Bytes_ = mapInt32Bytes_.copy(); } bitField0_ |= 0x00004000; onChanged(); return mapInt32Bytes_; } public int getMapInt32BytesCount() { return internalGetMapInt32Bytes().getMap().size(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public boolean containsMapInt32Bytes( int key) { return internalGetMapInt32Bytes().getMap().containsKey(key); } /** * Use {@link #getMapInt32BytesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Bytes() { return getMapInt32BytesMap(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public java.util.Map getMapInt32BytesMap() { return internalGetMapInt32Bytes().getMap(); } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getMapInt32BytesOrDefault( int key, /* nullable */ com.google.protobuf.ByteString defaultValue) { java.util.Map map = internalGetMapInt32Bytes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, bytes> map_int32_bytes = 15; */ @java.lang.Override public com.google.protobuf.ByteString getMapInt32BytesOrThrow( int key) { java.util.Map map = internalGetMapInt32Bytes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMapInt32Bytes() { bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableMapInt32Bytes().getMutableMap() .clear(); return this; } /** * map<int32, bytes> map_int32_bytes = 15; */ public Builder removeMapInt32Bytes( int key) { internalGetMutableMapInt32Bytes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Bytes() { bitField0_ |= 0x00004000; return internalGetMutableMapInt32Bytes().getMutableMap(); } /** * map<int32, bytes> map_int32_bytes = 15; */ public Builder putMapInt32Bytes( int key, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMapInt32Bytes().getMutableMap() .put(key, value); bitField0_ |= 0x00004000; return this; } /** * map<int32, bytes> map_int32_bytes = 15; */ public Builder putAllMapInt32Bytes( java.util.Map values) { internalGetMutableMapInt32Bytes().getMutableMap() .putAll(values); bitField0_ |= 0x00004000; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> mapInt32Enum_; private com.google.protobuf.MapField internalGetMapInt32Enum() { if (mapInt32Enum_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32EnumDefaultEntryHolder.defaultEntry); } return mapInt32Enum_; } private com.google.protobuf.MapField internalGetMutableMapInt32Enum() { if (mapInt32Enum_ == null) { mapInt32Enum_ = com.google.protobuf.MapField.newMapField( MapInt32EnumDefaultEntryHolder.defaultEntry); } if (!mapInt32Enum_.isMutable()) { mapInt32Enum_ = mapInt32Enum_.copy(); } bitField0_ |= 0x00008000; onChanged(); return mapInt32Enum_; } public int getMapInt32EnumCount() { return internalGetMapInt32Enum().getMap().size(); } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public boolean containsMapInt32Enum( int key) { return internalGetMapInt32Enum().getMap().containsKey(key); } /** * Use {@link #getMapInt32EnumMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Enum() { return getMapInt32EnumMap(); } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public java.util.Map getMapInt32EnumMap() { return internalGetAdaptedMapInt32EnumMap( internalGetMapInt32Enum().getMap());} /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.MapEnumLite defaultValue) { java.util.Map map = internalGetMapInt32Enum().getMap(); return map.containsKey(key) ? mapInt32EnumValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.MapEnumLite getMapInt32EnumOrThrow( int key) { java.util.Map map = internalGetMapInt32Enum().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return mapInt32EnumValueConverter.doForward(map.get(key)); } public Builder clearMapInt32Enum() { bitField0_ = (bitField0_ & ~0x00008000); internalGetMutableMapInt32Enum().getMutableMap() .clear(); return this; } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ public Builder removeMapInt32Enum( int key) { internalGetMutableMapInt32Enum().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Enum() { bitField0_ |= 0x00008000; return internalGetAdaptedMapInt32EnumMap( internalGetMutableMapInt32Enum().getMutableMap()); } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ public Builder putMapInt32Enum( int key, proto2_unittest.MapLiteUnittest.MapEnumLite value) { internalGetMutableMapInt32Enum().getMutableMap() .put(key, mapInt32EnumValueConverter.doBackward(value)); bitField0_ |= 0x00008000; return this; } /** * map<int32, .proto2_unittest.MapEnumLite> map_int32_enum = 16; */ public Builder putAllMapInt32Enum( java.util.Map values) { internalGetAdaptedMapInt32EnumMap( internalGetMutableMapInt32Enum().getMutableMap()) .putAll(values); bitField0_ |= 0x00008000; return this; } private static final class MapInt32ForeignMessageConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite build(proto2_unittest.MapLiteUnittest.ForeignMessageArenaLiteOrBuilder val) { if (val instanceof proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite) { return (proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite) val; } return ((proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return MapInt32ForeignMessageDefaultEntryHolder.defaultEntry; } }; private static final MapInt32ForeignMessageConverter mapInt32ForeignMessageConverter = new MapInt32ForeignMessageConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.Integer, proto2_unittest.MapLiteUnittest.ForeignMessageArenaLiteOrBuilder, proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite, proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.Builder> mapInt32ForeignMessage_; private com.google.protobuf.MapFieldBuilder internalGetMapInt32ForeignMessage() { if (mapInt32ForeignMessage_ == null) { return new com.google.protobuf.MapFieldBuilder<>(mapInt32ForeignMessageConverter); } return mapInt32ForeignMessage_; } private com.google.protobuf.MapFieldBuilder internalGetMutableMapInt32ForeignMessage() { if (mapInt32ForeignMessage_ == null) { mapInt32ForeignMessage_ = new com.google.protobuf.MapFieldBuilder<>(mapInt32ForeignMessageConverter); } bitField0_ |= 0x00010000; onChanged(); return mapInt32ForeignMessage_; } public int getMapInt32ForeignMessageCount() { return internalGetMapInt32ForeignMessage().ensureBuilderMap().size(); } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ @java.lang.Override public boolean containsMapInt32ForeignMessage( int key) { return internalGetMapInt32ForeignMessage().ensureBuilderMap().containsKey(key); } /** * Use {@link #getMapInt32ForeignMessageMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32ForeignMessage() { return getMapInt32ForeignMessageMap(); } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ @java.lang.Override public java.util.Map getMapInt32ForeignMessageMap() { return internalGetMapInt32ForeignMessage().getImmutableMap(); } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite getMapInt32ForeignMessageOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite defaultValue) { java.util.Map map = internalGetMutableMapInt32ForeignMessage().ensureBuilderMap(); return map.containsKey(key) ? mapInt32ForeignMessageConverter.build(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite getMapInt32ForeignMessageOrThrow( int key) { java.util.Map map = internalGetMutableMapInt32ForeignMessage().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return mapInt32ForeignMessageConverter.build(map.get(key)); } public Builder clearMapInt32ForeignMessage() { bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableMapInt32ForeignMessage().clear(); return this; } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ public Builder removeMapInt32ForeignMessage( int key) { internalGetMutableMapInt32ForeignMessage().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32ForeignMessage() { bitField0_ |= 0x00010000; return internalGetMutableMapInt32ForeignMessage().ensureMessageMap(); } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ public Builder putMapInt32ForeignMessage( int key, proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite value) { if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMapInt32ForeignMessage().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00010000; return this; } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ public Builder putAllMapInt32ForeignMessage( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableMapInt32ForeignMessage().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00010000; return this; } /** * map<int32, .proto2_unittest.ForeignMessageArenaLite> map_int32_foreign_message = 17; */ public proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.Builder putMapInt32ForeignMessageBuilderIfAbsent( int key) { java.util.Map builderMap = internalGetMutableMapInt32ForeignMessage().ensureBuilderMap(); proto2_unittest.MapLiteUnittest.ForeignMessageArenaLiteOrBuilder entry = builderMap.get(key); if (entry == null) { entry = proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.newBuilder(); builderMap.put(key, entry); } if (entry instanceof proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite) { entry = ((proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite) entry).toBuilder(); builderMap.put(key, entry); } return (proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.Builder) entry; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestArenaMapLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestArenaMapLite) private static final proto2_unittest.MapLiteUnittest.TestArenaMapLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto2_unittest.MapLiteUnittest.TestArenaMapLite(); } public static proto2_unittest.MapLiteUnittest.TestArenaMapLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestArenaMapLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestArenaMapLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestRequiredMessageMapLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestRequiredMessageMapLite) com.google.protobuf.MessageOrBuilder { /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ int getMapFieldCount(); /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ boolean containsMapField( int key); /** * Use {@link #getMapFieldMap()} instead. */ @java.lang.Deprecated java.util.Map getMapField(); /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ java.util.Map getMapFieldMap(); /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ /* nullable */ proto2_unittest.MapLiteUnittest.TestRequiredLite getMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.TestRequiredLite defaultValue); /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ proto2_unittest.MapLiteUnittest.TestRequiredLite getMapFieldOrThrow( int key); } /** *
   * Test embedded message with required fields
   * 
* * Protobuf type {@code proto2_unittest.TestRequiredMessageMapLite} */ public static final class TestRequiredMessageMapLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestRequiredMessageMapLite) TestRequiredMessageMapLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestRequiredMessageMapLite.newBuilder() to construct. private TestRequiredMessageMapLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestRequiredMessageMapLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestRequiredMessageMapLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredMessageMapLite_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetMapField(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredMessageMapLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite.class, proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite.Builder.class); } public static final int MAP_FIELD_FIELD_NUMBER = 1; private static final class MapFieldDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, proto2_unittest.MapLiteUnittest.TestRequiredLite> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredMessageMapLite_MapFieldEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.MESSAGE, proto2_unittest.MapLiteUnittest.TestRequiredLite.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, proto2_unittest.MapLiteUnittest.TestRequiredLite> mapField_; private com.google.protobuf.MapField internalGetMapField() { if (mapField_ == null) { return com.google.protobuf.MapField.emptyMapField( MapFieldDefaultEntryHolder.defaultEntry); } return mapField_; } public int getMapFieldCount() { return internalGetMapField().getMap().size(); } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ @java.lang.Override public boolean containsMapField( int key) { return internalGetMapField().getMap().containsKey(key); } /** * Use {@link #getMapFieldMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapField() { return getMapFieldMap(); } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ @java.lang.Override public java.util.Map getMapFieldMap() { return internalGetMapField().getMap(); } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.TestRequiredLite getMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.TestRequiredLite defaultValue) { java.util.Map map = internalGetMapField().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredLite getMapFieldOrThrow( int key) { java.util.Map map = internalGetMapField().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (proto2_unittest.MapLiteUnittest.TestRequiredLite item : getMapFieldMap().values()) { if (!item.isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapField(), MapFieldDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetMapField().getMap().entrySet()) { com.google.protobuf.MapEntry mapField__ = MapFieldDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, mapField__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite)) { return super.equals(obj); } proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite other = (proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite) obj; if (!internalGetMapField().equals( other.internalGetMapField())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetMapField().getMap().isEmpty()) { hash = (37 * hash) + MAP_FIELD_FIELD_NUMBER; hash = (53 * hash) + internalGetMapField().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Test embedded message with required fields
     * 
* * Protobuf type {@code proto2_unittest.TestRequiredMessageMapLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestRequiredMessageMapLite) proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredMessageMapLite_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetMapField(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: return internalGetMutableMapField(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredMessageMapLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite.class, proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite.Builder.class); } // Construct using proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableMapField().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredMessageMapLite_descriptor; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite getDefaultInstanceForType() { return proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite.getDefaultInstance(); } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite build() { proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite buildPartial() { proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite result = new proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.mapField_ = internalGetMapField().build(MapFieldDefaultEntryHolder.defaultEntry); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite) { return mergeFrom((proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite other) { if (other == proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite.getDefaultInstance()) return this; internalGetMutableMapField().mergeFrom( other.internalGetMapField()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (proto2_unittest.MapLiteUnittest.TestRequiredLite item : getMapFieldMap().values()) { if (!item.isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry mapField__ = input.readMessage( MapFieldDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapField().ensureBuilderMap().put( mapField__.getKey(), mapField__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private static final class MapFieldConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredLite build(proto2_unittest.MapLiteUnittest.TestRequiredLiteOrBuilder val) { if (val instanceof proto2_unittest.MapLiteUnittest.TestRequiredLite) { return (proto2_unittest.MapLiteUnittest.TestRequiredLite) val; } return ((proto2_unittest.MapLiteUnittest.TestRequiredLite.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return MapFieldDefaultEntryHolder.defaultEntry; } }; private static final MapFieldConverter mapFieldConverter = new MapFieldConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.Integer, proto2_unittest.MapLiteUnittest.TestRequiredLiteOrBuilder, proto2_unittest.MapLiteUnittest.TestRequiredLite, proto2_unittest.MapLiteUnittest.TestRequiredLite.Builder> mapField_; private com.google.protobuf.MapFieldBuilder internalGetMapField() { if (mapField_ == null) { return new com.google.protobuf.MapFieldBuilder<>(mapFieldConverter); } return mapField_; } private com.google.protobuf.MapFieldBuilder internalGetMutableMapField() { if (mapField_ == null) { mapField_ = new com.google.protobuf.MapFieldBuilder<>(mapFieldConverter); } bitField0_ |= 0x00000001; onChanged(); return mapField_; } public int getMapFieldCount() { return internalGetMapField().ensureBuilderMap().size(); } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ @java.lang.Override public boolean containsMapField( int key) { return internalGetMapField().ensureBuilderMap().containsKey(key); } /** * Use {@link #getMapFieldMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapField() { return getMapFieldMap(); } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ @java.lang.Override public java.util.Map getMapFieldMap() { return internalGetMapField().getImmutableMap(); } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.TestRequiredLite getMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.TestRequiredLite defaultValue) { java.util.Map map = internalGetMutableMapField().ensureBuilderMap(); return map.containsKey(key) ? mapFieldConverter.build(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredLite getMapFieldOrThrow( int key) { java.util.Map map = internalGetMutableMapField().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return mapFieldConverter.build(map.get(key)); } public Builder clearMapField() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableMapField().clear(); return this; } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ public Builder removeMapField( int key) { internalGetMutableMapField().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapField() { bitField0_ |= 0x00000001; return internalGetMutableMapField().ensureMessageMap(); } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ public Builder putMapField( int key, proto2_unittest.MapLiteUnittest.TestRequiredLite value) { if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMapField().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000001; return this; } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ public Builder putAllMapField( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableMapField().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000001; return this; } /** * map<int32, .proto2_unittest.TestRequiredLite> map_field = 1; */ public proto2_unittest.MapLiteUnittest.TestRequiredLite.Builder putMapFieldBuilderIfAbsent( int key) { java.util.Map builderMap = internalGetMutableMapField().ensureBuilderMap(); proto2_unittest.MapLiteUnittest.TestRequiredLiteOrBuilder entry = builderMap.get(key); if (entry == null) { entry = proto2_unittest.MapLiteUnittest.TestRequiredLite.newBuilder(); builderMap.put(key, entry); } if (entry instanceof proto2_unittest.MapLiteUnittest.TestRequiredLite) { entry = ((proto2_unittest.MapLiteUnittest.TestRequiredLite) entry).toBuilder(); builderMap.put(key, entry); } return (proto2_unittest.MapLiteUnittest.TestRequiredLite.Builder) entry; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestRequiredMessageMapLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestRequiredMessageMapLite) private static final proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite(); } public static proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestRequiredMessageMapLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredMessageMapLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestEnumMapLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestEnumMapLite) com.google.protobuf.MessageOrBuilder { /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ int getKnownMapFieldCount(); /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ boolean containsKnownMapField( int key); /** * Use {@link #getKnownMapFieldMap()} instead. */ @java.lang.Deprecated java.util.Map getKnownMapField(); /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ java.util.Map getKnownMapFieldMap(); /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getKnownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite defaultValue); /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getKnownMapFieldOrThrow( int key); /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ int getUnknownMapFieldCount(); /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ boolean containsUnknownMapField( int key); /** * Use {@link #getUnknownMapFieldMap()} instead. */ @java.lang.Deprecated java.util.Map getUnknownMapField(); /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ java.util.Map getUnknownMapFieldMap(); /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getUnknownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite defaultValue); /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getUnknownMapFieldOrThrow( int key); } /** * Protobuf type {@code proto2_unittest.TestEnumMapLite} */ public static final class TestEnumMapLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestEnumMapLite) TestEnumMapLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestEnumMapLite.newBuilder() to construct. private TestEnumMapLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestEnumMapLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestEnumMapLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapLite_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 101: return internalGetKnownMapField(); case 102: return internalGetUnknownMapField(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestEnumMapLite.class, proto2_unittest.MapLiteUnittest.TestEnumMapLite.Builder.class); } public static final int KNOWN_MAP_FIELD_FIELD_NUMBER = 101; private static final class KnownMapFieldDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapLite_KnownMapFieldEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.ENUM, proto2_unittest.MapLiteUnittest.Proto2MapEnumLite.PROTO2_MAP_ENUM_FOO_LITE.getNumber()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> knownMapField_; private com.google.protobuf.MapField internalGetKnownMapField() { if (knownMapField_ == null) { return com.google.protobuf.MapField.emptyMapField( KnownMapFieldDefaultEntryHolder.defaultEntry); } return knownMapField_; } private static final com.google.protobuf.Internal.MapAdapter.Converter< java.lang.Integer, proto2_unittest.MapLiteUnittest.Proto2MapEnumLite> knownMapFieldValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( proto2_unittest.MapLiteUnittest.Proto2MapEnumLite.internalGetValueMap(), proto2_unittest.MapLiteUnittest.Proto2MapEnumLite.PROTO2_MAP_ENUM_FOO_LITE); private static final java.util.Map internalGetAdaptedKnownMapFieldMap( java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< java.lang.Integer, proto2_unittest.MapLiteUnittest.Proto2MapEnumLite, java.lang.Integer>( map, knownMapFieldValueConverter); } public int getKnownMapFieldCount() { return internalGetKnownMapField().getMap().size(); } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ @java.lang.Override public boolean containsKnownMapField( int key) { return internalGetKnownMapField().getMap().containsKey(key); } /** * Use {@link #getKnownMapFieldMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getKnownMapField() { return getKnownMapFieldMap(); } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ @java.lang.Override public java.util.Map getKnownMapFieldMap() { return internalGetAdaptedKnownMapFieldMap( internalGetKnownMapField().getMap());} /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getKnownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite defaultValue) { java.util.Map map = internalGetKnownMapField().getMap(); return map.containsKey(key) ? knownMapFieldValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getKnownMapFieldOrThrow( int key) { java.util.Map map = internalGetKnownMapField().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return knownMapFieldValueConverter.doForward(map.get(key)); } public static final int UNKNOWN_MAP_FIELD_FIELD_NUMBER = 102; private static final class UnknownMapFieldDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapLite_UnknownMapFieldEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.ENUM, proto2_unittest.MapLiteUnittest.Proto2MapEnumLite.PROTO2_MAP_ENUM_FOO_LITE.getNumber()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> unknownMapField_; private com.google.protobuf.MapField internalGetUnknownMapField() { if (unknownMapField_ == null) { return com.google.protobuf.MapField.emptyMapField( UnknownMapFieldDefaultEntryHolder.defaultEntry); } return unknownMapField_; } private static final com.google.protobuf.Internal.MapAdapter.Converter< java.lang.Integer, proto2_unittest.MapLiteUnittest.Proto2MapEnumLite> unknownMapFieldValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( proto2_unittest.MapLiteUnittest.Proto2MapEnumLite.internalGetValueMap(), proto2_unittest.MapLiteUnittest.Proto2MapEnumLite.PROTO2_MAP_ENUM_FOO_LITE); private static final java.util.Map internalGetAdaptedUnknownMapFieldMap( java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< java.lang.Integer, proto2_unittest.MapLiteUnittest.Proto2MapEnumLite, java.lang.Integer>( map, unknownMapFieldValueConverter); } public int getUnknownMapFieldCount() { return internalGetUnknownMapField().getMap().size(); } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ @java.lang.Override public boolean containsUnknownMapField( int key) { return internalGetUnknownMapField().getMap().containsKey(key); } /** * Use {@link #getUnknownMapFieldMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUnknownMapField() { return getUnknownMapFieldMap(); } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ @java.lang.Override public java.util.Map getUnknownMapFieldMap() { return internalGetAdaptedUnknownMapFieldMap( internalGetUnknownMapField().getMap());} /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getUnknownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite defaultValue) { java.util.Map map = internalGetUnknownMapField().getMap(); return map.containsKey(key) ? unknownMapFieldValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getUnknownMapFieldOrThrow( int key) { java.util.Map map = internalGetUnknownMapField().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return unknownMapFieldValueConverter.doForward(map.get(key)); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetKnownMapField(), KnownMapFieldDefaultEntryHolder.defaultEntry, 101); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetUnknownMapField(), UnknownMapFieldDefaultEntryHolder.defaultEntry, 102); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetKnownMapField().getMap().entrySet()) { com.google.protobuf.MapEntry knownMapField__ = KnownMapFieldDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(101, knownMapField__); } for (java.util.Map.Entry entry : internalGetUnknownMapField().getMap().entrySet()) { com.google.protobuf.MapEntry unknownMapField__ = UnknownMapFieldDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(102, unknownMapField__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto2_unittest.MapLiteUnittest.TestEnumMapLite)) { return super.equals(obj); } proto2_unittest.MapLiteUnittest.TestEnumMapLite other = (proto2_unittest.MapLiteUnittest.TestEnumMapLite) obj; if (!internalGetKnownMapField().equals( other.internalGetKnownMapField())) return false; if (!internalGetUnknownMapField().equals( other.internalGetUnknownMapField())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetKnownMapField().getMap().isEmpty()) { hash = (37 * hash) + KNOWN_MAP_FIELD_FIELD_NUMBER; hash = (53 * hash) + internalGetKnownMapField().hashCode(); } if (!internalGetUnknownMapField().getMap().isEmpty()) { hash = (37 * hash) + UNKNOWN_MAP_FIELD_FIELD_NUMBER; hash = (53 * hash) + internalGetUnknownMapField().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(proto2_unittest.MapLiteUnittest.TestEnumMapLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestEnumMapLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestEnumMapLite) proto2_unittest.MapLiteUnittest.TestEnumMapLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapLite_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 101: return internalGetKnownMapField(); case 102: return internalGetUnknownMapField(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 101: return internalGetMutableKnownMapField(); case 102: return internalGetMutableUnknownMapField(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestEnumMapLite.class, proto2_unittest.MapLiteUnittest.TestEnumMapLite.Builder.class); } // Construct using proto2_unittest.MapLiteUnittest.TestEnumMapLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableKnownMapField().clear(); internalGetMutableUnknownMapField().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapLite_descriptor; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestEnumMapLite getDefaultInstanceForType() { return proto2_unittest.MapLiteUnittest.TestEnumMapLite.getDefaultInstance(); } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestEnumMapLite build() { proto2_unittest.MapLiteUnittest.TestEnumMapLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestEnumMapLite buildPartial() { proto2_unittest.MapLiteUnittest.TestEnumMapLite result = new proto2_unittest.MapLiteUnittest.TestEnumMapLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(proto2_unittest.MapLiteUnittest.TestEnumMapLite result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.knownMapField_ = internalGetKnownMapField(); result.knownMapField_.makeImmutable(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.unknownMapField_ = internalGetUnknownMapField(); result.unknownMapField_.makeImmutable(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto2_unittest.MapLiteUnittest.TestEnumMapLite) { return mergeFrom((proto2_unittest.MapLiteUnittest.TestEnumMapLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto2_unittest.MapLiteUnittest.TestEnumMapLite other) { if (other == proto2_unittest.MapLiteUnittest.TestEnumMapLite.getDefaultInstance()) return this; internalGetMutableKnownMapField().mergeFrom( other.internalGetKnownMapField()); bitField0_ |= 0x00000001; internalGetMutableUnknownMapField().mergeFrom( other.internalGetUnknownMapField()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 810: { com.google.protobuf.ByteString bytes = input.readBytes(); com.google.protobuf.MapEntry knownMapField__ = KnownMapFieldDefaultEntryHolder.defaultEntry.getParserForType().parseFrom(bytes); if (proto2_unittest.MapLiteUnittest.Proto2MapEnumLite.forNumber(knownMapField__.getValue()) == null) { mergeUnknownLengthDelimitedField(101, bytes); } else { internalGetMutableKnownMapField().getMutableMap().put( knownMapField__.getKey(), knownMapField__.getValue()); bitField0_ |= 0x00000001; } break; } // case 810 case 818: { com.google.protobuf.ByteString bytes = input.readBytes(); com.google.protobuf.MapEntry unknownMapField__ = UnknownMapFieldDefaultEntryHolder.defaultEntry.getParserForType().parseFrom(bytes); if (proto2_unittest.MapLiteUnittest.Proto2MapEnumLite.forNumber(unknownMapField__.getValue()) == null) { mergeUnknownLengthDelimitedField(102, bytes); } else { internalGetMutableUnknownMapField().getMutableMap().put( unknownMapField__.getKey(), unknownMapField__.getValue()); bitField0_ |= 0x00000002; } break; } // case 818 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> knownMapField_; private com.google.protobuf.MapField internalGetKnownMapField() { if (knownMapField_ == null) { return com.google.protobuf.MapField.emptyMapField( KnownMapFieldDefaultEntryHolder.defaultEntry); } return knownMapField_; } private com.google.protobuf.MapField internalGetMutableKnownMapField() { if (knownMapField_ == null) { knownMapField_ = com.google.protobuf.MapField.newMapField( KnownMapFieldDefaultEntryHolder.defaultEntry); } if (!knownMapField_.isMutable()) { knownMapField_ = knownMapField_.copy(); } bitField0_ |= 0x00000001; onChanged(); return knownMapField_; } public int getKnownMapFieldCount() { return internalGetKnownMapField().getMap().size(); } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ @java.lang.Override public boolean containsKnownMapField( int key) { return internalGetKnownMapField().getMap().containsKey(key); } /** * Use {@link #getKnownMapFieldMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getKnownMapField() { return getKnownMapFieldMap(); } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ @java.lang.Override public java.util.Map getKnownMapFieldMap() { return internalGetAdaptedKnownMapFieldMap( internalGetKnownMapField().getMap());} /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getKnownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite defaultValue) { java.util.Map map = internalGetKnownMapField().getMap(); return map.containsKey(key) ? knownMapFieldValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getKnownMapFieldOrThrow( int key) { java.util.Map map = internalGetKnownMapField().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return knownMapFieldValueConverter.doForward(map.get(key)); } public Builder clearKnownMapField() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableKnownMapField().getMutableMap() .clear(); return this; } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ public Builder removeKnownMapField( int key) { internalGetMutableKnownMapField().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableKnownMapField() { bitField0_ |= 0x00000001; return internalGetAdaptedKnownMapFieldMap( internalGetMutableKnownMapField().getMutableMap()); } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ public Builder putKnownMapField( int key, proto2_unittest.MapLiteUnittest.Proto2MapEnumLite value) { internalGetMutableKnownMapField().getMutableMap() .put(key, knownMapFieldValueConverter.doBackward(value)); bitField0_ |= 0x00000001; return this; } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> known_map_field = 101; */ public Builder putAllKnownMapField( java.util.Map values) { internalGetAdaptedKnownMapFieldMap( internalGetMutableKnownMapField().getMutableMap()) .putAll(values); bitField0_ |= 0x00000001; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> unknownMapField_; private com.google.protobuf.MapField internalGetUnknownMapField() { if (unknownMapField_ == null) { return com.google.protobuf.MapField.emptyMapField( UnknownMapFieldDefaultEntryHolder.defaultEntry); } return unknownMapField_; } private com.google.protobuf.MapField internalGetMutableUnknownMapField() { if (unknownMapField_ == null) { unknownMapField_ = com.google.protobuf.MapField.newMapField( UnknownMapFieldDefaultEntryHolder.defaultEntry); } if (!unknownMapField_.isMutable()) { unknownMapField_ = unknownMapField_.copy(); } bitField0_ |= 0x00000002; onChanged(); return unknownMapField_; } public int getUnknownMapFieldCount() { return internalGetUnknownMapField().getMap().size(); } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ @java.lang.Override public boolean containsUnknownMapField( int key) { return internalGetUnknownMapField().getMap().containsKey(key); } /** * Use {@link #getUnknownMapFieldMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUnknownMapField() { return getUnknownMapFieldMap(); } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ @java.lang.Override public java.util.Map getUnknownMapFieldMap() { return internalGetAdaptedUnknownMapFieldMap( internalGetUnknownMapField().getMap());} /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getUnknownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumLite defaultValue) { java.util.Map map = internalGetUnknownMapField().getMap(); return map.containsKey(key) ? unknownMapFieldValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.Proto2MapEnumLite getUnknownMapFieldOrThrow( int key) { java.util.Map map = internalGetUnknownMapField().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return unknownMapFieldValueConverter.doForward(map.get(key)); } public Builder clearUnknownMapField() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableUnknownMapField().getMutableMap() .clear(); return this; } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ public Builder removeUnknownMapField( int key) { internalGetMutableUnknownMapField().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableUnknownMapField() { bitField0_ |= 0x00000002; return internalGetAdaptedUnknownMapFieldMap( internalGetMutableUnknownMapField().getMutableMap()); } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ public Builder putUnknownMapField( int key, proto2_unittest.MapLiteUnittest.Proto2MapEnumLite value) { internalGetMutableUnknownMapField().getMutableMap() .put(key, unknownMapFieldValueConverter.doBackward(value)); bitField0_ |= 0x00000002; return this; } /** * map<int32, .proto2_unittest.Proto2MapEnumLite> unknown_map_field = 102; */ public Builder putAllUnknownMapField( java.util.Map values) { internalGetAdaptedUnknownMapFieldMap( internalGetMutableUnknownMapField().getMutableMap()) .putAll(values); bitField0_ |= 0x00000002; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestEnumMapLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestEnumMapLite) private static final proto2_unittest.MapLiteUnittest.TestEnumMapLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto2_unittest.MapLiteUnittest.TestEnumMapLite(); } public static proto2_unittest.MapLiteUnittest.TestEnumMapLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestEnumMapLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestEnumMapLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestEnumMapPlusExtraLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestEnumMapPlusExtraLite) com.google.protobuf.MessageOrBuilder { /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ int getKnownMapFieldCount(); /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ boolean containsKnownMapField( int key); /** * Use {@link #getKnownMapFieldMap()} instead. */ @java.lang.Deprecated java.util.Map getKnownMapField(); /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ java.util.Map getKnownMapFieldMap(); /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getKnownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite defaultValue); /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getKnownMapFieldOrThrow( int key); /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ int getUnknownMapFieldCount(); /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ boolean containsUnknownMapField( int key); /** * Use {@link #getUnknownMapFieldMap()} instead. */ @java.lang.Deprecated java.util.Map getUnknownMapField(); /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ java.util.Map getUnknownMapFieldMap(); /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getUnknownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite defaultValue); /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getUnknownMapFieldOrThrow( int key); } /** * Protobuf type {@code proto2_unittest.TestEnumMapPlusExtraLite} */ public static final class TestEnumMapPlusExtraLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestEnumMapPlusExtraLite) TestEnumMapPlusExtraLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestEnumMapPlusExtraLite.newBuilder() to construct. private TestEnumMapPlusExtraLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestEnumMapPlusExtraLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestEnumMapPlusExtraLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapPlusExtraLite_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 101: return internalGetKnownMapField(); case 102: return internalGetUnknownMapField(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapPlusExtraLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite.class, proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite.Builder.class); } public static final int KNOWN_MAP_FIELD_FIELD_NUMBER = 101; private static final class KnownMapFieldDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapPlusExtraLite_KnownMapFieldEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.ENUM, proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite.E_PROTO2_MAP_ENUM_FOO_LITE.getNumber()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> knownMapField_; private com.google.protobuf.MapField internalGetKnownMapField() { if (knownMapField_ == null) { return com.google.protobuf.MapField.emptyMapField( KnownMapFieldDefaultEntryHolder.defaultEntry); } return knownMapField_; } private static final com.google.protobuf.Internal.MapAdapter.Converter< java.lang.Integer, proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite> knownMapFieldValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite.internalGetValueMap(), proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite.E_PROTO2_MAP_ENUM_FOO_LITE); private static final java.util.Map internalGetAdaptedKnownMapFieldMap( java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< java.lang.Integer, proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite, java.lang.Integer>( map, knownMapFieldValueConverter); } public int getKnownMapFieldCount() { return internalGetKnownMapField().getMap().size(); } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ @java.lang.Override public boolean containsKnownMapField( int key) { return internalGetKnownMapField().getMap().containsKey(key); } /** * Use {@link #getKnownMapFieldMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getKnownMapField() { return getKnownMapFieldMap(); } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ @java.lang.Override public java.util.Map getKnownMapFieldMap() { return internalGetAdaptedKnownMapFieldMap( internalGetKnownMapField().getMap());} /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getKnownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite defaultValue) { java.util.Map map = internalGetKnownMapField().getMap(); return map.containsKey(key) ? knownMapFieldValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getKnownMapFieldOrThrow( int key) { java.util.Map map = internalGetKnownMapField().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return knownMapFieldValueConverter.doForward(map.get(key)); } public static final int UNKNOWN_MAP_FIELD_FIELD_NUMBER = 102; private static final class UnknownMapFieldDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapPlusExtraLite_UnknownMapFieldEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.ENUM, proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite.E_PROTO2_MAP_ENUM_FOO_LITE.getNumber()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> unknownMapField_; private com.google.protobuf.MapField internalGetUnknownMapField() { if (unknownMapField_ == null) { return com.google.protobuf.MapField.emptyMapField( UnknownMapFieldDefaultEntryHolder.defaultEntry); } return unknownMapField_; } private static final com.google.protobuf.Internal.MapAdapter.Converter< java.lang.Integer, proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite> unknownMapFieldValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite.internalGetValueMap(), proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite.E_PROTO2_MAP_ENUM_FOO_LITE); private static final java.util.Map internalGetAdaptedUnknownMapFieldMap( java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< java.lang.Integer, proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite, java.lang.Integer>( map, unknownMapFieldValueConverter); } public int getUnknownMapFieldCount() { return internalGetUnknownMapField().getMap().size(); } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ @java.lang.Override public boolean containsUnknownMapField( int key) { return internalGetUnknownMapField().getMap().containsKey(key); } /** * Use {@link #getUnknownMapFieldMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUnknownMapField() { return getUnknownMapFieldMap(); } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ @java.lang.Override public java.util.Map getUnknownMapFieldMap() { return internalGetAdaptedUnknownMapFieldMap( internalGetUnknownMapField().getMap());} /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getUnknownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite defaultValue) { java.util.Map map = internalGetUnknownMapField().getMap(); return map.containsKey(key) ? unknownMapFieldValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getUnknownMapFieldOrThrow( int key) { java.util.Map map = internalGetUnknownMapField().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return unknownMapFieldValueConverter.doForward(map.get(key)); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetKnownMapField(), KnownMapFieldDefaultEntryHolder.defaultEntry, 101); com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetUnknownMapField(), UnknownMapFieldDefaultEntryHolder.defaultEntry, 102); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetKnownMapField().getMap().entrySet()) { com.google.protobuf.MapEntry knownMapField__ = KnownMapFieldDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(101, knownMapField__); } for (java.util.Map.Entry entry : internalGetUnknownMapField().getMap().entrySet()) { com.google.protobuf.MapEntry unknownMapField__ = UnknownMapFieldDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(102, unknownMapField__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite)) { return super.equals(obj); } proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite other = (proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite) obj; if (!internalGetKnownMapField().equals( other.internalGetKnownMapField())) return false; if (!internalGetUnknownMapField().equals( other.internalGetUnknownMapField())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetKnownMapField().getMap().isEmpty()) { hash = (37 * hash) + KNOWN_MAP_FIELD_FIELD_NUMBER; hash = (53 * hash) + internalGetKnownMapField().hashCode(); } if (!internalGetUnknownMapField().getMap().isEmpty()) { hash = (37 * hash) + UNKNOWN_MAP_FIELD_FIELD_NUMBER; hash = (53 * hash) + internalGetUnknownMapField().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestEnumMapPlusExtraLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestEnumMapPlusExtraLite) proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapPlusExtraLite_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 101: return internalGetKnownMapField(); case 102: return internalGetUnknownMapField(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 101: return internalGetMutableKnownMapField(); case 102: return internalGetMutableUnknownMapField(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapPlusExtraLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite.class, proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite.Builder.class); } // Construct using proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableKnownMapField().clear(); internalGetMutableUnknownMapField().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestEnumMapPlusExtraLite_descriptor; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite getDefaultInstanceForType() { return proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite.getDefaultInstance(); } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite build() { proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite buildPartial() { proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite result = new proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.knownMapField_ = internalGetKnownMapField(); result.knownMapField_.makeImmutable(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.unknownMapField_ = internalGetUnknownMapField(); result.unknownMapField_.makeImmutable(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite) { return mergeFrom((proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite other) { if (other == proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite.getDefaultInstance()) return this; internalGetMutableKnownMapField().mergeFrom( other.internalGetKnownMapField()); bitField0_ |= 0x00000001; internalGetMutableUnknownMapField().mergeFrom( other.internalGetUnknownMapField()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 810: { com.google.protobuf.ByteString bytes = input.readBytes(); com.google.protobuf.MapEntry knownMapField__ = KnownMapFieldDefaultEntryHolder.defaultEntry.getParserForType().parseFrom(bytes); if (proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite.forNumber(knownMapField__.getValue()) == null) { mergeUnknownLengthDelimitedField(101, bytes); } else { internalGetMutableKnownMapField().getMutableMap().put( knownMapField__.getKey(), knownMapField__.getValue()); bitField0_ |= 0x00000001; } break; } // case 810 case 818: { com.google.protobuf.ByteString bytes = input.readBytes(); com.google.protobuf.MapEntry unknownMapField__ = UnknownMapFieldDefaultEntryHolder.defaultEntry.getParserForType().parseFrom(bytes); if (proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite.forNumber(unknownMapField__.getValue()) == null) { mergeUnknownLengthDelimitedField(102, bytes); } else { internalGetMutableUnknownMapField().getMutableMap().put( unknownMapField__.getKey(), unknownMapField__.getValue()); bitField0_ |= 0x00000002; } break; } // case 818 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> knownMapField_; private com.google.protobuf.MapField internalGetKnownMapField() { if (knownMapField_ == null) { return com.google.protobuf.MapField.emptyMapField( KnownMapFieldDefaultEntryHolder.defaultEntry); } return knownMapField_; } private com.google.protobuf.MapField internalGetMutableKnownMapField() { if (knownMapField_ == null) { knownMapField_ = com.google.protobuf.MapField.newMapField( KnownMapFieldDefaultEntryHolder.defaultEntry); } if (!knownMapField_.isMutable()) { knownMapField_ = knownMapField_.copy(); } bitField0_ |= 0x00000001; onChanged(); return knownMapField_; } public int getKnownMapFieldCount() { return internalGetKnownMapField().getMap().size(); } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ @java.lang.Override public boolean containsKnownMapField( int key) { return internalGetKnownMapField().getMap().containsKey(key); } /** * Use {@link #getKnownMapFieldMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getKnownMapField() { return getKnownMapFieldMap(); } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ @java.lang.Override public java.util.Map getKnownMapFieldMap() { return internalGetAdaptedKnownMapFieldMap( internalGetKnownMapField().getMap());} /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getKnownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite defaultValue) { java.util.Map map = internalGetKnownMapField().getMap(); return map.containsKey(key) ? knownMapFieldValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getKnownMapFieldOrThrow( int key) { java.util.Map map = internalGetKnownMapField().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return knownMapFieldValueConverter.doForward(map.get(key)); } public Builder clearKnownMapField() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableKnownMapField().getMutableMap() .clear(); return this; } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ public Builder removeKnownMapField( int key) { internalGetMutableKnownMapField().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableKnownMapField() { bitField0_ |= 0x00000001; return internalGetAdaptedKnownMapFieldMap( internalGetMutableKnownMapField().getMutableMap()); } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ public Builder putKnownMapField( int key, proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite value) { internalGetMutableKnownMapField().getMutableMap() .put(key, knownMapFieldValueConverter.doBackward(value)); bitField0_ |= 0x00000001; return this; } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> known_map_field = 101; */ public Builder putAllKnownMapField( java.util.Map values) { internalGetAdaptedKnownMapFieldMap( internalGetMutableKnownMapField().getMutableMap()) .putAll(values); bitField0_ |= 0x00000001; return this; } private com.google.protobuf.MapField< java.lang.Integer, java.lang.Integer> unknownMapField_; private com.google.protobuf.MapField internalGetUnknownMapField() { if (unknownMapField_ == null) { return com.google.protobuf.MapField.emptyMapField( UnknownMapFieldDefaultEntryHolder.defaultEntry); } return unknownMapField_; } private com.google.protobuf.MapField internalGetMutableUnknownMapField() { if (unknownMapField_ == null) { unknownMapField_ = com.google.protobuf.MapField.newMapField( UnknownMapFieldDefaultEntryHolder.defaultEntry); } if (!unknownMapField_.isMutable()) { unknownMapField_ = unknownMapField_.copy(); } bitField0_ |= 0x00000002; onChanged(); return unknownMapField_; } public int getUnknownMapFieldCount() { return internalGetUnknownMapField().getMap().size(); } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ @java.lang.Override public boolean containsUnknownMapField( int key) { return internalGetUnknownMapField().getMap().containsKey(key); } /** * Use {@link #getUnknownMapFieldMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUnknownMapField() { return getUnknownMapFieldMap(); } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ @java.lang.Override public java.util.Map getUnknownMapFieldMap() { return internalGetAdaptedUnknownMapFieldMap( internalGetUnknownMapField().getMap());} /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ @java.lang.Override public /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getUnknownMapFieldOrDefault( int key, /* nullable */ proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite defaultValue) { java.util.Map map = internalGetUnknownMapField().getMap(); return map.containsKey(key) ? unknownMapFieldValueConverter.doForward(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ @java.lang.Override public proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite getUnknownMapFieldOrThrow( int key) { java.util.Map map = internalGetUnknownMapField().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return unknownMapFieldValueConverter.doForward(map.get(key)); } public Builder clearUnknownMapField() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableUnknownMapField().getMutableMap() .clear(); return this; } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ public Builder removeUnknownMapField( int key) { internalGetMutableUnknownMapField().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableUnknownMapField() { bitField0_ |= 0x00000002; return internalGetAdaptedUnknownMapFieldMap( internalGetMutableUnknownMapField().getMutableMap()); } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ public Builder putUnknownMapField( int key, proto2_unittest.MapLiteUnittest.Proto2MapEnumPlusExtraLite value) { internalGetMutableUnknownMapField().getMutableMap() .put(key, unknownMapFieldValueConverter.doBackward(value)); bitField0_ |= 0x00000002; return this; } /** * map<int32, .proto2_unittest.Proto2MapEnumPlusExtraLite> unknown_map_field = 102; */ public Builder putAllUnknownMapField( java.util.Map values) { internalGetAdaptedUnknownMapFieldMap( internalGetMutableUnknownMapField().getMutableMap()) .putAll(values); bitField0_ |= 0x00000002; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestEnumMapPlusExtraLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestEnumMapPlusExtraLite) private static final proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite(); } public static proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestEnumMapPlusExtraLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestEnumMapPlusExtraLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestMessageMapLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestMessageMapLite) com.google.protobuf.MessageOrBuilder { /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ int getMapInt32MessageCount(); /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ boolean containsMapInt32Message( int key); /** * Use {@link #getMapInt32MessageMap()} instead. */ @java.lang.Deprecated java.util.Map getMapInt32Message(); /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ java.util.Map getMapInt32MessageMap(); /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ /* nullable */ com.google.protobuf.UnittestLite.TestAllTypesLite getMapInt32MessageOrDefault( int key, /* nullable */ com.google.protobuf.UnittestLite.TestAllTypesLite defaultValue); /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ com.google.protobuf.UnittestLite.TestAllTypesLite getMapInt32MessageOrThrow( int key); } /** * Protobuf type {@code proto2_unittest.TestMessageMapLite} */ public static final class TestMessageMapLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestMessageMapLite) TestMessageMapLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestMessageMapLite.newBuilder() to construct. private TestMessageMapLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestMessageMapLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestMessageMapLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMessageMapLite_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetMapInt32Message(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMessageMapLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestMessageMapLite.class, proto2_unittest.MapLiteUnittest.TestMessageMapLite.Builder.class); } public static final int MAP_INT32_MESSAGE_FIELD_NUMBER = 1; private static final class MapInt32MessageDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, com.google.protobuf.UnittestLite.TestAllTypesLite> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMessageMapLite_MapInt32MessageEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.UnittestLite.TestAllTypesLite.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, com.google.protobuf.UnittestLite.TestAllTypesLite> mapInt32Message_; private com.google.protobuf.MapField internalGetMapInt32Message() { if (mapInt32Message_ == null) { return com.google.protobuf.MapField.emptyMapField( MapInt32MessageDefaultEntryHolder.defaultEntry); } return mapInt32Message_; } public int getMapInt32MessageCount() { return internalGetMapInt32Message().getMap().size(); } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ @java.lang.Override public boolean containsMapInt32Message( int key) { return internalGetMapInt32Message().getMap().containsKey(key); } /** * Use {@link #getMapInt32MessageMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Message() { return getMapInt32MessageMap(); } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ @java.lang.Override public java.util.Map getMapInt32MessageMap() { return internalGetMapInt32Message().getMap(); } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ @java.lang.Override public /* nullable */ com.google.protobuf.UnittestLite.TestAllTypesLite getMapInt32MessageOrDefault( int key, /* nullable */ com.google.protobuf.UnittestLite.TestAllTypesLite defaultValue) { java.util.Map map = internalGetMapInt32Message().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getMapInt32MessageOrThrow( int key) { java.util.Map map = internalGetMapInt32Message().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetMapInt32Message(), MapInt32MessageDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetMapInt32Message().getMap().entrySet()) { com.google.protobuf.MapEntry mapInt32Message__ = MapInt32MessageDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, mapInt32Message__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto2_unittest.MapLiteUnittest.TestMessageMapLite)) { return super.equals(obj); } proto2_unittest.MapLiteUnittest.TestMessageMapLite other = (proto2_unittest.MapLiteUnittest.TestMessageMapLite) obj; if (!internalGetMapInt32Message().equals( other.internalGetMapInt32Message())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetMapInt32Message().getMap().isEmpty()) { hash = (37 * hash) + MAP_INT32_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + internalGetMapInt32Message().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(proto2_unittest.MapLiteUnittest.TestMessageMapLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestMessageMapLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestMessageMapLite) proto2_unittest.MapLiteUnittest.TestMessageMapLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMessageMapLite_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetMapInt32Message(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: return internalGetMutableMapInt32Message(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMessageMapLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestMessageMapLite.class, proto2_unittest.MapLiteUnittest.TestMessageMapLite.Builder.class); } // Construct using proto2_unittest.MapLiteUnittest.TestMessageMapLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableMapInt32Message().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestMessageMapLite_descriptor; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestMessageMapLite getDefaultInstanceForType() { return proto2_unittest.MapLiteUnittest.TestMessageMapLite.getDefaultInstance(); } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestMessageMapLite build() { proto2_unittest.MapLiteUnittest.TestMessageMapLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestMessageMapLite buildPartial() { proto2_unittest.MapLiteUnittest.TestMessageMapLite result = new proto2_unittest.MapLiteUnittest.TestMessageMapLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(proto2_unittest.MapLiteUnittest.TestMessageMapLite result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.mapInt32Message_ = internalGetMapInt32Message().build(MapInt32MessageDefaultEntryHolder.defaultEntry); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto2_unittest.MapLiteUnittest.TestMessageMapLite) { return mergeFrom((proto2_unittest.MapLiteUnittest.TestMessageMapLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto2_unittest.MapLiteUnittest.TestMessageMapLite other) { if (other == proto2_unittest.MapLiteUnittest.TestMessageMapLite.getDefaultInstance()) return this; internalGetMutableMapInt32Message().mergeFrom( other.internalGetMapInt32Message()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry mapInt32Message__ = input.readMessage( MapInt32MessageDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMapInt32Message().ensureBuilderMap().put( mapInt32Message__.getKey(), mapInt32Message__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private static final class MapInt32MessageConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite build(com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder val) { if (val instanceof com.google.protobuf.UnittestLite.TestAllTypesLite) { return (com.google.protobuf.UnittestLite.TestAllTypesLite) val; } return ((com.google.protobuf.UnittestLite.TestAllTypesLite.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return MapInt32MessageDefaultEntryHolder.defaultEntry; } }; private static final MapInt32MessageConverter mapInt32MessageConverter = new MapInt32MessageConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.Integer, com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder, com.google.protobuf.UnittestLite.TestAllTypesLite, com.google.protobuf.UnittestLite.TestAllTypesLite.Builder> mapInt32Message_; private com.google.protobuf.MapFieldBuilder internalGetMapInt32Message() { if (mapInt32Message_ == null) { return new com.google.protobuf.MapFieldBuilder<>(mapInt32MessageConverter); } return mapInt32Message_; } private com.google.protobuf.MapFieldBuilder internalGetMutableMapInt32Message() { if (mapInt32Message_ == null) { mapInt32Message_ = new com.google.protobuf.MapFieldBuilder<>(mapInt32MessageConverter); } bitField0_ |= 0x00000001; onChanged(); return mapInt32Message_; } public int getMapInt32MessageCount() { return internalGetMapInt32Message().ensureBuilderMap().size(); } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ @java.lang.Override public boolean containsMapInt32Message( int key) { return internalGetMapInt32Message().ensureBuilderMap().containsKey(key); } /** * Use {@link #getMapInt32MessageMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMapInt32Message() { return getMapInt32MessageMap(); } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ @java.lang.Override public java.util.Map getMapInt32MessageMap() { return internalGetMapInt32Message().getImmutableMap(); } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ @java.lang.Override public /* nullable */ com.google.protobuf.UnittestLite.TestAllTypesLite getMapInt32MessageOrDefault( int key, /* nullable */ com.google.protobuf.UnittestLite.TestAllTypesLite defaultValue) { java.util.Map map = internalGetMutableMapInt32Message().ensureBuilderMap(); return map.containsKey(key) ? mapInt32MessageConverter.build(map.get(key)) : defaultValue; } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ @java.lang.Override public com.google.protobuf.UnittestLite.TestAllTypesLite getMapInt32MessageOrThrow( int key) { java.util.Map map = internalGetMutableMapInt32Message().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return mapInt32MessageConverter.build(map.get(key)); } public Builder clearMapInt32Message() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableMapInt32Message().clear(); return this; } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ public Builder removeMapInt32Message( int key) { internalGetMutableMapInt32Message().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMapInt32Message() { bitField0_ |= 0x00000001; return internalGetMutableMapInt32Message().ensureMessageMap(); } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ public Builder putMapInt32Message( int key, com.google.protobuf.UnittestLite.TestAllTypesLite value) { if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMapInt32Message().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000001; return this; } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ public Builder putAllMapInt32Message( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableMapInt32Message().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000001; return this; } /** * map<int32, .proto2_unittest.TestAllTypesLite> map_int32_message = 1; */ public com.google.protobuf.UnittestLite.TestAllTypesLite.Builder putMapInt32MessageBuilderIfAbsent( int key) { java.util.Map builderMap = internalGetMutableMapInt32Message().ensureBuilderMap(); com.google.protobuf.UnittestLite.TestAllTypesLiteOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.protobuf.UnittestLite.TestAllTypesLite.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.google.protobuf.UnittestLite.TestAllTypesLite) { entry = ((com.google.protobuf.UnittestLite.TestAllTypesLite) entry).toBuilder(); builderMap.put(key, entry); } return (com.google.protobuf.UnittestLite.TestAllTypesLite.Builder) entry; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestMessageMapLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestMessageMapLite) private static final proto2_unittest.MapLiteUnittest.TestMessageMapLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto2_unittest.MapLiteUnittest.TestMessageMapLite(); } public static proto2_unittest.MapLiteUnittest.TestMessageMapLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestMessageMapLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestMessageMapLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TestRequiredLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.TestRequiredLite) com.google.protobuf.MessageOrBuilder { /** * required int32 a = 1; * @return Whether the a field is set. */ boolean hasA(); /** * required int32 a = 1; * @return The a. */ int getA(); /** * required int32 b = 2; * @return Whether the b field is set. */ boolean hasB(); /** * required int32 b = 2; * @return The b. */ int getB(); /** * required int32 c = 3; * @return Whether the c field is set. */ boolean hasC(); /** * required int32 c = 3; * @return The c. */ int getC(); } /** * Protobuf type {@code proto2_unittest.TestRequiredLite} */ public static final class TestRequiredLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.TestRequiredLite) TestRequiredLiteOrBuilder { private static final long serialVersionUID = 0L; // Use TestRequiredLite.newBuilder() to construct. private TestRequiredLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TestRequiredLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TestRequiredLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestRequiredLite.class, proto2_unittest.MapLiteUnittest.TestRequiredLite.Builder.class); } private int bitField0_; public static final int A_FIELD_NUMBER = 1; private int a_ = 0; /** * required int32 a = 1; * @return Whether the a field is set. */ @java.lang.Override public boolean hasA() { return ((bitField0_ & 0x00000001) != 0); } /** * required int32 a = 1; * @return The a. */ @java.lang.Override public int getA() { return a_; } public static final int B_FIELD_NUMBER = 2; private int b_ = 0; /** * required int32 b = 2; * @return Whether the b field is set. */ @java.lang.Override public boolean hasB() { return ((bitField0_ & 0x00000002) != 0); } /** * required int32 b = 2; * @return The b. */ @java.lang.Override public int getB() { return b_; } public static final int C_FIELD_NUMBER = 3; private int c_ = 0; /** * required int32 c = 3; * @return Whether the c field is set. */ @java.lang.Override public boolean hasC() { return ((bitField0_ & 0x00000004) != 0); } /** * required int32 c = 3; * @return The c. */ @java.lang.Override public int getC() { return c_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasA()) { memoizedIsInitialized = 0; return false; } if (!hasB()) { memoizedIsInitialized = 0; return false; } if (!hasC()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, a_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, b_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, c_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, a_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, b_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, c_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto2_unittest.MapLiteUnittest.TestRequiredLite)) { return super.equals(obj); } proto2_unittest.MapLiteUnittest.TestRequiredLite other = (proto2_unittest.MapLiteUnittest.TestRequiredLite) obj; if (hasA() != other.hasA()) return false; if (hasA()) { if (getA() != other.getA()) return false; } if (hasB() != other.hasB()) return false; if (hasB()) { if (getB() != other.getB()) return false; } if (hasC() != other.hasC()) return false; if (hasC()) { if (getC() != other.getC()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasA()) { hash = (37 * hash) + A_FIELD_NUMBER; hash = (53 * hash) + getA(); } if (hasB()) { hash = (37 * hash) + B_FIELD_NUMBER; hash = (53 * hash) + getB(); } if (hasC()) { hash = (37 * hash) + C_FIELD_NUMBER; hash = (53 * hash) + getC(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(proto2_unittest.MapLiteUnittest.TestRequiredLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.TestRequiredLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.TestRequiredLite) proto2_unittest.MapLiteUnittest.TestRequiredLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.TestRequiredLite.class, proto2_unittest.MapLiteUnittest.TestRequiredLite.Builder.class); } // Construct using proto2_unittest.MapLiteUnittest.TestRequiredLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; a_ = 0; b_ = 0; c_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_TestRequiredLite_descriptor; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredLite getDefaultInstanceForType() { return proto2_unittest.MapLiteUnittest.TestRequiredLite.getDefaultInstance(); } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredLite build() { proto2_unittest.MapLiteUnittest.TestRequiredLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredLite buildPartial() { proto2_unittest.MapLiteUnittest.TestRequiredLite result = new proto2_unittest.MapLiteUnittest.TestRequiredLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(proto2_unittest.MapLiteUnittest.TestRequiredLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.a_ = a_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.b_ = b_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.c_ = c_; to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto2_unittest.MapLiteUnittest.TestRequiredLite) { return mergeFrom((proto2_unittest.MapLiteUnittest.TestRequiredLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto2_unittest.MapLiteUnittest.TestRequiredLite other) { if (other == proto2_unittest.MapLiteUnittest.TestRequiredLite.getDefaultInstance()) return this; if (other.hasA()) { setA(other.getA()); } if (other.hasB()) { setB(other.getB()); } if (other.hasC()) { setC(other.getC()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasA()) { return false; } if (!hasB()) { return false; } if (!hasC()) { return false; } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { a_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { b_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { c_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int a_ ; /** * required int32 a = 1; * @return Whether the a field is set. */ @java.lang.Override public boolean hasA() { return ((bitField0_ & 0x00000001) != 0); } /** * required int32 a = 1; * @return The a. */ @java.lang.Override public int getA() { return a_; } /** * required int32 a = 1; * @param value The a to set. * @return This builder for chaining. */ public Builder setA(int value) { a_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int32 a = 1; * @return This builder for chaining. */ public Builder clearA() { bitField0_ = (bitField0_ & ~0x00000001); a_ = 0; onChanged(); return this; } private int b_ ; /** * required int32 b = 2; * @return Whether the b field is set. */ @java.lang.Override public boolean hasB() { return ((bitField0_ & 0x00000002) != 0); } /** * required int32 b = 2; * @return The b. */ @java.lang.Override public int getB() { return b_; } /** * required int32 b = 2; * @param value The b to set. * @return This builder for chaining. */ public Builder setB(int value) { b_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * required int32 b = 2; * @return This builder for chaining. */ public Builder clearB() { bitField0_ = (bitField0_ & ~0x00000002); b_ = 0; onChanged(); return this; } private int c_ ; /** * required int32 c = 3; * @return Whether the c field is set. */ @java.lang.Override public boolean hasC() { return ((bitField0_ & 0x00000004) != 0); } /** * required int32 c = 3; * @return The c. */ @java.lang.Override public int getC() { return c_; } /** * required int32 c = 3; * @param value The c to set. * @return This builder for chaining. */ public Builder setC(int value) { c_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * required int32 c = 3; * @return This builder for chaining. */ public Builder clearC() { bitField0_ = (bitField0_ & ~0x00000004); c_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.TestRequiredLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.TestRequiredLite) private static final proto2_unittest.MapLiteUnittest.TestRequiredLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto2_unittest.MapLiteUnittest.TestRequiredLite(); } public static proto2_unittest.MapLiteUnittest.TestRequiredLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TestRequiredLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto2_unittest.MapLiteUnittest.TestRequiredLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } public static final int SINGLE_FIELD_NUMBER = 1000; /** * extend .proto2_unittest.TestAllExtensionsLite { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.UnittestLite.TestAllExtensionsLite, proto2_unittest.MapLiteUnittest.TestRequiredLite> single = com.google.protobuf.GeneratedMessage .newMessageScopedGeneratedExtension( proto2_unittest.MapLiteUnittest.TestRequiredLite.getDefaultInstance(), 0, proto2_unittest.MapLiteUnittest.TestRequiredLite.class, proto2_unittest.MapLiteUnittest.TestRequiredLite.getDefaultInstance()); } public interface ForeignMessageArenaLiteOrBuilder extends // @@protoc_insertion_point(interface_extends:proto2_unittest.ForeignMessageArenaLite) com.google.protobuf.MessageOrBuilder { /** * optional int32 c = 1; * @return Whether the c field is set. */ boolean hasC(); /** * optional int32 c = 1; * @return The c. */ int getC(); } /** * Protobuf type {@code proto2_unittest.ForeignMessageArenaLite} */ public static final class ForeignMessageArenaLite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unittest.ForeignMessageArenaLite) ForeignMessageArenaLiteOrBuilder { private static final long serialVersionUID = 0L; // Use ForeignMessageArenaLite.newBuilder() to construct. private ForeignMessageArenaLite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ForeignMessageArenaLite() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ForeignMessageArenaLite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_ForeignMessageArenaLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_ForeignMessageArenaLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.class, proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.Builder.class); } private int bitField0_; public static final int C_FIELD_NUMBER = 1; private int c_ = 0; /** * optional int32 c = 1; * @return Whether the c field is set. */ @java.lang.Override public boolean hasC() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 c = 1; * @return The c. */ @java.lang.Override public int getC() { return c_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, c_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, c_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite)) { return super.equals(obj); } proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite other = (proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite) obj; if (hasC() != other.hasC()) return false; if (hasC()) { if (getC() != other.getC()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasC()) { hash = (37 * hash) + C_FIELD_NUMBER; hash = (53 * hash) + getC(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto2_unittest.ForeignMessageArenaLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto2_unittest.ForeignMessageArenaLite) proto2_unittest.MapLiteUnittest.ForeignMessageArenaLiteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_ForeignMessageArenaLite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_ForeignMessageArenaLite_fieldAccessorTable .ensureFieldAccessorsInitialized( proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.class, proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.Builder.class); } // Construct using proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; c_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto2_unittest.MapLiteUnittest.internal_static_proto2_unittest_ForeignMessageArenaLite_descriptor; } @java.lang.Override public proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite getDefaultInstanceForType() { return proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.getDefaultInstance(); } @java.lang.Override public proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite build() { proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite buildPartial() { proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite result = new proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.c_ = c_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite) { return mergeFrom((proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite other) { if (other == proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite.getDefaultInstance()) return this; if (other.hasC()) { setC(other.getC()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { c_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int c_ ; /** * optional int32 c = 1; * @return Whether the c field is set. */ @java.lang.Override public boolean hasC() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 c = 1; * @return The c. */ @java.lang.Override public int getC() { return c_; } /** * optional int32 c = 1; * @param value The c to set. * @return This builder for chaining. */ public Builder setC(int value) { c_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int32 c = 1; * @return This builder for chaining. */ public Builder clearC() { bitField0_ = (bitField0_ & ~0x00000001); c_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto2_unittest.ForeignMessageArenaLite) } // @@protoc_insertion_point(class_scope:proto2_unittest.ForeignMessageArenaLite) private static final proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite(); } public static proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ForeignMessageArenaLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public proto2_unittest.MapLiteUnittest.ForeignMessageArenaLite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapInt32Int32Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapInt32Int32Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapInt64Int64Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapInt64Int64Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapUint32Uint32Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapUint32Uint32Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapUint64Uint64Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapUint64Uint64Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapSint32Sint32Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapSint32Sint32Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapSint64Sint64Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapSint64Sint64Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapFixed32Fixed32Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapFixed32Fixed32Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapFixed64Fixed64Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapFixed64Fixed64Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapSfixed32Sfixed32Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapSfixed32Sfixed32Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapSfixed64Sfixed64Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapSfixed64Sfixed64Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapInt32FloatEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapInt32FloatEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapInt32DoubleEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapInt32DoubleEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapBoolBoolEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapBoolBoolEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapStringStringEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapStringStringEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapInt32BytesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapInt32BytesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapInt32EnumEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapInt32EnumEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_MapInt32ForeignMessageEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_MapInt32ForeignMessageEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMapLite_TeboringEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMapLite_TeboringEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapInt32Int32Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapInt32Int32Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapInt64Int64Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapInt64Int64Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapUint32Uint32Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapUint32Uint32Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapUint64Uint64Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapUint64Uint64Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapSint32Sint32Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapSint32Sint32Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapSint64Sint64Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapSint64Sint64Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapFixed32Fixed32Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapFixed32Fixed32Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapFixed64Fixed64Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapFixed64Fixed64Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapSfixed32Sfixed32Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapSfixed32Sfixed32Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapSfixed64Sfixed64Entry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapSfixed64Sfixed64Entry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapInt32FloatEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapInt32FloatEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapInt32DoubleEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapInt32DoubleEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapBoolBoolEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapBoolBoolEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapStringStringEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapStringStringEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapInt32BytesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapInt32BytesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapInt32EnumEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapInt32EnumEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestArenaMapLite_MapInt32ForeignMessageEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestArenaMapLite_MapInt32ForeignMessageEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestRequiredMessageMapLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestRequiredMessageMapLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestRequiredMessageMapLite_MapFieldEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestRequiredMessageMapLite_MapFieldEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestEnumMapLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestEnumMapLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestEnumMapLite_KnownMapFieldEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestEnumMapLite_KnownMapFieldEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestEnumMapLite_UnknownMapFieldEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestEnumMapLite_UnknownMapFieldEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestEnumMapPlusExtraLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestEnumMapPlusExtraLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestEnumMapPlusExtraLite_KnownMapFieldEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestEnumMapPlusExtraLite_KnownMapFieldEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestEnumMapPlusExtraLite_UnknownMapFieldEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestEnumMapPlusExtraLite_UnknownMapFieldEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMessageMapLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMessageMapLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestMessageMapLite_MapInt32MessageEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestMessageMapLite_MapInt32MessageEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_TestRequiredLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_TestRequiredLite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto2_unittest_ForeignMessageArenaLite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto2_unittest_ForeignMessageArenaLite_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\'google/protobuf/map_lite_unittest.prot" + "o\022\017proto2_unittest\032#google/protobuf/unit" + "test_lite.proto\"\257\023\n\013TestMapLite\022H\n\017map_i" + "nt32_int32\030\001 \003(\0132/.proto2_unittest.TestM" + "apLite.MapInt32Int32Entry\022H\n\017map_int64_i" + "nt64\030\002 \003(\0132/.proto2_unittest.TestMapLite" + ".MapInt64Int64Entry\022L\n\021map_uint32_uint32" + "\030\003 \003(\01321.proto2_unittest.TestMapLite.Map" + "Uint32Uint32Entry\022L\n\021map_uint64_uint64\030\004" + " \003(\01321.proto2_unittest.TestMapLite.MapUi" + "nt64Uint64Entry\022L\n\021map_sint32_sint32\030\005 \003" + "(\01321.proto2_unittest.TestMapLite.MapSint" + "32Sint32Entry\022L\n\021map_sint64_sint64\030\006 \003(\013" + "21.proto2_unittest.TestMapLite.MapSint64" + "Sint64Entry\022P\n\023map_fixed32_fixed32\030\007 \003(\013" + "23.proto2_unittest.TestMapLite.MapFixed3" + "2Fixed32Entry\022P\n\023map_fixed64_fixed64\030\010 \003" + "(\01323.proto2_unittest.TestMapLite.MapFixe" + "d64Fixed64Entry\022T\n\025map_sfixed32_sfixed32" + "\030\t \003(\01325.proto2_unittest.TestMapLite.Map" + "Sfixed32Sfixed32Entry\022T\n\025map_sfixed64_sf" + "ixed64\030\n \003(\01325.proto2_unittest.TestMapLi" + "te.MapSfixed64Sfixed64Entry\022H\n\017map_int32" + "_float\030\013 \003(\0132/.proto2_unittest.TestMapLi" + "te.MapInt32FloatEntry\022J\n\020map_int32_doubl" + "e\030\014 \003(\01320.proto2_unittest.TestMapLite.Ma" + "pInt32DoubleEntry\022D\n\rmap_bool_bool\030\r \003(\013" + "2-.proto2_unittest.TestMapLite.MapBoolBo" + "olEntry\022L\n\021map_string_string\030\016 \003(\01321.pro" + "to2_unittest.TestMapLite.MapStringString" + "Entry\022H\n\017map_int32_bytes\030\017 \003(\0132/.proto2_" + "unittest.TestMapLite.MapInt32BytesEntry\022" + "F\n\016map_int32_enum\030\020 \003(\0132..proto2_unittes" + "t.TestMapLite.MapInt32EnumEntry\022[\n\031map_i" + "nt32_foreign_message\030\021 \003(\01328.proto2_unit" + "test.TestMapLite.MapInt32ForeignMessageE" + "ntry\022<\n\010teboring\030\022 \003(\0132*.proto2_unittest" + ".TestMapLite.TeboringEntry\0324\n\022MapInt32In" + "t32Entry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\005:\0028\001" + "\0324\n\022MapInt64Int64Entry\022\013\n\003key\030\001 \001(\003\022\r\n\005v" + "alue\030\002 \001(\003:\0028\001\0326\n\024MapUint32Uint32Entry\022\013" + "\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001\0326\n\024MapUin" + "t64Uint64Entry\022\013\n\003key\030\001 \001(\004\022\r\n\005value\030\002 \001" + "(\004:\0028\001\0326\n\024MapSint32Sint32Entry\022\013\n\003key\030\001 " + "\001(\021\022\r\n\005value\030\002 \001(\021:\0028\001\0326\n\024MapSint64Sint6" + "4Entry\022\013\n\003key\030\001 \001(\022\022\r\n\005value\030\002 \001(\022:\0028\001\0328" + "\n\026MapFixed32Fixed32Entry\022\013\n\003key\030\001 \001(\007\022\r\n" + "\005value\030\002 \001(\007:\0028\001\0328\n\026MapFixed64Fixed64Ent" + "ry\022\013\n\003key\030\001 \001(\006\022\r\n\005value\030\002 \001(\006:\0028\001\032:\n\030Ma" + "pSfixed32Sfixed32Entry\022\013\n\003key\030\001 \001(\017\022\r\n\005v" + "alue\030\002 \001(\017:\0028\001\032:\n\030MapSfixed64Sfixed64Ent" + "ry\022\013\n\003key\030\001 \001(\020\022\r\n\005value\030\002 \001(\020:\0028\001\0324\n\022Ma" + "pInt32FloatEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002" + " \001(\002:\0028\001\0325\n\023MapInt32DoubleEntry\022\013\n\003key\030\001" + " \001(\005\022\r\n\005value\030\002 \001(\001:\0028\001\0322\n\020MapBoolBoolEn" + "try\022\013\n\003key\030\001 \001(\010\022\r\n\005value\030\002 \001(\010:\0028\001\0326\n\024M" + "apStringStringEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + "e\030\002 \001(\t:\0028\001\0324\n\022MapInt32BytesEntry\022\013\n\003key" + "\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:\0028\001\032Q\n\021MapInt32Enu" + "mEntry\022\013\n\003key\030\001 \001(\005\022+\n\005value\030\002 \001(\0162\034.pro" + "to2_unittest.MapEnumLite:\0028\001\032b\n\033MapInt32" + "ForeignMessageEntry\022\013\n\003key\030\001 \001(\005\0222\n\005valu" + "e\030\002 \001(\0132#.proto2_unittest.ForeignMessage" + "Lite:\0028\001\032/\n\rTeboringEntry\022\013\n\003key\030\001 \001(\005\022\r" + "\n\005value\030\002 \001(\005:\0028\001\"\237\023\n\020TestArenaMapLite\022M" + "\n\017map_int32_int32\030\001 \003(\01324.proto2_unittes" + "t.TestArenaMapLite.MapInt32Int32Entry\022M\n" + "\017map_int64_int64\030\002 \003(\01324.proto2_unittest" + ".TestArenaMapLite.MapInt64Int64Entry\022Q\n\021" + "map_uint32_uint32\030\003 \003(\01326.proto2_unittes" + "t.TestArenaMapLite.MapUint32Uint32Entry\022" + "Q\n\021map_uint64_uint64\030\004 \003(\01326.proto2_unit" + "test.TestArenaMapLite.MapUint64Uint64Ent" + "ry\022Q\n\021map_sint32_sint32\030\005 \003(\01326.proto2_u" + "nittest.TestArenaMapLite.MapSint32Sint32" + "Entry\022Q\n\021map_sint64_sint64\030\006 \003(\01326.proto" + "2_unittest.TestArenaMapLite.MapSint64Sin" + "t64Entry\022U\n\023map_fixed32_fixed32\030\007 \003(\01328." + "proto2_unittest.TestArenaMapLite.MapFixe" + "d32Fixed32Entry\022U\n\023map_fixed64_fixed64\030\010" + " \003(\01328.proto2_unittest.TestArenaMapLite." + "MapFixed64Fixed64Entry\022Y\n\025map_sfixed32_s" + "fixed32\030\t \003(\0132:.proto2_unittest.TestAren" + "aMapLite.MapSfixed32Sfixed32Entry\022Y\n\025map" + "_sfixed64_sfixed64\030\n \003(\0132:.proto2_unitte" + "st.TestArenaMapLite.MapSfixed64Sfixed64E" + "ntry\022M\n\017map_int32_float\030\013 \003(\01324.proto2_u" + "nittest.TestArenaMapLite.MapInt32FloatEn" + "try\022O\n\020map_int32_double\030\014 \003(\01325.proto2_u" + "nittest.TestArenaMapLite.MapInt32DoubleE" + "ntry\022I\n\rmap_bool_bool\030\r \003(\01322.proto2_uni" + "ttest.TestArenaMapLite.MapBoolBoolEntry\022" + "Q\n\021map_string_string\030\016 \003(\01326.proto2_unit" + "test.TestArenaMapLite.MapStringStringEnt" + "ry\022M\n\017map_int32_bytes\030\017 \003(\01324.proto2_uni" + "ttest.TestArenaMapLite.MapInt32BytesEntr" + "y\022K\n\016map_int32_enum\030\020 \003(\01323.proto2_unitt" + "est.TestArenaMapLite.MapInt32EnumEntry\022`" + "\n\031map_int32_foreign_message\030\021 \003(\0132=.prot" + "o2_unittest.TestArenaMapLite.MapInt32For" + "eignMessageEntry\0324\n\022MapInt32Int32Entry\022\013" + "\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\005:\0028\001\0324\n\022MapInt" + "64Int64Entry\022\013\n\003key\030\001 \001(\003\022\r\n\005value\030\002 \001(\003" + ":\0028\001\0326\n\024MapUint32Uint32Entry\022\013\n\003key\030\001 \001(" + "\r\022\r\n\005value\030\002 \001(\r:\0028\001\0326\n\024MapUint64Uint64E" + "ntry\022\013\n\003key\030\001 \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\0326\n\024" + "MapSint32Sint32Entry\022\013\n\003key\030\001 \001(\021\022\r\n\005val" + "ue\030\002 \001(\021:\0028\001\0326\n\024MapSint64Sint64Entry\022\013\n\003" + "key\030\001 \001(\022\022\r\n\005value\030\002 \001(\022:\0028\001\0328\n\026MapFixed" + "32Fixed32Entry\022\013\n\003key\030\001 \001(\007\022\r\n\005value\030\002 \001" + "(\007:\0028\001\0328\n\026MapFixed64Fixed64Entry\022\013\n\003key\030" + "\001 \001(\006\022\r\n\005value\030\002 \001(\006:\0028\001\032:\n\030MapSfixed32S" + "fixed32Entry\022\013\n\003key\030\001 \001(\017\022\r\n\005value\030\002 \001(\017" + ":\0028\001\032:\n\030MapSfixed64Sfixed64Entry\022\013\n\003key\030" + "\001 \001(\020\022\r\n\005value\030\002 \001(\020:\0028\001\0324\n\022MapInt32Floa" + "tEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\002:\0028\001\0325" + "\n\023MapInt32DoubleEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005va" + "lue\030\002 \001(\001:\0028\001\0322\n\020MapBoolBoolEntry\022\013\n\003key" + "\030\001 \001(\010\022\r\n\005value\030\002 \001(\010:\0028\001\0326\n\024MapStringSt" + "ringEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + "\001\0324\n\022MapInt32BytesEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005" + "value\030\002 \001(\014:\0028\001\032Q\n\021MapInt32EnumEntry\022\013\n\003" + "key\030\001 \001(\005\022+\n\005value\030\002 \001(\0162\034.proto2_unitte" + "st.MapEnumLite:\0028\001\032g\n\033MapInt32ForeignMes" + "sageEntry\022\013\n\003key\030\001 \001(\005\0227\n\005value\030\002 \001(\0132(." + "proto2_unittest.ForeignMessageArenaLite:" + "\0028\001\"\276\001\n\032TestRequiredMessageMapLite\022L\n\tma" + "p_field\030\001 \003(\01329.proto2_unittest.TestRequ" + "iredMessageMapLite.MapFieldEntry\032R\n\rMapF" + "ieldEntry\022\013\n\003key\030\001 \001(\005\0220\n\005value\030\002 \001(\0132!." + "proto2_unittest.TestRequiredLite:\0028\001\"\347\002\n" + "\017TestEnumMapLite\022L\n\017known_map_field\030e \003(" + "\01323.proto2_unittest.TestEnumMapLite.Know" + "nMapFieldEntry\022P\n\021unknown_map_field\030f \003(" + "\01325.proto2_unittest.TestEnumMapLite.Unkn" + "ownMapFieldEntry\032X\n\022KnownMapFieldEntry\022\013" + "\n\003key\030\001 \001(\005\0221\n\005value\030\002 \001(\0162\".proto2_unit" + "test.Proto2MapEnumLite:\0028\001\032Z\n\024UnknownMap" + "FieldEntry\022\013\n\003key\030\001 \001(\005\0221\n\005value\030\002 \001(\0162\"" + ".proto2_unittest.Proto2MapEnumLite:\0028\001\"\224" + "\003\n\030TestEnumMapPlusExtraLite\022U\n\017known_map" + "_field\030e \003(\0132<.proto2_unittest.TestEnumM" + "apPlusExtraLite.KnownMapFieldEntry\022Y\n\021un" + "known_map_field\030f \003(\0132>.proto2_unittest." + "TestEnumMapPlusExtraLite.UnknownMapField" + "Entry\032a\n\022KnownMapFieldEntry\022\013\n\003key\030\001 \001(\005" + "\022:\n\005value\030\002 \001(\0162+.proto2_unittest.Proto2" + "MapEnumPlusExtraLite:\0028\001\032c\n\024UnknownMapFi" + "eldEntry\022\013\n\003key\030\001 \001(\005\022:\n\005value\030\002 \001(\0162+.p" + "roto2_unittest.Proto2MapEnumPlusExtraLit" + "e:\0028\001\"\304\001\n\022TestMessageMapLite\022S\n\021map_int3" + "2_message\030\001 \003(\01328.proto2_unittest.TestMe" + "ssageMapLite.MapInt32MessageEntry\032Y\n\024Map" + "Int32MessageEntry\022\013\n\003key\030\001 \001(\005\0220\n\005value\030" + "\002 \001(\0132!.proto2_unittest.TestAllTypesLite" + ":\0028\001\"\217\001\n\020TestRequiredLite\022\t\n\001a\030\001 \002(\005\022\t\n\001" + "b\030\002 \002(\005\022\t\n\001c\030\003 \002(\0052Z\n\006single\022&.proto2_un" + "ittest.TestAllExtensionsLite\030\350\007 \001(\0132!.pr" + "oto2_unittest.TestRequiredLite\"$\n\027Foreig" + "nMessageArenaLite\022\t\n\001c\030\001 \001(\005*m\n\021Proto2Ma" + "pEnumLite\022\034\n\030PROTO2_MAP_ENUM_FOO_LITE\020\000\022" + "\034\n\030PROTO2_MAP_ENUM_BAR_LITE\020\001\022\034\n\030PROTO2_" + "MAP_ENUM_BAZ_LITE\020\002*\236\001\n\032Proto2MapEnumPlu" + "sExtraLite\022\036\n\032E_PROTO2_MAP_ENUM_FOO_LITE" + "\020\000\022\036\n\032E_PROTO2_MAP_ENUM_BAR_LITE\020\001\022\036\n\032E_" + "PROTO2_MAP_ENUM_BAZ_LITE\020\002\022 \n\034E_PROTO2_M" + "AP_ENUM_EXTRA_LITE\020\003*R\n\013MapEnumLite\022\025\n\021M" + "AP_ENUM_FOO_LITE\020\000\022\025\n\021MAP_ENUM_BAR_LITE\020" + "\001\022\025\n\021MAP_ENUM_BAZ_LITE\020\002B\005H\003\370\001\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.UnittestLite.getDescriptor(), }); internal_static_proto2_unittest_TestMapLite_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_proto2_unittest_TestMapLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_descriptor, new java.lang.String[] { "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapInt32Bytes", "MapInt32Enum", "MapInt32ForeignMessage", "Teboring", }); internal_static_proto2_unittest_TestMapLite_MapInt32Int32Entry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(0); internal_static_proto2_unittest_TestMapLite_MapInt32Int32Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapInt32Int32Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapInt64Int64Entry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(1); internal_static_proto2_unittest_TestMapLite_MapInt64Int64Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapInt64Int64Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapUint32Uint32Entry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(2); internal_static_proto2_unittest_TestMapLite_MapUint32Uint32Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapUint32Uint32Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapUint64Uint64Entry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(3); internal_static_proto2_unittest_TestMapLite_MapUint64Uint64Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapUint64Uint64Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapSint32Sint32Entry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(4); internal_static_proto2_unittest_TestMapLite_MapSint32Sint32Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapSint32Sint32Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapSint64Sint64Entry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(5); internal_static_proto2_unittest_TestMapLite_MapSint64Sint64Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapSint64Sint64Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapFixed32Fixed32Entry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(6); internal_static_proto2_unittest_TestMapLite_MapFixed32Fixed32Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapFixed32Fixed32Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapFixed64Fixed64Entry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(7); internal_static_proto2_unittest_TestMapLite_MapFixed64Fixed64Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapFixed64Fixed64Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapSfixed32Sfixed32Entry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(8); internal_static_proto2_unittest_TestMapLite_MapSfixed32Sfixed32Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapSfixed32Sfixed32Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapSfixed64Sfixed64Entry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(9); internal_static_proto2_unittest_TestMapLite_MapSfixed64Sfixed64Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapSfixed64Sfixed64Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapInt32FloatEntry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(10); internal_static_proto2_unittest_TestMapLite_MapInt32FloatEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapInt32FloatEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapInt32DoubleEntry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(11); internal_static_proto2_unittest_TestMapLite_MapInt32DoubleEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapInt32DoubleEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapBoolBoolEntry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(12); internal_static_proto2_unittest_TestMapLite_MapBoolBoolEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapBoolBoolEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapStringStringEntry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(13); internal_static_proto2_unittest_TestMapLite_MapStringStringEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapStringStringEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapInt32BytesEntry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(14); internal_static_proto2_unittest_TestMapLite_MapInt32BytesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapInt32BytesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapInt32EnumEntry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(15); internal_static_proto2_unittest_TestMapLite_MapInt32EnumEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapInt32EnumEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_MapInt32ForeignMessageEntry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(16); internal_static_proto2_unittest_TestMapLite_MapInt32ForeignMessageEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_MapInt32ForeignMessageEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMapLite_TeboringEntry_descriptor = internal_static_proto2_unittest_TestMapLite_descriptor.getNestedTypes().get(17); internal_static_proto2_unittest_TestMapLite_TeboringEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMapLite_TeboringEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_proto2_unittest_TestArenaMapLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_descriptor, new java.lang.String[] { "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapInt32Bytes", "MapInt32Enum", "MapInt32ForeignMessage", }); internal_static_proto2_unittest_TestArenaMapLite_MapInt32Int32Entry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(0); internal_static_proto2_unittest_TestArenaMapLite_MapInt32Int32Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapInt32Int32Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapInt64Int64Entry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(1); internal_static_proto2_unittest_TestArenaMapLite_MapInt64Int64Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapInt64Int64Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapUint32Uint32Entry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(2); internal_static_proto2_unittest_TestArenaMapLite_MapUint32Uint32Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapUint32Uint32Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapUint64Uint64Entry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(3); internal_static_proto2_unittest_TestArenaMapLite_MapUint64Uint64Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapUint64Uint64Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapSint32Sint32Entry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(4); internal_static_proto2_unittest_TestArenaMapLite_MapSint32Sint32Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapSint32Sint32Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapSint64Sint64Entry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(5); internal_static_proto2_unittest_TestArenaMapLite_MapSint64Sint64Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapSint64Sint64Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapFixed32Fixed32Entry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(6); internal_static_proto2_unittest_TestArenaMapLite_MapFixed32Fixed32Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapFixed32Fixed32Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapFixed64Fixed64Entry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(7); internal_static_proto2_unittest_TestArenaMapLite_MapFixed64Fixed64Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapFixed64Fixed64Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapSfixed32Sfixed32Entry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(8); internal_static_proto2_unittest_TestArenaMapLite_MapSfixed32Sfixed32Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapSfixed32Sfixed32Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapSfixed64Sfixed64Entry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(9); internal_static_proto2_unittest_TestArenaMapLite_MapSfixed64Sfixed64Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapSfixed64Sfixed64Entry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapInt32FloatEntry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(10); internal_static_proto2_unittest_TestArenaMapLite_MapInt32FloatEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapInt32FloatEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapInt32DoubleEntry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(11); internal_static_proto2_unittest_TestArenaMapLite_MapInt32DoubleEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapInt32DoubleEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapBoolBoolEntry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(12); internal_static_proto2_unittest_TestArenaMapLite_MapBoolBoolEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapBoolBoolEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapStringStringEntry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(13); internal_static_proto2_unittest_TestArenaMapLite_MapStringStringEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapStringStringEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapInt32BytesEntry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(14); internal_static_proto2_unittest_TestArenaMapLite_MapInt32BytesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapInt32BytesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapInt32EnumEntry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(15); internal_static_proto2_unittest_TestArenaMapLite_MapInt32EnumEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapInt32EnumEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestArenaMapLite_MapInt32ForeignMessageEntry_descriptor = internal_static_proto2_unittest_TestArenaMapLite_descriptor.getNestedTypes().get(16); internal_static_proto2_unittest_TestArenaMapLite_MapInt32ForeignMessageEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestArenaMapLite_MapInt32ForeignMessageEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestRequiredMessageMapLite_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_proto2_unittest_TestRequiredMessageMapLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestRequiredMessageMapLite_descriptor, new java.lang.String[] { "MapField", }); internal_static_proto2_unittest_TestRequiredMessageMapLite_MapFieldEntry_descriptor = internal_static_proto2_unittest_TestRequiredMessageMapLite_descriptor.getNestedTypes().get(0); internal_static_proto2_unittest_TestRequiredMessageMapLite_MapFieldEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestRequiredMessageMapLite_MapFieldEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestEnumMapLite_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_proto2_unittest_TestEnumMapLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestEnumMapLite_descriptor, new java.lang.String[] { "KnownMapField", "UnknownMapField", }); internal_static_proto2_unittest_TestEnumMapLite_KnownMapFieldEntry_descriptor = internal_static_proto2_unittest_TestEnumMapLite_descriptor.getNestedTypes().get(0); internal_static_proto2_unittest_TestEnumMapLite_KnownMapFieldEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestEnumMapLite_KnownMapFieldEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestEnumMapLite_UnknownMapFieldEntry_descriptor = internal_static_proto2_unittest_TestEnumMapLite_descriptor.getNestedTypes().get(1); internal_static_proto2_unittest_TestEnumMapLite_UnknownMapFieldEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestEnumMapLite_UnknownMapFieldEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestEnumMapPlusExtraLite_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_proto2_unittest_TestEnumMapPlusExtraLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestEnumMapPlusExtraLite_descriptor, new java.lang.String[] { "KnownMapField", "UnknownMapField", }); internal_static_proto2_unittest_TestEnumMapPlusExtraLite_KnownMapFieldEntry_descriptor = internal_static_proto2_unittest_TestEnumMapPlusExtraLite_descriptor.getNestedTypes().get(0); internal_static_proto2_unittest_TestEnumMapPlusExtraLite_KnownMapFieldEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestEnumMapPlusExtraLite_KnownMapFieldEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestEnumMapPlusExtraLite_UnknownMapFieldEntry_descriptor = internal_static_proto2_unittest_TestEnumMapPlusExtraLite_descriptor.getNestedTypes().get(1); internal_static_proto2_unittest_TestEnumMapPlusExtraLite_UnknownMapFieldEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestEnumMapPlusExtraLite_UnknownMapFieldEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestMessageMapLite_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_proto2_unittest_TestMessageMapLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMessageMapLite_descriptor, new java.lang.String[] { "MapInt32Message", }); internal_static_proto2_unittest_TestMessageMapLite_MapInt32MessageEntry_descriptor = internal_static_proto2_unittest_TestMessageMapLite_descriptor.getNestedTypes().get(0); internal_static_proto2_unittest_TestMessageMapLite_MapInt32MessageEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestMessageMapLite_MapInt32MessageEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_proto2_unittest_TestRequiredLite_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_proto2_unittest_TestRequiredLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_TestRequiredLite_descriptor, new java.lang.String[] { "A", "B", "C", }); internal_static_proto2_unittest_ForeignMessageArenaLite_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_proto2_unittest_ForeignMessageArenaLite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_proto2_unittest_ForeignMessageArenaLite_descriptor, new java.lang.String[] { "C", }); com.google.protobuf.UnittestLite.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) } PK !&oŸ22META-INF/MANIFEST.MFPK !9.¢JÊ\Ê\+dcom/google/protobuf/UnittestImportLite.javaPK !áI%×ôQôQ1w]com/google/protobuf/UnittestImportPublicLite.javaPK !„£>¤>¤%º¯com/google/protobuf/UnittestLite.javaPK !àÆu†Hõ Hõ $;Tproto2_unittest/MapLiteUnittest.javaPKŸÅI%