// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/unittest_import_lite.proto package com.google.protobuf; public final class UnittestImportLite { private UnittestImportLite() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } /** * Protobuf enum {@code protobuf_unittest_import.ImportEnumLite} */ public enum ImportEnumLite implements com.google.protobuf.Internal.EnumLite { /** * <code>IMPORT_LITE_FOO = 7;</code> */ IMPORT_LITE_FOO(0, 7), /** * <code>IMPORT_LITE_BAR = 8;</code> */ IMPORT_LITE_BAR(1, 8), /** * <code>IMPORT_LITE_BAZ = 9;</code> */ IMPORT_LITE_BAZ(2, 9), ; /** * <code>IMPORT_LITE_FOO = 7;</code> */ public static final int IMPORT_LITE_FOO_VALUE = 7; /** * <code>IMPORT_LITE_BAR = 8;</code> */ public static final int IMPORT_LITE_BAR_VALUE = 8; /** * <code>IMPORT_LITE_BAZ = 9;</code> */ public static final int IMPORT_LITE_BAZ_VALUE = 9; public final int getNumber() { return value; } public static ImportEnumLite valueOf(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<ImportEnumLite> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<ImportEnumLite> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ImportEnumLite>() { public ImportEnumLite findValueByNumber(int number) { return ImportEnumLite.valueOf(number); } }; private final int value; private ImportEnumLite(int index, 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.MessageLiteOrBuilder { /** * <code>optional int32 d = 1;</code> */ boolean hasD(); /** * <code>optional int32 d = 1;</code> */ int getD(); } /** * Protobuf type {@code protobuf_unittest_import.ImportMessageLite} */ public static final class ImportMessageLite extends com.google.protobuf.GeneratedMessageLite implements // @@protoc_insertion_point(message_implements:protobuf_unittest_import.ImportMessageLite) ImportMessageLiteOrBuilder { // Use ImportMessageLite.newBuilder() to construct. private ImportMessageLite(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ImportMessageLite(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} private static final ImportMessageLite defaultInstance; public static ImportMessageLite getDefaultInstance() { return defaultInstance; } public ImportMessageLite getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.ByteString unknownFields; private ImportMessageLite( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.ByteString.Output unknownFieldsOutput = com.google.protobuf.ByteString.newOutput(); com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = com.google.protobuf.CodedOutputStream.newInstance( unknownFieldsOutput); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFieldsCodedOutput, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; d_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { try { unknownFieldsCodedOutput.flush(); } catch (java.io.IOException e) { // Should not happen } finally { unknownFields = unknownFieldsOutput.toByteString(); } makeExtensionsImmutable(); } } public static com.google.protobuf.Parser<ImportMessageLite> PARSER = new com.google.protobuf.AbstractParser<ImportMessageLite>() { public ImportMessageLite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ImportMessageLite(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ImportMessageLite> getParserForType() { return PARSER; } private int bitField0_; public static final int D_FIELD_NUMBER = 1; private int d_; /** * <code>optional int32 d = 1;</code> */ public boolean hasD() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 d = 1;</code> */ public int getD() { return d_; } private void initFields() { d_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, d_); } output.writeRawBytes(unknownFields); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, d_); } size += unknownFields.size(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static 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 PARSER.parseFrom(input); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.UnittestImportLite.ImportMessageLite parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.UnittestImportLite.ImportMessageLite prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code protobuf_unittest_import.ImportMessageLite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.google.protobuf.UnittestImportLite.ImportMessageLite, Builder> implements // @@protoc_insertion_point(builder_implements:protobuf_unittest_import.ImportMessageLite) com.google.protobuf.UnittestImportLite.ImportMessageLiteOrBuilder { // Construct using com.google.protobuf.UnittestImportLite.ImportMessageLite.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); d_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.UnittestImportLite.ImportMessageLite getDefaultInstanceForType() { return com.google.protobuf.UnittestImportLite.ImportMessageLite.getDefaultInstance(); } public com.google.protobuf.UnittestImportLite.ImportMessageLite build() { com.google.protobuf.UnittestImportLite.ImportMessageLite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.UnittestImportLite.ImportMessageLite buildPartial() { com.google.protobuf.UnittestImportLite.ImportMessageLite result = new com.google.protobuf.UnittestImportLite.ImportMessageLite(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.d_ = d_; result.bitField0_ = to_bitField0_; return result; } 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()); } setUnknownFields( getUnknownFields().concat(other.unknownFields)); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnittestImportLite.ImportMessageLite parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.UnittestImportLite.ImportMessageLite) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int d_ ; /** * <code>optional int32 d = 1;</code> */ public boolean hasD() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 d = 1;</code> */ public int getD() { return d_; } /** * <code>optional int32 d = 1;</code> */ public Builder setD(int value) { bitField0_ |= 0x00000001; d_ = value; return this; } /** * <code>optional int32 d = 1;</code> */ public Builder clearD() { bitField0_ = (bitField0_ & ~0x00000001); d_ = 0; return this; } // @@protoc_insertion_point(builder_scope:protobuf_unittest_import.ImportMessageLite) } static { defaultInstance = new ImportMessageLite(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protobuf_unittest_import.ImportMessageLite) } static { } // @@protoc_insertion_point(outer_class_scope) }