From 60c52cde97f3bae81fde6763cc59587c1b0aaeea Mon Sep 17 00:00:00 2001 From: johnsonlee Date: Mon, 29 Apr 2019 12:11:48 +0800 Subject: [PATCH] Fix CI error: Cannot run program "protoc": error=2, No such file or directory --- README.md | 2 +- booster-aapt2/build.gradle | 25 - .../aapt/pb/internal/ResourcesInternal.java | 1905 + .../android/aapt/ConfigurationOuterClass.java | 4994 +++ .../main/java/com/android/aapt/Resources.java | 31125 ++++++++++++++++ .../src/main/proto/Configuration.proto | 207 - booster-aapt2/src/main/proto/Resources.proto | 534 - .../src/main/proto/ResourcesInternal.proto | 53 - 8 files changed, 38025 insertions(+), 820 deletions(-) create mode 100644 booster-aapt2/src/main/java/android/aapt/pb/internal/ResourcesInternal.java create mode 100644 booster-aapt2/src/main/java/com/android/aapt/ConfigurationOuterClass.java create mode 100644 booster-aapt2/src/main/java/com/android/aapt/Resources.java delete mode 100644 booster-aapt2/src/main/proto/Configuration.proto delete mode 100644 booster-aapt2/src/main/proto/Resources.proto delete mode 100644 booster-aapt2/src/main/proto/ResourcesInternal.proto diff --git a/README.md b/README.md index b5833d791..f3866ebc6 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ The plugin can be added to the buildscript classpath and applied: ```groovy buildscript { - ext.booster_version = '0.1.3' + ext.booster_version = '0.1.4' repositories { google() mavenCentral() diff --git a/booster-aapt2/build.gradle b/booster-aapt2/build.gradle index a7b385a22..d7ba3461d 100644 --- a/booster-aapt2/build.gradle +++ b/booster-aapt2/build.gradle @@ -1,29 +1,4 @@ -buildscript { - repositories { - google() - mavenCentral() - jcenter() - } - dependencies { - classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8' - } -} - apply from: '../gradle/booster.gradle' -apply plugin: 'com.google.protobuf' - -sourceSets { - main { - proto { - srcDirs += ['src/main/proto'] - } - } - test { - proto { - srcDirs += ['src/main/proto'] - } - } -} dependencies { compile 'com.google.protobuf:protobuf-java:3.7.0-rc1' diff --git a/booster-aapt2/src/main/java/android/aapt/pb/internal/ResourcesInternal.java b/booster-aapt2/src/main/java/android/aapt/pb/internal/ResourcesInternal.java new file mode 100644 index 000000000..8385e1b41 --- /dev/null +++ b/booster-aapt2/src/main/java/android/aapt/pb/internal/ResourcesInternal.java @@ -0,0 +1,1905 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ResourcesInternal.proto + +package android.aapt.pb.internal; + +public final class ResourcesInternal { + private ResourcesInternal() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface CompiledFileOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.internal.CompiledFile) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * The name of the resource (in the form package:type/name).
+     * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+     * The name of the resource (in the form package:type/name).
+     * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); + + /** + *
+     * The configuration for which the resource is defined.
+     * 
+ * + * .aapt.pb.Configuration config = 2; + */ + boolean hasConfig(); + /** + *
+     * The configuration for which the resource is defined.
+     * 
+ * + * .aapt.pb.Configuration config = 2; + */ + com.android.aapt.ConfigurationOuterClass.Configuration getConfig(); + + /** + *
+     * The type of the file.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + int getTypeValue(); + /** + *
+     * The type of the file.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + com.android.aapt.Resources.FileReference.Type getType(); + + /** + *
+     * The filesystem path to where the source file originated.
+     * Mainly used to display helpful error messages.
+     * 
+ * + * string source_path = 4; + */ + java.lang.String getSourcePath(); + /** + *
+     * The filesystem path to where the source file originated.
+     * Mainly used to display helpful error messages.
+     * 
+ * + * string source_path = 4; + */ + com.google.protobuf.ByteString + getSourcePathBytes(); + + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + java.util.List + getExportedSymbolList(); + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol getExportedSymbol(int index); + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + int getExportedSymbolCount(); + } + /** + *
+   * The top level message representing an external resource file (layout XML, PNG, etc).
+   * This is used to represent a compiled file before it is linked. Only useful to aapt2.
+   * 
+ * + * Protobuf type {@code aapt.pb.internal.CompiledFile} + */ + public static final class CompiledFile extends + com.google.protobuf.GeneratedMessageLite< + CompiledFile, CompiledFile.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.internal.CompiledFile) + CompiledFileOrBuilder { + private CompiledFile() { + resourceName_ = ""; + sourcePath_ = ""; + exportedSymbol_ = emptyProtobufList(); + } + public interface SymbolOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.internal.CompiledFile.Symbol) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+       * The name of the symbol (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+       * The name of the symbol (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); + + /** + *
+       * The position in the file at which this symbol is defined. For debug use.
+       * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + boolean hasSource(); + /** + *
+       * The position in the file at which this symbol is defined. For debug use.
+       * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + com.android.aapt.Resources.SourcePosition getSource(); + } + /** + * Protobuf type {@code aapt.pb.internal.CompiledFile.Symbol} + */ + public static final class Symbol extends + com.google.protobuf.GeneratedMessageLite< + Symbol, Symbol.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.internal.CompiledFile.Symbol) + SymbolOrBuilder { + private Symbol() { + resourceName_ = ""; + } + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private java.lang.String resourceName_; + /** + *
+       * The name of the symbol (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + @java.lang.Override + public java.lang.String getResourceName() { + return resourceName_; + } + /** + *
+       * The name of the symbol (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(resourceName_); + } + /** + *
+       * The name of the symbol (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + private void setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + } + /** + *
+       * The name of the symbol (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + private void clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + } + /** + *
+       * The name of the symbol (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + private void setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value.toStringUtf8(); + } + + public static final int SOURCE_FIELD_NUMBER = 2; + private com.android.aapt.Resources.SourcePosition source_; + /** + *
+       * The position in the file at which this symbol is defined. For debug use.
+       * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + @java.lang.Override + public boolean hasSource() { + return source_ != null; + } + /** + *
+       * The position in the file at which this symbol is defined. For debug use.
+       * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.SourcePosition getSource() { + return source_ == null ? com.android.aapt.Resources.SourcePosition.getDefaultInstance() : source_; + } + /** + *
+       * The position in the file at which this symbol is defined. For debug use.
+       * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + private void setSource(com.android.aapt.Resources.SourcePosition value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + + } + /** + *
+       * The position in the file at which this symbol is defined. For debug use.
+       * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + private void setSource( + com.android.aapt.Resources.SourcePosition.Builder builderForValue) { + source_ = builderForValue.build(); + + } + /** + *
+       * The position in the file at which this symbol is defined. For debug use.
+       * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeSource(com.android.aapt.Resources.SourcePosition value) { + if (value == null) { + throw new NullPointerException(); + } + if (source_ != null && + source_ != com.android.aapt.Resources.SourcePosition.getDefaultInstance()) { + source_ = + com.android.aapt.Resources.SourcePosition.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + + } + /** + *
+       * The position in the file at which this symbol is defined. For debug use.
+       * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + private void clearSource() { source_ = null; + + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!resourceName_.isEmpty()) { + output.writeString(1, getResourceName()); + } + if (source_ != null) { + output.writeMessage(2, getSource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!resourceName_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getResourceName()); + } + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSource()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code aapt.pb.internal.CompiledFile.Symbol} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.internal.CompiledFile.Symbol) + android.aapt.pb.internal.ResourcesInternal.CompiledFile.SymbolOrBuilder { + // Construct using android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+         * The name of the symbol (in the form package:type/name).
+         * 
+ * + * string resource_name = 1; + */ + @java.lang.Override + public java.lang.String getResourceName() { + return instance.getResourceName(); + } + /** + *
+         * The name of the symbol (in the form package:type/name).
+         * 
+ * + * string resource_name = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceNameBytes() { + return instance.getResourceNameBytes(); + } + /** + *
+         * The name of the symbol (in the form package:type/name).
+         * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + copyOnWrite(); + instance.setResourceName(value); + return this; + } + /** + *
+         * The name of the symbol (in the form package:type/name).
+         * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + copyOnWrite(); + instance.clearResourceName(); + return this; + } + /** + *
+         * The name of the symbol (in the form package:type/name).
+         * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setResourceNameBytes(value); + return this; + } + + /** + *
+         * The position in the file at which this symbol is defined. For debug use.
+         * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + @java.lang.Override + public boolean hasSource() { + return instance.hasSource(); + } + /** + *
+         * The position in the file at which this symbol is defined. For debug use.
+         * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.SourcePosition getSource() { + return instance.getSource(); + } + /** + *
+         * The position in the file at which this symbol is defined. For debug use.
+         * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + public Builder setSource(com.android.aapt.Resources.SourcePosition value) { + copyOnWrite(); + instance.setSource(value); + return this; + } + /** + *
+         * The position in the file at which this symbol is defined. For debug use.
+         * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + public Builder setSource( + com.android.aapt.Resources.SourcePosition.Builder builderForValue) { + copyOnWrite(); + instance.setSource(builderForValue); + return this; + } + /** + *
+         * The position in the file at which this symbol is defined. For debug use.
+         * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + public Builder mergeSource(com.android.aapt.Resources.SourcePosition value) { + copyOnWrite(); + instance.mergeSource(value); + return this; + } + /** + *
+         * The position in the file at which this symbol is defined. For debug use.
+         * 
+ * + * .aapt.pb.SourcePosition source = 2; + */ + public Builder clearSource() { copyOnWrite(); + instance.clearSource(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.internal.CompiledFile.Symbol) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol other = (android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol) arg1; + resourceName_ = visitor.visitString(!resourceName_.isEmpty(), resourceName_, + !other.resourceName_.isEmpty(), other.resourceName_); + source_ = visitor.visitMessage(source_, other.source_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + case 18: { + com.android.aapt.Resources.SourcePosition.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.android.aapt.Resources.SourcePosition.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.internal.CompiledFile.Symbol) + private static final android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Symbol(); + } + + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + private int bitField0_; + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private java.lang.String resourceName_; + /** + *
+     * The name of the resource (in the form package:type/name).
+     * 
+ * + * string resource_name = 1; + */ + @java.lang.Override + public java.lang.String getResourceName() { + return resourceName_; + } + /** + *
+     * The name of the resource (in the form package:type/name).
+     * 
+ * + * string resource_name = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(resourceName_); + } + /** + *
+     * The name of the resource (in the form package:type/name).
+     * 
+ * + * string resource_name = 1; + */ + private void setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + } + /** + *
+     * The name of the resource (in the form package:type/name).
+     * 
+ * + * string resource_name = 1; + */ + private void clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + } + /** + *
+     * The name of the resource (in the form package:type/name).
+     * 
+ * + * string resource_name = 1; + */ + private void setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value.toStringUtf8(); + } + + public static final int CONFIG_FIELD_NUMBER = 2; + private com.android.aapt.ConfigurationOuterClass.Configuration config_; + /** + *
+     * The configuration for which the resource is defined.
+     * 
+ * + * .aapt.pb.Configuration config = 2; + */ + @java.lang.Override + public boolean hasConfig() { + return config_ != null; + } + /** + *
+     * The configuration for which the resource is defined.
+     * 
+ * + * .aapt.pb.Configuration config = 2; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration getConfig() { + return config_ == null ? com.android.aapt.ConfigurationOuterClass.Configuration.getDefaultInstance() : config_; + } + /** + *
+     * The configuration for which the resource is defined.
+     * 
+ * + * .aapt.pb.Configuration config = 2; + */ + private void setConfig(com.android.aapt.ConfigurationOuterClass.Configuration value) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + + } + /** + *
+     * The configuration for which the resource is defined.
+     * 
+ * + * .aapt.pb.Configuration config = 2; + */ + private void setConfig( + com.android.aapt.ConfigurationOuterClass.Configuration.Builder builderForValue) { + config_ = builderForValue.build(); + + } + /** + *
+     * The configuration for which the resource is defined.
+     * 
+ * + * .aapt.pb.Configuration config = 2; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeConfig(com.android.aapt.ConfigurationOuterClass.Configuration value) { + if (value == null) { + throw new NullPointerException(); + } + if (config_ != null && + config_ != com.android.aapt.ConfigurationOuterClass.Configuration.getDefaultInstance()) { + config_ = + com.android.aapt.ConfigurationOuterClass.Configuration.newBuilder(config_).mergeFrom(value).buildPartial(); + } else { + config_ = value; + } + + } + /** + *
+     * The configuration for which the resource is defined.
+     * 
+ * + * .aapt.pb.Configuration config = 2; + */ + private void clearConfig() { config_ = null; + + } + + public static final int TYPE_FIELD_NUMBER = 3; + private int type_; + /** + *
+     * The type of the file.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + *
+     * The type of the file.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.FileReference.Type getType() { + com.android.aapt.Resources.FileReference.Type result = com.android.aapt.Resources.FileReference.Type.forNumber(type_); + return result == null ? com.android.aapt.Resources.FileReference.Type.UNRECOGNIZED : result; + } + /** + *
+     * The type of the file.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + private void setTypeValue(int value) { + type_ = value; + } + /** + *
+     * The type of the file.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + private void setType(com.android.aapt.Resources.FileReference.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + } + /** + *
+     * The type of the file.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + private void clearType() { + + type_ = 0; + } + + public static final int SOURCE_PATH_FIELD_NUMBER = 4; + private java.lang.String sourcePath_; + /** + *
+     * The filesystem path to where the source file originated.
+     * Mainly used to display helpful error messages.
+     * 
+ * + * string source_path = 4; + */ + @java.lang.Override + public java.lang.String getSourcePath() { + return sourcePath_; + } + /** + *
+     * The filesystem path to where the source file originated.
+     * Mainly used to display helpful error messages.
+     * 
+ * + * string source_path = 4; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSourcePathBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(sourcePath_); + } + /** + *
+     * The filesystem path to where the source file originated.
+     * Mainly used to display helpful error messages.
+     * 
+ * + * string source_path = 4; + */ + private void setSourcePath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sourcePath_ = value; + } + /** + *
+     * The filesystem path to where the source file originated.
+     * Mainly used to display helpful error messages.
+     * 
+ * + * string source_path = 4; + */ + private void clearSourcePath() { + + sourcePath_ = getDefaultInstance().getSourcePath(); + } + /** + *
+     * The filesystem path to where the source file originated.
+     * Mainly used to display helpful error messages.
+     * 
+ * + * string source_path = 4; + */ + private void setSourcePathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourcePath_ = value.toStringUtf8(); + } + + public static final int EXPORTED_SYMBOL_FIELD_NUMBER = 5; + private com.google.protobuf.Internal.ProtobufList exportedSymbol_; + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + @java.lang.Override + public java.util.List getExportedSymbolList() { + return exportedSymbol_; + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public java.util.List + getExportedSymbolOrBuilderList() { + return exportedSymbol_; + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + @java.lang.Override + public int getExportedSymbolCount() { + return exportedSymbol_.size(); + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + @java.lang.Override + public android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol getExportedSymbol(int index) { + return exportedSymbol_.get(index); + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public android.aapt.pb.internal.ResourcesInternal.CompiledFile.SymbolOrBuilder getExportedSymbolOrBuilder( + int index) { + return exportedSymbol_.get(index); + } + private void ensureExportedSymbolIsMutable() { + if (!exportedSymbol_.isModifiable()) { + exportedSymbol_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(exportedSymbol_); + } + } + + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + private void setExportedSymbol( + int index, android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExportedSymbolIsMutable(); + exportedSymbol_.set(index, value); + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + private void setExportedSymbol( + int index, android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol.Builder builderForValue) { + ensureExportedSymbolIsMutable(); + exportedSymbol_.set(index, builderForValue.build()); + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + private void addExportedSymbol(android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExportedSymbolIsMutable(); + exportedSymbol_.add(value); + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + private void addExportedSymbol( + int index, android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExportedSymbolIsMutable(); + exportedSymbol_.add(index, value); + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + private void addExportedSymbol( + android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol.Builder builderForValue) { + ensureExportedSymbolIsMutable(); + exportedSymbol_.add(builderForValue.build()); + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + private void addExportedSymbol( + int index, android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol.Builder builderForValue) { + ensureExportedSymbolIsMutable(); + exportedSymbol_.add(index, builderForValue.build()); + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + private void addAllExportedSymbol( + java.lang.Iterable values) { + ensureExportedSymbolIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, exportedSymbol_); + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + private void clearExportedSymbol() { + exportedSymbol_ = emptyProtobufList(); + } + /** + *
+     * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+     * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + private void removeExportedSymbol(int index) { + ensureExportedSymbolIsMutable(); + exportedSymbol_.remove(index); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!resourceName_.isEmpty()) { + output.writeString(1, getResourceName()); + } + if (config_ != null) { + output.writeMessage(2, getConfig()); + } + if (type_ != com.android.aapt.Resources.FileReference.Type.UNKNOWN.getNumber()) { + output.writeEnum(3, type_); + } + if (!sourcePath_.isEmpty()) { + output.writeString(4, getSourcePath()); + } + for (int i = 0; i < exportedSymbol_.size(); i++) { + output.writeMessage(5, exportedSymbol_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!resourceName_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getResourceName()); + } + if (config_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfig()); + } + if (type_ != com.android.aapt.Resources.FileReference.Type.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); + } + if (!sourcePath_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(4, getSourcePath()); + } + for (int i = 0; i < exportedSymbol_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, exportedSymbol_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(android.aapt.pb.internal.ResourcesInternal.CompiledFile prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * The top level message representing an external resource file (layout XML, PNG, etc).
+     * This is used to represent a compiled file before it is linked. Only useful to aapt2.
+     * 
+ * + * Protobuf type {@code aapt.pb.internal.CompiledFile} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + android.aapt.pb.internal.ResourcesInternal.CompiledFile, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.internal.CompiledFile) + android.aapt.pb.internal.ResourcesInternal.CompiledFileOrBuilder { + // Construct using android.aapt.pb.internal.ResourcesInternal.CompiledFile.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * The name of the resource (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + @java.lang.Override + public java.lang.String getResourceName() { + return instance.getResourceName(); + } + /** + *
+       * The name of the resource (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceNameBytes() { + return instance.getResourceNameBytes(); + } + /** + *
+       * The name of the resource (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + copyOnWrite(); + instance.setResourceName(value); + return this; + } + /** + *
+       * The name of the resource (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + copyOnWrite(); + instance.clearResourceName(); + return this; + } + /** + *
+       * The name of the resource (in the form package:type/name).
+       * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setResourceNameBytes(value); + return this; + } + + /** + *
+       * The configuration for which the resource is defined.
+       * 
+ * + * .aapt.pb.Configuration config = 2; + */ + @java.lang.Override + public boolean hasConfig() { + return instance.hasConfig(); + } + /** + *
+       * The configuration for which the resource is defined.
+       * 
+ * + * .aapt.pb.Configuration config = 2; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration getConfig() { + return instance.getConfig(); + } + /** + *
+       * The configuration for which the resource is defined.
+       * 
+ * + * .aapt.pb.Configuration config = 2; + */ + public Builder setConfig(com.android.aapt.ConfigurationOuterClass.Configuration value) { + copyOnWrite(); + instance.setConfig(value); + return this; + } + /** + *
+       * The configuration for which the resource is defined.
+       * 
+ * + * .aapt.pb.Configuration config = 2; + */ + public Builder setConfig( + com.android.aapt.ConfigurationOuterClass.Configuration.Builder builderForValue) { + copyOnWrite(); + instance.setConfig(builderForValue); + return this; + } + /** + *
+       * The configuration for which the resource is defined.
+       * 
+ * + * .aapt.pb.Configuration config = 2; + */ + public Builder mergeConfig(com.android.aapt.ConfigurationOuterClass.Configuration value) { + copyOnWrite(); + instance.mergeConfig(value); + return this; + } + /** + *
+       * The configuration for which the resource is defined.
+       * 
+ * + * .aapt.pb.Configuration config = 2; + */ + public Builder clearConfig() { copyOnWrite(); + instance.clearConfig(); + return this; + } + + /** + *
+       * The type of the file.
+       * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + @java.lang.Override + public int getTypeValue() { + return instance.getTypeValue(); + } + /** + *
+       * The type of the file.
+       * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + public Builder setTypeValue(int value) { + copyOnWrite(); + instance.setTypeValue(value); + return this; + } + /** + *
+       * The type of the file.
+       * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.FileReference.Type getType() { + return instance.getType(); + } + /** + *
+       * The type of the file.
+       * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + public Builder setType(com.android.aapt.Resources.FileReference.Type value) { + copyOnWrite(); + instance.setType(value); + return this; + } + /** + *
+       * The type of the file.
+       * 
+ * + * .aapt.pb.FileReference.Type type = 3; + */ + public Builder clearType() { + copyOnWrite(); + instance.clearType(); + return this; + } + + /** + *
+       * The filesystem path to where the source file originated.
+       * Mainly used to display helpful error messages.
+       * 
+ * + * string source_path = 4; + */ + @java.lang.Override + public java.lang.String getSourcePath() { + return instance.getSourcePath(); + } + /** + *
+       * The filesystem path to where the source file originated.
+       * Mainly used to display helpful error messages.
+       * 
+ * + * string source_path = 4; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSourcePathBytes() { + return instance.getSourcePathBytes(); + } + /** + *
+       * The filesystem path to where the source file originated.
+       * Mainly used to display helpful error messages.
+       * 
+ * + * string source_path = 4; + */ + public Builder setSourcePath( + java.lang.String value) { + copyOnWrite(); + instance.setSourcePath(value); + return this; + } + /** + *
+       * The filesystem path to where the source file originated.
+       * Mainly used to display helpful error messages.
+       * 
+ * + * string source_path = 4; + */ + public Builder clearSourcePath() { + copyOnWrite(); + instance.clearSourcePath(); + return this; + } + /** + *
+       * The filesystem path to where the source file originated.
+       * Mainly used to display helpful error messages.
+       * 
+ * + * string source_path = 4; + */ + public Builder setSourcePathBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setSourcePathBytes(value); + return this; + } + + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + @java.lang.Override + public java.util.List getExportedSymbolList() { + return java.util.Collections.unmodifiableList( + instance.getExportedSymbolList()); + } + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + @java.lang.Override + public int getExportedSymbolCount() { + return instance.getExportedSymbolCount(); + }/** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + @java.lang.Override + public android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol getExportedSymbol(int index) { + return instance.getExportedSymbol(index); + } + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public Builder setExportedSymbol( + int index, android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol value) { + copyOnWrite(); + instance.setExportedSymbol(index, value); + return this; + } + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public Builder setExportedSymbol( + int index, android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol.Builder builderForValue) { + copyOnWrite(); + instance.setExportedSymbol(index, builderForValue); + return this; + } + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public Builder addExportedSymbol(android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol value) { + copyOnWrite(); + instance.addExportedSymbol(value); + return this; + } + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public Builder addExportedSymbol( + int index, android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol value) { + copyOnWrite(); + instance.addExportedSymbol(index, value); + return this; + } + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public Builder addExportedSymbol( + android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol.Builder builderForValue) { + copyOnWrite(); + instance.addExportedSymbol(builderForValue); + return this; + } + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public Builder addExportedSymbol( + int index, android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol.Builder builderForValue) { + copyOnWrite(); + instance.addExportedSymbol(index, builderForValue); + return this; + } + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public Builder addAllExportedSymbol( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllExportedSymbol(values); + return this; + } + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public Builder clearExportedSymbol() { + copyOnWrite(); + instance.clearExportedSymbol(); + return this; + } + /** + *
+       * Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
+       * 
+ * + * repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5; + */ + public Builder removeExportedSymbol(int index) { + copyOnWrite(); + instance.removeExportedSymbol(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.internal.CompiledFile) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new android.aapt.pb.internal.ResourcesInternal.CompiledFile(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + exportedSymbol_.makeImmutable(); + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + android.aapt.pb.internal.ResourcesInternal.CompiledFile other = (android.aapt.pb.internal.ResourcesInternal.CompiledFile) arg1; + resourceName_ = visitor.visitString(!resourceName_.isEmpty(), resourceName_, + !other.resourceName_.isEmpty(), other.resourceName_); + config_ = visitor.visitMessage(config_, other.config_); + type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); + sourcePath_ = visitor.visitString(!sourcePath_.isEmpty(), sourcePath_, + !other.sourcePath_.isEmpty(), other.sourcePath_); + exportedSymbol_= visitor.visitList(exportedSymbol_, other.exportedSymbol_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + case 18: { + com.android.aapt.ConfigurationOuterClass.Configuration.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = input.readMessage(com.android.aapt.ConfigurationOuterClass.Configuration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + sourcePath_ = s; + break; + } + case 42: { + if (!exportedSymbol_.isModifiable()) { + exportedSymbol_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(exportedSymbol_); + } + exportedSymbol_.add( + input.readMessage(android.aapt.pb.internal.ResourcesInternal.CompiledFile.Symbol.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (android.aapt.pb.internal.ResourcesInternal.CompiledFile.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.internal.CompiledFile) + private static final android.aapt.pb.internal.ResourcesInternal.CompiledFile DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new CompiledFile(); + } + + public static android.aapt.pb.internal.ResourcesInternal.CompiledFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + + static { + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/booster-aapt2/src/main/java/com/android/aapt/ConfigurationOuterClass.java b/booster-aapt2/src/main/java/com/android/aapt/ConfigurationOuterClass.java new file mode 100644 index 000000000..27d4fb677 --- /dev/null +++ b/booster-aapt2/src/main/java/com/android/aapt/ConfigurationOuterClass.java @@ -0,0 +1,4994 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Configuration.proto + +package com.android.aapt; + +public final class ConfigurationOuterClass { + private ConfigurationOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface ConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Configuration) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * Mobile country code.
+     * 
+ * + * uint32 mcc = 1; + */ + int getMcc(); + + /** + *
+     * Mobile network code.
+     * 
+ * + * uint32 mnc = 2; + */ + int getMnc(); + + /** + *
+     * BCP-47 locale tag.
+     * 
+ * + * string locale = 3; + */ + java.lang.String getLocale(); + /** + *
+     * BCP-47 locale tag.
+     * 
+ * + * string locale = 3; + */ + com.google.protobuf.ByteString + getLocaleBytes(); + + /** + *
+     * Left-to-right, right-to-left...
+     * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + int getLayoutDirectionValue(); + /** + *
+     * Left-to-right, right-to-left...
+     * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.LayoutDirection getLayoutDirection(); + + /** + *
+     * Screen width in pixels. Prefer screen_width_dp.
+     * 
+ * + * uint32 screen_width = 5; + */ + int getScreenWidth(); + + /** + *
+     * Screen height in pixels. Prefer screen_height_dp.
+     * 
+ * + * uint32 screen_height = 6; + */ + int getScreenHeight(); + + /** + *
+     * Screen width in density independent pixels (dp).
+     * 
+ * + * uint32 screen_width_dp = 7; + */ + int getScreenWidthDp(); + + /** + *
+     * Screen height in density independent pixels (dp).
+     * 
+ * + * uint32 screen_height_dp = 8; + */ + int getScreenHeightDp(); + + /** + *
+     * The smallest screen dimension, regardless of orientation, in dp.
+     * 
+ * + * uint32 smallest_screen_width_dp = 9; + */ + int getSmallestScreenWidthDp(); + + /** + *
+     * Whether the device screen is classified as small, normal, large, xlarge.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + int getScreenLayoutSizeValue(); + /** + *
+     * Whether the device screen is classified as small, normal, large, xlarge.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutSize getScreenLayoutSize(); + + /** + *
+     * Whether the device screen is long.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + int getScreenLayoutLongValue(); + /** + *
+     * Whether the device screen is long.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutLong getScreenLayoutLong(); + + /** + *
+     * Whether the screen is round (Android Wear).
+     * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + int getScreenRoundValue(); + /** + *
+     * Whether the screen is round (Android Wear).
+     * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.ScreenRound getScreenRound(); + + /** + *
+     * Whether the screen supports wide color gamut.
+     * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + int getWideColorGamutValue(); + /** + *
+     * Whether the screen supports wide color gamut.
+     * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.WideColorGamut getWideColorGamut(); + + /** + *
+     * Whether the screen has high dynamic range.
+     * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + int getHdrValue(); + /** + *
+     * Whether the screen has high dynamic range.
+     * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.Hdr getHdr(); + + /** + *
+     * Which orientation the device is in (portrait, landscape).
+     * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + int getOrientationValue(); + /** + *
+     * Which orientation the device is in (portrait, landscape).
+     * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.Orientation getOrientation(); + + /** + *
+     * Which type of UI mode the device is in (television, car, etc.).
+     * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + int getUiModeTypeValue(); + /** + *
+     * Which type of UI mode the device is in (television, car, etc.).
+     * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.UiModeType getUiModeType(); + + /** + *
+     * Whether the device is in night mode.
+     * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + int getUiModeNightValue(); + /** + *
+     * Whether the device is in night mode.
+     * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.UiModeNight getUiModeNight(); + + /** + *
+     * The device's screen density in dots-per-inch (dpi).
+     * 
+ * + * uint32 density = 18; + */ + int getDensity(); + + /** + *
+     * Whether a touchscreen exists, supports a stylus, or finger.
+     * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + int getTouchscreenValue(); + /** + *
+     * Whether a touchscreen exists, supports a stylus, or finger.
+     * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.Touchscreen getTouchscreen(); + + /** + *
+     * Whether the keyboard hardware keys are currently hidden, exposed, or
+     * if the keyboard is a software keyboard.
+     * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + int getKeysHiddenValue(); + /** + *
+     * Whether the keyboard hardware keys are currently hidden, exposed, or
+     * if the keyboard is a software keyboard.
+     * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.KeysHidden getKeysHidden(); + + /** + *
+     * The type of keyboard present (none, QWERTY, 12-key).
+     * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + int getKeyboardValue(); + /** + *
+     * The type of keyboard present (none, QWERTY, 12-key).
+     * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.Keyboard getKeyboard(); + + /** + *
+     * Whether the navigation is exposed or hidden.
+     * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + int getNavHiddenValue(); + /** + *
+     * Whether the navigation is exposed or hidden.
+     * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.NavHidden getNavHidden(); + + /** + *
+     * The type of navigation present on the device
+     * (trackball, wheel, dpad, etc.).
+     * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + int getNavigationValue(); + /** + *
+     * The type of navigation present on the device
+     * (trackball, wheel, dpad, etc.).
+     * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + com.android.aapt.ConfigurationOuterClass.Configuration.Navigation getNavigation(); + + /** + *
+     * The minimum SDK version of the device.
+     * 
+ * + * uint32 sdk_version = 24; + */ + int getSdkVersion(); + + /** + * string product = 25; + */ + java.lang.String getProduct(); + /** + * string product = 25; + */ + com.google.protobuf.ByteString + getProductBytes(); + } + /** + *
+   * A description of the requirements a device must have in order for a
+   * resource to be matched and selected.
+   * 
+ * + * Protobuf type {@code aapt.pb.Configuration} + */ + public static final class Configuration extends + com.google.protobuf.GeneratedMessageLite< + Configuration, Configuration.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Configuration) + ConfigurationOrBuilder { + private Configuration() { + locale_ = ""; + product_ = ""; + } + /** + * Protobuf enum {@code aapt.pb.Configuration.LayoutDirection} + */ + public enum LayoutDirection + implements com.google.protobuf.Internal.EnumLite { + /** + * LAYOUT_DIRECTION_UNSET = 0; + */ + LAYOUT_DIRECTION_UNSET(0), + /** + * LAYOUT_DIRECTION_LTR = 1; + */ + LAYOUT_DIRECTION_LTR(1), + /** + * LAYOUT_DIRECTION_RTL = 2; + */ + LAYOUT_DIRECTION_RTL(2), + UNRECOGNIZED(-1), + ; + + /** + * LAYOUT_DIRECTION_UNSET = 0; + */ + public static final int LAYOUT_DIRECTION_UNSET_VALUE = 0; + /** + * LAYOUT_DIRECTION_LTR = 1; + */ + public static final int LAYOUT_DIRECTION_LTR_VALUE = 1; + /** + * LAYOUT_DIRECTION_RTL = 2; + */ + public static final int LAYOUT_DIRECTION_RTL_VALUE = 2; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LayoutDirection valueOf(int value) { + return forNumber(value); + } + + public static LayoutDirection forNumber(int value) { + switch (value) { + case 0: return LAYOUT_DIRECTION_UNSET; + case 1: return LAYOUT_DIRECTION_LTR; + case 2: return LAYOUT_DIRECTION_RTL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LayoutDirection> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public LayoutDirection findValueByNumber(int number) { + return LayoutDirection.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return LayoutDirectionVerifier.INSTANCE; + } + + private static final class LayoutDirectionVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new LayoutDirectionVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return LayoutDirection.forNumber(number) != null; + } + }; + + private final int value; + + private LayoutDirection(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.LayoutDirection) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.ScreenLayoutSize} + */ + public enum ScreenLayoutSize + implements com.google.protobuf.Internal.EnumLite { + /** + * SCREEN_LAYOUT_SIZE_UNSET = 0; + */ + SCREEN_LAYOUT_SIZE_UNSET(0), + /** + * SCREEN_LAYOUT_SIZE_SMALL = 1; + */ + SCREEN_LAYOUT_SIZE_SMALL(1), + /** + * SCREEN_LAYOUT_SIZE_NORMAL = 2; + */ + SCREEN_LAYOUT_SIZE_NORMAL(2), + /** + * SCREEN_LAYOUT_SIZE_LARGE = 3; + */ + SCREEN_LAYOUT_SIZE_LARGE(3), + /** + * SCREEN_LAYOUT_SIZE_XLARGE = 4; + */ + SCREEN_LAYOUT_SIZE_XLARGE(4), + UNRECOGNIZED(-1), + ; + + /** + * SCREEN_LAYOUT_SIZE_UNSET = 0; + */ + public static final int SCREEN_LAYOUT_SIZE_UNSET_VALUE = 0; + /** + * SCREEN_LAYOUT_SIZE_SMALL = 1; + */ + public static final int SCREEN_LAYOUT_SIZE_SMALL_VALUE = 1; + /** + * SCREEN_LAYOUT_SIZE_NORMAL = 2; + */ + public static final int SCREEN_LAYOUT_SIZE_NORMAL_VALUE = 2; + /** + * SCREEN_LAYOUT_SIZE_LARGE = 3; + */ + public static final int SCREEN_LAYOUT_SIZE_LARGE_VALUE = 3; + /** + * SCREEN_LAYOUT_SIZE_XLARGE = 4; + */ + public static final int SCREEN_LAYOUT_SIZE_XLARGE_VALUE = 4; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScreenLayoutSize valueOf(int value) { + return forNumber(value); + } + + public static ScreenLayoutSize forNumber(int value) { + switch (value) { + case 0: return SCREEN_LAYOUT_SIZE_UNSET; + case 1: return SCREEN_LAYOUT_SIZE_SMALL; + case 2: return SCREEN_LAYOUT_SIZE_NORMAL; + case 3: return SCREEN_LAYOUT_SIZE_LARGE; + case 4: return SCREEN_LAYOUT_SIZE_XLARGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ScreenLayoutSize> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public ScreenLayoutSize findValueByNumber(int number) { + return ScreenLayoutSize.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return ScreenLayoutSizeVerifier.INSTANCE; + } + + private static final class ScreenLayoutSizeVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ScreenLayoutSizeVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return ScreenLayoutSize.forNumber(number) != null; + } + }; + + private final int value; + + private ScreenLayoutSize(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.ScreenLayoutSize) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.ScreenLayoutLong} + */ + public enum ScreenLayoutLong + implements com.google.protobuf.Internal.EnumLite { + /** + * SCREEN_LAYOUT_LONG_UNSET = 0; + */ + SCREEN_LAYOUT_LONG_UNSET(0), + /** + * SCREEN_LAYOUT_LONG_LONG = 1; + */ + SCREEN_LAYOUT_LONG_LONG(1), + /** + * SCREEN_LAYOUT_LONG_NOTLONG = 2; + */ + SCREEN_LAYOUT_LONG_NOTLONG(2), + UNRECOGNIZED(-1), + ; + + /** + * SCREEN_LAYOUT_LONG_UNSET = 0; + */ + public static final int SCREEN_LAYOUT_LONG_UNSET_VALUE = 0; + /** + * SCREEN_LAYOUT_LONG_LONG = 1; + */ + public static final int SCREEN_LAYOUT_LONG_LONG_VALUE = 1; + /** + * SCREEN_LAYOUT_LONG_NOTLONG = 2; + */ + public static final int SCREEN_LAYOUT_LONG_NOTLONG_VALUE = 2; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScreenLayoutLong valueOf(int value) { + return forNumber(value); + } + + public static ScreenLayoutLong forNumber(int value) { + switch (value) { + case 0: return SCREEN_LAYOUT_LONG_UNSET; + case 1: return SCREEN_LAYOUT_LONG_LONG; + case 2: return SCREEN_LAYOUT_LONG_NOTLONG; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ScreenLayoutLong> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public ScreenLayoutLong findValueByNumber(int number) { + return ScreenLayoutLong.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return ScreenLayoutLongVerifier.INSTANCE; + } + + private static final class ScreenLayoutLongVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ScreenLayoutLongVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return ScreenLayoutLong.forNumber(number) != null; + } + }; + + private final int value; + + private ScreenLayoutLong(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.ScreenLayoutLong) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.ScreenRound} + */ + public enum ScreenRound + implements com.google.protobuf.Internal.EnumLite { + /** + * SCREEN_ROUND_UNSET = 0; + */ + SCREEN_ROUND_UNSET(0), + /** + * SCREEN_ROUND_ROUND = 1; + */ + SCREEN_ROUND_ROUND(1), + /** + * SCREEN_ROUND_NOTROUND = 2; + */ + SCREEN_ROUND_NOTROUND(2), + UNRECOGNIZED(-1), + ; + + /** + * SCREEN_ROUND_UNSET = 0; + */ + public static final int SCREEN_ROUND_UNSET_VALUE = 0; + /** + * SCREEN_ROUND_ROUND = 1; + */ + public static final int SCREEN_ROUND_ROUND_VALUE = 1; + /** + * SCREEN_ROUND_NOTROUND = 2; + */ + public static final int SCREEN_ROUND_NOTROUND_VALUE = 2; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScreenRound valueOf(int value) { + return forNumber(value); + } + + public static ScreenRound forNumber(int value) { + switch (value) { + case 0: return SCREEN_ROUND_UNSET; + case 1: return SCREEN_ROUND_ROUND; + case 2: return SCREEN_ROUND_NOTROUND; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ScreenRound> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public ScreenRound findValueByNumber(int number) { + return ScreenRound.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return ScreenRoundVerifier.INSTANCE; + } + + private static final class ScreenRoundVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ScreenRoundVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return ScreenRound.forNumber(number) != null; + } + }; + + private final int value; + + private ScreenRound(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.ScreenRound) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.WideColorGamut} + */ + public enum WideColorGamut + implements com.google.protobuf.Internal.EnumLite { + /** + * WIDE_COLOR_GAMUT_UNSET = 0; + */ + WIDE_COLOR_GAMUT_UNSET(0), + /** + * WIDE_COLOR_GAMUT_WIDECG = 1; + */ + WIDE_COLOR_GAMUT_WIDECG(1), + /** + * WIDE_COLOR_GAMUT_NOWIDECG = 2; + */ + WIDE_COLOR_GAMUT_NOWIDECG(2), + UNRECOGNIZED(-1), + ; + + /** + * WIDE_COLOR_GAMUT_UNSET = 0; + */ + public static final int WIDE_COLOR_GAMUT_UNSET_VALUE = 0; + /** + * WIDE_COLOR_GAMUT_WIDECG = 1; + */ + public static final int WIDE_COLOR_GAMUT_WIDECG_VALUE = 1; + /** + * WIDE_COLOR_GAMUT_NOWIDECG = 2; + */ + public static final int WIDE_COLOR_GAMUT_NOWIDECG_VALUE = 2; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WideColorGamut valueOf(int value) { + return forNumber(value); + } + + public static WideColorGamut forNumber(int value) { + switch (value) { + case 0: return WIDE_COLOR_GAMUT_UNSET; + case 1: return WIDE_COLOR_GAMUT_WIDECG; + case 2: return WIDE_COLOR_GAMUT_NOWIDECG; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + WideColorGamut> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public WideColorGamut findValueByNumber(int number) { + return WideColorGamut.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return WideColorGamutVerifier.INSTANCE; + } + + private static final class WideColorGamutVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new WideColorGamutVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return WideColorGamut.forNumber(number) != null; + } + }; + + private final int value; + + private WideColorGamut(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.WideColorGamut) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.Hdr} + */ + public enum Hdr + implements com.google.protobuf.Internal.EnumLite { + /** + * HDR_UNSET = 0; + */ + HDR_UNSET(0), + /** + * HDR_HIGHDR = 1; + */ + HDR_HIGHDR(1), + /** + * HDR_LOWDR = 2; + */ + HDR_LOWDR(2), + UNRECOGNIZED(-1), + ; + + /** + * HDR_UNSET = 0; + */ + public static final int HDR_UNSET_VALUE = 0; + /** + * HDR_HIGHDR = 1; + */ + public static final int HDR_HIGHDR_VALUE = 1; + /** + * HDR_LOWDR = 2; + */ + public static final int HDR_LOWDR_VALUE = 2; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Hdr valueOf(int value) { + return forNumber(value); + } + + public static Hdr forNumber(int value) { + switch (value) { + case 0: return HDR_UNSET; + case 1: return HDR_HIGHDR; + case 2: return HDR_LOWDR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Hdr> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public Hdr findValueByNumber(int number) { + return Hdr.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return HdrVerifier.INSTANCE; + } + + private static final class HdrVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new HdrVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return Hdr.forNumber(number) != null; + } + }; + + private final int value; + + private Hdr(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.Hdr) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.Orientation} + */ + public enum Orientation + implements com.google.protobuf.Internal.EnumLite { + /** + * ORIENTATION_UNSET = 0; + */ + ORIENTATION_UNSET(0), + /** + * ORIENTATION_PORT = 1; + */ + ORIENTATION_PORT(1), + /** + * ORIENTATION_LAND = 2; + */ + ORIENTATION_LAND(2), + /** + * ORIENTATION_SQUARE = 3; + */ + ORIENTATION_SQUARE(3), + UNRECOGNIZED(-1), + ; + + /** + * ORIENTATION_UNSET = 0; + */ + public static final int ORIENTATION_UNSET_VALUE = 0; + /** + * ORIENTATION_PORT = 1; + */ + public static final int ORIENTATION_PORT_VALUE = 1; + /** + * ORIENTATION_LAND = 2; + */ + public static final int ORIENTATION_LAND_VALUE = 2; + /** + * ORIENTATION_SQUARE = 3; + */ + public static final int ORIENTATION_SQUARE_VALUE = 3; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Orientation valueOf(int value) { + return forNumber(value); + } + + public static Orientation forNumber(int value) { + switch (value) { + case 0: return ORIENTATION_UNSET; + case 1: return ORIENTATION_PORT; + case 2: return ORIENTATION_LAND; + case 3: return ORIENTATION_SQUARE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Orientation> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public Orientation findValueByNumber(int number) { + return Orientation.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return OrientationVerifier.INSTANCE; + } + + private static final class OrientationVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new OrientationVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return Orientation.forNumber(number) != null; + } + }; + + private final int value; + + private Orientation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.Orientation) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.UiModeType} + */ + public enum UiModeType + implements com.google.protobuf.Internal.EnumLite { + /** + * UI_MODE_TYPE_UNSET = 0; + */ + UI_MODE_TYPE_UNSET(0), + /** + * UI_MODE_TYPE_NORMAL = 1; + */ + UI_MODE_TYPE_NORMAL(1), + /** + * UI_MODE_TYPE_DESK = 2; + */ + UI_MODE_TYPE_DESK(2), + /** + * UI_MODE_TYPE_CAR = 3; + */ + UI_MODE_TYPE_CAR(3), + /** + * UI_MODE_TYPE_TELEVISION = 4; + */ + UI_MODE_TYPE_TELEVISION(4), + /** + * UI_MODE_TYPE_APPLIANCE = 5; + */ + UI_MODE_TYPE_APPLIANCE(5), + /** + * UI_MODE_TYPE_WATCH = 6; + */ + UI_MODE_TYPE_WATCH(6), + /** + * UI_MODE_TYPE_VRHEADSET = 7; + */ + UI_MODE_TYPE_VRHEADSET(7), + UNRECOGNIZED(-1), + ; + + /** + * UI_MODE_TYPE_UNSET = 0; + */ + public static final int UI_MODE_TYPE_UNSET_VALUE = 0; + /** + * UI_MODE_TYPE_NORMAL = 1; + */ + public static final int UI_MODE_TYPE_NORMAL_VALUE = 1; + /** + * UI_MODE_TYPE_DESK = 2; + */ + public static final int UI_MODE_TYPE_DESK_VALUE = 2; + /** + * UI_MODE_TYPE_CAR = 3; + */ + public static final int UI_MODE_TYPE_CAR_VALUE = 3; + /** + * UI_MODE_TYPE_TELEVISION = 4; + */ + public static final int UI_MODE_TYPE_TELEVISION_VALUE = 4; + /** + * UI_MODE_TYPE_APPLIANCE = 5; + */ + public static final int UI_MODE_TYPE_APPLIANCE_VALUE = 5; + /** + * UI_MODE_TYPE_WATCH = 6; + */ + public static final int UI_MODE_TYPE_WATCH_VALUE = 6; + /** + * UI_MODE_TYPE_VRHEADSET = 7; + */ + public static final int UI_MODE_TYPE_VRHEADSET_VALUE = 7; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UiModeType valueOf(int value) { + return forNumber(value); + } + + public static UiModeType forNumber(int value) { + switch (value) { + case 0: return UI_MODE_TYPE_UNSET; + case 1: return UI_MODE_TYPE_NORMAL; + case 2: return UI_MODE_TYPE_DESK; + case 3: return UI_MODE_TYPE_CAR; + case 4: return UI_MODE_TYPE_TELEVISION; + case 5: return UI_MODE_TYPE_APPLIANCE; + case 6: return UI_MODE_TYPE_WATCH; + case 7: return UI_MODE_TYPE_VRHEADSET; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UiModeType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public UiModeType findValueByNumber(int number) { + return UiModeType.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return UiModeTypeVerifier.INSTANCE; + } + + private static final class UiModeTypeVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new UiModeTypeVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return UiModeType.forNumber(number) != null; + } + }; + + private final int value; + + private UiModeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.UiModeType) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.UiModeNight} + */ + public enum UiModeNight + implements com.google.protobuf.Internal.EnumLite { + /** + * UI_MODE_NIGHT_UNSET = 0; + */ + UI_MODE_NIGHT_UNSET(0), + /** + * UI_MODE_NIGHT_NIGHT = 1; + */ + UI_MODE_NIGHT_NIGHT(1), + /** + * UI_MODE_NIGHT_NOTNIGHT = 2; + */ + UI_MODE_NIGHT_NOTNIGHT(2), + UNRECOGNIZED(-1), + ; + + /** + * UI_MODE_NIGHT_UNSET = 0; + */ + public static final int UI_MODE_NIGHT_UNSET_VALUE = 0; + /** + * UI_MODE_NIGHT_NIGHT = 1; + */ + public static final int UI_MODE_NIGHT_NIGHT_VALUE = 1; + /** + * UI_MODE_NIGHT_NOTNIGHT = 2; + */ + public static final int UI_MODE_NIGHT_NOTNIGHT_VALUE = 2; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UiModeNight valueOf(int value) { + return forNumber(value); + } + + public static UiModeNight forNumber(int value) { + switch (value) { + case 0: return UI_MODE_NIGHT_UNSET; + case 1: return UI_MODE_NIGHT_NIGHT; + case 2: return UI_MODE_NIGHT_NOTNIGHT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UiModeNight> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public UiModeNight findValueByNumber(int number) { + return UiModeNight.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return UiModeNightVerifier.INSTANCE; + } + + private static final class UiModeNightVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new UiModeNightVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return UiModeNight.forNumber(number) != null; + } + }; + + private final int value; + + private UiModeNight(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.UiModeNight) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.Touchscreen} + */ + public enum Touchscreen + implements com.google.protobuf.Internal.EnumLite { + /** + * TOUCHSCREEN_UNSET = 0; + */ + TOUCHSCREEN_UNSET(0), + /** + * TOUCHSCREEN_NOTOUCH = 1; + */ + TOUCHSCREEN_NOTOUCH(1), + /** + * TOUCHSCREEN_STYLUS = 2; + */ + TOUCHSCREEN_STYLUS(2), + /** + * TOUCHSCREEN_FINGER = 3; + */ + TOUCHSCREEN_FINGER(3), + UNRECOGNIZED(-1), + ; + + /** + * TOUCHSCREEN_UNSET = 0; + */ + public static final int TOUCHSCREEN_UNSET_VALUE = 0; + /** + * TOUCHSCREEN_NOTOUCH = 1; + */ + public static final int TOUCHSCREEN_NOTOUCH_VALUE = 1; + /** + * TOUCHSCREEN_STYLUS = 2; + */ + public static final int TOUCHSCREEN_STYLUS_VALUE = 2; + /** + * TOUCHSCREEN_FINGER = 3; + */ + public static final int TOUCHSCREEN_FINGER_VALUE = 3; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Touchscreen valueOf(int value) { + return forNumber(value); + } + + public static Touchscreen forNumber(int value) { + switch (value) { + case 0: return TOUCHSCREEN_UNSET; + case 1: return TOUCHSCREEN_NOTOUCH; + case 2: return TOUCHSCREEN_STYLUS; + case 3: return TOUCHSCREEN_FINGER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Touchscreen> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public Touchscreen findValueByNumber(int number) { + return Touchscreen.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return TouchscreenVerifier.INSTANCE; + } + + private static final class TouchscreenVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new TouchscreenVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return Touchscreen.forNumber(number) != null; + } + }; + + private final int value; + + private Touchscreen(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.Touchscreen) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.KeysHidden} + */ + public enum KeysHidden + implements com.google.protobuf.Internal.EnumLite { + /** + * KEYS_HIDDEN_UNSET = 0; + */ + KEYS_HIDDEN_UNSET(0), + /** + * KEYS_HIDDEN_KEYSEXPOSED = 1; + */ + KEYS_HIDDEN_KEYSEXPOSED(1), + /** + * KEYS_HIDDEN_KEYSHIDDEN = 2; + */ + KEYS_HIDDEN_KEYSHIDDEN(2), + /** + * KEYS_HIDDEN_KEYSSOFT = 3; + */ + KEYS_HIDDEN_KEYSSOFT(3), + UNRECOGNIZED(-1), + ; + + /** + * KEYS_HIDDEN_UNSET = 0; + */ + public static final int KEYS_HIDDEN_UNSET_VALUE = 0; + /** + * KEYS_HIDDEN_KEYSEXPOSED = 1; + */ + public static final int KEYS_HIDDEN_KEYSEXPOSED_VALUE = 1; + /** + * KEYS_HIDDEN_KEYSHIDDEN = 2; + */ + public static final int KEYS_HIDDEN_KEYSHIDDEN_VALUE = 2; + /** + * KEYS_HIDDEN_KEYSSOFT = 3; + */ + public static final int KEYS_HIDDEN_KEYSSOFT_VALUE = 3; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KeysHidden valueOf(int value) { + return forNumber(value); + } + + public static KeysHidden forNumber(int value) { + switch (value) { + case 0: return KEYS_HIDDEN_UNSET; + case 1: return KEYS_HIDDEN_KEYSEXPOSED; + case 2: return KEYS_HIDDEN_KEYSHIDDEN; + case 3: return KEYS_HIDDEN_KEYSSOFT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + KeysHidden> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public KeysHidden findValueByNumber(int number) { + return KeysHidden.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return KeysHiddenVerifier.INSTANCE; + } + + private static final class KeysHiddenVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new KeysHiddenVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return KeysHidden.forNumber(number) != null; + } + }; + + private final int value; + + private KeysHidden(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.KeysHidden) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.Keyboard} + */ + public enum Keyboard + implements com.google.protobuf.Internal.EnumLite { + /** + * KEYBOARD_UNSET = 0; + */ + KEYBOARD_UNSET(0), + /** + * KEYBOARD_NOKEYS = 1; + */ + KEYBOARD_NOKEYS(1), + /** + * KEYBOARD_QWERTY = 2; + */ + KEYBOARD_QWERTY(2), + /** + * KEYBOARD_TWELVEKEY = 3; + */ + KEYBOARD_TWELVEKEY(3), + UNRECOGNIZED(-1), + ; + + /** + * KEYBOARD_UNSET = 0; + */ + public static final int KEYBOARD_UNSET_VALUE = 0; + /** + * KEYBOARD_NOKEYS = 1; + */ + public static final int KEYBOARD_NOKEYS_VALUE = 1; + /** + * KEYBOARD_QWERTY = 2; + */ + public static final int KEYBOARD_QWERTY_VALUE = 2; + /** + * KEYBOARD_TWELVEKEY = 3; + */ + public static final int KEYBOARD_TWELVEKEY_VALUE = 3; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Keyboard valueOf(int value) { + return forNumber(value); + } + + public static Keyboard forNumber(int value) { + switch (value) { + case 0: return KEYBOARD_UNSET; + case 1: return KEYBOARD_NOKEYS; + case 2: return KEYBOARD_QWERTY; + case 3: return KEYBOARD_TWELVEKEY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Keyboard> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public Keyboard findValueByNumber(int number) { + return Keyboard.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return KeyboardVerifier.INSTANCE; + } + + private static final class KeyboardVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new KeyboardVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return Keyboard.forNumber(number) != null; + } + }; + + private final int value; + + private Keyboard(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.Keyboard) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.NavHidden} + */ + public enum NavHidden + implements com.google.protobuf.Internal.EnumLite { + /** + * NAV_HIDDEN_UNSET = 0; + */ + NAV_HIDDEN_UNSET(0), + /** + * NAV_HIDDEN_NAVEXPOSED = 1; + */ + NAV_HIDDEN_NAVEXPOSED(1), + /** + * NAV_HIDDEN_NAVHIDDEN = 2; + */ + NAV_HIDDEN_NAVHIDDEN(2), + UNRECOGNIZED(-1), + ; + + /** + * NAV_HIDDEN_UNSET = 0; + */ + public static final int NAV_HIDDEN_UNSET_VALUE = 0; + /** + * NAV_HIDDEN_NAVEXPOSED = 1; + */ + public static final int NAV_HIDDEN_NAVEXPOSED_VALUE = 1; + /** + * NAV_HIDDEN_NAVHIDDEN = 2; + */ + public static final int NAV_HIDDEN_NAVHIDDEN_VALUE = 2; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NavHidden valueOf(int value) { + return forNumber(value); + } + + public static NavHidden forNumber(int value) { + switch (value) { + case 0: return NAV_HIDDEN_UNSET; + case 1: return NAV_HIDDEN_NAVEXPOSED; + case 2: return NAV_HIDDEN_NAVHIDDEN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NavHidden> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public NavHidden findValueByNumber(int number) { + return NavHidden.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return NavHiddenVerifier.INSTANCE; + } + + private static final class NavHiddenVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new NavHiddenVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return NavHidden.forNumber(number) != null; + } + }; + + private final int value; + + private NavHidden(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.NavHidden) + } + + /** + * Protobuf enum {@code aapt.pb.Configuration.Navigation} + */ + public enum Navigation + implements com.google.protobuf.Internal.EnumLite { + /** + * NAVIGATION_UNSET = 0; + */ + NAVIGATION_UNSET(0), + /** + * NAVIGATION_NONAV = 1; + */ + NAVIGATION_NONAV(1), + /** + * NAVIGATION_DPAD = 2; + */ + NAVIGATION_DPAD(2), + /** + * NAVIGATION_TRACKBALL = 3; + */ + NAVIGATION_TRACKBALL(3), + /** + * NAVIGATION_WHEEL = 4; + */ + NAVIGATION_WHEEL(4), + UNRECOGNIZED(-1), + ; + + /** + * NAVIGATION_UNSET = 0; + */ + public static final int NAVIGATION_UNSET_VALUE = 0; + /** + * NAVIGATION_NONAV = 1; + */ + public static final int NAVIGATION_NONAV_VALUE = 1; + /** + * NAVIGATION_DPAD = 2; + */ + public static final int NAVIGATION_DPAD_VALUE = 2; + /** + * NAVIGATION_TRACKBALL = 3; + */ + public static final int NAVIGATION_TRACKBALL_VALUE = 3; + /** + * NAVIGATION_WHEEL = 4; + */ + public static final int NAVIGATION_WHEEL_VALUE = 4; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Navigation valueOf(int value) { + return forNumber(value); + } + + public static Navigation forNumber(int value) { + switch (value) { + case 0: return NAVIGATION_UNSET; + case 1: return NAVIGATION_NONAV; + case 2: return NAVIGATION_DPAD; + case 3: return NAVIGATION_TRACKBALL; + case 4: return NAVIGATION_WHEEL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Navigation> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public Navigation findValueByNumber(int number) { + return Navigation.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return NavigationVerifier.INSTANCE; + } + + private static final class NavigationVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new NavigationVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return Navigation.forNumber(number) != null; + } + }; + + private final int value; + + private Navigation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Configuration.Navigation) + } + + public static final int MCC_FIELD_NUMBER = 1; + private int mcc_; + /** + *
+     * Mobile country code.
+     * 
+ * + * uint32 mcc = 1; + */ + @java.lang.Override + public int getMcc() { + return mcc_; + } + /** + *
+     * Mobile country code.
+     * 
+ * + * uint32 mcc = 1; + */ + private void setMcc(int value) { + + mcc_ = value; + } + /** + *
+     * Mobile country code.
+     * 
+ * + * uint32 mcc = 1; + */ + private void clearMcc() { + + mcc_ = 0; + } + + public static final int MNC_FIELD_NUMBER = 2; + private int mnc_; + /** + *
+     * Mobile network code.
+     * 
+ * + * uint32 mnc = 2; + */ + @java.lang.Override + public int getMnc() { + return mnc_; + } + /** + *
+     * Mobile network code.
+     * 
+ * + * uint32 mnc = 2; + */ + private void setMnc(int value) { + + mnc_ = value; + } + /** + *
+     * Mobile network code.
+     * 
+ * + * uint32 mnc = 2; + */ + private void clearMnc() { + + mnc_ = 0; + } + + public static final int LOCALE_FIELD_NUMBER = 3; + private java.lang.String locale_; + /** + *
+     * BCP-47 locale tag.
+     * 
+ * + * string locale = 3; + */ + @java.lang.Override + public java.lang.String getLocale() { + return locale_; + } + /** + *
+     * BCP-47 locale tag.
+     * 
+ * + * string locale = 3; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLocaleBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(locale_); + } + /** + *
+     * BCP-47 locale tag.
+     * 
+ * + * string locale = 3; + */ + private void setLocale( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + locale_ = value; + } + /** + *
+     * BCP-47 locale tag.
+     * 
+ * + * string locale = 3; + */ + private void clearLocale() { + + locale_ = getDefaultInstance().getLocale(); + } + /** + *
+     * BCP-47 locale tag.
+     * 
+ * + * string locale = 3; + */ + private void setLocaleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + locale_ = value.toStringUtf8(); + } + + public static final int LAYOUT_DIRECTION_FIELD_NUMBER = 4; + private int layoutDirection_; + /** + *
+     * Left-to-right, right-to-left...
+     * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + @java.lang.Override + public int getLayoutDirectionValue() { + return layoutDirection_; + } + /** + *
+     * Left-to-right, right-to-left...
+     * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.LayoutDirection getLayoutDirection() { + com.android.aapt.ConfigurationOuterClass.Configuration.LayoutDirection result = com.android.aapt.ConfigurationOuterClass.Configuration.LayoutDirection.forNumber(layoutDirection_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.LayoutDirection.UNRECOGNIZED : result; + } + /** + *
+     * Left-to-right, right-to-left...
+     * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + private void setLayoutDirectionValue(int value) { + layoutDirection_ = value; + } + /** + *
+     * Left-to-right, right-to-left...
+     * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + private void setLayoutDirection(com.android.aapt.ConfigurationOuterClass.Configuration.LayoutDirection value) { + if (value == null) { + throw new NullPointerException(); + } + + layoutDirection_ = value.getNumber(); + } + /** + *
+     * Left-to-right, right-to-left...
+     * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + private void clearLayoutDirection() { + + layoutDirection_ = 0; + } + + public static final int SCREEN_WIDTH_FIELD_NUMBER = 5; + private int screenWidth_; + /** + *
+     * Screen width in pixels. Prefer screen_width_dp.
+     * 
+ * + * uint32 screen_width = 5; + */ + @java.lang.Override + public int getScreenWidth() { + return screenWidth_; + } + /** + *
+     * Screen width in pixels. Prefer screen_width_dp.
+     * 
+ * + * uint32 screen_width = 5; + */ + private void setScreenWidth(int value) { + + screenWidth_ = value; + } + /** + *
+     * Screen width in pixels. Prefer screen_width_dp.
+     * 
+ * + * uint32 screen_width = 5; + */ + private void clearScreenWidth() { + + screenWidth_ = 0; + } + + public static final int SCREEN_HEIGHT_FIELD_NUMBER = 6; + private int screenHeight_; + /** + *
+     * Screen height in pixels. Prefer screen_height_dp.
+     * 
+ * + * uint32 screen_height = 6; + */ + @java.lang.Override + public int getScreenHeight() { + return screenHeight_; + } + /** + *
+     * Screen height in pixels. Prefer screen_height_dp.
+     * 
+ * + * uint32 screen_height = 6; + */ + private void setScreenHeight(int value) { + + screenHeight_ = value; + } + /** + *
+     * Screen height in pixels. Prefer screen_height_dp.
+     * 
+ * + * uint32 screen_height = 6; + */ + private void clearScreenHeight() { + + screenHeight_ = 0; + } + + public static final int SCREEN_WIDTH_DP_FIELD_NUMBER = 7; + private int screenWidthDp_; + /** + *
+     * Screen width in density independent pixels (dp).
+     * 
+ * + * uint32 screen_width_dp = 7; + */ + @java.lang.Override + public int getScreenWidthDp() { + return screenWidthDp_; + } + /** + *
+     * Screen width in density independent pixels (dp).
+     * 
+ * + * uint32 screen_width_dp = 7; + */ + private void setScreenWidthDp(int value) { + + screenWidthDp_ = value; + } + /** + *
+     * Screen width in density independent pixels (dp).
+     * 
+ * + * uint32 screen_width_dp = 7; + */ + private void clearScreenWidthDp() { + + screenWidthDp_ = 0; + } + + public static final int SCREEN_HEIGHT_DP_FIELD_NUMBER = 8; + private int screenHeightDp_; + /** + *
+     * Screen height in density independent pixels (dp).
+     * 
+ * + * uint32 screen_height_dp = 8; + */ + @java.lang.Override + public int getScreenHeightDp() { + return screenHeightDp_; + } + /** + *
+     * Screen height in density independent pixels (dp).
+     * 
+ * + * uint32 screen_height_dp = 8; + */ + private void setScreenHeightDp(int value) { + + screenHeightDp_ = value; + } + /** + *
+     * Screen height in density independent pixels (dp).
+     * 
+ * + * uint32 screen_height_dp = 8; + */ + private void clearScreenHeightDp() { + + screenHeightDp_ = 0; + } + + public static final int SMALLEST_SCREEN_WIDTH_DP_FIELD_NUMBER = 9; + private int smallestScreenWidthDp_; + /** + *
+     * The smallest screen dimension, regardless of orientation, in dp.
+     * 
+ * + * uint32 smallest_screen_width_dp = 9; + */ + @java.lang.Override + public int getSmallestScreenWidthDp() { + return smallestScreenWidthDp_; + } + /** + *
+     * The smallest screen dimension, regardless of orientation, in dp.
+     * 
+ * + * uint32 smallest_screen_width_dp = 9; + */ + private void setSmallestScreenWidthDp(int value) { + + smallestScreenWidthDp_ = value; + } + /** + *
+     * The smallest screen dimension, regardless of orientation, in dp.
+     * 
+ * + * uint32 smallest_screen_width_dp = 9; + */ + private void clearSmallestScreenWidthDp() { + + smallestScreenWidthDp_ = 0; + } + + public static final int SCREEN_LAYOUT_SIZE_FIELD_NUMBER = 10; + private int screenLayoutSize_; + /** + *
+     * Whether the device screen is classified as small, normal, large, xlarge.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + @java.lang.Override + public int getScreenLayoutSizeValue() { + return screenLayoutSize_; + } + /** + *
+     * Whether the device screen is classified as small, normal, large, xlarge.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutSize getScreenLayoutSize() { + com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutSize result = com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutSize.forNumber(screenLayoutSize_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutSize.UNRECOGNIZED : result; + } + /** + *
+     * Whether the device screen is classified as small, normal, large, xlarge.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + private void setScreenLayoutSizeValue(int value) { + screenLayoutSize_ = value; + } + /** + *
+     * Whether the device screen is classified as small, normal, large, xlarge.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + private void setScreenLayoutSize(com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutSize value) { + if (value == null) { + throw new NullPointerException(); + } + + screenLayoutSize_ = value.getNumber(); + } + /** + *
+     * Whether the device screen is classified as small, normal, large, xlarge.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + private void clearScreenLayoutSize() { + + screenLayoutSize_ = 0; + } + + public static final int SCREEN_LAYOUT_LONG_FIELD_NUMBER = 11; + private int screenLayoutLong_; + /** + *
+     * Whether the device screen is long.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + @java.lang.Override + public int getScreenLayoutLongValue() { + return screenLayoutLong_; + } + /** + *
+     * Whether the device screen is long.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutLong getScreenLayoutLong() { + com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutLong result = com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutLong.forNumber(screenLayoutLong_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutLong.UNRECOGNIZED : result; + } + /** + *
+     * Whether the device screen is long.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + private void setScreenLayoutLongValue(int value) { + screenLayoutLong_ = value; + } + /** + *
+     * Whether the device screen is long.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + private void setScreenLayoutLong(com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutLong value) { + if (value == null) { + throw new NullPointerException(); + } + + screenLayoutLong_ = value.getNumber(); + } + /** + *
+     * Whether the device screen is long.
+     * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + private void clearScreenLayoutLong() { + + screenLayoutLong_ = 0; + } + + public static final int SCREEN_ROUND_FIELD_NUMBER = 12; + private int screenRound_; + /** + *
+     * Whether the screen is round (Android Wear).
+     * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + @java.lang.Override + public int getScreenRoundValue() { + return screenRound_; + } + /** + *
+     * Whether the screen is round (Android Wear).
+     * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.ScreenRound getScreenRound() { + com.android.aapt.ConfigurationOuterClass.Configuration.ScreenRound result = com.android.aapt.ConfigurationOuterClass.Configuration.ScreenRound.forNumber(screenRound_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.ScreenRound.UNRECOGNIZED : result; + } + /** + *
+     * Whether the screen is round (Android Wear).
+     * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + private void setScreenRoundValue(int value) { + screenRound_ = value; + } + /** + *
+     * Whether the screen is round (Android Wear).
+     * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + private void setScreenRound(com.android.aapt.ConfigurationOuterClass.Configuration.ScreenRound value) { + if (value == null) { + throw new NullPointerException(); + } + + screenRound_ = value.getNumber(); + } + /** + *
+     * Whether the screen is round (Android Wear).
+     * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + private void clearScreenRound() { + + screenRound_ = 0; + } + + public static final int WIDE_COLOR_GAMUT_FIELD_NUMBER = 13; + private int wideColorGamut_; + /** + *
+     * Whether the screen supports wide color gamut.
+     * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + @java.lang.Override + public int getWideColorGamutValue() { + return wideColorGamut_; + } + /** + *
+     * Whether the screen supports wide color gamut.
+     * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.WideColorGamut getWideColorGamut() { + com.android.aapt.ConfigurationOuterClass.Configuration.WideColorGamut result = com.android.aapt.ConfigurationOuterClass.Configuration.WideColorGamut.forNumber(wideColorGamut_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.WideColorGamut.UNRECOGNIZED : result; + } + /** + *
+     * Whether the screen supports wide color gamut.
+     * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + private void setWideColorGamutValue(int value) { + wideColorGamut_ = value; + } + /** + *
+     * Whether the screen supports wide color gamut.
+     * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + private void setWideColorGamut(com.android.aapt.ConfigurationOuterClass.Configuration.WideColorGamut value) { + if (value == null) { + throw new NullPointerException(); + } + + wideColorGamut_ = value.getNumber(); + } + /** + *
+     * Whether the screen supports wide color gamut.
+     * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + private void clearWideColorGamut() { + + wideColorGamut_ = 0; + } + + public static final int HDR_FIELD_NUMBER = 14; + private int hdr_; + /** + *
+     * Whether the screen has high dynamic range.
+     * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + @java.lang.Override + public int getHdrValue() { + return hdr_; + } + /** + *
+     * Whether the screen has high dynamic range.
+     * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.Hdr getHdr() { + com.android.aapt.ConfigurationOuterClass.Configuration.Hdr result = com.android.aapt.ConfigurationOuterClass.Configuration.Hdr.forNumber(hdr_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.Hdr.UNRECOGNIZED : result; + } + /** + *
+     * Whether the screen has high dynamic range.
+     * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + private void setHdrValue(int value) { + hdr_ = value; + } + /** + *
+     * Whether the screen has high dynamic range.
+     * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + private void setHdr(com.android.aapt.ConfigurationOuterClass.Configuration.Hdr value) { + if (value == null) { + throw new NullPointerException(); + } + + hdr_ = value.getNumber(); + } + /** + *
+     * Whether the screen has high dynamic range.
+     * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + private void clearHdr() { + + hdr_ = 0; + } + + public static final int ORIENTATION_FIELD_NUMBER = 15; + private int orientation_; + /** + *
+     * Which orientation the device is in (portrait, landscape).
+     * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + @java.lang.Override + public int getOrientationValue() { + return orientation_; + } + /** + *
+     * Which orientation the device is in (portrait, landscape).
+     * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.Orientation getOrientation() { + com.android.aapt.ConfigurationOuterClass.Configuration.Orientation result = com.android.aapt.ConfigurationOuterClass.Configuration.Orientation.forNumber(orientation_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.Orientation.UNRECOGNIZED : result; + } + /** + *
+     * Which orientation the device is in (portrait, landscape).
+     * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + private void setOrientationValue(int value) { + orientation_ = value; + } + /** + *
+     * Which orientation the device is in (portrait, landscape).
+     * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + private void setOrientation(com.android.aapt.ConfigurationOuterClass.Configuration.Orientation value) { + if (value == null) { + throw new NullPointerException(); + } + + orientation_ = value.getNumber(); + } + /** + *
+     * Which orientation the device is in (portrait, landscape).
+     * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + private void clearOrientation() { + + orientation_ = 0; + } + + public static final int UI_MODE_TYPE_FIELD_NUMBER = 16; + private int uiModeType_; + /** + *
+     * Which type of UI mode the device is in (television, car, etc.).
+     * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + @java.lang.Override + public int getUiModeTypeValue() { + return uiModeType_; + } + /** + *
+     * Which type of UI mode the device is in (television, car, etc.).
+     * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.UiModeType getUiModeType() { + com.android.aapt.ConfigurationOuterClass.Configuration.UiModeType result = com.android.aapt.ConfigurationOuterClass.Configuration.UiModeType.forNumber(uiModeType_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.UiModeType.UNRECOGNIZED : result; + } + /** + *
+     * Which type of UI mode the device is in (television, car, etc.).
+     * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + private void setUiModeTypeValue(int value) { + uiModeType_ = value; + } + /** + *
+     * Which type of UI mode the device is in (television, car, etc.).
+     * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + private void setUiModeType(com.android.aapt.ConfigurationOuterClass.Configuration.UiModeType value) { + if (value == null) { + throw new NullPointerException(); + } + + uiModeType_ = value.getNumber(); + } + /** + *
+     * Which type of UI mode the device is in (television, car, etc.).
+     * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + private void clearUiModeType() { + + uiModeType_ = 0; + } + + public static final int UI_MODE_NIGHT_FIELD_NUMBER = 17; + private int uiModeNight_; + /** + *
+     * Whether the device is in night mode.
+     * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + @java.lang.Override + public int getUiModeNightValue() { + return uiModeNight_; + } + /** + *
+     * Whether the device is in night mode.
+     * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.UiModeNight getUiModeNight() { + com.android.aapt.ConfigurationOuterClass.Configuration.UiModeNight result = com.android.aapt.ConfigurationOuterClass.Configuration.UiModeNight.forNumber(uiModeNight_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.UiModeNight.UNRECOGNIZED : result; + } + /** + *
+     * Whether the device is in night mode.
+     * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + private void setUiModeNightValue(int value) { + uiModeNight_ = value; + } + /** + *
+     * Whether the device is in night mode.
+     * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + private void setUiModeNight(com.android.aapt.ConfigurationOuterClass.Configuration.UiModeNight value) { + if (value == null) { + throw new NullPointerException(); + } + + uiModeNight_ = value.getNumber(); + } + /** + *
+     * Whether the device is in night mode.
+     * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + private void clearUiModeNight() { + + uiModeNight_ = 0; + } + + public static final int DENSITY_FIELD_NUMBER = 18; + private int density_; + /** + *
+     * The device's screen density in dots-per-inch (dpi).
+     * 
+ * + * uint32 density = 18; + */ + @java.lang.Override + public int getDensity() { + return density_; + } + /** + *
+     * The device's screen density in dots-per-inch (dpi).
+     * 
+ * + * uint32 density = 18; + */ + private void setDensity(int value) { + + density_ = value; + } + /** + *
+     * The device's screen density in dots-per-inch (dpi).
+     * 
+ * + * uint32 density = 18; + */ + private void clearDensity() { + + density_ = 0; + } + + public static final int TOUCHSCREEN_FIELD_NUMBER = 19; + private int touchscreen_; + /** + *
+     * Whether a touchscreen exists, supports a stylus, or finger.
+     * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + @java.lang.Override + public int getTouchscreenValue() { + return touchscreen_; + } + /** + *
+     * Whether a touchscreen exists, supports a stylus, or finger.
+     * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.Touchscreen getTouchscreen() { + com.android.aapt.ConfigurationOuterClass.Configuration.Touchscreen result = com.android.aapt.ConfigurationOuterClass.Configuration.Touchscreen.forNumber(touchscreen_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.Touchscreen.UNRECOGNIZED : result; + } + /** + *
+     * Whether a touchscreen exists, supports a stylus, or finger.
+     * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + private void setTouchscreenValue(int value) { + touchscreen_ = value; + } + /** + *
+     * Whether a touchscreen exists, supports a stylus, or finger.
+     * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + private void setTouchscreen(com.android.aapt.ConfigurationOuterClass.Configuration.Touchscreen value) { + if (value == null) { + throw new NullPointerException(); + } + + touchscreen_ = value.getNumber(); + } + /** + *
+     * Whether a touchscreen exists, supports a stylus, or finger.
+     * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + private void clearTouchscreen() { + + touchscreen_ = 0; + } + + public static final int KEYS_HIDDEN_FIELD_NUMBER = 20; + private int keysHidden_; + /** + *
+     * Whether the keyboard hardware keys are currently hidden, exposed, or
+     * if the keyboard is a software keyboard.
+     * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + @java.lang.Override + public int getKeysHiddenValue() { + return keysHidden_; + } + /** + *
+     * Whether the keyboard hardware keys are currently hidden, exposed, or
+     * if the keyboard is a software keyboard.
+     * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.KeysHidden getKeysHidden() { + com.android.aapt.ConfigurationOuterClass.Configuration.KeysHidden result = com.android.aapt.ConfigurationOuterClass.Configuration.KeysHidden.forNumber(keysHidden_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.KeysHidden.UNRECOGNIZED : result; + } + /** + *
+     * Whether the keyboard hardware keys are currently hidden, exposed, or
+     * if the keyboard is a software keyboard.
+     * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + private void setKeysHiddenValue(int value) { + keysHidden_ = value; + } + /** + *
+     * Whether the keyboard hardware keys are currently hidden, exposed, or
+     * if the keyboard is a software keyboard.
+     * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + private void setKeysHidden(com.android.aapt.ConfigurationOuterClass.Configuration.KeysHidden value) { + if (value == null) { + throw new NullPointerException(); + } + + keysHidden_ = value.getNumber(); + } + /** + *
+     * Whether the keyboard hardware keys are currently hidden, exposed, or
+     * if the keyboard is a software keyboard.
+     * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + private void clearKeysHidden() { + + keysHidden_ = 0; + } + + public static final int KEYBOARD_FIELD_NUMBER = 21; + private int keyboard_; + /** + *
+     * The type of keyboard present (none, QWERTY, 12-key).
+     * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + @java.lang.Override + public int getKeyboardValue() { + return keyboard_; + } + /** + *
+     * The type of keyboard present (none, QWERTY, 12-key).
+     * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.Keyboard getKeyboard() { + com.android.aapt.ConfigurationOuterClass.Configuration.Keyboard result = com.android.aapt.ConfigurationOuterClass.Configuration.Keyboard.forNumber(keyboard_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.Keyboard.UNRECOGNIZED : result; + } + /** + *
+     * The type of keyboard present (none, QWERTY, 12-key).
+     * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + private void setKeyboardValue(int value) { + keyboard_ = value; + } + /** + *
+     * The type of keyboard present (none, QWERTY, 12-key).
+     * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + private void setKeyboard(com.android.aapt.ConfigurationOuterClass.Configuration.Keyboard value) { + if (value == null) { + throw new NullPointerException(); + } + + keyboard_ = value.getNumber(); + } + /** + *
+     * The type of keyboard present (none, QWERTY, 12-key).
+     * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + private void clearKeyboard() { + + keyboard_ = 0; + } + + public static final int NAV_HIDDEN_FIELD_NUMBER = 22; + private int navHidden_; + /** + *
+     * Whether the navigation is exposed or hidden.
+     * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + @java.lang.Override + public int getNavHiddenValue() { + return navHidden_; + } + /** + *
+     * Whether the navigation is exposed or hidden.
+     * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.NavHidden getNavHidden() { + com.android.aapt.ConfigurationOuterClass.Configuration.NavHidden result = com.android.aapt.ConfigurationOuterClass.Configuration.NavHidden.forNumber(navHidden_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.NavHidden.UNRECOGNIZED : result; + } + /** + *
+     * Whether the navigation is exposed or hidden.
+     * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + private void setNavHiddenValue(int value) { + navHidden_ = value; + } + /** + *
+     * Whether the navigation is exposed or hidden.
+     * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + private void setNavHidden(com.android.aapt.ConfigurationOuterClass.Configuration.NavHidden value) { + if (value == null) { + throw new NullPointerException(); + } + + navHidden_ = value.getNumber(); + } + /** + *
+     * Whether the navigation is exposed or hidden.
+     * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + private void clearNavHidden() { + + navHidden_ = 0; + } + + public static final int NAVIGATION_FIELD_NUMBER = 23; + private int navigation_; + /** + *
+     * The type of navigation present on the device
+     * (trackball, wheel, dpad, etc.).
+     * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + @java.lang.Override + public int getNavigationValue() { + return navigation_; + } + /** + *
+     * The type of navigation present on the device
+     * (trackball, wheel, dpad, etc.).
+     * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.Navigation getNavigation() { + com.android.aapt.ConfigurationOuterClass.Configuration.Navigation result = com.android.aapt.ConfigurationOuterClass.Configuration.Navigation.forNumber(navigation_); + return result == null ? com.android.aapt.ConfigurationOuterClass.Configuration.Navigation.UNRECOGNIZED : result; + } + /** + *
+     * The type of navigation present on the device
+     * (trackball, wheel, dpad, etc.).
+     * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + private void setNavigationValue(int value) { + navigation_ = value; + } + /** + *
+     * The type of navigation present on the device
+     * (trackball, wheel, dpad, etc.).
+     * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + private void setNavigation(com.android.aapt.ConfigurationOuterClass.Configuration.Navigation value) { + if (value == null) { + throw new NullPointerException(); + } + + navigation_ = value.getNumber(); + } + /** + *
+     * The type of navigation present on the device
+     * (trackball, wheel, dpad, etc.).
+     * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + private void clearNavigation() { + + navigation_ = 0; + } + + public static final int SDK_VERSION_FIELD_NUMBER = 24; + private int sdkVersion_; + /** + *
+     * The minimum SDK version of the device.
+     * 
+ * + * uint32 sdk_version = 24; + */ + @java.lang.Override + public int getSdkVersion() { + return sdkVersion_; + } + /** + *
+     * The minimum SDK version of the device.
+     * 
+ * + * uint32 sdk_version = 24; + */ + private void setSdkVersion(int value) { + + sdkVersion_ = value; + } + /** + *
+     * The minimum SDK version of the device.
+     * 
+ * + * uint32 sdk_version = 24; + */ + private void clearSdkVersion() { + + sdkVersion_ = 0; + } + + public static final int PRODUCT_FIELD_NUMBER = 25; + private java.lang.String product_; + /** + * string product = 25; + */ + @java.lang.Override + public java.lang.String getProduct() { + return product_; + } + /** + * string product = 25; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProductBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(product_); + } + /** + * string product = 25; + */ + private void setProduct( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + product_ = value; + } + /** + * string product = 25; + */ + private void clearProduct() { + + product_ = getDefaultInstance().getProduct(); + } + /** + * string product = 25; + */ + private void setProductBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + product_ = value.toStringUtf8(); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mcc_ != 0) { + output.writeUInt32(1, mcc_); + } + if (mnc_ != 0) { + output.writeUInt32(2, mnc_); + } + if (!locale_.isEmpty()) { + output.writeString(3, getLocale()); + } + if (layoutDirection_ != com.android.aapt.ConfigurationOuterClass.Configuration.LayoutDirection.LAYOUT_DIRECTION_UNSET.getNumber()) { + output.writeEnum(4, layoutDirection_); + } + if (screenWidth_ != 0) { + output.writeUInt32(5, screenWidth_); + } + if (screenHeight_ != 0) { + output.writeUInt32(6, screenHeight_); + } + if (screenWidthDp_ != 0) { + output.writeUInt32(7, screenWidthDp_); + } + if (screenHeightDp_ != 0) { + output.writeUInt32(8, screenHeightDp_); + } + if (smallestScreenWidthDp_ != 0) { + output.writeUInt32(9, smallestScreenWidthDp_); + } + if (screenLayoutSize_ != com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutSize.SCREEN_LAYOUT_SIZE_UNSET.getNumber()) { + output.writeEnum(10, screenLayoutSize_); + } + if (screenLayoutLong_ != com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutLong.SCREEN_LAYOUT_LONG_UNSET.getNumber()) { + output.writeEnum(11, screenLayoutLong_); + } + if (screenRound_ != com.android.aapt.ConfigurationOuterClass.Configuration.ScreenRound.SCREEN_ROUND_UNSET.getNumber()) { + output.writeEnum(12, screenRound_); + } + if (wideColorGamut_ != com.android.aapt.ConfigurationOuterClass.Configuration.WideColorGamut.WIDE_COLOR_GAMUT_UNSET.getNumber()) { + output.writeEnum(13, wideColorGamut_); + } + if (hdr_ != com.android.aapt.ConfigurationOuterClass.Configuration.Hdr.HDR_UNSET.getNumber()) { + output.writeEnum(14, hdr_); + } + if (orientation_ != com.android.aapt.ConfigurationOuterClass.Configuration.Orientation.ORIENTATION_UNSET.getNumber()) { + output.writeEnum(15, orientation_); + } + if (uiModeType_ != com.android.aapt.ConfigurationOuterClass.Configuration.UiModeType.UI_MODE_TYPE_UNSET.getNumber()) { + output.writeEnum(16, uiModeType_); + } + if (uiModeNight_ != com.android.aapt.ConfigurationOuterClass.Configuration.UiModeNight.UI_MODE_NIGHT_UNSET.getNumber()) { + output.writeEnum(17, uiModeNight_); + } + if (density_ != 0) { + output.writeUInt32(18, density_); + } + if (touchscreen_ != com.android.aapt.ConfigurationOuterClass.Configuration.Touchscreen.TOUCHSCREEN_UNSET.getNumber()) { + output.writeEnum(19, touchscreen_); + } + if (keysHidden_ != com.android.aapt.ConfigurationOuterClass.Configuration.KeysHidden.KEYS_HIDDEN_UNSET.getNumber()) { + output.writeEnum(20, keysHidden_); + } + if (keyboard_ != com.android.aapt.ConfigurationOuterClass.Configuration.Keyboard.KEYBOARD_UNSET.getNumber()) { + output.writeEnum(21, keyboard_); + } + if (navHidden_ != com.android.aapt.ConfigurationOuterClass.Configuration.NavHidden.NAV_HIDDEN_UNSET.getNumber()) { + output.writeEnum(22, navHidden_); + } + if (navigation_ != com.android.aapt.ConfigurationOuterClass.Configuration.Navigation.NAVIGATION_UNSET.getNumber()) { + output.writeEnum(23, navigation_); + } + if (sdkVersion_ != 0) { + output.writeUInt32(24, sdkVersion_); + } + if (!product_.isEmpty()) { + output.writeString(25, getProduct()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (mcc_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, mcc_); + } + if (mnc_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, mnc_); + } + if (!locale_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(3, getLocale()); + } + if (layoutDirection_ != com.android.aapt.ConfigurationOuterClass.Configuration.LayoutDirection.LAYOUT_DIRECTION_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, layoutDirection_); + } + if (screenWidth_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, screenWidth_); + } + if (screenHeight_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, screenHeight_); + } + if (screenWidthDp_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, screenWidthDp_); + } + if (screenHeightDp_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, screenHeightDp_); + } + if (smallestScreenWidthDp_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, smallestScreenWidthDp_); + } + if (screenLayoutSize_ != com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutSize.SCREEN_LAYOUT_SIZE_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, screenLayoutSize_); + } + if (screenLayoutLong_ != com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutLong.SCREEN_LAYOUT_LONG_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, screenLayoutLong_); + } + if (screenRound_ != com.android.aapt.ConfigurationOuterClass.Configuration.ScreenRound.SCREEN_ROUND_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, screenRound_); + } + if (wideColorGamut_ != com.android.aapt.ConfigurationOuterClass.Configuration.WideColorGamut.WIDE_COLOR_GAMUT_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, wideColorGamut_); + } + if (hdr_ != com.android.aapt.ConfigurationOuterClass.Configuration.Hdr.HDR_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, hdr_); + } + if (orientation_ != com.android.aapt.ConfigurationOuterClass.Configuration.Orientation.ORIENTATION_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, orientation_); + } + if (uiModeType_ != com.android.aapt.ConfigurationOuterClass.Configuration.UiModeType.UI_MODE_TYPE_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(16, uiModeType_); + } + if (uiModeNight_ != com.android.aapt.ConfigurationOuterClass.Configuration.UiModeNight.UI_MODE_NIGHT_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, uiModeNight_); + } + if (density_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(18, density_); + } + if (touchscreen_ != com.android.aapt.ConfigurationOuterClass.Configuration.Touchscreen.TOUCHSCREEN_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(19, touchscreen_); + } + if (keysHidden_ != com.android.aapt.ConfigurationOuterClass.Configuration.KeysHidden.KEYS_HIDDEN_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(20, keysHidden_); + } + if (keyboard_ != com.android.aapt.ConfigurationOuterClass.Configuration.Keyboard.KEYBOARD_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(21, keyboard_); + } + if (navHidden_ != com.android.aapt.ConfigurationOuterClass.Configuration.NavHidden.NAV_HIDDEN_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(22, navHidden_); + } + if (navigation_ != com.android.aapt.ConfigurationOuterClass.Configuration.Navigation.NAVIGATION_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(23, navigation_); + } + if (sdkVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(24, sdkVersion_); + } + if (!product_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(25, getProduct()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.ConfigurationOuterClass.Configuration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.ConfigurationOuterClass.Configuration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.ConfigurationOuterClass.Configuration prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A description of the requirements a device must have in order for a
+     * resource to be matched and selected.
+     * 
+ * + * Protobuf type {@code aapt.pb.Configuration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.ConfigurationOuterClass.Configuration, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Configuration) + com.android.aapt.ConfigurationOuterClass.ConfigurationOrBuilder { + // Construct using com.android.aapt.ConfigurationOuterClass.Configuration.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * Mobile country code.
+       * 
+ * + * uint32 mcc = 1; + */ + @java.lang.Override + public int getMcc() { + return instance.getMcc(); + } + /** + *
+       * Mobile country code.
+       * 
+ * + * uint32 mcc = 1; + */ + public Builder setMcc(int value) { + copyOnWrite(); + instance.setMcc(value); + return this; + } + /** + *
+       * Mobile country code.
+       * 
+ * + * uint32 mcc = 1; + */ + public Builder clearMcc() { + copyOnWrite(); + instance.clearMcc(); + return this; + } + + /** + *
+       * Mobile network code.
+       * 
+ * + * uint32 mnc = 2; + */ + @java.lang.Override + public int getMnc() { + return instance.getMnc(); + } + /** + *
+       * Mobile network code.
+       * 
+ * + * uint32 mnc = 2; + */ + public Builder setMnc(int value) { + copyOnWrite(); + instance.setMnc(value); + return this; + } + /** + *
+       * Mobile network code.
+       * 
+ * + * uint32 mnc = 2; + */ + public Builder clearMnc() { + copyOnWrite(); + instance.clearMnc(); + return this; + } + + /** + *
+       * BCP-47 locale tag.
+       * 
+ * + * string locale = 3; + */ + @java.lang.Override + public java.lang.String getLocale() { + return instance.getLocale(); + } + /** + *
+       * BCP-47 locale tag.
+       * 
+ * + * string locale = 3; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLocaleBytes() { + return instance.getLocaleBytes(); + } + /** + *
+       * BCP-47 locale tag.
+       * 
+ * + * string locale = 3; + */ + public Builder setLocale( + java.lang.String value) { + copyOnWrite(); + instance.setLocale(value); + return this; + } + /** + *
+       * BCP-47 locale tag.
+       * 
+ * + * string locale = 3; + */ + public Builder clearLocale() { + copyOnWrite(); + instance.clearLocale(); + return this; + } + /** + *
+       * BCP-47 locale tag.
+       * 
+ * + * string locale = 3; + */ + public Builder setLocaleBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setLocaleBytes(value); + return this; + } + + /** + *
+       * Left-to-right, right-to-left...
+       * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + @java.lang.Override + public int getLayoutDirectionValue() { + return instance.getLayoutDirectionValue(); + } + /** + *
+       * Left-to-right, right-to-left...
+       * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + public Builder setLayoutDirectionValue(int value) { + copyOnWrite(); + instance.setLayoutDirectionValue(value); + return this; + } + /** + *
+       * Left-to-right, right-to-left...
+       * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.LayoutDirection getLayoutDirection() { + return instance.getLayoutDirection(); + } + /** + *
+       * Left-to-right, right-to-left...
+       * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + public Builder setLayoutDirection(com.android.aapt.ConfigurationOuterClass.Configuration.LayoutDirection value) { + copyOnWrite(); + instance.setLayoutDirection(value); + return this; + } + /** + *
+       * Left-to-right, right-to-left...
+       * 
+ * + * .aapt.pb.Configuration.LayoutDirection layout_direction = 4; + */ + public Builder clearLayoutDirection() { + copyOnWrite(); + instance.clearLayoutDirection(); + return this; + } + + /** + *
+       * Screen width in pixels. Prefer screen_width_dp.
+       * 
+ * + * uint32 screen_width = 5; + */ + @java.lang.Override + public int getScreenWidth() { + return instance.getScreenWidth(); + } + /** + *
+       * Screen width in pixels. Prefer screen_width_dp.
+       * 
+ * + * uint32 screen_width = 5; + */ + public Builder setScreenWidth(int value) { + copyOnWrite(); + instance.setScreenWidth(value); + return this; + } + /** + *
+       * Screen width in pixels. Prefer screen_width_dp.
+       * 
+ * + * uint32 screen_width = 5; + */ + public Builder clearScreenWidth() { + copyOnWrite(); + instance.clearScreenWidth(); + return this; + } + + /** + *
+       * Screen height in pixels. Prefer screen_height_dp.
+       * 
+ * + * uint32 screen_height = 6; + */ + @java.lang.Override + public int getScreenHeight() { + return instance.getScreenHeight(); + } + /** + *
+       * Screen height in pixels. Prefer screen_height_dp.
+       * 
+ * + * uint32 screen_height = 6; + */ + public Builder setScreenHeight(int value) { + copyOnWrite(); + instance.setScreenHeight(value); + return this; + } + /** + *
+       * Screen height in pixels. Prefer screen_height_dp.
+       * 
+ * + * uint32 screen_height = 6; + */ + public Builder clearScreenHeight() { + copyOnWrite(); + instance.clearScreenHeight(); + return this; + } + + /** + *
+       * Screen width in density independent pixels (dp).
+       * 
+ * + * uint32 screen_width_dp = 7; + */ + @java.lang.Override + public int getScreenWidthDp() { + return instance.getScreenWidthDp(); + } + /** + *
+       * Screen width in density independent pixels (dp).
+       * 
+ * + * uint32 screen_width_dp = 7; + */ + public Builder setScreenWidthDp(int value) { + copyOnWrite(); + instance.setScreenWidthDp(value); + return this; + } + /** + *
+       * Screen width in density independent pixels (dp).
+       * 
+ * + * uint32 screen_width_dp = 7; + */ + public Builder clearScreenWidthDp() { + copyOnWrite(); + instance.clearScreenWidthDp(); + return this; + } + + /** + *
+       * Screen height in density independent pixels (dp).
+       * 
+ * + * uint32 screen_height_dp = 8; + */ + @java.lang.Override + public int getScreenHeightDp() { + return instance.getScreenHeightDp(); + } + /** + *
+       * Screen height in density independent pixels (dp).
+       * 
+ * + * uint32 screen_height_dp = 8; + */ + public Builder setScreenHeightDp(int value) { + copyOnWrite(); + instance.setScreenHeightDp(value); + return this; + } + /** + *
+       * Screen height in density independent pixels (dp).
+       * 
+ * + * uint32 screen_height_dp = 8; + */ + public Builder clearScreenHeightDp() { + copyOnWrite(); + instance.clearScreenHeightDp(); + return this; + } + + /** + *
+       * The smallest screen dimension, regardless of orientation, in dp.
+       * 
+ * + * uint32 smallest_screen_width_dp = 9; + */ + @java.lang.Override + public int getSmallestScreenWidthDp() { + return instance.getSmallestScreenWidthDp(); + } + /** + *
+       * The smallest screen dimension, regardless of orientation, in dp.
+       * 
+ * + * uint32 smallest_screen_width_dp = 9; + */ + public Builder setSmallestScreenWidthDp(int value) { + copyOnWrite(); + instance.setSmallestScreenWidthDp(value); + return this; + } + /** + *
+       * The smallest screen dimension, regardless of orientation, in dp.
+       * 
+ * + * uint32 smallest_screen_width_dp = 9; + */ + public Builder clearSmallestScreenWidthDp() { + copyOnWrite(); + instance.clearSmallestScreenWidthDp(); + return this; + } + + /** + *
+       * Whether the device screen is classified as small, normal, large, xlarge.
+       * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + @java.lang.Override + public int getScreenLayoutSizeValue() { + return instance.getScreenLayoutSizeValue(); + } + /** + *
+       * Whether the device screen is classified as small, normal, large, xlarge.
+       * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + public Builder setScreenLayoutSizeValue(int value) { + copyOnWrite(); + instance.setScreenLayoutSizeValue(value); + return this; + } + /** + *
+       * Whether the device screen is classified as small, normal, large, xlarge.
+       * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutSize getScreenLayoutSize() { + return instance.getScreenLayoutSize(); + } + /** + *
+       * Whether the device screen is classified as small, normal, large, xlarge.
+       * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + public Builder setScreenLayoutSize(com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutSize value) { + copyOnWrite(); + instance.setScreenLayoutSize(value); + return this; + } + /** + *
+       * Whether the device screen is classified as small, normal, large, xlarge.
+       * 
+ * + * .aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10; + */ + public Builder clearScreenLayoutSize() { + copyOnWrite(); + instance.clearScreenLayoutSize(); + return this; + } + + /** + *
+       * Whether the device screen is long.
+       * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + @java.lang.Override + public int getScreenLayoutLongValue() { + return instance.getScreenLayoutLongValue(); + } + /** + *
+       * Whether the device screen is long.
+       * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + public Builder setScreenLayoutLongValue(int value) { + copyOnWrite(); + instance.setScreenLayoutLongValue(value); + return this; + } + /** + *
+       * Whether the device screen is long.
+       * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutLong getScreenLayoutLong() { + return instance.getScreenLayoutLong(); + } + /** + *
+       * Whether the device screen is long.
+       * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + public Builder setScreenLayoutLong(com.android.aapt.ConfigurationOuterClass.Configuration.ScreenLayoutLong value) { + copyOnWrite(); + instance.setScreenLayoutLong(value); + return this; + } + /** + *
+       * Whether the device screen is long.
+       * 
+ * + * .aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11; + */ + public Builder clearScreenLayoutLong() { + copyOnWrite(); + instance.clearScreenLayoutLong(); + return this; + } + + /** + *
+       * Whether the screen is round (Android Wear).
+       * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + @java.lang.Override + public int getScreenRoundValue() { + return instance.getScreenRoundValue(); + } + /** + *
+       * Whether the screen is round (Android Wear).
+       * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + public Builder setScreenRoundValue(int value) { + copyOnWrite(); + instance.setScreenRoundValue(value); + return this; + } + /** + *
+       * Whether the screen is round (Android Wear).
+       * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.ScreenRound getScreenRound() { + return instance.getScreenRound(); + } + /** + *
+       * Whether the screen is round (Android Wear).
+       * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + public Builder setScreenRound(com.android.aapt.ConfigurationOuterClass.Configuration.ScreenRound value) { + copyOnWrite(); + instance.setScreenRound(value); + return this; + } + /** + *
+       * Whether the screen is round (Android Wear).
+       * 
+ * + * .aapt.pb.Configuration.ScreenRound screen_round = 12; + */ + public Builder clearScreenRound() { + copyOnWrite(); + instance.clearScreenRound(); + return this; + } + + /** + *
+       * Whether the screen supports wide color gamut.
+       * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + @java.lang.Override + public int getWideColorGamutValue() { + return instance.getWideColorGamutValue(); + } + /** + *
+       * Whether the screen supports wide color gamut.
+       * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + public Builder setWideColorGamutValue(int value) { + copyOnWrite(); + instance.setWideColorGamutValue(value); + return this; + } + /** + *
+       * Whether the screen supports wide color gamut.
+       * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.WideColorGamut getWideColorGamut() { + return instance.getWideColorGamut(); + } + /** + *
+       * Whether the screen supports wide color gamut.
+       * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + public Builder setWideColorGamut(com.android.aapt.ConfigurationOuterClass.Configuration.WideColorGamut value) { + copyOnWrite(); + instance.setWideColorGamut(value); + return this; + } + /** + *
+       * Whether the screen supports wide color gamut.
+       * 
+ * + * .aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13; + */ + public Builder clearWideColorGamut() { + copyOnWrite(); + instance.clearWideColorGamut(); + return this; + } + + /** + *
+       * Whether the screen has high dynamic range.
+       * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + @java.lang.Override + public int getHdrValue() { + return instance.getHdrValue(); + } + /** + *
+       * Whether the screen has high dynamic range.
+       * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + public Builder setHdrValue(int value) { + copyOnWrite(); + instance.setHdrValue(value); + return this; + } + /** + *
+       * Whether the screen has high dynamic range.
+       * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.Hdr getHdr() { + return instance.getHdr(); + } + /** + *
+       * Whether the screen has high dynamic range.
+       * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + public Builder setHdr(com.android.aapt.ConfigurationOuterClass.Configuration.Hdr value) { + copyOnWrite(); + instance.setHdr(value); + return this; + } + /** + *
+       * Whether the screen has high dynamic range.
+       * 
+ * + * .aapt.pb.Configuration.Hdr hdr = 14; + */ + public Builder clearHdr() { + copyOnWrite(); + instance.clearHdr(); + return this; + } + + /** + *
+       * Which orientation the device is in (portrait, landscape).
+       * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + @java.lang.Override + public int getOrientationValue() { + return instance.getOrientationValue(); + } + /** + *
+       * Which orientation the device is in (portrait, landscape).
+       * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + public Builder setOrientationValue(int value) { + copyOnWrite(); + instance.setOrientationValue(value); + return this; + } + /** + *
+       * Which orientation the device is in (portrait, landscape).
+       * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.Orientation getOrientation() { + return instance.getOrientation(); + } + /** + *
+       * Which orientation the device is in (portrait, landscape).
+       * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + public Builder setOrientation(com.android.aapt.ConfigurationOuterClass.Configuration.Orientation value) { + copyOnWrite(); + instance.setOrientation(value); + return this; + } + /** + *
+       * Which orientation the device is in (portrait, landscape).
+       * 
+ * + * .aapt.pb.Configuration.Orientation orientation = 15; + */ + public Builder clearOrientation() { + copyOnWrite(); + instance.clearOrientation(); + return this; + } + + /** + *
+       * Which type of UI mode the device is in (television, car, etc.).
+       * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + @java.lang.Override + public int getUiModeTypeValue() { + return instance.getUiModeTypeValue(); + } + /** + *
+       * Which type of UI mode the device is in (television, car, etc.).
+       * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + public Builder setUiModeTypeValue(int value) { + copyOnWrite(); + instance.setUiModeTypeValue(value); + return this; + } + /** + *
+       * Which type of UI mode the device is in (television, car, etc.).
+       * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.UiModeType getUiModeType() { + return instance.getUiModeType(); + } + /** + *
+       * Which type of UI mode the device is in (television, car, etc.).
+       * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + public Builder setUiModeType(com.android.aapt.ConfigurationOuterClass.Configuration.UiModeType value) { + copyOnWrite(); + instance.setUiModeType(value); + return this; + } + /** + *
+       * Which type of UI mode the device is in (television, car, etc.).
+       * 
+ * + * .aapt.pb.Configuration.UiModeType ui_mode_type = 16; + */ + public Builder clearUiModeType() { + copyOnWrite(); + instance.clearUiModeType(); + return this; + } + + /** + *
+       * Whether the device is in night mode.
+       * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + @java.lang.Override + public int getUiModeNightValue() { + return instance.getUiModeNightValue(); + } + /** + *
+       * Whether the device is in night mode.
+       * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + public Builder setUiModeNightValue(int value) { + copyOnWrite(); + instance.setUiModeNightValue(value); + return this; + } + /** + *
+       * Whether the device is in night mode.
+       * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.UiModeNight getUiModeNight() { + return instance.getUiModeNight(); + } + /** + *
+       * Whether the device is in night mode.
+       * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + public Builder setUiModeNight(com.android.aapt.ConfigurationOuterClass.Configuration.UiModeNight value) { + copyOnWrite(); + instance.setUiModeNight(value); + return this; + } + /** + *
+       * Whether the device is in night mode.
+       * 
+ * + * .aapt.pb.Configuration.UiModeNight ui_mode_night = 17; + */ + public Builder clearUiModeNight() { + copyOnWrite(); + instance.clearUiModeNight(); + return this; + } + + /** + *
+       * The device's screen density in dots-per-inch (dpi).
+       * 
+ * + * uint32 density = 18; + */ + @java.lang.Override + public int getDensity() { + return instance.getDensity(); + } + /** + *
+       * The device's screen density in dots-per-inch (dpi).
+       * 
+ * + * uint32 density = 18; + */ + public Builder setDensity(int value) { + copyOnWrite(); + instance.setDensity(value); + return this; + } + /** + *
+       * The device's screen density in dots-per-inch (dpi).
+       * 
+ * + * uint32 density = 18; + */ + public Builder clearDensity() { + copyOnWrite(); + instance.clearDensity(); + return this; + } + + /** + *
+       * Whether a touchscreen exists, supports a stylus, or finger.
+       * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + @java.lang.Override + public int getTouchscreenValue() { + return instance.getTouchscreenValue(); + } + /** + *
+       * Whether a touchscreen exists, supports a stylus, or finger.
+       * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + public Builder setTouchscreenValue(int value) { + copyOnWrite(); + instance.setTouchscreenValue(value); + return this; + } + /** + *
+       * Whether a touchscreen exists, supports a stylus, or finger.
+       * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.Touchscreen getTouchscreen() { + return instance.getTouchscreen(); + } + /** + *
+       * Whether a touchscreen exists, supports a stylus, or finger.
+       * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + public Builder setTouchscreen(com.android.aapt.ConfigurationOuterClass.Configuration.Touchscreen value) { + copyOnWrite(); + instance.setTouchscreen(value); + return this; + } + /** + *
+       * Whether a touchscreen exists, supports a stylus, or finger.
+       * 
+ * + * .aapt.pb.Configuration.Touchscreen touchscreen = 19; + */ + public Builder clearTouchscreen() { + copyOnWrite(); + instance.clearTouchscreen(); + return this; + } + + /** + *
+       * Whether the keyboard hardware keys are currently hidden, exposed, or
+       * if the keyboard is a software keyboard.
+       * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + @java.lang.Override + public int getKeysHiddenValue() { + return instance.getKeysHiddenValue(); + } + /** + *
+       * Whether the keyboard hardware keys are currently hidden, exposed, or
+       * if the keyboard is a software keyboard.
+       * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + public Builder setKeysHiddenValue(int value) { + copyOnWrite(); + instance.setKeysHiddenValue(value); + return this; + } + /** + *
+       * Whether the keyboard hardware keys are currently hidden, exposed, or
+       * if the keyboard is a software keyboard.
+       * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.KeysHidden getKeysHidden() { + return instance.getKeysHidden(); + } + /** + *
+       * Whether the keyboard hardware keys are currently hidden, exposed, or
+       * if the keyboard is a software keyboard.
+       * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + public Builder setKeysHidden(com.android.aapt.ConfigurationOuterClass.Configuration.KeysHidden value) { + copyOnWrite(); + instance.setKeysHidden(value); + return this; + } + /** + *
+       * Whether the keyboard hardware keys are currently hidden, exposed, or
+       * if the keyboard is a software keyboard.
+       * 
+ * + * .aapt.pb.Configuration.KeysHidden keys_hidden = 20; + */ + public Builder clearKeysHidden() { + copyOnWrite(); + instance.clearKeysHidden(); + return this; + } + + /** + *
+       * The type of keyboard present (none, QWERTY, 12-key).
+       * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + @java.lang.Override + public int getKeyboardValue() { + return instance.getKeyboardValue(); + } + /** + *
+       * The type of keyboard present (none, QWERTY, 12-key).
+       * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + public Builder setKeyboardValue(int value) { + copyOnWrite(); + instance.setKeyboardValue(value); + return this; + } + /** + *
+       * The type of keyboard present (none, QWERTY, 12-key).
+       * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.Keyboard getKeyboard() { + return instance.getKeyboard(); + } + /** + *
+       * The type of keyboard present (none, QWERTY, 12-key).
+       * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + public Builder setKeyboard(com.android.aapt.ConfigurationOuterClass.Configuration.Keyboard value) { + copyOnWrite(); + instance.setKeyboard(value); + return this; + } + /** + *
+       * The type of keyboard present (none, QWERTY, 12-key).
+       * 
+ * + * .aapt.pb.Configuration.Keyboard keyboard = 21; + */ + public Builder clearKeyboard() { + copyOnWrite(); + instance.clearKeyboard(); + return this; + } + + /** + *
+       * Whether the navigation is exposed or hidden.
+       * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + @java.lang.Override + public int getNavHiddenValue() { + return instance.getNavHiddenValue(); + } + /** + *
+       * Whether the navigation is exposed or hidden.
+       * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + public Builder setNavHiddenValue(int value) { + copyOnWrite(); + instance.setNavHiddenValue(value); + return this; + } + /** + *
+       * Whether the navigation is exposed or hidden.
+       * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.NavHidden getNavHidden() { + return instance.getNavHidden(); + } + /** + *
+       * Whether the navigation is exposed or hidden.
+       * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + public Builder setNavHidden(com.android.aapt.ConfigurationOuterClass.Configuration.NavHidden value) { + copyOnWrite(); + instance.setNavHidden(value); + return this; + } + /** + *
+       * Whether the navigation is exposed or hidden.
+       * 
+ * + * .aapt.pb.Configuration.NavHidden nav_hidden = 22; + */ + public Builder clearNavHidden() { + copyOnWrite(); + instance.clearNavHidden(); + return this; + } + + /** + *
+       * The type of navigation present on the device
+       * (trackball, wheel, dpad, etc.).
+       * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + @java.lang.Override + public int getNavigationValue() { + return instance.getNavigationValue(); + } + /** + *
+       * The type of navigation present on the device
+       * (trackball, wheel, dpad, etc.).
+       * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + public Builder setNavigationValue(int value) { + copyOnWrite(); + instance.setNavigationValue(value); + return this; + } + /** + *
+       * The type of navigation present on the device
+       * (trackball, wheel, dpad, etc.).
+       * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration.Navigation getNavigation() { + return instance.getNavigation(); + } + /** + *
+       * The type of navigation present on the device
+       * (trackball, wheel, dpad, etc.).
+       * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + public Builder setNavigation(com.android.aapt.ConfigurationOuterClass.Configuration.Navigation value) { + copyOnWrite(); + instance.setNavigation(value); + return this; + } + /** + *
+       * The type of navigation present on the device
+       * (trackball, wheel, dpad, etc.).
+       * 
+ * + * .aapt.pb.Configuration.Navigation navigation = 23; + */ + public Builder clearNavigation() { + copyOnWrite(); + instance.clearNavigation(); + return this; + } + + /** + *
+       * The minimum SDK version of the device.
+       * 
+ * + * uint32 sdk_version = 24; + */ + @java.lang.Override + public int getSdkVersion() { + return instance.getSdkVersion(); + } + /** + *
+       * The minimum SDK version of the device.
+       * 
+ * + * uint32 sdk_version = 24; + */ + public Builder setSdkVersion(int value) { + copyOnWrite(); + instance.setSdkVersion(value); + return this; + } + /** + *
+       * The minimum SDK version of the device.
+       * 
+ * + * uint32 sdk_version = 24; + */ + public Builder clearSdkVersion() { + copyOnWrite(); + instance.clearSdkVersion(); + return this; + } + + /** + * string product = 25; + */ + @java.lang.Override + public java.lang.String getProduct() { + return instance.getProduct(); + } + /** + * string product = 25; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProductBytes() { + return instance.getProductBytes(); + } + /** + * string product = 25; + */ + public Builder setProduct( + java.lang.String value) { + copyOnWrite(); + instance.setProduct(value); + return this; + } + /** + * string product = 25; + */ + public Builder clearProduct() { + copyOnWrite(); + instance.clearProduct(); + return this; + } + /** + * string product = 25; + */ + public Builder setProductBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setProductBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Configuration) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.ConfigurationOuterClass.Configuration(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.ConfigurationOuterClass.Configuration other = (com.android.aapt.ConfigurationOuterClass.Configuration) arg1; + mcc_ = visitor.visitInt(mcc_ != 0, mcc_, + other.mcc_ != 0, other.mcc_); + mnc_ = visitor.visitInt(mnc_ != 0, mnc_, + other.mnc_ != 0, other.mnc_); + locale_ = visitor.visitString(!locale_.isEmpty(), locale_, + !other.locale_.isEmpty(), other.locale_); + layoutDirection_ = visitor.visitInt(layoutDirection_ != 0, layoutDirection_, other.layoutDirection_ != 0, other.layoutDirection_); + screenWidth_ = visitor.visitInt(screenWidth_ != 0, screenWidth_, + other.screenWidth_ != 0, other.screenWidth_); + screenHeight_ = visitor.visitInt(screenHeight_ != 0, screenHeight_, + other.screenHeight_ != 0, other.screenHeight_); + screenWidthDp_ = visitor.visitInt(screenWidthDp_ != 0, screenWidthDp_, + other.screenWidthDp_ != 0, other.screenWidthDp_); + screenHeightDp_ = visitor.visitInt(screenHeightDp_ != 0, screenHeightDp_, + other.screenHeightDp_ != 0, other.screenHeightDp_); + smallestScreenWidthDp_ = visitor.visitInt(smallestScreenWidthDp_ != 0, smallestScreenWidthDp_, + other.smallestScreenWidthDp_ != 0, other.smallestScreenWidthDp_); + screenLayoutSize_ = visitor.visitInt(screenLayoutSize_ != 0, screenLayoutSize_, other.screenLayoutSize_ != 0, other.screenLayoutSize_); + screenLayoutLong_ = visitor.visitInt(screenLayoutLong_ != 0, screenLayoutLong_, other.screenLayoutLong_ != 0, other.screenLayoutLong_); + screenRound_ = visitor.visitInt(screenRound_ != 0, screenRound_, other.screenRound_ != 0, other.screenRound_); + wideColorGamut_ = visitor.visitInt(wideColorGamut_ != 0, wideColorGamut_, other.wideColorGamut_ != 0, other.wideColorGamut_); + hdr_ = visitor.visitInt(hdr_ != 0, hdr_, other.hdr_ != 0, other.hdr_); + orientation_ = visitor.visitInt(orientation_ != 0, orientation_, other.orientation_ != 0, other.orientation_); + uiModeType_ = visitor.visitInt(uiModeType_ != 0, uiModeType_, other.uiModeType_ != 0, other.uiModeType_); + uiModeNight_ = visitor.visitInt(uiModeNight_ != 0, uiModeNight_, other.uiModeNight_ != 0, other.uiModeNight_); + density_ = visitor.visitInt(density_ != 0, density_, + other.density_ != 0, other.density_); + touchscreen_ = visitor.visitInt(touchscreen_ != 0, touchscreen_, other.touchscreen_ != 0, other.touchscreen_); + keysHidden_ = visitor.visitInt(keysHidden_ != 0, keysHidden_, other.keysHidden_ != 0, other.keysHidden_); + keyboard_ = visitor.visitInt(keyboard_ != 0, keyboard_, other.keyboard_ != 0, other.keyboard_); + navHidden_ = visitor.visitInt(navHidden_ != 0, navHidden_, other.navHidden_ != 0, other.navHidden_); + navigation_ = visitor.visitInt(navigation_ != 0, navigation_, other.navigation_ != 0, other.navigation_); + sdkVersion_ = visitor.visitInt(sdkVersion_ != 0, sdkVersion_, + other.sdkVersion_ != 0, other.sdkVersion_); + product_ = visitor.visitString(!product_.isEmpty(), product_, + !other.product_.isEmpty(), other.product_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + + mcc_ = input.readUInt32(); + break; + } + case 16: { + + mnc_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + locale_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + layoutDirection_ = rawValue; + break; + } + case 40: { + + screenWidth_ = input.readUInt32(); + break; + } + case 48: { + + screenHeight_ = input.readUInt32(); + break; + } + case 56: { + + screenWidthDp_ = input.readUInt32(); + break; + } + case 64: { + + screenHeightDp_ = input.readUInt32(); + break; + } + case 72: { + + smallestScreenWidthDp_ = input.readUInt32(); + break; + } + case 80: { + int rawValue = input.readEnum(); + + screenLayoutSize_ = rawValue; + break; + } + case 88: { + int rawValue = input.readEnum(); + + screenLayoutLong_ = rawValue; + break; + } + case 96: { + int rawValue = input.readEnum(); + + screenRound_ = rawValue; + break; + } + case 104: { + int rawValue = input.readEnum(); + + wideColorGamut_ = rawValue; + break; + } + case 112: { + int rawValue = input.readEnum(); + + hdr_ = rawValue; + break; + } + case 120: { + int rawValue = input.readEnum(); + + orientation_ = rawValue; + break; + } + case 128: { + int rawValue = input.readEnum(); + + uiModeType_ = rawValue; + break; + } + case 136: { + int rawValue = input.readEnum(); + + uiModeNight_ = rawValue; + break; + } + case 144: { + + density_ = input.readUInt32(); + break; + } + case 152: { + int rawValue = input.readEnum(); + + touchscreen_ = rawValue; + break; + } + case 160: { + int rawValue = input.readEnum(); + + keysHidden_ = rawValue; + break; + } + case 168: { + int rawValue = input.readEnum(); + + keyboard_ = rawValue; + break; + } + case 176: { + int rawValue = input.readEnum(); + + navHidden_ = rawValue; + break; + } + case 184: { + int rawValue = input.readEnum(); + + navigation_ = rawValue; + break; + } + case 192: { + + sdkVersion_ = input.readUInt32(); + break; + } + case 202: { + java.lang.String s = input.readStringRequireUtf8(); + + product_ = s; + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.ConfigurationOuterClass.Configuration.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Configuration) + private static final com.android.aapt.ConfigurationOuterClass.Configuration DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Configuration(); + } + + public static com.android.aapt.ConfigurationOuterClass.Configuration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + + static { + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/booster-aapt2/src/main/java/com/android/aapt/Resources.java b/booster-aapt2/src/main/java/com/android/aapt/Resources.java new file mode 100644 index 000000000..5fcafba67 --- /dev/null +++ b/booster-aapt2/src/main/java/com/android/aapt/Resources.java @@ -0,0 +1,31125 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Resources.proto + +package com.android.aapt; + +public final class Resources { + private Resources() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface StringPoolOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.StringPool) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * bytes data = 1; + */ + com.google.protobuf.ByteString getData(); + } + /** + *
+   * A string pool that wraps the binary form of the C++ class android::ResStringPool.
+   * 
+ * + * Protobuf type {@code aapt.pb.StringPool} + */ + public static final class StringPool extends + com.google.protobuf.GeneratedMessageLite< + StringPool, StringPool.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.StringPool) + StringPoolOrBuilder { + private StringPool() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 1; + */ + private void setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + } + /** + * bytes data = 1; + */ + private void clearData() { + + data_ = getDefaultInstance().getData(); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.StringPool parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.StringPool parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.StringPool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.StringPool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.StringPool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.StringPool parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.StringPool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.StringPool parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.StringPool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.StringPool parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.StringPool parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.StringPool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.StringPool prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A string pool that wraps the binary form of the C++ class android::ResStringPool.
+     * 
+ * + * Protobuf type {@code aapt.pb.StringPool} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.StringPool, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.StringPool) + com.android.aapt.Resources.StringPoolOrBuilder { + // Construct using com.android.aapt.Resources.StringPool.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * bytes data = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return instance.getData(); + } + /** + * bytes data = 1; + */ + public Builder setData(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setData(value); + return this; + } + /** + * bytes data = 1; + */ + public Builder clearData() { + copyOnWrite(); + instance.clearData(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.StringPool) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.StringPool(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.StringPool other = (com.android.aapt.Resources.StringPool) arg1; + data_ = visitor.visitByteString(data_ != com.google.protobuf.ByteString.EMPTY, data_, + other.data_ != com.google.protobuf.ByteString.EMPTY, other.data_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + + data_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.StringPool.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.StringPool) + private static final com.android.aapt.Resources.StringPool DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new StringPool(); + } + + public static com.android.aapt.Resources.StringPool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface SourcePositionOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.SourcePosition) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * uint32 line_number = 1; + */ + int getLineNumber(); + + /** + * uint32 column_number = 2; + */ + int getColumnNumber(); + } + /** + *
+   * The position of a declared entity within a file.
+   * 
+ * + * Protobuf type {@code aapt.pb.SourcePosition} + */ + public static final class SourcePosition extends + com.google.protobuf.GeneratedMessageLite< + SourcePosition, SourcePosition.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.SourcePosition) + SourcePositionOrBuilder { + private SourcePosition() { + } + public static final int LINE_NUMBER_FIELD_NUMBER = 1; + private int lineNumber_; + /** + * uint32 line_number = 1; + */ + @java.lang.Override + public int getLineNumber() { + return lineNumber_; + } + /** + * uint32 line_number = 1; + */ + private void setLineNumber(int value) { + + lineNumber_ = value; + } + /** + * uint32 line_number = 1; + */ + private void clearLineNumber() { + + lineNumber_ = 0; + } + + public static final int COLUMN_NUMBER_FIELD_NUMBER = 2; + private int columnNumber_; + /** + * uint32 column_number = 2; + */ + @java.lang.Override + public int getColumnNumber() { + return columnNumber_; + } + /** + * uint32 column_number = 2; + */ + private void setColumnNumber(int value) { + + columnNumber_ = value; + } + /** + * uint32 column_number = 2; + */ + private void clearColumnNumber() { + + columnNumber_ = 0; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (lineNumber_ != 0) { + output.writeUInt32(1, lineNumber_); + } + if (columnNumber_ != 0) { + output.writeUInt32(2, columnNumber_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (lineNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, lineNumber_); + } + if (columnNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, columnNumber_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.SourcePosition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.SourcePosition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.SourcePosition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.SourcePosition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.SourcePosition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.SourcePosition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.SourcePosition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.SourcePosition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.SourcePosition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.SourcePosition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.SourcePosition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.SourcePosition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.SourcePosition prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * The position of a declared entity within a file.
+     * 
+ * + * Protobuf type {@code aapt.pb.SourcePosition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.SourcePosition, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.SourcePosition) + com.android.aapt.Resources.SourcePositionOrBuilder { + // Construct using com.android.aapt.Resources.SourcePosition.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * uint32 line_number = 1; + */ + @java.lang.Override + public int getLineNumber() { + return instance.getLineNumber(); + } + /** + * uint32 line_number = 1; + */ + public Builder setLineNumber(int value) { + copyOnWrite(); + instance.setLineNumber(value); + return this; + } + /** + * uint32 line_number = 1; + */ + public Builder clearLineNumber() { + copyOnWrite(); + instance.clearLineNumber(); + return this; + } + + /** + * uint32 column_number = 2; + */ + @java.lang.Override + public int getColumnNumber() { + return instance.getColumnNumber(); + } + /** + * uint32 column_number = 2; + */ + public Builder setColumnNumber(int value) { + copyOnWrite(); + instance.setColumnNumber(value); + return this; + } + /** + * uint32 column_number = 2; + */ + public Builder clearColumnNumber() { + copyOnWrite(); + instance.clearColumnNumber(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.SourcePosition) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.SourcePosition(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.SourcePosition other = (com.android.aapt.Resources.SourcePosition) arg1; + lineNumber_ = visitor.visitInt(lineNumber_ != 0, lineNumber_, + other.lineNumber_ != 0, other.lineNumber_); + columnNumber_ = visitor.visitInt(columnNumber_ != 0, columnNumber_, + other.columnNumber_ != 0, other.columnNumber_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + + lineNumber_ = input.readUInt32(); + break; + } + case 16: { + + columnNumber_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.SourcePosition.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.SourcePosition) + private static final com.android.aapt.Resources.SourcePosition DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new SourcePosition(); + } + + public static com.android.aapt.Resources.SourcePosition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface SourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Source) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * The index of the string path within the source string pool of a ResourceTable.
+     * 
+ * + * uint32 path_idx = 1; + */ + int getPathIdx(); + + /** + * .aapt.pb.SourcePosition position = 2; + */ + boolean hasPosition(); + /** + * .aapt.pb.SourcePosition position = 2; + */ + com.android.aapt.Resources.SourcePosition getPosition(); + } + /** + *
+   * Developer friendly source file information for an entity in the resource table.
+   * 
+ * + * Protobuf type {@code aapt.pb.Source} + */ + public static final class Source extends + com.google.protobuf.GeneratedMessageLite< + Source, Source.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Source) + SourceOrBuilder { + private Source() { + } + public static final int PATH_IDX_FIELD_NUMBER = 1; + private int pathIdx_; + /** + *
+     * The index of the string path within the source string pool of a ResourceTable.
+     * 
+ * + * uint32 path_idx = 1; + */ + @java.lang.Override + public int getPathIdx() { + return pathIdx_; + } + /** + *
+     * The index of the string path within the source string pool of a ResourceTable.
+     * 
+ * + * uint32 path_idx = 1; + */ + private void setPathIdx(int value) { + + pathIdx_ = value; + } + /** + *
+     * The index of the string path within the source string pool of a ResourceTable.
+     * 
+ * + * uint32 path_idx = 1; + */ + private void clearPathIdx() { + + pathIdx_ = 0; + } + + public static final int POSITION_FIELD_NUMBER = 2; + private com.android.aapt.Resources.SourcePosition position_; + /** + * .aapt.pb.SourcePosition position = 2; + */ + @java.lang.Override + public boolean hasPosition() { + return position_ != null; + } + /** + * .aapt.pb.SourcePosition position = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.SourcePosition getPosition() { + return position_ == null ? com.android.aapt.Resources.SourcePosition.getDefaultInstance() : position_; + } + /** + * .aapt.pb.SourcePosition position = 2; + */ + private void setPosition(com.android.aapt.Resources.SourcePosition value) { + if (value == null) { + throw new NullPointerException(); + } + position_ = value; + + } + /** + * .aapt.pb.SourcePosition position = 2; + */ + private void setPosition( + com.android.aapt.Resources.SourcePosition.Builder builderForValue) { + position_ = builderForValue.build(); + + } + /** + * .aapt.pb.SourcePosition position = 2; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergePosition(com.android.aapt.Resources.SourcePosition value) { + if (value == null) { + throw new NullPointerException(); + } + if (position_ != null && + position_ != com.android.aapt.Resources.SourcePosition.getDefaultInstance()) { + position_ = + com.android.aapt.Resources.SourcePosition.newBuilder(position_).mergeFrom(value).buildPartial(); + } else { + position_ = value; + } + + } + /** + * .aapt.pb.SourcePosition position = 2; + */ + private void clearPosition() { position_ = null; + + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pathIdx_ != 0) { + output.writeUInt32(1, pathIdx_); + } + if (position_ != null) { + output.writeMessage(2, getPosition()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (pathIdx_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, pathIdx_); + } + if (position_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPosition()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Source parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Source parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Source parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Source parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Source parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Source parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Source parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Source parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Source parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Source parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Source parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Source parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Source prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * Developer friendly source file information for an entity in the resource table.
+     * 
+ * + * Protobuf type {@code aapt.pb.Source} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Source, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Source) + com.android.aapt.Resources.SourceOrBuilder { + // Construct using com.android.aapt.Resources.Source.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * The index of the string path within the source string pool of a ResourceTable.
+       * 
+ * + * uint32 path_idx = 1; + */ + @java.lang.Override + public int getPathIdx() { + return instance.getPathIdx(); + } + /** + *
+       * The index of the string path within the source string pool of a ResourceTable.
+       * 
+ * + * uint32 path_idx = 1; + */ + public Builder setPathIdx(int value) { + copyOnWrite(); + instance.setPathIdx(value); + return this; + } + /** + *
+       * The index of the string path within the source string pool of a ResourceTable.
+       * 
+ * + * uint32 path_idx = 1; + */ + public Builder clearPathIdx() { + copyOnWrite(); + instance.clearPathIdx(); + return this; + } + + /** + * .aapt.pb.SourcePosition position = 2; + */ + @java.lang.Override + public boolean hasPosition() { + return instance.hasPosition(); + } + /** + * .aapt.pb.SourcePosition position = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.SourcePosition getPosition() { + return instance.getPosition(); + } + /** + * .aapt.pb.SourcePosition position = 2; + */ + public Builder setPosition(com.android.aapt.Resources.SourcePosition value) { + copyOnWrite(); + instance.setPosition(value); + return this; + } + /** + * .aapt.pb.SourcePosition position = 2; + */ + public Builder setPosition( + com.android.aapt.Resources.SourcePosition.Builder builderForValue) { + copyOnWrite(); + instance.setPosition(builderForValue); + return this; + } + /** + * .aapt.pb.SourcePosition position = 2; + */ + public Builder mergePosition(com.android.aapt.Resources.SourcePosition value) { + copyOnWrite(); + instance.mergePosition(value); + return this; + } + /** + * .aapt.pb.SourcePosition position = 2; + */ + public Builder clearPosition() { copyOnWrite(); + instance.clearPosition(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Source) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Source(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Source other = (com.android.aapt.Resources.Source) arg1; + pathIdx_ = visitor.visitInt(pathIdx_ != 0, pathIdx_, + other.pathIdx_ != 0, other.pathIdx_); + position_ = visitor.visitMessage(position_, other.position_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + + pathIdx_ = input.readUInt32(); + break; + } + case 18: { + com.android.aapt.Resources.SourcePosition.Builder subBuilder = null; + if (position_ != null) { + subBuilder = position_.toBuilder(); + } + position_ = input.readMessage(com.android.aapt.Resources.SourcePosition.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(position_); + position_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Source.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Source) + private static final com.android.aapt.Resources.Source DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Source(); + } + + public static com.android.aapt.Resources.Source getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ResourceTableOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.ResourceTable) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * The string pool containing source paths referenced throughout the resource table. This does
+     * not end up in the final binary ARSC file.
+     * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + boolean hasSourcePool(); + /** + *
+     * The string pool containing source paths referenced throughout the resource table. This does
+     * not end up in the final binary ARSC file.
+     * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + com.android.aapt.Resources.StringPool getSourcePool(); + + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + java.util.List + getPackageList(); + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + com.android.aapt.Resources.Package getPackage(int index); + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + int getPackageCount(); + } + /** + *
+   * Top level message representing a resource table.
+   * 
+ * + * Protobuf type {@code aapt.pb.ResourceTable} + */ + public static final class ResourceTable extends + com.google.protobuf.GeneratedMessageLite< + ResourceTable, ResourceTable.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.ResourceTable) + ResourceTableOrBuilder { + private ResourceTable() { + package_ = emptyProtobufList(); + } + private int bitField0_; + public static final int SOURCE_POOL_FIELD_NUMBER = 1; + private com.android.aapt.Resources.StringPool sourcePool_; + /** + *
+     * The string pool containing source paths referenced throughout the resource table. This does
+     * not end up in the final binary ARSC file.
+     * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + @java.lang.Override + public boolean hasSourcePool() { + return sourcePool_ != null; + } + /** + *
+     * The string pool containing source paths referenced throughout the resource table. This does
+     * not end up in the final binary ARSC file.
+     * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.StringPool getSourcePool() { + return sourcePool_ == null ? com.android.aapt.Resources.StringPool.getDefaultInstance() : sourcePool_; + } + /** + *
+     * The string pool containing source paths referenced throughout the resource table. This does
+     * not end up in the final binary ARSC file.
+     * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + private void setSourcePool(com.android.aapt.Resources.StringPool value) { + if (value == null) { + throw new NullPointerException(); + } + sourcePool_ = value; + + } + /** + *
+     * The string pool containing source paths referenced throughout the resource table. This does
+     * not end up in the final binary ARSC file.
+     * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + private void setSourcePool( + com.android.aapt.Resources.StringPool.Builder builderForValue) { + sourcePool_ = builderForValue.build(); + + } + /** + *
+     * The string pool containing source paths referenced throughout the resource table. This does
+     * not end up in the final binary ARSC file.
+     * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeSourcePool(com.android.aapt.Resources.StringPool value) { + if (value == null) { + throw new NullPointerException(); + } + if (sourcePool_ != null && + sourcePool_ != com.android.aapt.Resources.StringPool.getDefaultInstance()) { + sourcePool_ = + com.android.aapt.Resources.StringPool.newBuilder(sourcePool_).mergeFrom(value).buildPartial(); + } else { + sourcePool_ = value; + } + + } + /** + *
+     * The string pool containing source paths referenced throughout the resource table. This does
+     * not end up in the final binary ARSC file.
+     * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + private void clearSourcePool() { sourcePool_ = null; + + } + + public static final int PACKAGE_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.ProtobufList package_; + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + @java.lang.Override + public java.util.List getPackageList() { + return package_; + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public java.util.List + getPackageOrBuilderList() { + return package_; + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + @java.lang.Override + public int getPackageCount() { + return package_.size(); + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Package getPackage(int index) { + return package_.get(index); + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public com.android.aapt.Resources.PackageOrBuilder getPackageOrBuilder( + int index) { + return package_.get(index); + } + private void ensurePackageIsMutable() { + if (!package_.isModifiable()) { + package_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(package_); + } + } + + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + private void setPackage( + int index, com.android.aapt.Resources.Package value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePackageIsMutable(); + package_.set(index, value); + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + private void setPackage( + int index, com.android.aapt.Resources.Package.Builder builderForValue) { + ensurePackageIsMutable(); + package_.set(index, builderForValue.build()); + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + private void addPackage(com.android.aapt.Resources.Package value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePackageIsMutable(); + package_.add(value); + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + private void addPackage( + int index, com.android.aapt.Resources.Package value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePackageIsMutable(); + package_.add(index, value); + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + private void addPackage( + com.android.aapt.Resources.Package.Builder builderForValue) { + ensurePackageIsMutable(); + package_.add(builderForValue.build()); + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + private void addPackage( + int index, com.android.aapt.Resources.Package.Builder builderForValue) { + ensurePackageIsMutable(); + package_.add(index, builderForValue.build()); + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + private void addAllPackage( + java.lang.Iterable values) { + ensurePackageIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, package_); + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + private void clearPackage() { + package_ = emptyProtobufList(); + } + /** + *
+     * Resource definitions corresponding to an Android package.
+     * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + private void removePackage(int index) { + ensurePackageIsMutable(); + package_.remove(index); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (sourcePool_ != null) { + output.writeMessage(1, getSourcePool()); + } + for (int i = 0; i < package_.size(); i++) { + output.writeMessage(2, package_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (sourcePool_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSourcePool()); + } + for (int i = 0; i < package_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, package_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.ResourceTable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.ResourceTable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.ResourceTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.ResourceTable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.ResourceTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.ResourceTable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.ResourceTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.ResourceTable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.ResourceTable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.ResourceTable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.ResourceTable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.ResourceTable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.ResourceTable prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * Top level message representing a resource table.
+     * 
+ * + * Protobuf type {@code aapt.pb.ResourceTable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.ResourceTable, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.ResourceTable) + com.android.aapt.Resources.ResourceTableOrBuilder { + // Construct using com.android.aapt.Resources.ResourceTable.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * The string pool containing source paths referenced throughout the resource table. This does
+       * not end up in the final binary ARSC file.
+       * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + @java.lang.Override + public boolean hasSourcePool() { + return instance.hasSourcePool(); + } + /** + *
+       * The string pool containing source paths referenced throughout the resource table. This does
+       * not end up in the final binary ARSC file.
+       * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.StringPool getSourcePool() { + return instance.getSourcePool(); + } + /** + *
+       * The string pool containing source paths referenced throughout the resource table. This does
+       * not end up in the final binary ARSC file.
+       * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + public Builder setSourcePool(com.android.aapt.Resources.StringPool value) { + copyOnWrite(); + instance.setSourcePool(value); + return this; + } + /** + *
+       * The string pool containing source paths referenced throughout the resource table. This does
+       * not end up in the final binary ARSC file.
+       * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + public Builder setSourcePool( + com.android.aapt.Resources.StringPool.Builder builderForValue) { + copyOnWrite(); + instance.setSourcePool(builderForValue); + return this; + } + /** + *
+       * The string pool containing source paths referenced throughout the resource table. This does
+       * not end up in the final binary ARSC file.
+       * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + public Builder mergeSourcePool(com.android.aapt.Resources.StringPool value) { + copyOnWrite(); + instance.mergeSourcePool(value); + return this; + } + /** + *
+       * The string pool containing source paths referenced throughout the resource table. This does
+       * not end up in the final binary ARSC file.
+       * 
+ * + * .aapt.pb.StringPool source_pool = 1; + */ + public Builder clearSourcePool() { copyOnWrite(); + instance.clearSourcePool(); + return this; + } + + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + @java.lang.Override + public java.util.List getPackageList() { + return java.util.Collections.unmodifiableList( + instance.getPackageList()); + } + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + @java.lang.Override + public int getPackageCount() { + return instance.getPackageCount(); + }/** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Package getPackage(int index) { + return instance.getPackage(index); + } + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public Builder setPackage( + int index, com.android.aapt.Resources.Package value) { + copyOnWrite(); + instance.setPackage(index, value); + return this; + } + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public Builder setPackage( + int index, com.android.aapt.Resources.Package.Builder builderForValue) { + copyOnWrite(); + instance.setPackage(index, builderForValue); + return this; + } + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public Builder addPackage(com.android.aapt.Resources.Package value) { + copyOnWrite(); + instance.addPackage(value); + return this; + } + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public Builder addPackage( + int index, com.android.aapt.Resources.Package value) { + copyOnWrite(); + instance.addPackage(index, value); + return this; + } + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public Builder addPackage( + com.android.aapt.Resources.Package.Builder builderForValue) { + copyOnWrite(); + instance.addPackage(builderForValue); + return this; + } + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public Builder addPackage( + int index, com.android.aapt.Resources.Package.Builder builderForValue) { + copyOnWrite(); + instance.addPackage(index, builderForValue); + return this; + } + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public Builder addAllPackage( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllPackage(values); + return this; + } + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public Builder clearPackage() { + copyOnWrite(); + instance.clearPackage(); + return this; + } + /** + *
+       * Resource definitions corresponding to an Android package.
+       * 
+ * + * repeated .aapt.pb.Package package = 2; + */ + public Builder removePackage(int index) { + copyOnWrite(); + instance.removePackage(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.ResourceTable) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.ResourceTable(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + package_.makeImmutable(); + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.ResourceTable other = (com.android.aapt.Resources.ResourceTable) arg1; + sourcePool_ = visitor.visitMessage(sourcePool_, other.sourcePool_); + package_= visitor.visitList(package_, other.package_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.StringPool.Builder subBuilder = null; + if (sourcePool_ != null) { + subBuilder = sourcePool_.toBuilder(); + } + sourcePool_ = input.readMessage(com.android.aapt.Resources.StringPool.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourcePool_); + sourcePool_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!package_.isModifiable()) { + package_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(package_); + } + package_.add( + input.readMessage(com.android.aapt.Resources.Package.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.ResourceTable.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.ResourceTable) + private static final com.android.aapt.Resources.ResourceTable DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new ResourceTable(); + } + + public static com.android.aapt.Resources.ResourceTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface PackageIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.PackageId) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * uint32 id = 1; + */ + int getId(); + } + /** + *
+   * A package ID in the range [0x00, 0xff].
+   * 
+ * + * Protobuf type {@code aapt.pb.PackageId} + */ + public static final class PackageId extends + com.google.protobuf.GeneratedMessageLite< + PackageId, PackageId.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.PackageId) + PackageIdOrBuilder { + private PackageId() { + } + public static final int ID_FIELD_NUMBER = 1; + private int id_; + /** + * uint32 id = 1; + */ + @java.lang.Override + public int getId() { + return id_; + } + /** + * uint32 id = 1; + */ + private void setId(int value) { + + id_ = value; + } + /** + * uint32 id = 1; + */ + private void clearId() { + + id_ = 0; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != 0) { + output.writeUInt32(1, id_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, id_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.PackageId parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.PackageId parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.PackageId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.PackageId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.PackageId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.PackageId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.PackageId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.PackageId parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.PackageId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.PackageId parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.PackageId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.PackageId parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.PackageId prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A package ID in the range [0x00, 0xff].
+     * 
+ * + * Protobuf type {@code aapt.pb.PackageId} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.PackageId, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.PackageId) + com.android.aapt.Resources.PackageIdOrBuilder { + // Construct using com.android.aapt.Resources.PackageId.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * uint32 id = 1; + */ + @java.lang.Override + public int getId() { + return instance.getId(); + } + /** + * uint32 id = 1; + */ + public Builder setId(int value) { + copyOnWrite(); + instance.setId(value); + return this; + } + /** + * uint32 id = 1; + */ + public Builder clearId() { + copyOnWrite(); + instance.clearId(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.PackageId) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.PackageId(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.PackageId other = (com.android.aapt.Resources.PackageId) arg1; + id_ = visitor.visitInt(id_ != 0, id_, + other.id_ != 0, other.id_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + + id_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.PackageId.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.PackageId) + private static final com.android.aapt.Resources.PackageId DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new PackageId(); + } + + public static com.android.aapt.Resources.PackageId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface PackageOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Package) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * The package ID of this package, in the range [0x00, 0xff].
+     * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+     * - ID 0x01 is reserved for the 'android' package (framework).
+     * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+     * - ID 0x7f is reserved for the application package.
+     * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + boolean hasPackageId(); + /** + *
+     * The package ID of this package, in the range [0x00, 0xff].
+     * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+     * - ID 0x01 is reserved for the 'android' package (framework).
+     * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+     * - ID 0x7f is reserved for the application package.
+     * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + com.android.aapt.Resources.PackageId getPackageId(); + + /** + *
+     * The Java compatible Android package name of the app.
+     * 
+ * + * string package_name = 2; + */ + java.lang.String getPackageName(); + /** + *
+     * The Java compatible Android package name of the app.
+     * 
+ * + * string package_name = 2; + */ + com.google.protobuf.ByteString + getPackageNameBytes(); + + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + java.util.List + getTypeList(); + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + com.android.aapt.Resources.Type getType(int index); + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + int getTypeCount(); + } + /** + *
+   * Defines resources for an Android package.
+   * 
+ * + * Protobuf type {@code aapt.pb.Package} + */ + public static final class Package extends + com.google.protobuf.GeneratedMessageLite< + Package, Package.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Package) + PackageOrBuilder { + private Package() { + packageName_ = ""; + type_ = emptyProtobufList(); + } + private int bitField0_; + public static final int PACKAGE_ID_FIELD_NUMBER = 1; + private com.android.aapt.Resources.PackageId packageId_; + /** + *
+     * The package ID of this package, in the range [0x00, 0xff].
+     * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+     * - ID 0x01 is reserved for the 'android' package (framework).
+     * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+     * - ID 0x7f is reserved for the application package.
+     * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + @java.lang.Override + public boolean hasPackageId() { + return packageId_ != null; + } + /** + *
+     * The package ID of this package, in the range [0x00, 0xff].
+     * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+     * - ID 0x01 is reserved for the 'android' package (framework).
+     * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+     * - ID 0x7f is reserved for the application package.
+     * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.PackageId getPackageId() { + return packageId_ == null ? com.android.aapt.Resources.PackageId.getDefaultInstance() : packageId_; + } + /** + *
+     * The package ID of this package, in the range [0x00, 0xff].
+     * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+     * - ID 0x01 is reserved for the 'android' package (framework).
+     * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+     * - ID 0x7f is reserved for the application package.
+     * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + private void setPackageId(com.android.aapt.Resources.PackageId value) { + if (value == null) { + throw new NullPointerException(); + } + packageId_ = value; + + } + /** + *
+     * The package ID of this package, in the range [0x00, 0xff].
+     * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+     * - ID 0x01 is reserved for the 'android' package (framework).
+     * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+     * - ID 0x7f is reserved for the application package.
+     * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + private void setPackageId( + com.android.aapt.Resources.PackageId.Builder builderForValue) { + packageId_ = builderForValue.build(); + + } + /** + *
+     * The package ID of this package, in the range [0x00, 0xff].
+     * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+     * - ID 0x01 is reserved for the 'android' package (framework).
+     * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+     * - ID 0x7f is reserved for the application package.
+     * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergePackageId(com.android.aapt.Resources.PackageId value) { + if (value == null) { + throw new NullPointerException(); + } + if (packageId_ != null && + packageId_ != com.android.aapt.Resources.PackageId.getDefaultInstance()) { + packageId_ = + com.android.aapt.Resources.PackageId.newBuilder(packageId_).mergeFrom(value).buildPartial(); + } else { + packageId_ = value; + } + + } + /** + *
+     * The package ID of this package, in the range [0x00, 0xff].
+     * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+     * - ID 0x01 is reserved for the 'android' package (framework).
+     * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+     * - ID 0x7f is reserved for the application package.
+     * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + private void clearPackageId() { packageId_ = null; + + } + + public static final int PACKAGE_NAME_FIELD_NUMBER = 2; + private java.lang.String packageName_; + /** + *
+     * The Java compatible Android package name of the app.
+     * 
+ * + * string package_name = 2; + */ + @java.lang.Override + public java.lang.String getPackageName() { + return packageName_; + } + /** + *
+     * The Java compatible Android package name of the app.
+     * 
+ * + * string package_name = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPackageNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(packageName_); + } + /** + *
+     * The Java compatible Android package name of the app.
+     * 
+ * + * string package_name = 2; + */ + private void setPackageName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + packageName_ = value; + } + /** + *
+     * The Java compatible Android package name of the app.
+     * 
+ * + * string package_name = 2; + */ + private void clearPackageName() { + + packageName_ = getDefaultInstance().getPackageName(); + } + /** + *
+     * The Java compatible Android package name of the app.
+     * 
+ * + * string package_name = 2; + */ + private void setPackageNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + packageName_ = value.toStringUtf8(); + } + + public static final int TYPE_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.ProtobufList type_; + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + @java.lang.Override + public java.util.List getTypeList() { + return type_; + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public java.util.List + getTypeOrBuilderList() { + return type_; + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + @java.lang.Override + public int getTypeCount() { + return type_.size(); + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Type getType(int index) { + return type_.get(index); + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public com.android.aapt.Resources.TypeOrBuilder getTypeOrBuilder( + int index) { + return type_.get(index); + } + private void ensureTypeIsMutable() { + if (!type_.isModifiable()) { + type_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(type_); + } + } + + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + private void setType( + int index, com.android.aapt.Resources.Type value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeIsMutable(); + type_.set(index, value); + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + private void setType( + int index, com.android.aapt.Resources.Type.Builder builderForValue) { + ensureTypeIsMutable(); + type_.set(index, builderForValue.build()); + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + private void addType(com.android.aapt.Resources.Type value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeIsMutable(); + type_.add(value); + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + private void addType( + int index, com.android.aapt.Resources.Type value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeIsMutable(); + type_.add(index, value); + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + private void addType( + com.android.aapt.Resources.Type.Builder builderForValue) { + ensureTypeIsMutable(); + type_.add(builderForValue.build()); + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + private void addType( + int index, com.android.aapt.Resources.Type.Builder builderForValue) { + ensureTypeIsMutable(); + type_.add(index, builderForValue.build()); + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + private void addAllType( + java.lang.Iterable values) { + ensureTypeIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, type_); + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + private void clearType() { + type_ = emptyProtobufList(); + } + /** + *
+     * The series of types defined by the package.
+     * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + private void removeType(int index) { + ensureTypeIsMutable(); + type_.remove(index); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (packageId_ != null) { + output.writeMessage(1, getPackageId()); + } + if (!packageName_.isEmpty()) { + output.writeString(2, getPackageName()); + } + for (int i = 0; i < type_.size(); i++) { + output.writeMessage(3, type_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (packageId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPackageId()); + } + if (!packageName_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getPackageName()); + } + for (int i = 0; i < type_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, type_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Package parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Package parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Package parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Package parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Package parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Package parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Package parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Package parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Package parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Package parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Package parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Package parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Package prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * Defines resources for an Android package.
+     * 
+ * + * Protobuf type {@code aapt.pb.Package} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Package, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Package) + com.android.aapt.Resources.PackageOrBuilder { + // Construct using com.android.aapt.Resources.Package.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * The package ID of this package, in the range [0x00, 0xff].
+       * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+       * - ID 0x01 is reserved for the 'android' package (framework).
+       * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+       * - ID 0x7f is reserved for the application package.
+       * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + @java.lang.Override + public boolean hasPackageId() { + return instance.hasPackageId(); + } + /** + *
+       * The package ID of this package, in the range [0x00, 0xff].
+       * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+       * - ID 0x01 is reserved for the 'android' package (framework).
+       * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+       * - ID 0x7f is reserved for the application package.
+       * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.PackageId getPackageId() { + return instance.getPackageId(); + } + /** + *
+       * The package ID of this package, in the range [0x00, 0xff].
+       * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+       * - ID 0x01 is reserved for the 'android' package (framework).
+       * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+       * - ID 0x7f is reserved for the application package.
+       * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + public Builder setPackageId(com.android.aapt.Resources.PackageId value) { + copyOnWrite(); + instance.setPackageId(value); + return this; + } + /** + *
+       * The package ID of this package, in the range [0x00, 0xff].
+       * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+       * - ID 0x01 is reserved for the 'android' package (framework).
+       * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+       * - ID 0x7f is reserved for the application package.
+       * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + public Builder setPackageId( + com.android.aapt.Resources.PackageId.Builder builderForValue) { + copyOnWrite(); + instance.setPackageId(builderForValue); + return this; + } + /** + *
+       * The package ID of this package, in the range [0x00, 0xff].
+       * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+       * - ID 0x01 is reserved for the 'android' package (framework).
+       * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+       * - ID 0x7f is reserved for the application package.
+       * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + public Builder mergePackageId(com.android.aapt.Resources.PackageId value) { + copyOnWrite(); + instance.mergePackageId(value); + return this; + } + /** + *
+       * The package ID of this package, in the range [0x00, 0xff].
+       * - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
+       * - ID 0x01 is reserved for the 'android' package (framework).
+       * - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
+       * - ID 0x7f is reserved for the application package.
+       * - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.PackageId package_id = 1; + */ + public Builder clearPackageId() { copyOnWrite(); + instance.clearPackageId(); + return this; + } + + /** + *
+       * The Java compatible Android package name of the app.
+       * 
+ * + * string package_name = 2; + */ + @java.lang.Override + public java.lang.String getPackageName() { + return instance.getPackageName(); + } + /** + *
+       * The Java compatible Android package name of the app.
+       * 
+ * + * string package_name = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPackageNameBytes() { + return instance.getPackageNameBytes(); + } + /** + *
+       * The Java compatible Android package name of the app.
+       * 
+ * + * string package_name = 2; + */ + public Builder setPackageName( + java.lang.String value) { + copyOnWrite(); + instance.setPackageName(value); + return this; + } + /** + *
+       * The Java compatible Android package name of the app.
+       * 
+ * + * string package_name = 2; + */ + public Builder clearPackageName() { + copyOnWrite(); + instance.clearPackageName(); + return this; + } + /** + *
+       * The Java compatible Android package name of the app.
+       * 
+ * + * string package_name = 2; + */ + public Builder setPackageNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setPackageNameBytes(value); + return this; + } + + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + @java.lang.Override + public java.util.List getTypeList() { + return java.util.Collections.unmodifiableList( + instance.getTypeList()); + } + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + @java.lang.Override + public int getTypeCount() { + return instance.getTypeCount(); + }/** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Type getType(int index) { + return instance.getType(index); + } + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public Builder setType( + int index, com.android.aapt.Resources.Type value) { + copyOnWrite(); + instance.setType(index, value); + return this; + } + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public Builder setType( + int index, com.android.aapt.Resources.Type.Builder builderForValue) { + copyOnWrite(); + instance.setType(index, builderForValue); + return this; + } + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public Builder addType(com.android.aapt.Resources.Type value) { + copyOnWrite(); + instance.addType(value); + return this; + } + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public Builder addType( + int index, com.android.aapt.Resources.Type value) { + copyOnWrite(); + instance.addType(index, value); + return this; + } + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public Builder addType( + com.android.aapt.Resources.Type.Builder builderForValue) { + copyOnWrite(); + instance.addType(builderForValue); + return this; + } + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public Builder addType( + int index, com.android.aapt.Resources.Type.Builder builderForValue) { + copyOnWrite(); + instance.addType(index, builderForValue); + return this; + } + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public Builder addAllType( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllType(values); + return this; + } + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public Builder clearType() { + copyOnWrite(); + instance.clearType(); + return this; + } + /** + *
+       * The series of types defined by the package.
+       * 
+ * + * repeated .aapt.pb.Type type = 3; + */ + public Builder removeType(int index) { + copyOnWrite(); + instance.removeType(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Package) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Package(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + type_.makeImmutable(); + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Package other = (com.android.aapt.Resources.Package) arg1; + packageId_ = visitor.visitMessage(packageId_, other.packageId_); + packageName_ = visitor.visitString(!packageName_.isEmpty(), packageName_, + !other.packageName_.isEmpty(), other.packageName_); + type_= visitor.visitList(type_, other.type_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.PackageId.Builder subBuilder = null; + if (packageId_ != null) { + subBuilder = packageId_.toBuilder(); + } + packageId_ = input.readMessage(com.android.aapt.Resources.PackageId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(packageId_); + packageId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + packageName_ = s; + break; + } + case 26: { + if (!type_.isModifiable()) { + type_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(type_); + } + type_.add( + input.readMessage(com.android.aapt.Resources.Type.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Package.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Package) + private static final com.android.aapt.Resources.Package DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Package(); + } + + public static com.android.aapt.Resources.Package getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface TypeIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.TypeId) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * uint32 id = 1; + */ + int getId(); + } + /** + *
+   * A type ID in the range [0x01, 0xff].
+   * 
+ * + * Protobuf type {@code aapt.pb.TypeId} + */ + public static final class TypeId extends + com.google.protobuf.GeneratedMessageLite< + TypeId, TypeId.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.TypeId) + TypeIdOrBuilder { + private TypeId() { + } + public static final int ID_FIELD_NUMBER = 1; + private int id_; + /** + * uint32 id = 1; + */ + @java.lang.Override + public int getId() { + return id_; + } + /** + * uint32 id = 1; + */ + private void setId(int value) { + + id_ = value; + } + /** + * uint32 id = 1; + */ + private void clearId() { + + id_ = 0; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != 0) { + output.writeUInt32(1, id_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, id_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.TypeId parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.TypeId parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.TypeId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.TypeId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.TypeId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.TypeId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.TypeId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.TypeId parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.TypeId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.TypeId parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.TypeId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.TypeId parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.TypeId prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A type ID in the range [0x01, 0xff].
+     * 
+ * + * Protobuf type {@code aapt.pb.TypeId} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.TypeId, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.TypeId) + com.android.aapt.Resources.TypeIdOrBuilder { + // Construct using com.android.aapt.Resources.TypeId.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * uint32 id = 1; + */ + @java.lang.Override + public int getId() { + return instance.getId(); + } + /** + * uint32 id = 1; + */ + public Builder setId(int value) { + copyOnWrite(); + instance.setId(value); + return this; + } + /** + * uint32 id = 1; + */ + public Builder clearId() { + copyOnWrite(); + instance.clearId(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.TypeId) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.TypeId(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.TypeId other = (com.android.aapt.Resources.TypeId) arg1; + id_ = visitor.visitInt(id_ != 0, id_, + other.id_ != 0, other.id_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + + id_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.TypeId.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.TypeId) + private static final com.android.aapt.Resources.TypeId DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new TypeId(); + } + + public static com.android.aapt.Resources.TypeId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface TypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Type) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * The ID of the type. This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + boolean hasTypeId(); + /** + *
+     * The ID of the type. This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + com.android.aapt.Resources.TypeId getTypeId(); + + /** + *
+     * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+     * package:type/entry. The set of legal type names is listed in Resource.cpp.
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+     * package:type/entry. The set of legal type names is listed in Resource.cpp.
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + java.util.List + getEntryList(); + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + com.android.aapt.Resources.Entry getEntry(int index); + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + int getEntryCount(); + } + /** + *
+   * A set of resources grouped under a common type. Such types include string, layout, xml, dimen,
+   * attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry).
+   * 
+ * + * Protobuf type {@code aapt.pb.Type} + */ + public static final class Type extends + com.google.protobuf.GeneratedMessageLite< + Type, Type.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Type) + TypeOrBuilder { + private Type() { + name_ = ""; + entry_ = emptyProtobufList(); + } + private int bitField0_; + public static final int TYPE_ID_FIELD_NUMBER = 1; + private com.android.aapt.Resources.TypeId typeId_; + /** + *
+     * The ID of the type. This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + @java.lang.Override + public boolean hasTypeId() { + return typeId_ != null; + } + /** + *
+     * The ID of the type. This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.TypeId getTypeId() { + return typeId_ == null ? com.android.aapt.Resources.TypeId.getDefaultInstance() : typeId_; + } + /** + *
+     * The ID of the type. This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + private void setTypeId(com.android.aapt.Resources.TypeId value) { + if (value == null) { + throw new NullPointerException(); + } + typeId_ = value; + + } + /** + *
+     * The ID of the type. This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + private void setTypeId( + com.android.aapt.Resources.TypeId.Builder builderForValue) { + typeId_ = builderForValue.build(); + + } + /** + *
+     * The ID of the type. This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeTypeId(com.android.aapt.Resources.TypeId value) { + if (value == null) { + throw new NullPointerException(); + } + if (typeId_ != null && + typeId_ != com.android.aapt.Resources.TypeId.getDefaultInstance()) { + typeId_ = + com.android.aapt.Resources.TypeId.newBuilder(typeId_).mergeFrom(value).buildPartial(); + } else { + typeId_ = value; + } + + } + /** + *
+     * The ID of the type. This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + private void clearTypeId() { typeId_ = null; + + } + + public static final int NAME_FIELD_NUMBER = 2; + private java.lang.String name_; + /** + *
+     * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+     * package:type/entry. The set of legal type names is listed in Resource.cpp.
+     * 
+ * + * string name = 2; + */ + @java.lang.Override + public java.lang.String getName() { + return name_; + } + /** + *
+     * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+     * package:type/entry. The set of legal type names is listed in Resource.cpp.
+     * 
+ * + * string name = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(name_); + } + /** + *
+     * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+     * package:type/entry. The set of legal type names is listed in Resource.cpp.
+     * 
+ * + * string name = 2; + */ + private void setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + } + /** + *
+     * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+     * package:type/entry. The set of legal type names is listed in Resource.cpp.
+     * 
+ * + * string name = 2; + */ + private void clearName() { + + name_ = getDefaultInstance().getName(); + } + /** + *
+     * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+     * package:type/entry. The set of legal type names is listed in Resource.cpp.
+     * 
+ * + * string name = 2; + */ + private void setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value.toStringUtf8(); + } + + public static final int ENTRY_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.ProtobufList entry_; + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + @java.lang.Override + public java.util.List getEntryList() { + return entry_; + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public java.util.List + getEntryOrBuilderList() { + return entry_; + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + @java.lang.Override + public int getEntryCount() { + return entry_.size(); + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Entry getEntry(int index) { + return entry_.get(index); + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public com.android.aapt.Resources.EntryOrBuilder getEntryOrBuilder( + int index) { + return entry_.get(index); + } + private void ensureEntryIsMutable() { + if (!entry_.isModifiable()) { + entry_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(entry_); + } + } + + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + private void setEntry( + int index, com.android.aapt.Resources.Entry value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntryIsMutable(); + entry_.set(index, value); + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + private void setEntry( + int index, com.android.aapt.Resources.Entry.Builder builderForValue) { + ensureEntryIsMutable(); + entry_.set(index, builderForValue.build()); + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + private void addEntry(com.android.aapt.Resources.Entry value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntryIsMutable(); + entry_.add(value); + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + private void addEntry( + int index, com.android.aapt.Resources.Entry value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntryIsMutable(); + entry_.add(index, value); + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + private void addEntry( + com.android.aapt.Resources.Entry.Builder builderForValue) { + ensureEntryIsMutable(); + entry_.add(builderForValue.build()); + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + private void addEntry( + int index, com.android.aapt.Resources.Entry.Builder builderForValue) { + ensureEntryIsMutable(); + entry_.add(index, builderForValue.build()); + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + private void addAllEntry( + java.lang.Iterable values) { + ensureEntryIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, entry_); + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + private void clearEntry() { + entry_ = emptyProtobufList(); + } + /** + *
+     * The entries defined for this type.
+     * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + private void removeEntry(int index) { + ensureEntryIsMutable(); + entry_.remove(index); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (typeId_ != null) { + output.writeMessage(1, getTypeId()); + } + if (!name_.isEmpty()) { + output.writeString(2, getName()); + } + for (int i = 0; i < entry_.size(); i++) { + output.writeMessage(3, entry_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (typeId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTypeId()); + } + if (!name_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getName()); + } + for (int i = 0; i < entry_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, entry_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Type parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Type parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Type parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Type parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Type parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Type parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Type parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Type parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Type parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Type parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Type parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Type parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Type prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A set of resources grouped under a common type. Such types include string, layout, xml, dimen,
+     * attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry).
+     * 
+ * + * Protobuf type {@code aapt.pb.Type} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Type, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Type) + com.android.aapt.Resources.TypeOrBuilder { + // Construct using com.android.aapt.Resources.Type.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * The ID of the type. This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + @java.lang.Override + public boolean hasTypeId() { + return instance.hasTypeId(); + } + /** + *
+       * The ID of the type. This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.TypeId getTypeId() { + return instance.getTypeId(); + } + /** + *
+       * The ID of the type. This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + public Builder setTypeId(com.android.aapt.Resources.TypeId value) { + copyOnWrite(); + instance.setTypeId(value); + return this; + } + /** + *
+       * The ID of the type. This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + public Builder setTypeId( + com.android.aapt.Resources.TypeId.Builder builderForValue) { + copyOnWrite(); + instance.setTypeId(builderForValue); + return this; + } + /** + *
+       * The ID of the type. This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + public Builder mergeTypeId(com.android.aapt.Resources.TypeId value) { + copyOnWrite(); + instance.mergeTypeId(value); + return this; + } + /** + *
+       * The ID of the type. This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.TypeId type_id = 1; + */ + public Builder clearTypeId() { copyOnWrite(); + instance.clearTypeId(); + return this; + } + + /** + *
+       * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+       * package:type/entry. The set of legal type names is listed in Resource.cpp.
+       * 
+ * + * string name = 2; + */ + @java.lang.Override + public java.lang.String getName() { + return instance.getName(); + } + /** + *
+       * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+       * package:type/entry. The set of legal type names is listed in Resource.cpp.
+       * 
+ * + * string name = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + return instance.getNameBytes(); + } + /** + *
+       * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+       * package:type/entry. The set of legal type names is listed in Resource.cpp.
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + copyOnWrite(); + instance.setName(value); + return this; + } + /** + *
+       * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+       * package:type/entry. The set of legal type names is listed in Resource.cpp.
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + copyOnWrite(); + instance.clearName(); + return this; + } + /** + *
+       * The name of the type. This corresponds to the 'type' part of a full resource name of the form
+       * package:type/entry. The set of legal type names is listed in Resource.cpp.
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setNameBytes(value); + return this; + } + + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + @java.lang.Override + public java.util.List getEntryList() { + return java.util.Collections.unmodifiableList( + instance.getEntryList()); + } + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + @java.lang.Override + public int getEntryCount() { + return instance.getEntryCount(); + }/** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Entry getEntry(int index) { + return instance.getEntry(index); + } + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public Builder setEntry( + int index, com.android.aapt.Resources.Entry value) { + copyOnWrite(); + instance.setEntry(index, value); + return this; + } + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public Builder setEntry( + int index, com.android.aapt.Resources.Entry.Builder builderForValue) { + copyOnWrite(); + instance.setEntry(index, builderForValue); + return this; + } + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public Builder addEntry(com.android.aapt.Resources.Entry value) { + copyOnWrite(); + instance.addEntry(value); + return this; + } + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public Builder addEntry( + int index, com.android.aapt.Resources.Entry value) { + copyOnWrite(); + instance.addEntry(index, value); + return this; + } + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public Builder addEntry( + com.android.aapt.Resources.Entry.Builder builderForValue) { + copyOnWrite(); + instance.addEntry(builderForValue); + return this; + } + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public Builder addEntry( + int index, com.android.aapt.Resources.Entry.Builder builderForValue) { + copyOnWrite(); + instance.addEntry(index, builderForValue); + return this; + } + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public Builder addAllEntry( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllEntry(values); + return this; + } + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public Builder clearEntry() { + copyOnWrite(); + instance.clearEntry(); + return this; + } + /** + *
+       * The entries defined for this type.
+       * 
+ * + * repeated .aapt.pb.Entry entry = 3; + */ + public Builder removeEntry(int index) { + copyOnWrite(); + instance.removeEntry(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Type) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Type(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + entry_.makeImmutable(); + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Type other = (com.android.aapt.Resources.Type) arg1; + typeId_ = visitor.visitMessage(typeId_, other.typeId_); + name_ = visitor.visitString(!name_.isEmpty(), name_, + !other.name_.isEmpty(), other.name_); + entry_= visitor.visitList(entry_, other.entry_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.TypeId.Builder subBuilder = null; + if (typeId_ != null) { + subBuilder = typeId_.toBuilder(); + } + typeId_ = input.readMessage(com.android.aapt.Resources.TypeId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(typeId_); + typeId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + if (!entry_.isModifiable()) { + entry_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(entry_); + } + entry_.add( + input.readMessage(com.android.aapt.Resources.Entry.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Type.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Type) + private static final com.android.aapt.Resources.Type DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Type(); + } + + public static com.android.aapt.Resources.Type getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface VisibilityOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Visibility) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * .aapt.pb.Visibility.Level level = 1; + */ + int getLevelValue(); + /** + * .aapt.pb.Visibility.Level level = 1; + */ + com.android.aapt.Resources.Visibility.Level getLevel(); + + /** + *
+     * The path at which this entry's visibility was defined (eg. public.xml).
+     * 
+ * + * .aapt.pb.Source source = 2; + */ + boolean hasSource(); + /** + *
+     * The path at which this entry's visibility was defined (eg. public.xml).
+     * 
+ * + * .aapt.pb.Source source = 2; + */ + com.android.aapt.Resources.Source getSource(); + + /** + *
+     * The comment associated with the <public> tag.
+     * 
+ * + * string comment = 3; + */ + java.lang.String getComment(); + /** + *
+     * The comment associated with the <public> tag.
+     * 
+ * + * string comment = 3; + */ + com.google.protobuf.ByteString + getCommentBytes(); + } + /** + *
+   * The Visibility of a symbol/entry (public, private, undefined).
+   * 
+ * + * Protobuf type {@code aapt.pb.Visibility} + */ + public static final class Visibility extends + com.google.protobuf.GeneratedMessageLite< + Visibility, Visibility.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Visibility) + VisibilityOrBuilder { + private Visibility() { + comment_ = ""; + } + /** + *
+     * The visibility of the resource outside of its package.
+     * 
+ * + * Protobuf enum {@code aapt.pb.Visibility.Level} + */ + public enum Level + implements com.google.protobuf.Internal.EnumLite { + /** + *
+       * No visibility was explicitly specified. This is typically treated as private.
+       * The distinction is important when two separate R.java files are generated: a public and
+       * private one. An unknown visibility, in this case, would cause the resource to be omitted
+       * from either R.java.
+       * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + *
+       * A resource was explicitly marked as private. This means the resource can not be accessed
+       * outside of its package unless the @*package:type/entry notation is used (the asterisk being
+       * the private accessor). If two R.java files are generated (private + public), the resource
+       * will only be emitted to the private R.java file.
+       * 
+ * + * PRIVATE = 1; + */ + PRIVATE(1), + /** + *
+       * A resource was explicitly marked as public. This means the resource can be accessed
+       * from any package, and is emitted into all R.java files, public and private.
+       * 
+ * + * PUBLIC = 2; + */ + PUBLIC(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * No visibility was explicitly specified. This is typically treated as private.
+       * The distinction is important when two separate R.java files are generated: a public and
+       * private one. An unknown visibility, in this case, would cause the resource to be omitted
+       * from either R.java.
+       * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + *
+       * A resource was explicitly marked as private. This means the resource can not be accessed
+       * outside of its package unless the @*package:type/entry notation is used (the asterisk being
+       * the private accessor). If two R.java files are generated (private + public), the resource
+       * will only be emitted to the private R.java file.
+       * 
+ * + * PRIVATE = 1; + */ + public static final int PRIVATE_VALUE = 1; + /** + *
+       * A resource was explicitly marked as public. This means the resource can be accessed
+       * from any package, and is emitted into all R.java files, public and private.
+       * 
+ * + * PUBLIC = 2; + */ + public static final int PUBLIC_VALUE = 2; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Level valueOf(int value) { + return forNumber(value); + } + + public static Level forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return PRIVATE; + case 2: return PUBLIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Level> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return LevelVerifier.INSTANCE; + } + + private static final class LevelVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new LevelVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return Level.forNumber(number) != null; + } + }; + + private final int value; + + private Level(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Visibility.Level) + } + + public static final int LEVEL_FIELD_NUMBER = 1; + private int level_; + /** + * .aapt.pb.Visibility.Level level = 1; + */ + @java.lang.Override + public int getLevelValue() { + return level_; + } + /** + * .aapt.pb.Visibility.Level level = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Visibility.Level getLevel() { + com.android.aapt.Resources.Visibility.Level result = com.android.aapt.Resources.Visibility.Level.forNumber(level_); + return result == null ? com.android.aapt.Resources.Visibility.Level.UNRECOGNIZED : result; + } + /** + * .aapt.pb.Visibility.Level level = 1; + */ + private void setLevelValue(int value) { + level_ = value; + } + /** + * .aapt.pb.Visibility.Level level = 1; + */ + private void setLevel(com.android.aapt.Resources.Visibility.Level value) { + if (value == null) { + throw new NullPointerException(); + } + + level_ = value.getNumber(); + } + /** + * .aapt.pb.Visibility.Level level = 1; + */ + private void clearLevel() { + + level_ = 0; + } + + public static final int SOURCE_FIELD_NUMBER = 2; + private com.android.aapt.Resources.Source source_; + /** + *
+     * The path at which this entry's visibility was defined (eg. public.xml).
+     * 
+ * + * .aapt.pb.Source source = 2; + */ + @java.lang.Override + public boolean hasSource() { + return source_ != null; + } + /** + *
+     * The path at which this entry's visibility was defined (eg. public.xml).
+     * 
+ * + * .aapt.pb.Source source = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return source_ == null ? com.android.aapt.Resources.Source.getDefaultInstance() : source_; + } + /** + *
+     * The path at which this entry's visibility was defined (eg. public.xml).
+     * 
+ * + * .aapt.pb.Source source = 2; + */ + private void setSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + + } + /** + *
+     * The path at which this entry's visibility was defined (eg. public.xml).
+     * 
+ * + * .aapt.pb.Source source = 2; + */ + private void setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + source_ = builderForValue.build(); + + } + /** + *
+     * The path at which this entry's visibility was defined (eg. public.xml).
+     * 
+ * + * .aapt.pb.Source source = 2; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + if (source_ != null && + source_ != com.android.aapt.Resources.Source.getDefaultInstance()) { + source_ = + com.android.aapt.Resources.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + + } + /** + *
+     * The path at which this entry's visibility was defined (eg. public.xml).
+     * 
+ * + * .aapt.pb.Source source = 2; + */ + private void clearSource() { source_ = null; + + } + + public static final int COMMENT_FIELD_NUMBER = 3; + private java.lang.String comment_; + /** + *
+     * The comment associated with the <public> tag.
+     * 
+ * + * string comment = 3; + */ + @java.lang.Override + public java.lang.String getComment() { + return comment_; + } + /** + *
+     * The comment associated with the <public> tag.
+     * 
+ * + * string comment = 3; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(comment_); + } + /** + *
+     * The comment associated with the <public> tag.
+     * 
+ * + * string comment = 3; + */ + private void setComment( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + comment_ = value; + } + /** + *
+     * The comment associated with the <public> tag.
+     * 
+ * + * string comment = 3; + */ + private void clearComment() { + + comment_ = getDefaultInstance().getComment(); + } + /** + *
+     * The comment associated with the <public> tag.
+     * 
+ * + * string comment = 3; + */ + private void setCommentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + comment_ = value.toStringUtf8(); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (level_ != com.android.aapt.Resources.Visibility.Level.UNKNOWN.getNumber()) { + output.writeEnum(1, level_); + } + if (source_ != null) { + output.writeMessage(2, getSource()); + } + if (!comment_.isEmpty()) { + output.writeString(3, getComment()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (level_ != com.android.aapt.Resources.Visibility.Level.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, level_); + } + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSource()); + } + if (!comment_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(3, getComment()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Visibility parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Visibility parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Visibility parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Visibility parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Visibility parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Visibility parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Visibility parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Visibility parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Visibility parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Visibility parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Visibility parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Visibility parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Visibility prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * The Visibility of a symbol/entry (public, private, undefined).
+     * 
+ * + * Protobuf type {@code aapt.pb.Visibility} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Visibility, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Visibility) + com.android.aapt.Resources.VisibilityOrBuilder { + // Construct using com.android.aapt.Resources.Visibility.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * .aapt.pb.Visibility.Level level = 1; + */ + @java.lang.Override + public int getLevelValue() { + return instance.getLevelValue(); + } + /** + * .aapt.pb.Visibility.Level level = 1; + */ + public Builder setLevelValue(int value) { + copyOnWrite(); + instance.setLevelValue(value); + return this; + } + /** + * .aapt.pb.Visibility.Level level = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Visibility.Level getLevel() { + return instance.getLevel(); + } + /** + * .aapt.pb.Visibility.Level level = 1; + */ + public Builder setLevel(com.android.aapt.Resources.Visibility.Level value) { + copyOnWrite(); + instance.setLevel(value); + return this; + } + /** + * .aapt.pb.Visibility.Level level = 1; + */ + public Builder clearLevel() { + copyOnWrite(); + instance.clearLevel(); + return this; + } + + /** + *
+       * The path at which this entry's visibility was defined (eg. public.xml).
+       * 
+ * + * .aapt.pb.Source source = 2; + */ + @java.lang.Override + public boolean hasSource() { + return instance.hasSource(); + } + /** + *
+       * The path at which this entry's visibility was defined (eg. public.xml).
+       * 
+ * + * .aapt.pb.Source source = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return instance.getSource(); + } + /** + *
+       * The path at which this entry's visibility was defined (eg. public.xml).
+       * 
+ * + * .aapt.pb.Source source = 2; + */ + public Builder setSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.setSource(value); + return this; + } + /** + *
+       * The path at which this entry's visibility was defined (eg. public.xml).
+       * 
+ * + * .aapt.pb.Source source = 2; + */ + public Builder setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + copyOnWrite(); + instance.setSource(builderForValue); + return this; + } + /** + *
+       * The path at which this entry's visibility was defined (eg. public.xml).
+       * 
+ * + * .aapt.pb.Source source = 2; + */ + public Builder mergeSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.mergeSource(value); + return this; + } + /** + *
+       * The path at which this entry's visibility was defined (eg. public.xml).
+       * 
+ * + * .aapt.pb.Source source = 2; + */ + public Builder clearSource() { copyOnWrite(); + instance.clearSource(); + return this; + } + + /** + *
+       * The comment associated with the <public> tag.
+       * 
+ * + * string comment = 3; + */ + @java.lang.Override + public java.lang.String getComment() { + return instance.getComment(); + } + /** + *
+       * The comment associated with the <public> tag.
+       * 
+ * + * string comment = 3; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return instance.getCommentBytes(); + } + /** + *
+       * The comment associated with the <public> tag.
+       * 
+ * + * string comment = 3; + */ + public Builder setComment( + java.lang.String value) { + copyOnWrite(); + instance.setComment(value); + return this; + } + /** + *
+       * The comment associated with the <public> tag.
+       * 
+ * + * string comment = 3; + */ + public Builder clearComment() { + copyOnWrite(); + instance.clearComment(); + return this; + } + /** + *
+       * The comment associated with the <public> tag.
+       * 
+ * + * string comment = 3; + */ + public Builder setCommentBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setCommentBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Visibility) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Visibility(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Visibility other = (com.android.aapt.Resources.Visibility) arg1; + level_ = visitor.visitInt(level_ != 0, level_, other.level_ != 0, other.level_); + source_ = visitor.visitMessage(source_, other.source_); + comment_ = visitor.visitString(!comment_.isEmpty(), comment_, + !other.comment_.isEmpty(), other.comment_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + int rawValue = input.readEnum(); + + level_ = rawValue; + break; + } + case 18: { + com.android.aapt.Resources.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.android.aapt.Resources.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + comment_ = s; + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Visibility.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Visibility) + private static final com.android.aapt.Resources.Visibility DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Visibility(); + } + + public static com.android.aapt.Resources.Visibility getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface AllowNewOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.AllowNew) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * Where this was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + boolean hasSource(); + /** + *
+     * Where this was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + com.android.aapt.Resources.Source getSource(); + + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + java.lang.String getComment(); + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + com.google.protobuf.ByteString + getCommentBytes(); + } + /** + *
+   * Whether a resource comes from a compile-time overlay and is explicitly allowed to not overlay an
+   * existing resource.
+   * 
+ * + * Protobuf type {@code aapt.pb.AllowNew} + */ + public static final class AllowNew extends + com.google.protobuf.GeneratedMessageLite< + AllowNew, AllowNew.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.AllowNew) + AllowNewOrBuilder { + private AllowNew() { + comment_ = ""; + } + public static final int SOURCE_FIELD_NUMBER = 1; + private com.android.aapt.Resources.Source source_; + /** + *
+     * Where this was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public boolean hasSource() { + return source_ != null; + } + /** + *
+     * Where this was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return source_ == null ? com.android.aapt.Resources.Source.getDefaultInstance() : source_; + } + /** + *
+     * Where this was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + private void setSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + + } + /** + *
+     * Where this was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + private void setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + source_ = builderForValue.build(); + + } + /** + *
+     * Where this was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + if (source_ != null && + source_ != com.android.aapt.Resources.Source.getDefaultInstance()) { + source_ = + com.android.aapt.Resources.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + + } + /** + *
+     * Where this was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + private void clearSource() { source_ = null; + + } + + public static final int COMMENT_FIELD_NUMBER = 2; + private java.lang.String comment_; + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + @java.lang.Override + public java.lang.String getComment() { + return comment_; + } + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(comment_); + } + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + private void setComment( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + comment_ = value; + } + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + private void clearComment() { + + comment_ = getDefaultInstance().getComment(); + } + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + private void setCommentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + comment_ = value.toStringUtf8(); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (source_ != null) { + output.writeMessage(1, getSource()); + } + if (!comment_.isEmpty()) { + output.writeString(2, getComment()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSource()); + } + if (!comment_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getComment()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.AllowNew parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.AllowNew parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.AllowNew parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.AllowNew parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.AllowNew parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.AllowNew parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.AllowNew parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.AllowNew parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.AllowNew parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.AllowNew parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.AllowNew parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.AllowNew parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.AllowNew prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * Whether a resource comes from a compile-time overlay and is explicitly allowed to not overlay an
+     * existing resource.
+     * 
+ * + * Protobuf type {@code aapt.pb.AllowNew} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.AllowNew, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.AllowNew) + com.android.aapt.Resources.AllowNewOrBuilder { + // Construct using com.android.aapt.Resources.AllowNew.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * Where this was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public boolean hasSource() { + return instance.hasSource(); + } + /** + *
+       * Where this was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return instance.getSource(); + } + /** + *
+       * Where this was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder setSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.setSource(value); + return this; + } + /** + *
+       * Where this was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + copyOnWrite(); + instance.setSource(builderForValue); + return this; + } + /** + *
+       * Where this was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder mergeSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.mergeSource(value); + return this; + } + /** + *
+       * Where this was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder clearSource() { copyOnWrite(); + instance.clearSource(); + return this; + } + + /** + *
+       * Any comment associated with the declaration.
+       * 
+ * + * string comment = 2; + */ + @java.lang.Override + public java.lang.String getComment() { + return instance.getComment(); + } + /** + *
+       * Any comment associated with the declaration.
+       * 
+ * + * string comment = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return instance.getCommentBytes(); + } + /** + *
+       * Any comment associated with the declaration.
+       * 
+ * + * string comment = 2; + */ + public Builder setComment( + java.lang.String value) { + copyOnWrite(); + instance.setComment(value); + return this; + } + /** + *
+       * Any comment associated with the declaration.
+       * 
+ * + * string comment = 2; + */ + public Builder clearComment() { + copyOnWrite(); + instance.clearComment(); + return this; + } + /** + *
+       * Any comment associated with the declaration.
+       * 
+ * + * string comment = 2; + */ + public Builder setCommentBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setCommentBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.AllowNew) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.AllowNew(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.AllowNew other = (com.android.aapt.Resources.AllowNew) arg1; + source_ = visitor.visitMessage(source_, other.source_); + comment_ = visitor.visitString(!comment_.isEmpty(), comment_, + !other.comment_.isEmpty(), other.comment_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.android.aapt.Resources.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + comment_ = s; + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.AllowNew.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.AllowNew) + private static final com.android.aapt.Resources.AllowNew DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new AllowNew(); + } + + public static com.android.aapt.Resources.AllowNew getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface OverlayableOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Overlayable) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * Where this declaration was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + boolean hasSource(); + /** + *
+     * Where this declaration was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + com.android.aapt.Resources.Source getSource(); + + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + java.lang.String getComment(); + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + com.google.protobuf.ByteString + getCommentBytes(); + } + /** + *
+   * Whether a resource is overlayable by runtime resource overlays (RRO).
+   * 
+ * + * Protobuf type {@code aapt.pb.Overlayable} + */ + public static final class Overlayable extends + com.google.protobuf.GeneratedMessageLite< + Overlayable, Overlayable.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Overlayable) + OverlayableOrBuilder { + private Overlayable() { + comment_ = ""; + } + public static final int SOURCE_FIELD_NUMBER = 1; + private com.android.aapt.Resources.Source source_; + /** + *
+     * Where this declaration was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public boolean hasSource() { + return source_ != null; + } + /** + *
+     * Where this declaration was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return source_ == null ? com.android.aapt.Resources.Source.getDefaultInstance() : source_; + } + /** + *
+     * Where this declaration was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + private void setSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + + } + /** + *
+     * Where this declaration was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + private void setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + source_ = builderForValue.build(); + + } + /** + *
+     * Where this declaration was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + if (source_ != null && + source_ != com.android.aapt.Resources.Source.getDefaultInstance()) { + source_ = + com.android.aapt.Resources.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + + } + /** + *
+     * Where this declaration was defined in source.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + private void clearSource() { source_ = null; + + } + + public static final int COMMENT_FIELD_NUMBER = 2; + private java.lang.String comment_; + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + @java.lang.Override + public java.lang.String getComment() { + return comment_; + } + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(comment_); + } + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + private void setComment( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + comment_ = value; + } + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + private void clearComment() { + + comment_ = getDefaultInstance().getComment(); + } + /** + *
+     * Any comment associated with the declaration.
+     * 
+ * + * string comment = 2; + */ + private void setCommentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + comment_ = value.toStringUtf8(); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (source_ != null) { + output.writeMessage(1, getSource()); + } + if (!comment_.isEmpty()) { + output.writeString(2, getComment()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSource()); + } + if (!comment_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getComment()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Overlayable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Overlayable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Overlayable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Overlayable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Overlayable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Overlayable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Overlayable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Overlayable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Overlayable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Overlayable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Overlayable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Overlayable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Overlayable prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * Whether a resource is overlayable by runtime resource overlays (RRO).
+     * 
+ * + * Protobuf type {@code aapt.pb.Overlayable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Overlayable, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Overlayable) + com.android.aapt.Resources.OverlayableOrBuilder { + // Construct using com.android.aapt.Resources.Overlayable.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * Where this declaration was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public boolean hasSource() { + return instance.hasSource(); + } + /** + *
+       * Where this declaration was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return instance.getSource(); + } + /** + *
+       * Where this declaration was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder setSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.setSource(value); + return this; + } + /** + *
+       * Where this declaration was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + copyOnWrite(); + instance.setSource(builderForValue); + return this; + } + /** + *
+       * Where this declaration was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder mergeSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.mergeSource(value); + return this; + } + /** + *
+       * Where this declaration was defined in source.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder clearSource() { copyOnWrite(); + instance.clearSource(); + return this; + } + + /** + *
+       * Any comment associated with the declaration.
+       * 
+ * + * string comment = 2; + */ + @java.lang.Override + public java.lang.String getComment() { + return instance.getComment(); + } + /** + *
+       * Any comment associated with the declaration.
+       * 
+ * + * string comment = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return instance.getCommentBytes(); + } + /** + *
+       * Any comment associated with the declaration.
+       * 
+ * + * string comment = 2; + */ + public Builder setComment( + java.lang.String value) { + copyOnWrite(); + instance.setComment(value); + return this; + } + /** + *
+       * Any comment associated with the declaration.
+       * 
+ * + * string comment = 2; + */ + public Builder clearComment() { + copyOnWrite(); + instance.clearComment(); + return this; + } + /** + *
+       * Any comment associated with the declaration.
+       * 
+ * + * string comment = 2; + */ + public Builder setCommentBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setCommentBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Overlayable) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Overlayable(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Overlayable other = (com.android.aapt.Resources.Overlayable) arg1; + source_ = visitor.visitMessage(source_, other.source_); + comment_ = visitor.visitString(!comment_.isEmpty(), comment_, + !other.comment_.isEmpty(), other.comment_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.android.aapt.Resources.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + comment_ = s; + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Overlayable.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Overlayable) + private static final com.android.aapt.Resources.Overlayable DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Overlayable(); + } + + public static com.android.aapt.Resources.Overlayable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface EntryIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.EntryId) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * uint32 id = 1; + */ + int getId(); + } + /** + *
+   * An entry ID in the range [0x0000, 0xffff].
+   * 
+ * + * Protobuf type {@code aapt.pb.EntryId} + */ + public static final class EntryId extends + com.google.protobuf.GeneratedMessageLite< + EntryId, EntryId.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.EntryId) + EntryIdOrBuilder { + private EntryId() { + } + public static final int ID_FIELD_NUMBER = 1; + private int id_; + /** + * uint32 id = 1; + */ + @java.lang.Override + public int getId() { + return id_; + } + /** + * uint32 id = 1; + */ + private void setId(int value) { + + id_ = value; + } + /** + * uint32 id = 1; + */ + private void clearId() { + + id_ = 0; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != 0) { + output.writeUInt32(1, id_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, id_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.EntryId parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.EntryId parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.EntryId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.EntryId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.EntryId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.EntryId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.EntryId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.EntryId parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.EntryId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.EntryId parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.EntryId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.EntryId parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.EntryId prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * An entry ID in the range [0x0000, 0xffff].
+     * 
+ * + * Protobuf type {@code aapt.pb.EntryId} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.EntryId, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.EntryId) + com.android.aapt.Resources.EntryIdOrBuilder { + // Construct using com.android.aapt.Resources.EntryId.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * uint32 id = 1; + */ + @java.lang.Override + public int getId() { + return instance.getId(); + } + /** + * uint32 id = 1; + */ + public Builder setId(int value) { + copyOnWrite(); + instance.setId(value); + return this; + } + /** + * uint32 id = 1; + */ + public Builder clearId() { + copyOnWrite(); + instance.clearId(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.EntryId) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.EntryId(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.EntryId other = (com.android.aapt.Resources.EntryId) arg1; + id_ = visitor.visitInt(id_ != 0, id_, + other.id_ != 0, other.id_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + + id_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.EntryId.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.EntryId) + private static final com.android.aapt.Resources.EntryId DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new EntryId(); + } + + public static com.android.aapt.Resources.EntryId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface EntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Entry) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+     * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+     * ID.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + boolean hasEntryId(); + /** + *
+     * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+     * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+     * ID.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + com.android.aapt.Resources.EntryId getEntryId(); + + /** + *
+     * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+     * form package:type/entry.
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+     * form package:type/entry.
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * The visibility of this entry (public, private, undefined).
+     * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + boolean hasVisibility(); + /** + *
+     * The visibility of this entry (public, private, undefined).
+     * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + com.android.aapt.Resources.Visibility getVisibility(); + + /** + *
+     * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+     * any existing resources.
+     * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + boolean hasAllowNew(); + /** + *
+     * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+     * any existing resources.
+     * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + com.android.aapt.Resources.AllowNew getAllowNew(); + + /** + *
+     * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+     * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + boolean hasOverlayable(); + /** + *
+     * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+     * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + com.android.aapt.Resources.Overlayable getOverlayable(); + + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + java.util.List + getConfigValueList(); + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + com.android.aapt.Resources.ConfigValue getConfigValue(int index); + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + int getConfigValueCount(); + } + /** + *
+   * An entry declaration. An entry has a full resource ID that is the combination of package ID,
+   * type ID, and its own entry ID. An entry on its own has no value, but values are defined for
+   * various configurations/variants.
+   * 
+ * + * Protobuf type {@code aapt.pb.Entry} + */ + public static final class Entry extends + com.google.protobuf.GeneratedMessageLite< + Entry, Entry.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Entry) + EntryOrBuilder { + private Entry() { + name_ = ""; + configValue_ = emptyProtobufList(); + } + private int bitField0_; + public static final int ENTRY_ID_FIELD_NUMBER = 1; + private com.android.aapt.Resources.EntryId entryId_; + /** + *
+     * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+     * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+     * ID.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + @java.lang.Override + public boolean hasEntryId() { + return entryId_ != null; + } + /** + *
+     * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+     * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+     * ID.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.EntryId getEntryId() { + return entryId_ == null ? com.android.aapt.Resources.EntryId.getDefaultInstance() : entryId_; + } + /** + *
+     * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+     * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+     * ID.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + private void setEntryId(com.android.aapt.Resources.EntryId value) { + if (value == null) { + throw new NullPointerException(); + } + entryId_ = value; + + } + /** + *
+     * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+     * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+     * ID.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + private void setEntryId( + com.android.aapt.Resources.EntryId.Builder builderForValue) { + entryId_ = builderForValue.build(); + + } + /** + *
+     * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+     * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+     * ID.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeEntryId(com.android.aapt.Resources.EntryId value) { + if (value == null) { + throw new NullPointerException(); + } + if (entryId_ != null && + entryId_ != com.android.aapt.Resources.EntryId.getDefaultInstance()) { + entryId_ = + com.android.aapt.Resources.EntryId.newBuilder(entryId_).mergeFrom(value).buildPartial(); + } else { + entryId_ = value; + } + + } + /** + *
+     * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+     * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+     * ID.
+     * This may not be set if no ID was assigned.
+     * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + private void clearEntryId() { entryId_ = null; + + } + + public static final int NAME_FIELD_NUMBER = 2; + private java.lang.String name_; + /** + *
+     * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+     * form package:type/entry.
+     * 
+ * + * string name = 2; + */ + @java.lang.Override + public java.lang.String getName() { + return name_; + } + /** + *
+     * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+     * form package:type/entry.
+     * 
+ * + * string name = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(name_); + } + /** + *
+     * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+     * form package:type/entry.
+     * 
+ * + * string name = 2; + */ + private void setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + } + /** + *
+     * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+     * form package:type/entry.
+     * 
+ * + * string name = 2; + */ + private void clearName() { + + name_ = getDefaultInstance().getName(); + } + /** + *
+     * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+     * form package:type/entry.
+     * 
+ * + * string name = 2; + */ + private void setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value.toStringUtf8(); + } + + public static final int VISIBILITY_FIELD_NUMBER = 3; + private com.android.aapt.Resources.Visibility visibility_; + /** + *
+     * The visibility of this entry (public, private, undefined).
+     * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + @java.lang.Override + public boolean hasVisibility() { + return visibility_ != null; + } + /** + *
+     * The visibility of this entry (public, private, undefined).
+     * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Visibility getVisibility() { + return visibility_ == null ? com.android.aapt.Resources.Visibility.getDefaultInstance() : visibility_; + } + /** + *
+     * The visibility of this entry (public, private, undefined).
+     * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + private void setVisibility(com.android.aapt.Resources.Visibility value) { + if (value == null) { + throw new NullPointerException(); + } + visibility_ = value; + + } + /** + *
+     * The visibility of this entry (public, private, undefined).
+     * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + private void setVisibility( + com.android.aapt.Resources.Visibility.Builder builderForValue) { + visibility_ = builderForValue.build(); + + } + /** + *
+     * The visibility of this entry (public, private, undefined).
+     * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeVisibility(com.android.aapt.Resources.Visibility value) { + if (value == null) { + throw new NullPointerException(); + } + if (visibility_ != null && + visibility_ != com.android.aapt.Resources.Visibility.getDefaultInstance()) { + visibility_ = + com.android.aapt.Resources.Visibility.newBuilder(visibility_).mergeFrom(value).buildPartial(); + } else { + visibility_ = value; + } + + } + /** + *
+     * The visibility of this entry (public, private, undefined).
+     * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + private void clearVisibility() { visibility_ = null; + + } + + public static final int ALLOW_NEW_FIELD_NUMBER = 4; + private com.android.aapt.Resources.AllowNew allowNew_; + /** + *
+     * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+     * any existing resources.
+     * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + @java.lang.Override + public boolean hasAllowNew() { + return allowNew_ != null; + } + /** + *
+     * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+     * any existing resources.
+     * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.AllowNew getAllowNew() { + return allowNew_ == null ? com.android.aapt.Resources.AllowNew.getDefaultInstance() : allowNew_; + } + /** + *
+     * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+     * any existing resources.
+     * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + private void setAllowNew(com.android.aapt.Resources.AllowNew value) { + if (value == null) { + throw new NullPointerException(); + } + allowNew_ = value; + + } + /** + *
+     * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+     * any existing resources.
+     * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + private void setAllowNew( + com.android.aapt.Resources.AllowNew.Builder builderForValue) { + allowNew_ = builderForValue.build(); + + } + /** + *
+     * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+     * any existing resources.
+     * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeAllowNew(com.android.aapt.Resources.AllowNew value) { + if (value == null) { + throw new NullPointerException(); + } + if (allowNew_ != null && + allowNew_ != com.android.aapt.Resources.AllowNew.getDefaultInstance()) { + allowNew_ = + com.android.aapt.Resources.AllowNew.newBuilder(allowNew_).mergeFrom(value).buildPartial(); + } else { + allowNew_ = value; + } + + } + /** + *
+     * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+     * any existing resources.
+     * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + private void clearAllowNew() { allowNew_ = null; + + } + + public static final int OVERLAYABLE_FIELD_NUMBER = 5; + private com.android.aapt.Resources.Overlayable overlayable_; + /** + *
+     * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+     * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + @java.lang.Override + public boolean hasOverlayable() { + return overlayable_ != null; + } + /** + *
+     * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+     * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + @java.lang.Override + public com.android.aapt.Resources.Overlayable getOverlayable() { + return overlayable_ == null ? com.android.aapt.Resources.Overlayable.getDefaultInstance() : overlayable_; + } + /** + *
+     * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+     * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + private void setOverlayable(com.android.aapt.Resources.Overlayable value) { + if (value == null) { + throw new NullPointerException(); + } + overlayable_ = value; + + } + /** + *
+     * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+     * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + private void setOverlayable( + com.android.aapt.Resources.Overlayable.Builder builderForValue) { + overlayable_ = builderForValue.build(); + + } + /** + *
+     * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+     * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeOverlayable(com.android.aapt.Resources.Overlayable value) { + if (value == null) { + throw new NullPointerException(); + } + if (overlayable_ != null && + overlayable_ != com.android.aapt.Resources.Overlayable.getDefaultInstance()) { + overlayable_ = + com.android.aapt.Resources.Overlayable.newBuilder(overlayable_).mergeFrom(value).buildPartial(); + } else { + overlayable_ = value; + } + + } + /** + *
+     * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+     * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + private void clearOverlayable() { overlayable_ = null; + + } + + public static final int CONFIG_VALUE_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.ProtobufList configValue_; + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + @java.lang.Override + public java.util.List getConfigValueList() { + return configValue_; + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public java.util.List + getConfigValueOrBuilderList() { + return configValue_; + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + @java.lang.Override + public int getConfigValueCount() { + return configValue_.size(); + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + @java.lang.Override + public com.android.aapt.Resources.ConfigValue getConfigValue(int index) { + return configValue_.get(index); + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public com.android.aapt.Resources.ConfigValueOrBuilder getConfigValueOrBuilder( + int index) { + return configValue_.get(index); + } + private void ensureConfigValueIsMutable() { + if (!configValue_.isModifiable()) { + configValue_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(configValue_); + } + } + + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + private void setConfigValue( + int index, com.android.aapt.Resources.ConfigValue value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigValueIsMutable(); + configValue_.set(index, value); + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + private void setConfigValue( + int index, com.android.aapt.Resources.ConfigValue.Builder builderForValue) { + ensureConfigValueIsMutable(); + configValue_.set(index, builderForValue.build()); + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + private void addConfigValue(com.android.aapt.Resources.ConfigValue value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigValueIsMutable(); + configValue_.add(value); + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + private void addConfigValue( + int index, com.android.aapt.Resources.ConfigValue value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigValueIsMutable(); + configValue_.add(index, value); + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + private void addConfigValue( + com.android.aapt.Resources.ConfigValue.Builder builderForValue) { + ensureConfigValueIsMutable(); + configValue_.add(builderForValue.build()); + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + private void addConfigValue( + int index, com.android.aapt.Resources.ConfigValue.Builder builderForValue) { + ensureConfigValueIsMutable(); + configValue_.add(index, builderForValue.build()); + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + private void addAllConfigValue( + java.lang.Iterable values) { + ensureConfigValueIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, configValue_); + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + private void clearConfigValue() { + configValue_ = emptyProtobufList(); + } + /** + *
+     * The set of values defined for this entry, each corresponding to a different
+     * configuration/variant.
+     * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + private void removeConfigValue(int index) { + ensureConfigValueIsMutable(); + configValue_.remove(index); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (entryId_ != null) { + output.writeMessage(1, getEntryId()); + } + if (!name_.isEmpty()) { + output.writeString(2, getName()); + } + if (visibility_ != null) { + output.writeMessage(3, getVisibility()); + } + if (allowNew_ != null) { + output.writeMessage(4, getAllowNew()); + } + if (overlayable_ != null) { + output.writeMessage(5, getOverlayable()); + } + for (int i = 0; i < configValue_.size(); i++) { + output.writeMessage(6, configValue_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (entryId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEntryId()); + } + if (!name_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getName()); + } + if (visibility_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getVisibility()); + } + if (allowNew_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAllowNew()); + } + if (overlayable_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOverlayable()); + } + for (int i = 0; i < configValue_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, configValue_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Entry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Entry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Entry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Entry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Entry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Entry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Entry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Entry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Entry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Entry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Entry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Entry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Entry prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * An entry declaration. An entry has a full resource ID that is the combination of package ID,
+     * type ID, and its own entry ID. An entry on its own has no value, but values are defined for
+     * various configurations/variants.
+     * 
+ * + * Protobuf type {@code aapt.pb.Entry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Entry, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Entry) + com.android.aapt.Resources.EntryOrBuilder { + // Construct using com.android.aapt.Resources.Entry.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+       * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+       * ID.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + @java.lang.Override + public boolean hasEntryId() { + return instance.hasEntryId(); + } + /** + *
+       * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+       * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+       * ID.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.EntryId getEntryId() { + return instance.getEntryId(); + } + /** + *
+       * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+       * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+       * ID.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + public Builder setEntryId(com.android.aapt.Resources.EntryId value) { + copyOnWrite(); + instance.setEntryId(value); + return this; + } + /** + *
+       * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+       * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+       * ID.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + public Builder setEntryId( + com.android.aapt.Resources.EntryId.Builder builderForValue) { + copyOnWrite(); + instance.setEntryId(builderForValue); + return this; + } + /** + *
+       * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+       * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+       * ID.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + public Builder mergeEntryId(com.android.aapt.Resources.EntryId value) { + copyOnWrite(); + instance.mergeEntryId(value); + return this; + } + /** + *
+       * The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
+       * of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
+       * ID.
+       * This may not be set if no ID was assigned.
+       * 
+ * + * .aapt.pb.EntryId entry_id = 1; + */ + public Builder clearEntryId() { copyOnWrite(); + instance.clearEntryId(); + return this; + } + + /** + *
+       * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+       * form package:type/entry.
+       * 
+ * + * string name = 2; + */ + @java.lang.Override + public java.lang.String getName() { + return instance.getName(); + } + /** + *
+       * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+       * form package:type/entry.
+       * 
+ * + * string name = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + return instance.getNameBytes(); + } + /** + *
+       * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+       * form package:type/entry.
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + copyOnWrite(); + instance.setName(value); + return this; + } + /** + *
+       * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+       * form package:type/entry.
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + copyOnWrite(); + instance.clearName(); + return this; + } + /** + *
+       * The name of this entry. This corresponds to the 'entry' part of a full resource name of the
+       * form package:type/entry.
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setNameBytes(value); + return this; + } + + /** + *
+       * The visibility of this entry (public, private, undefined).
+       * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + @java.lang.Override + public boolean hasVisibility() { + return instance.hasVisibility(); + } + /** + *
+       * The visibility of this entry (public, private, undefined).
+       * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Visibility getVisibility() { + return instance.getVisibility(); + } + /** + *
+       * The visibility of this entry (public, private, undefined).
+       * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + public Builder setVisibility(com.android.aapt.Resources.Visibility value) { + copyOnWrite(); + instance.setVisibility(value); + return this; + } + /** + *
+       * The visibility of this entry (public, private, undefined).
+       * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + public Builder setVisibility( + com.android.aapt.Resources.Visibility.Builder builderForValue) { + copyOnWrite(); + instance.setVisibility(builderForValue); + return this; + } + /** + *
+       * The visibility of this entry (public, private, undefined).
+       * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + public Builder mergeVisibility(com.android.aapt.Resources.Visibility value) { + copyOnWrite(); + instance.mergeVisibility(value); + return this; + } + /** + *
+       * The visibility of this entry (public, private, undefined).
+       * 
+ * + * .aapt.pb.Visibility visibility = 3; + */ + public Builder clearVisibility() { copyOnWrite(); + instance.clearVisibility(); + return this; + } + + /** + *
+       * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+       * any existing resources.
+       * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + @java.lang.Override + public boolean hasAllowNew() { + return instance.hasAllowNew(); + } + /** + *
+       * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+       * any existing resources.
+       * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.AllowNew getAllowNew() { + return instance.getAllowNew(); + } + /** + *
+       * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+       * any existing resources.
+       * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + public Builder setAllowNew(com.android.aapt.Resources.AllowNew value) { + copyOnWrite(); + instance.setAllowNew(value); + return this; + } + /** + *
+       * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+       * any existing resources.
+       * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + public Builder setAllowNew( + com.android.aapt.Resources.AllowNew.Builder builderForValue) { + copyOnWrite(); + instance.setAllowNew(builderForValue); + return this; + } + /** + *
+       * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+       * any existing resources.
+       * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + public Builder mergeAllowNew(com.android.aapt.Resources.AllowNew value) { + copyOnWrite(); + instance.mergeAllowNew(value); + return this; + } + /** + *
+       * Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
+       * any existing resources.
+       * 
+ * + * .aapt.pb.AllowNew allow_new = 4; + */ + public Builder clearAllowNew() { copyOnWrite(); + instance.clearAllowNew(); + return this; + } + + /** + *
+       * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+       * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + @java.lang.Override + public boolean hasOverlayable() { + return instance.hasOverlayable(); + } + /** + *
+       * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+       * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + @java.lang.Override + public com.android.aapt.Resources.Overlayable getOverlayable() { + return instance.getOverlayable(); + } + /** + *
+       * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+       * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + public Builder setOverlayable(com.android.aapt.Resources.Overlayable value) { + copyOnWrite(); + instance.setOverlayable(value); + return this; + } + /** + *
+       * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+       * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + public Builder setOverlayable( + com.android.aapt.Resources.Overlayable.Builder builderForValue) { + copyOnWrite(); + instance.setOverlayable(builderForValue); + return this; + } + /** + *
+       * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+       * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + public Builder mergeOverlayable(com.android.aapt.Resources.Overlayable value) { + copyOnWrite(); + instance.mergeOverlayable(value); + return this; + } + /** + *
+       * Whether this resource can be overlaid by a runtime resource overlay (RRO).
+       * 
+ * + * .aapt.pb.Overlayable overlayable = 5; + */ + public Builder clearOverlayable() { copyOnWrite(); + instance.clearOverlayable(); + return this; + } + + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + @java.lang.Override + public java.util.List getConfigValueList() { + return java.util.Collections.unmodifiableList( + instance.getConfigValueList()); + } + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + @java.lang.Override + public int getConfigValueCount() { + return instance.getConfigValueCount(); + }/** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + @java.lang.Override + public com.android.aapt.Resources.ConfigValue getConfigValue(int index) { + return instance.getConfigValue(index); + } + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public Builder setConfigValue( + int index, com.android.aapt.Resources.ConfigValue value) { + copyOnWrite(); + instance.setConfigValue(index, value); + return this; + } + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public Builder setConfigValue( + int index, com.android.aapt.Resources.ConfigValue.Builder builderForValue) { + copyOnWrite(); + instance.setConfigValue(index, builderForValue); + return this; + } + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public Builder addConfigValue(com.android.aapt.Resources.ConfigValue value) { + copyOnWrite(); + instance.addConfigValue(value); + return this; + } + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public Builder addConfigValue( + int index, com.android.aapt.Resources.ConfigValue value) { + copyOnWrite(); + instance.addConfigValue(index, value); + return this; + } + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public Builder addConfigValue( + com.android.aapt.Resources.ConfigValue.Builder builderForValue) { + copyOnWrite(); + instance.addConfigValue(builderForValue); + return this; + } + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public Builder addConfigValue( + int index, com.android.aapt.Resources.ConfigValue.Builder builderForValue) { + copyOnWrite(); + instance.addConfigValue(index, builderForValue); + return this; + } + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public Builder addAllConfigValue( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllConfigValue(values); + return this; + } + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public Builder clearConfigValue() { + copyOnWrite(); + instance.clearConfigValue(); + return this; + } + /** + *
+       * The set of values defined for this entry, each corresponding to a different
+       * configuration/variant.
+       * 
+ * + * repeated .aapt.pb.ConfigValue config_value = 6; + */ + public Builder removeConfigValue(int index) { + copyOnWrite(); + instance.removeConfigValue(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Entry) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Entry(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + configValue_.makeImmutable(); + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Entry other = (com.android.aapt.Resources.Entry) arg1; + entryId_ = visitor.visitMessage(entryId_, other.entryId_); + name_ = visitor.visitString(!name_.isEmpty(), name_, + !other.name_.isEmpty(), other.name_); + visibility_ = visitor.visitMessage(visibility_, other.visibility_); + allowNew_ = visitor.visitMessage(allowNew_, other.allowNew_); + overlayable_ = visitor.visitMessage(overlayable_, other.overlayable_); + configValue_= visitor.visitList(configValue_, other.configValue_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.EntryId.Builder subBuilder = null; + if (entryId_ != null) { + subBuilder = entryId_.toBuilder(); + } + entryId_ = input.readMessage(com.android.aapt.Resources.EntryId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entryId_); + entryId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + com.android.aapt.Resources.Visibility.Builder subBuilder = null; + if (visibility_ != null) { + subBuilder = visibility_.toBuilder(); + } + visibility_ = input.readMessage(com.android.aapt.Resources.Visibility.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(visibility_); + visibility_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.android.aapt.Resources.AllowNew.Builder subBuilder = null; + if (allowNew_ != null) { + subBuilder = allowNew_.toBuilder(); + } + allowNew_ = input.readMessage(com.android.aapt.Resources.AllowNew.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allowNew_); + allowNew_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.android.aapt.Resources.Overlayable.Builder subBuilder = null; + if (overlayable_ != null) { + subBuilder = overlayable_.toBuilder(); + } + overlayable_ = input.readMessage(com.android.aapt.Resources.Overlayable.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(overlayable_); + overlayable_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + if (!configValue_.isModifiable()) { + configValue_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(configValue_); + } + configValue_.add( + input.readMessage(com.android.aapt.Resources.ConfigValue.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Entry.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Entry) + private static final com.android.aapt.Resources.Entry DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Entry(); + } + + public static com.android.aapt.Resources.Entry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ConfigValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.ConfigValue) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * .aapt.pb.Configuration config = 1; + */ + boolean hasConfig(); + /** + * .aapt.pb.Configuration config = 1; + */ + com.android.aapt.ConfigurationOuterClass.Configuration getConfig(); + + /** + * .aapt.pb.Value value = 2; + */ + boolean hasValue(); + /** + * .aapt.pb.Value value = 2; + */ + com.android.aapt.Resources.Value getValue(); + } + /** + *
+   * A Configuration/Value pair.
+   * 
+ * + * Protobuf type {@code aapt.pb.ConfigValue} + */ + public static final class ConfigValue extends + com.google.protobuf.GeneratedMessageLite< + ConfigValue, ConfigValue.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.ConfigValue) + ConfigValueOrBuilder { + private ConfigValue() { + } + public static final int CONFIG_FIELD_NUMBER = 1; + private com.android.aapt.ConfigurationOuterClass.Configuration config_; + /** + * .aapt.pb.Configuration config = 1; + */ + @java.lang.Override + public boolean hasConfig() { + return config_ != null; + } + /** + * .aapt.pb.Configuration config = 1; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration getConfig() { + return config_ == null ? com.android.aapt.ConfigurationOuterClass.Configuration.getDefaultInstance() : config_; + } + /** + * .aapt.pb.Configuration config = 1; + */ + private void setConfig(com.android.aapt.ConfigurationOuterClass.Configuration value) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + + } + /** + * .aapt.pb.Configuration config = 1; + */ + private void setConfig( + com.android.aapt.ConfigurationOuterClass.Configuration.Builder builderForValue) { + config_ = builderForValue.build(); + + } + /** + * .aapt.pb.Configuration config = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeConfig(com.android.aapt.ConfigurationOuterClass.Configuration value) { + if (value == null) { + throw new NullPointerException(); + } + if (config_ != null && + config_ != com.android.aapt.ConfigurationOuterClass.Configuration.getDefaultInstance()) { + config_ = + com.android.aapt.ConfigurationOuterClass.Configuration.newBuilder(config_).mergeFrom(value).buildPartial(); + } else { + config_ = value; + } + + } + /** + * .aapt.pb.Configuration config = 1; + */ + private void clearConfig() { config_ = null; + + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.android.aapt.Resources.Value value_; + /** + * .aapt.pb.Value value = 2; + */ + @java.lang.Override + public boolean hasValue() { + return value_ != null; + } + /** + * .aapt.pb.Value value = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Value getValue() { + return value_ == null ? com.android.aapt.Resources.Value.getDefaultInstance() : value_; + } + /** + * .aapt.pb.Value value = 2; + */ + private void setValue(com.android.aapt.Resources.Value value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + + } + /** + * .aapt.pb.Value value = 2; + */ + private void setValue( + com.android.aapt.Resources.Value.Builder builderForValue) { + value_ = builderForValue.build(); + + } + /** + * .aapt.pb.Value value = 2; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeValue(com.android.aapt.Resources.Value value) { + if (value == null) { + throw new NullPointerException(); + } + if (value_ != null && + value_ != com.android.aapt.Resources.Value.getDefaultInstance()) { + value_ = + com.android.aapt.Resources.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + + } + /** + * .aapt.pb.Value value = 2; + */ + private void clearValue() { value_ = null; + + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (config_ != null) { + output.writeMessage(1, getConfig()); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (config_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.ConfigValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.ConfigValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.ConfigValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.ConfigValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.ConfigValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.ConfigValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.ConfigValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.ConfigValue parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.ConfigValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.ConfigValue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.ConfigValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.ConfigValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.ConfigValue prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A Configuration/Value pair.
+     * 
+ * + * Protobuf type {@code aapt.pb.ConfigValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.ConfigValue, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.ConfigValue) + com.android.aapt.Resources.ConfigValueOrBuilder { + // Construct using com.android.aapt.Resources.ConfigValue.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * .aapt.pb.Configuration config = 1; + */ + @java.lang.Override + public boolean hasConfig() { + return instance.hasConfig(); + } + /** + * .aapt.pb.Configuration config = 1; + */ + @java.lang.Override + public com.android.aapt.ConfigurationOuterClass.Configuration getConfig() { + return instance.getConfig(); + } + /** + * .aapt.pb.Configuration config = 1; + */ + public Builder setConfig(com.android.aapt.ConfigurationOuterClass.Configuration value) { + copyOnWrite(); + instance.setConfig(value); + return this; + } + /** + * .aapt.pb.Configuration config = 1; + */ + public Builder setConfig( + com.android.aapt.ConfigurationOuterClass.Configuration.Builder builderForValue) { + copyOnWrite(); + instance.setConfig(builderForValue); + return this; + } + /** + * .aapt.pb.Configuration config = 1; + */ + public Builder mergeConfig(com.android.aapt.ConfigurationOuterClass.Configuration value) { + copyOnWrite(); + instance.mergeConfig(value); + return this; + } + /** + * .aapt.pb.Configuration config = 1; + */ + public Builder clearConfig() { copyOnWrite(); + instance.clearConfig(); + return this; + } + + /** + * .aapt.pb.Value value = 2; + */ + @java.lang.Override + public boolean hasValue() { + return instance.hasValue(); + } + /** + * .aapt.pb.Value value = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Value getValue() { + return instance.getValue(); + } + /** + * .aapt.pb.Value value = 2; + */ + public Builder setValue(com.android.aapt.Resources.Value value) { + copyOnWrite(); + instance.setValue(value); + return this; + } + /** + * .aapt.pb.Value value = 2; + */ + public Builder setValue( + com.android.aapt.Resources.Value.Builder builderForValue) { + copyOnWrite(); + instance.setValue(builderForValue); + return this; + } + /** + * .aapt.pb.Value value = 2; + */ + public Builder mergeValue(com.android.aapt.Resources.Value value) { + copyOnWrite(); + instance.mergeValue(value); + return this; + } + /** + * .aapt.pb.Value value = 2; + */ + public Builder clearValue() { copyOnWrite(); + instance.clearValue(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.ConfigValue) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.ConfigValue(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.ConfigValue other = (com.android.aapt.Resources.ConfigValue) arg1; + config_ = visitor.visitMessage(config_, other.config_); + value_ = visitor.visitMessage(value_, other.value_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.ConfigurationOuterClass.Configuration.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = input.readMessage(com.android.aapt.ConfigurationOuterClass.Configuration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.android.aapt.Resources.Value.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(com.android.aapt.Resources.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.ConfigValue.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.ConfigValue) + private static final com.android.aapt.Resources.ConfigValue DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new ConfigValue(); + } + + public static com.android.aapt.Resources.ConfigValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Value) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * Where the value was defined.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + boolean hasSource(); + /** + *
+     * Where the value was defined.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + com.android.aapt.Resources.Source getSource(); + + /** + *
+     * Any comment associated with the value.
+     * 
+ * + * string comment = 2; + */ + java.lang.String getComment(); + /** + *
+     * Any comment associated with the value.
+     * 
+ * + * string comment = 2; + */ + com.google.protobuf.ByteString + getCommentBytes(); + + /** + *
+     * Whether the value can be overridden.
+     * 
+ * + * bool weak = 3; + */ + boolean getWeak(); + + /** + * .aapt.pb.Item item = 4; + */ + boolean hasItem(); + /** + * .aapt.pb.Item item = 4; + */ + com.android.aapt.Resources.Item getItem(); + + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + boolean hasCompoundValue(); + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + com.android.aapt.Resources.CompoundValue getCompoundValue(); + + public com.android.aapt.Resources.Value.ValueCase getValueCase(); + } + /** + *
+   * The generic meta-data for every value in a resource table.
+   * 
+ * + * Protobuf type {@code aapt.pb.Value} + */ + public static final class Value extends + com.google.protobuf.GeneratedMessageLite< + Value, Value.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Value) + ValueOrBuilder { + private Value() { + comment_ = ""; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + ITEM(4), + COMPOUND_VALUE(5), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 4: return ITEM; + case 5: return COMPOUND_VALUE; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + @java.lang.Override + public int getNumber() { + return this.value; + } + }; + + @java.lang.Override + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + private void clearValue() { + valueCase_ = 0; + value_ = null; + } + + public static final int SOURCE_FIELD_NUMBER = 1; + private com.android.aapt.Resources.Source source_; + /** + *
+     * Where the value was defined.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public boolean hasSource() { + return source_ != null; + } + /** + *
+     * Where the value was defined.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return source_ == null ? com.android.aapt.Resources.Source.getDefaultInstance() : source_; + } + /** + *
+     * Where the value was defined.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + private void setSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + + } + /** + *
+     * Where the value was defined.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + private void setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + source_ = builderForValue.build(); + + } + /** + *
+     * Where the value was defined.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + if (source_ != null && + source_ != com.android.aapt.Resources.Source.getDefaultInstance()) { + source_ = + com.android.aapt.Resources.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + + } + /** + *
+     * Where the value was defined.
+     * 
+ * + * .aapt.pb.Source source = 1; + */ + private void clearSource() { source_ = null; + + } + + public static final int COMMENT_FIELD_NUMBER = 2; + private java.lang.String comment_; + /** + *
+     * Any comment associated with the value.
+     * 
+ * + * string comment = 2; + */ + @java.lang.Override + public java.lang.String getComment() { + return comment_; + } + /** + *
+     * Any comment associated with the value.
+     * 
+ * + * string comment = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(comment_); + } + /** + *
+     * Any comment associated with the value.
+     * 
+ * + * string comment = 2; + */ + private void setComment( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + comment_ = value; + } + /** + *
+     * Any comment associated with the value.
+     * 
+ * + * string comment = 2; + */ + private void clearComment() { + + comment_ = getDefaultInstance().getComment(); + } + /** + *
+     * Any comment associated with the value.
+     * 
+ * + * string comment = 2; + */ + private void setCommentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + comment_ = value.toStringUtf8(); + } + + public static final int WEAK_FIELD_NUMBER = 3; + private boolean weak_; + /** + *
+     * Whether the value can be overridden.
+     * 
+ * + * bool weak = 3; + */ + @java.lang.Override + public boolean getWeak() { + return weak_; + } + /** + *
+     * Whether the value can be overridden.
+     * 
+ * + * bool weak = 3; + */ + private void setWeak(boolean value) { + + weak_ = value; + } + /** + *
+     * Whether the value can be overridden.
+     * 
+ * + * bool weak = 3; + */ + private void clearWeak() { + + weak_ = false; + } + + public static final int ITEM_FIELD_NUMBER = 4; + /** + * .aapt.pb.Item item = 4; + */ + @java.lang.Override + public boolean hasItem() { + return valueCase_ == 4; + } + /** + * .aapt.pb.Item item = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.Item getItem() { + if (valueCase_ == 4) { + return (com.android.aapt.Resources.Item) value_; + } + return com.android.aapt.Resources.Item.getDefaultInstance(); + } + /** + * .aapt.pb.Item item = 4; + */ + private void setItem(com.android.aapt.Resources.Item value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 4; + } + /** + * .aapt.pb.Item item = 4; + */ + private void setItem( + com.android.aapt.Resources.Item.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 4; + } + /** + * .aapt.pb.Item item = 4; + */ + private void mergeItem(com.android.aapt.Resources.Item value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 4 && + value_ != com.android.aapt.Resources.Item.getDefaultInstance()) { + value_ = com.android.aapt.Resources.Item.newBuilder((com.android.aapt.Resources.Item) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 4; + } + /** + * .aapt.pb.Item item = 4; + */ + private void clearItem() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int COMPOUND_VALUE_FIELD_NUMBER = 5; + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + @java.lang.Override + public boolean hasCompoundValue() { + return valueCase_ == 5; + } + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + @java.lang.Override + public com.android.aapt.Resources.CompoundValue getCompoundValue() { + if (valueCase_ == 5) { + return (com.android.aapt.Resources.CompoundValue) value_; + } + return com.android.aapt.Resources.CompoundValue.getDefaultInstance(); + } + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + private void setCompoundValue(com.android.aapt.Resources.CompoundValue value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 5; + } + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + private void setCompoundValue( + com.android.aapt.Resources.CompoundValue.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 5; + } + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + private void mergeCompoundValue(com.android.aapt.Resources.CompoundValue value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 5 && + value_ != com.android.aapt.Resources.CompoundValue.getDefaultInstance()) { + value_ = com.android.aapt.Resources.CompoundValue.newBuilder((com.android.aapt.Resources.CompoundValue) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 5; + } + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + private void clearCompoundValue() { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (source_ != null) { + output.writeMessage(1, getSource()); + } + if (!comment_.isEmpty()) { + output.writeString(2, getComment()); + } + if (weak_ != false) { + output.writeBool(3, weak_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (com.android.aapt.Resources.Item) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (com.android.aapt.Resources.CompoundValue) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSource()); + } + if (!comment_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getComment()); + } + if (weak_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, weak_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.android.aapt.Resources.Item) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.android.aapt.Resources.CompoundValue) value_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Value parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Value parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Value parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Value parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Value parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Value parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Value parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Value parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Value parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Value parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Value parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Value parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Value prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * The generic meta-data for every value in a resource table.
+     * 
+ * + * Protobuf type {@code aapt.pb.Value} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Value, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Value) + com.android.aapt.Resources.ValueOrBuilder { + // Construct using com.android.aapt.Resources.Value.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + @java.lang.Override + public ValueCase + getValueCase() { + return instance.getValueCase(); + } + + public Builder clearValue() { + copyOnWrite(); + instance.clearValue(); + return this; + } + + + /** + *
+       * Where the value was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public boolean hasSource() { + return instance.hasSource(); + } + /** + *
+       * Where the value was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return instance.getSource(); + } + /** + *
+       * Where the value was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder setSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.setSource(value); + return this; + } + /** + *
+       * Where the value was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + copyOnWrite(); + instance.setSource(builderForValue); + return this; + } + /** + *
+       * Where the value was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder mergeSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.mergeSource(value); + return this; + } + /** + *
+       * Where the value was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder clearSource() { copyOnWrite(); + instance.clearSource(); + return this; + } + + /** + *
+       * Any comment associated with the value.
+       * 
+ * + * string comment = 2; + */ + @java.lang.Override + public java.lang.String getComment() { + return instance.getComment(); + } + /** + *
+       * Any comment associated with the value.
+       * 
+ * + * string comment = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return instance.getCommentBytes(); + } + /** + *
+       * Any comment associated with the value.
+       * 
+ * + * string comment = 2; + */ + public Builder setComment( + java.lang.String value) { + copyOnWrite(); + instance.setComment(value); + return this; + } + /** + *
+       * Any comment associated with the value.
+       * 
+ * + * string comment = 2; + */ + public Builder clearComment() { + copyOnWrite(); + instance.clearComment(); + return this; + } + /** + *
+       * Any comment associated with the value.
+       * 
+ * + * string comment = 2; + */ + public Builder setCommentBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setCommentBytes(value); + return this; + } + + /** + *
+       * Whether the value can be overridden.
+       * 
+ * + * bool weak = 3; + */ + @java.lang.Override + public boolean getWeak() { + return instance.getWeak(); + } + /** + *
+       * Whether the value can be overridden.
+       * 
+ * + * bool weak = 3; + */ + public Builder setWeak(boolean value) { + copyOnWrite(); + instance.setWeak(value); + return this; + } + /** + *
+       * Whether the value can be overridden.
+       * 
+ * + * bool weak = 3; + */ + public Builder clearWeak() { + copyOnWrite(); + instance.clearWeak(); + return this; + } + + /** + * .aapt.pb.Item item = 4; + */ + @java.lang.Override + public boolean hasItem() { + return instance.hasItem(); + } + /** + * .aapt.pb.Item item = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.Item getItem() { + return instance.getItem(); + } + /** + * .aapt.pb.Item item = 4; + */ + public Builder setItem(com.android.aapt.Resources.Item value) { + copyOnWrite(); + instance.setItem(value); + return this; + } + /** + * .aapt.pb.Item item = 4; + */ + public Builder setItem( + com.android.aapt.Resources.Item.Builder builderForValue) { + copyOnWrite(); + instance.setItem(builderForValue); + return this; + } + /** + * .aapt.pb.Item item = 4; + */ + public Builder mergeItem(com.android.aapt.Resources.Item value) { + copyOnWrite(); + instance.mergeItem(value); + return this; + } + /** + * .aapt.pb.Item item = 4; + */ + public Builder clearItem() { + copyOnWrite(); + instance.clearItem(); + return this; + } + + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + @java.lang.Override + public boolean hasCompoundValue() { + return instance.hasCompoundValue(); + } + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + @java.lang.Override + public com.android.aapt.Resources.CompoundValue getCompoundValue() { + return instance.getCompoundValue(); + } + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + public Builder setCompoundValue(com.android.aapt.Resources.CompoundValue value) { + copyOnWrite(); + instance.setCompoundValue(value); + return this; + } + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + public Builder setCompoundValue( + com.android.aapt.Resources.CompoundValue.Builder builderForValue) { + copyOnWrite(); + instance.setCompoundValue(builderForValue); + return this; + } + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + public Builder mergeCompoundValue(com.android.aapt.Resources.CompoundValue value) { + copyOnWrite(); + instance.mergeCompoundValue(value); + return this; + } + /** + * .aapt.pb.CompoundValue compound_value = 5; + */ + public Builder clearCompoundValue() { + copyOnWrite(); + instance.clearCompoundValue(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Value) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Value(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Value other = (com.android.aapt.Resources.Value) arg1; + source_ = visitor.visitMessage(source_, other.source_); + comment_ = visitor.visitString(!comment_.isEmpty(), comment_, + !other.comment_.isEmpty(), other.comment_); + weak_ = visitor.visitBoolean(weak_ != false, weak_, + other.weak_ != false, other.weak_); + switch (other.getValueCase()) { + case ITEM: { + value_ = visitor.visitOneofMessage( + valueCase_ == 4, + value_, + other.value_); + break; + } + case COMPOUND_VALUE: { + value_ = visitor.visitOneofMessage( + valueCase_ == 5, + value_, + other.value_); + break; + } + case VALUE_NOT_SET: { + visitor.visitOneofNotSet(valueCase_ != 0); + break; + } + } + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + if (other.valueCase_ != 0) { + valueCase_ = other.valueCase_; + } + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.android.aapt.Resources.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + comment_ = s; + break; + } + case 24: { + + weak_ = input.readBool(); + break; + } + case 34: { + com.android.aapt.Resources.Item.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((com.android.aapt.Resources.Item) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.Item.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Item) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + com.android.aapt.Resources.CompoundValue.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((com.android.aapt.Resources.CompoundValue) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.CompoundValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.CompoundValue) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Value.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Value) + private static final com.android.aapt.Resources.Value DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Value(); + } + + public static com.android.aapt.Resources.Value getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Item) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * .aapt.pb.Reference ref = 1; + */ + boolean hasRef(); + /** + * .aapt.pb.Reference ref = 1; + */ + com.android.aapt.Resources.Reference getRef(); + + /** + * .aapt.pb.String str = 2; + */ + boolean hasStr(); + /** + * .aapt.pb.String str = 2; + */ + com.android.aapt.Resources.String getStr(); + + /** + * .aapt.pb.RawString raw_str = 3; + */ + boolean hasRawStr(); + /** + * .aapt.pb.RawString raw_str = 3; + */ + com.android.aapt.Resources.RawString getRawStr(); + + /** + * .aapt.pb.StyledString styled_str = 4; + */ + boolean hasStyledStr(); + /** + * .aapt.pb.StyledString styled_str = 4; + */ + com.android.aapt.Resources.StyledString getStyledStr(); + + /** + * .aapt.pb.FileReference file = 5; + */ + boolean hasFile(); + /** + * .aapt.pb.FileReference file = 5; + */ + com.android.aapt.Resources.FileReference getFile(); + + /** + * .aapt.pb.Id id = 6; + */ + boolean hasId(); + /** + * .aapt.pb.Id id = 6; + */ + com.android.aapt.Resources.Id getId(); + + /** + * .aapt.pb.Primitive prim = 7; + */ + boolean hasPrim(); + /** + * .aapt.pb.Primitive prim = 7; + */ + com.android.aapt.Resources.Primitive getPrim(); + + public com.android.aapt.Resources.Item.ValueCase getValueCase(); + } + /** + *
+   * An Item is an abstract type. It represents a value that can appear inline in many places, such
+   * as XML attribute values or on the right hand side of style attribute definitions. The concrete
+   * type is one of the types below. Only one can be set.
+   * 
+ * + * Protobuf type {@code aapt.pb.Item} + */ + public static final class Item extends + com.google.protobuf.GeneratedMessageLite< + Item, Item.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Item) + ItemOrBuilder { + private Item() { + } + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + REF(1), + STR(2), + RAW_STR(3), + STYLED_STR(4), + FILE(5), + ID(6), + PRIM(7), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return REF; + case 2: return STR; + case 3: return RAW_STR; + case 4: return STYLED_STR; + case 5: return FILE; + case 6: return ID; + case 7: return PRIM; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + @java.lang.Override + public int getNumber() { + return this.value; + } + }; + + @java.lang.Override + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + private void clearValue() { + valueCase_ = 0; + value_ = null; + } + + public static final int REF_FIELD_NUMBER = 1; + /** + * .aapt.pb.Reference ref = 1; + */ + @java.lang.Override + public boolean hasRef() { + return valueCase_ == 1; + } + /** + * .aapt.pb.Reference ref = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Reference getRef() { + if (valueCase_ == 1) { + return (com.android.aapt.Resources.Reference) value_; + } + return com.android.aapt.Resources.Reference.getDefaultInstance(); + } + /** + * .aapt.pb.Reference ref = 1; + */ + private void setRef(com.android.aapt.Resources.Reference value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 1; + } + /** + * .aapt.pb.Reference ref = 1; + */ + private void setRef( + com.android.aapt.Resources.Reference.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 1; + } + /** + * .aapt.pb.Reference ref = 1; + */ + private void mergeRef(com.android.aapt.Resources.Reference value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 1 && + value_ != com.android.aapt.Resources.Reference.getDefaultInstance()) { + value_ = com.android.aapt.Resources.Reference.newBuilder((com.android.aapt.Resources.Reference) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 1; + } + /** + * .aapt.pb.Reference ref = 1; + */ + private void clearRef() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int STR_FIELD_NUMBER = 2; + /** + * .aapt.pb.String str = 2; + */ + @java.lang.Override + public boolean hasStr() { + return valueCase_ == 2; + } + /** + * .aapt.pb.String str = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.String getStr() { + if (valueCase_ == 2) { + return (com.android.aapt.Resources.String) value_; + } + return com.android.aapt.Resources.String.getDefaultInstance(); + } + /** + * .aapt.pb.String str = 2; + */ + private void setStr(com.android.aapt.Resources.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 2; + } + /** + * .aapt.pb.String str = 2; + */ + private void setStr( + com.android.aapt.Resources.String.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 2; + } + /** + * .aapt.pb.String str = 2; + */ + private void mergeStr(com.android.aapt.Resources.String value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 2 && + value_ != com.android.aapt.Resources.String.getDefaultInstance()) { + value_ = com.android.aapt.Resources.String.newBuilder((com.android.aapt.Resources.String) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 2; + } + /** + * .aapt.pb.String str = 2; + */ + private void clearStr() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int RAW_STR_FIELD_NUMBER = 3; + /** + * .aapt.pb.RawString raw_str = 3; + */ + @java.lang.Override + public boolean hasRawStr() { + return valueCase_ == 3; + } + /** + * .aapt.pb.RawString raw_str = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.RawString getRawStr() { + if (valueCase_ == 3) { + return (com.android.aapt.Resources.RawString) value_; + } + return com.android.aapt.Resources.RawString.getDefaultInstance(); + } + /** + * .aapt.pb.RawString raw_str = 3; + */ + private void setRawStr(com.android.aapt.Resources.RawString value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 3; + } + /** + * .aapt.pb.RawString raw_str = 3; + */ + private void setRawStr( + com.android.aapt.Resources.RawString.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 3; + } + /** + * .aapt.pb.RawString raw_str = 3; + */ + private void mergeRawStr(com.android.aapt.Resources.RawString value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 3 && + value_ != com.android.aapt.Resources.RawString.getDefaultInstance()) { + value_ = com.android.aapt.Resources.RawString.newBuilder((com.android.aapt.Resources.RawString) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 3; + } + /** + * .aapt.pb.RawString raw_str = 3; + */ + private void clearRawStr() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int STYLED_STR_FIELD_NUMBER = 4; + /** + * .aapt.pb.StyledString styled_str = 4; + */ + @java.lang.Override + public boolean hasStyledStr() { + return valueCase_ == 4; + } + /** + * .aapt.pb.StyledString styled_str = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.StyledString getStyledStr() { + if (valueCase_ == 4) { + return (com.android.aapt.Resources.StyledString) value_; + } + return com.android.aapt.Resources.StyledString.getDefaultInstance(); + } + /** + * .aapt.pb.StyledString styled_str = 4; + */ + private void setStyledStr(com.android.aapt.Resources.StyledString value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 4; + } + /** + * .aapt.pb.StyledString styled_str = 4; + */ + private void setStyledStr( + com.android.aapt.Resources.StyledString.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 4; + } + /** + * .aapt.pb.StyledString styled_str = 4; + */ + private void mergeStyledStr(com.android.aapt.Resources.StyledString value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 4 && + value_ != com.android.aapt.Resources.StyledString.getDefaultInstance()) { + value_ = com.android.aapt.Resources.StyledString.newBuilder((com.android.aapt.Resources.StyledString) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 4; + } + /** + * .aapt.pb.StyledString styled_str = 4; + */ + private void clearStyledStr() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int FILE_FIELD_NUMBER = 5; + /** + * .aapt.pb.FileReference file = 5; + */ + @java.lang.Override + public boolean hasFile() { + return valueCase_ == 5; + } + /** + * .aapt.pb.FileReference file = 5; + */ + @java.lang.Override + public com.android.aapt.Resources.FileReference getFile() { + if (valueCase_ == 5) { + return (com.android.aapt.Resources.FileReference) value_; + } + return com.android.aapt.Resources.FileReference.getDefaultInstance(); + } + /** + * .aapt.pb.FileReference file = 5; + */ + private void setFile(com.android.aapt.Resources.FileReference value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 5; + } + /** + * .aapt.pb.FileReference file = 5; + */ + private void setFile( + com.android.aapt.Resources.FileReference.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 5; + } + /** + * .aapt.pb.FileReference file = 5; + */ + private void mergeFile(com.android.aapt.Resources.FileReference value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 5 && + value_ != com.android.aapt.Resources.FileReference.getDefaultInstance()) { + value_ = com.android.aapt.Resources.FileReference.newBuilder((com.android.aapt.Resources.FileReference) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 5; + } + /** + * .aapt.pb.FileReference file = 5; + */ + private void clearFile() { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int ID_FIELD_NUMBER = 6; + /** + * .aapt.pb.Id id = 6; + */ + @java.lang.Override + public boolean hasId() { + return valueCase_ == 6; + } + /** + * .aapt.pb.Id id = 6; + */ + @java.lang.Override + public com.android.aapt.Resources.Id getId() { + if (valueCase_ == 6) { + return (com.android.aapt.Resources.Id) value_; + } + return com.android.aapt.Resources.Id.getDefaultInstance(); + } + /** + * .aapt.pb.Id id = 6; + */ + private void setId(com.android.aapt.Resources.Id value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 6; + } + /** + * .aapt.pb.Id id = 6; + */ + private void setId( + com.android.aapt.Resources.Id.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 6; + } + /** + * .aapt.pb.Id id = 6; + */ + private void mergeId(com.android.aapt.Resources.Id value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 6 && + value_ != com.android.aapt.Resources.Id.getDefaultInstance()) { + value_ = com.android.aapt.Resources.Id.newBuilder((com.android.aapt.Resources.Id) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 6; + } + /** + * .aapt.pb.Id id = 6; + */ + private void clearId() { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int PRIM_FIELD_NUMBER = 7; + /** + * .aapt.pb.Primitive prim = 7; + */ + @java.lang.Override + public boolean hasPrim() { + return valueCase_ == 7; + } + /** + * .aapt.pb.Primitive prim = 7; + */ + @java.lang.Override + public com.android.aapt.Resources.Primitive getPrim() { + if (valueCase_ == 7) { + return (com.android.aapt.Resources.Primitive) value_; + } + return com.android.aapt.Resources.Primitive.getDefaultInstance(); + } + /** + * .aapt.pb.Primitive prim = 7; + */ + private void setPrim(com.android.aapt.Resources.Primitive value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 7; + } + /** + * .aapt.pb.Primitive prim = 7; + */ + private void setPrim( + com.android.aapt.Resources.Primitive.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 7; + } + /** + * .aapt.pb.Primitive prim = 7; + */ + private void mergePrim(com.android.aapt.Resources.Primitive value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 7 && + value_ != com.android.aapt.Resources.Primitive.getDefaultInstance()) { + value_ = com.android.aapt.Resources.Primitive.newBuilder((com.android.aapt.Resources.Primitive) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 7; + } + /** + * .aapt.pb.Primitive prim = 7; + */ + private void clearPrim() { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + } + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (com.android.aapt.Resources.Reference) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (com.android.aapt.Resources.String) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (com.android.aapt.Resources.RawString) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (com.android.aapt.Resources.StyledString) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (com.android.aapt.Resources.FileReference) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (com.android.aapt.Resources.Id) value_); + } + if (valueCase_ == 7) { + output.writeMessage(7, (com.android.aapt.Resources.Primitive) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.android.aapt.Resources.Reference) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.android.aapt.Resources.String) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.android.aapt.Resources.RawString) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.android.aapt.Resources.StyledString) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.android.aapt.Resources.FileReference) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.android.aapt.Resources.Id) value_); + } + if (valueCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.android.aapt.Resources.Primitive) value_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Item parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Item parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Item parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Item parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Item parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Item parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Item parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Item parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Item parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Item parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Item parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Item parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Item prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * An Item is an abstract type. It represents a value that can appear inline in many places, such
+     * as XML attribute values or on the right hand side of style attribute definitions. The concrete
+     * type is one of the types below. Only one can be set.
+     * 
+ * + * Protobuf type {@code aapt.pb.Item} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Item, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Item) + com.android.aapt.Resources.ItemOrBuilder { + // Construct using com.android.aapt.Resources.Item.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + @java.lang.Override + public ValueCase + getValueCase() { + return instance.getValueCase(); + } + + public Builder clearValue() { + copyOnWrite(); + instance.clearValue(); + return this; + } + + + /** + * .aapt.pb.Reference ref = 1; + */ + @java.lang.Override + public boolean hasRef() { + return instance.hasRef(); + } + /** + * .aapt.pb.Reference ref = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Reference getRef() { + return instance.getRef(); + } + /** + * .aapt.pb.Reference ref = 1; + */ + public Builder setRef(com.android.aapt.Resources.Reference value) { + copyOnWrite(); + instance.setRef(value); + return this; + } + /** + * .aapt.pb.Reference ref = 1; + */ + public Builder setRef( + com.android.aapt.Resources.Reference.Builder builderForValue) { + copyOnWrite(); + instance.setRef(builderForValue); + return this; + } + /** + * .aapt.pb.Reference ref = 1; + */ + public Builder mergeRef(com.android.aapt.Resources.Reference value) { + copyOnWrite(); + instance.mergeRef(value); + return this; + } + /** + * .aapt.pb.Reference ref = 1; + */ + public Builder clearRef() { + copyOnWrite(); + instance.clearRef(); + return this; + } + + /** + * .aapt.pb.String str = 2; + */ + @java.lang.Override + public boolean hasStr() { + return instance.hasStr(); + } + /** + * .aapt.pb.String str = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.String getStr() { + return instance.getStr(); + } + /** + * .aapt.pb.String str = 2; + */ + public Builder setStr(com.android.aapt.Resources.String value) { + copyOnWrite(); + instance.setStr(value); + return this; + } + /** + * .aapt.pb.String str = 2; + */ + public Builder setStr( + com.android.aapt.Resources.String.Builder builderForValue) { + copyOnWrite(); + instance.setStr(builderForValue); + return this; + } + /** + * .aapt.pb.String str = 2; + */ + public Builder mergeStr(com.android.aapt.Resources.String value) { + copyOnWrite(); + instance.mergeStr(value); + return this; + } + /** + * .aapt.pb.String str = 2; + */ + public Builder clearStr() { + copyOnWrite(); + instance.clearStr(); + return this; + } + + /** + * .aapt.pb.RawString raw_str = 3; + */ + @java.lang.Override + public boolean hasRawStr() { + return instance.hasRawStr(); + } + /** + * .aapt.pb.RawString raw_str = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.RawString getRawStr() { + return instance.getRawStr(); + } + /** + * .aapt.pb.RawString raw_str = 3; + */ + public Builder setRawStr(com.android.aapt.Resources.RawString value) { + copyOnWrite(); + instance.setRawStr(value); + return this; + } + /** + * .aapt.pb.RawString raw_str = 3; + */ + public Builder setRawStr( + com.android.aapt.Resources.RawString.Builder builderForValue) { + copyOnWrite(); + instance.setRawStr(builderForValue); + return this; + } + /** + * .aapt.pb.RawString raw_str = 3; + */ + public Builder mergeRawStr(com.android.aapt.Resources.RawString value) { + copyOnWrite(); + instance.mergeRawStr(value); + return this; + } + /** + * .aapt.pb.RawString raw_str = 3; + */ + public Builder clearRawStr() { + copyOnWrite(); + instance.clearRawStr(); + return this; + } + + /** + * .aapt.pb.StyledString styled_str = 4; + */ + @java.lang.Override + public boolean hasStyledStr() { + return instance.hasStyledStr(); + } + /** + * .aapt.pb.StyledString styled_str = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.StyledString getStyledStr() { + return instance.getStyledStr(); + } + /** + * .aapt.pb.StyledString styled_str = 4; + */ + public Builder setStyledStr(com.android.aapt.Resources.StyledString value) { + copyOnWrite(); + instance.setStyledStr(value); + return this; + } + /** + * .aapt.pb.StyledString styled_str = 4; + */ + public Builder setStyledStr( + com.android.aapt.Resources.StyledString.Builder builderForValue) { + copyOnWrite(); + instance.setStyledStr(builderForValue); + return this; + } + /** + * .aapt.pb.StyledString styled_str = 4; + */ + public Builder mergeStyledStr(com.android.aapt.Resources.StyledString value) { + copyOnWrite(); + instance.mergeStyledStr(value); + return this; + } + /** + * .aapt.pb.StyledString styled_str = 4; + */ + public Builder clearStyledStr() { + copyOnWrite(); + instance.clearStyledStr(); + return this; + } + + /** + * .aapt.pb.FileReference file = 5; + */ + @java.lang.Override + public boolean hasFile() { + return instance.hasFile(); + } + /** + * .aapt.pb.FileReference file = 5; + */ + @java.lang.Override + public com.android.aapt.Resources.FileReference getFile() { + return instance.getFile(); + } + /** + * .aapt.pb.FileReference file = 5; + */ + public Builder setFile(com.android.aapt.Resources.FileReference value) { + copyOnWrite(); + instance.setFile(value); + return this; + } + /** + * .aapt.pb.FileReference file = 5; + */ + public Builder setFile( + com.android.aapt.Resources.FileReference.Builder builderForValue) { + copyOnWrite(); + instance.setFile(builderForValue); + return this; + } + /** + * .aapt.pb.FileReference file = 5; + */ + public Builder mergeFile(com.android.aapt.Resources.FileReference value) { + copyOnWrite(); + instance.mergeFile(value); + return this; + } + /** + * .aapt.pb.FileReference file = 5; + */ + public Builder clearFile() { + copyOnWrite(); + instance.clearFile(); + return this; + } + + /** + * .aapt.pb.Id id = 6; + */ + @java.lang.Override + public boolean hasId() { + return instance.hasId(); + } + /** + * .aapt.pb.Id id = 6; + */ + @java.lang.Override + public com.android.aapt.Resources.Id getId() { + return instance.getId(); + } + /** + * .aapt.pb.Id id = 6; + */ + public Builder setId(com.android.aapt.Resources.Id value) { + copyOnWrite(); + instance.setId(value); + return this; + } + /** + * .aapt.pb.Id id = 6; + */ + public Builder setId( + com.android.aapt.Resources.Id.Builder builderForValue) { + copyOnWrite(); + instance.setId(builderForValue); + return this; + } + /** + * .aapt.pb.Id id = 6; + */ + public Builder mergeId(com.android.aapt.Resources.Id value) { + copyOnWrite(); + instance.mergeId(value); + return this; + } + /** + * .aapt.pb.Id id = 6; + */ + public Builder clearId() { + copyOnWrite(); + instance.clearId(); + return this; + } + + /** + * .aapt.pb.Primitive prim = 7; + */ + @java.lang.Override + public boolean hasPrim() { + return instance.hasPrim(); + } + /** + * .aapt.pb.Primitive prim = 7; + */ + @java.lang.Override + public com.android.aapt.Resources.Primitive getPrim() { + return instance.getPrim(); + } + /** + * .aapt.pb.Primitive prim = 7; + */ + public Builder setPrim(com.android.aapt.Resources.Primitive value) { + copyOnWrite(); + instance.setPrim(value); + return this; + } + /** + * .aapt.pb.Primitive prim = 7; + */ + public Builder setPrim( + com.android.aapt.Resources.Primitive.Builder builderForValue) { + copyOnWrite(); + instance.setPrim(builderForValue); + return this; + } + /** + * .aapt.pb.Primitive prim = 7; + */ + public Builder mergePrim(com.android.aapt.Resources.Primitive value) { + copyOnWrite(); + instance.mergePrim(value); + return this; + } + /** + * .aapt.pb.Primitive prim = 7; + */ + public Builder clearPrim() { + copyOnWrite(); + instance.clearPrim(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Item) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Item(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Item other = (com.android.aapt.Resources.Item) arg1; + switch (other.getValueCase()) { + case REF: { + value_ = visitor.visitOneofMessage( + valueCase_ == 1, + value_, + other.value_); + break; + } + case STR: { + value_ = visitor.visitOneofMessage( + valueCase_ == 2, + value_, + other.value_); + break; + } + case RAW_STR: { + value_ = visitor.visitOneofMessage( + valueCase_ == 3, + value_, + other.value_); + break; + } + case STYLED_STR: { + value_ = visitor.visitOneofMessage( + valueCase_ == 4, + value_, + other.value_); + break; + } + case FILE: { + value_ = visitor.visitOneofMessage( + valueCase_ == 5, + value_, + other.value_); + break; + } + case ID: { + value_ = visitor.visitOneofMessage( + valueCase_ == 6, + value_, + other.value_); + break; + } + case PRIM: { + value_ = visitor.visitOneofMessage( + valueCase_ == 7, + value_, + other.value_); + break; + } + case VALUE_NOT_SET: { + visitor.visitOneofNotSet(valueCase_ != 0); + break; + } + } + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + if (other.valueCase_ != 0) { + valueCase_ = other.valueCase_; + } + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.Reference.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((com.android.aapt.Resources.Reference) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.Reference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Reference) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + com.android.aapt.Resources.String.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((com.android.aapt.Resources.String) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.String.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.String) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + com.android.aapt.Resources.RawString.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((com.android.aapt.Resources.RawString) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.RawString.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.RawString) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + com.android.aapt.Resources.StyledString.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((com.android.aapt.Resources.StyledString) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.StyledString.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.StyledString) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + com.android.aapt.Resources.FileReference.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((com.android.aapt.Resources.FileReference) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.FileReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.FileReference) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + com.android.aapt.Resources.Id.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((com.android.aapt.Resources.Id) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.Id.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Id) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + break; + } + case 58: { + com.android.aapt.Resources.Primitive.Builder subBuilder = null; + if (valueCase_ == 7) { + subBuilder = ((com.android.aapt.Resources.Primitive) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.Primitive.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Primitive) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 7; + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Item.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Item) + private static final com.android.aapt.Resources.Item DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Item(); + } + + public static com.android.aapt.Resources.Item getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface CompoundValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.CompoundValue) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * .aapt.pb.Attribute attr = 1; + */ + boolean hasAttr(); + /** + * .aapt.pb.Attribute attr = 1; + */ + com.android.aapt.Resources.Attribute getAttr(); + + /** + * .aapt.pb.Style style = 2; + */ + boolean hasStyle(); + /** + * .aapt.pb.Style style = 2; + */ + com.android.aapt.Resources.Style getStyle(); + + /** + * .aapt.pb.Styleable styleable = 3; + */ + boolean hasStyleable(); + /** + * .aapt.pb.Styleable styleable = 3; + */ + com.android.aapt.Resources.Styleable getStyleable(); + + /** + * .aapt.pb.Array array = 4; + */ + boolean hasArray(); + /** + * .aapt.pb.Array array = 4; + */ + com.android.aapt.Resources.Array getArray(); + + /** + * .aapt.pb.Plural plural = 5; + */ + boolean hasPlural(); + /** + * .aapt.pb.Plural plural = 5; + */ + com.android.aapt.Resources.Plural getPlural(); + + public com.android.aapt.Resources.CompoundValue.ValueCase getValueCase(); + } + /** + *
+   * A CompoundValue is an abstract type. It represents a value that is a made of other values.
+   * These can only usually appear as top-level resources. The concrete type is one of the types
+   * below. Only one can be set.
+   * 
+ * + * Protobuf type {@code aapt.pb.CompoundValue} + */ + public static final class CompoundValue extends + com.google.protobuf.GeneratedMessageLite< + CompoundValue, CompoundValue.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.CompoundValue) + CompoundValueOrBuilder { + private CompoundValue() { + } + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + ATTR(1), + STYLE(2), + STYLEABLE(3), + ARRAY(4), + PLURAL(5), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return ATTR; + case 2: return STYLE; + case 3: return STYLEABLE; + case 4: return ARRAY; + case 5: return PLURAL; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + @java.lang.Override + public int getNumber() { + return this.value; + } + }; + + @java.lang.Override + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + private void clearValue() { + valueCase_ = 0; + value_ = null; + } + + public static final int ATTR_FIELD_NUMBER = 1; + /** + * .aapt.pb.Attribute attr = 1; + */ + @java.lang.Override + public boolean hasAttr() { + return valueCase_ == 1; + } + /** + * .aapt.pb.Attribute attr = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Attribute getAttr() { + if (valueCase_ == 1) { + return (com.android.aapt.Resources.Attribute) value_; + } + return com.android.aapt.Resources.Attribute.getDefaultInstance(); + } + /** + * .aapt.pb.Attribute attr = 1; + */ + private void setAttr(com.android.aapt.Resources.Attribute value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 1; + } + /** + * .aapt.pb.Attribute attr = 1; + */ + private void setAttr( + com.android.aapt.Resources.Attribute.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 1; + } + /** + * .aapt.pb.Attribute attr = 1; + */ + private void mergeAttr(com.android.aapt.Resources.Attribute value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 1 && + value_ != com.android.aapt.Resources.Attribute.getDefaultInstance()) { + value_ = com.android.aapt.Resources.Attribute.newBuilder((com.android.aapt.Resources.Attribute) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 1; + } + /** + * .aapt.pb.Attribute attr = 1; + */ + private void clearAttr() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int STYLE_FIELD_NUMBER = 2; + /** + * .aapt.pb.Style style = 2; + */ + @java.lang.Override + public boolean hasStyle() { + return valueCase_ == 2; + } + /** + * .aapt.pb.Style style = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Style getStyle() { + if (valueCase_ == 2) { + return (com.android.aapt.Resources.Style) value_; + } + return com.android.aapt.Resources.Style.getDefaultInstance(); + } + /** + * .aapt.pb.Style style = 2; + */ + private void setStyle(com.android.aapt.Resources.Style value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 2; + } + /** + * .aapt.pb.Style style = 2; + */ + private void setStyle( + com.android.aapt.Resources.Style.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 2; + } + /** + * .aapt.pb.Style style = 2; + */ + private void mergeStyle(com.android.aapt.Resources.Style value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 2 && + value_ != com.android.aapt.Resources.Style.getDefaultInstance()) { + value_ = com.android.aapt.Resources.Style.newBuilder((com.android.aapt.Resources.Style) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 2; + } + /** + * .aapt.pb.Style style = 2; + */ + private void clearStyle() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int STYLEABLE_FIELD_NUMBER = 3; + /** + * .aapt.pb.Styleable styleable = 3; + */ + @java.lang.Override + public boolean hasStyleable() { + return valueCase_ == 3; + } + /** + * .aapt.pb.Styleable styleable = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Styleable getStyleable() { + if (valueCase_ == 3) { + return (com.android.aapt.Resources.Styleable) value_; + } + return com.android.aapt.Resources.Styleable.getDefaultInstance(); + } + /** + * .aapt.pb.Styleable styleable = 3; + */ + private void setStyleable(com.android.aapt.Resources.Styleable value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 3; + } + /** + * .aapt.pb.Styleable styleable = 3; + */ + private void setStyleable( + com.android.aapt.Resources.Styleable.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 3; + } + /** + * .aapt.pb.Styleable styleable = 3; + */ + private void mergeStyleable(com.android.aapt.Resources.Styleable value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 3 && + value_ != com.android.aapt.Resources.Styleable.getDefaultInstance()) { + value_ = com.android.aapt.Resources.Styleable.newBuilder((com.android.aapt.Resources.Styleable) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 3; + } + /** + * .aapt.pb.Styleable styleable = 3; + */ + private void clearStyleable() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int ARRAY_FIELD_NUMBER = 4; + /** + * .aapt.pb.Array array = 4; + */ + @java.lang.Override + public boolean hasArray() { + return valueCase_ == 4; + } + /** + * .aapt.pb.Array array = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.Array getArray() { + if (valueCase_ == 4) { + return (com.android.aapt.Resources.Array) value_; + } + return com.android.aapt.Resources.Array.getDefaultInstance(); + } + /** + * .aapt.pb.Array array = 4; + */ + private void setArray(com.android.aapt.Resources.Array value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 4; + } + /** + * .aapt.pb.Array array = 4; + */ + private void setArray( + com.android.aapt.Resources.Array.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 4; + } + /** + * .aapt.pb.Array array = 4; + */ + private void mergeArray(com.android.aapt.Resources.Array value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 4 && + value_ != com.android.aapt.Resources.Array.getDefaultInstance()) { + value_ = com.android.aapt.Resources.Array.newBuilder((com.android.aapt.Resources.Array) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 4; + } + /** + * .aapt.pb.Array array = 4; + */ + private void clearArray() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + } + + public static final int PLURAL_FIELD_NUMBER = 5; + /** + * .aapt.pb.Plural plural = 5; + */ + @java.lang.Override + public boolean hasPlural() { + return valueCase_ == 5; + } + /** + * .aapt.pb.Plural plural = 5; + */ + @java.lang.Override + public com.android.aapt.Resources.Plural getPlural() { + if (valueCase_ == 5) { + return (com.android.aapt.Resources.Plural) value_; + } + return com.android.aapt.Resources.Plural.getDefaultInstance(); + } + /** + * .aapt.pb.Plural plural = 5; + */ + private void setPlural(com.android.aapt.Resources.Plural value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + valueCase_ = 5; + } + /** + * .aapt.pb.Plural plural = 5; + */ + private void setPlural( + com.android.aapt.Resources.Plural.Builder builderForValue) { + value_ = builderForValue.build(); + valueCase_ = 5; + } + /** + * .aapt.pb.Plural plural = 5; + */ + private void mergePlural(com.android.aapt.Resources.Plural value) { + if (value == null) { + throw new NullPointerException(); + } + if (valueCase_ == 5 && + value_ != com.android.aapt.Resources.Plural.getDefaultInstance()) { + value_ = com.android.aapt.Resources.Plural.newBuilder((com.android.aapt.Resources.Plural) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + valueCase_ = 5; + } + /** + * .aapt.pb.Plural plural = 5; + */ + private void clearPlural() { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (com.android.aapt.Resources.Attribute) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (com.android.aapt.Resources.Style) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (com.android.aapt.Resources.Styleable) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (com.android.aapt.Resources.Array) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (com.android.aapt.Resources.Plural) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.android.aapt.Resources.Attribute) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.android.aapt.Resources.Style) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.android.aapt.Resources.Styleable) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.android.aapt.Resources.Array) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.android.aapt.Resources.Plural) value_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.CompoundValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.CompoundValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.CompoundValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.CompoundValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.CompoundValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.CompoundValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.CompoundValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.CompoundValue parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.CompoundValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.CompoundValue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.CompoundValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.CompoundValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.CompoundValue prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A CompoundValue is an abstract type. It represents a value that is a made of other values.
+     * These can only usually appear as top-level resources. The concrete type is one of the types
+     * below. Only one can be set.
+     * 
+ * + * Protobuf type {@code aapt.pb.CompoundValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.CompoundValue, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.CompoundValue) + com.android.aapt.Resources.CompoundValueOrBuilder { + // Construct using com.android.aapt.Resources.CompoundValue.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + @java.lang.Override + public ValueCase + getValueCase() { + return instance.getValueCase(); + } + + public Builder clearValue() { + copyOnWrite(); + instance.clearValue(); + return this; + } + + + /** + * .aapt.pb.Attribute attr = 1; + */ + @java.lang.Override + public boolean hasAttr() { + return instance.hasAttr(); + } + /** + * .aapt.pb.Attribute attr = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Attribute getAttr() { + return instance.getAttr(); + } + /** + * .aapt.pb.Attribute attr = 1; + */ + public Builder setAttr(com.android.aapt.Resources.Attribute value) { + copyOnWrite(); + instance.setAttr(value); + return this; + } + /** + * .aapt.pb.Attribute attr = 1; + */ + public Builder setAttr( + com.android.aapt.Resources.Attribute.Builder builderForValue) { + copyOnWrite(); + instance.setAttr(builderForValue); + return this; + } + /** + * .aapt.pb.Attribute attr = 1; + */ + public Builder mergeAttr(com.android.aapt.Resources.Attribute value) { + copyOnWrite(); + instance.mergeAttr(value); + return this; + } + /** + * .aapt.pb.Attribute attr = 1; + */ + public Builder clearAttr() { + copyOnWrite(); + instance.clearAttr(); + return this; + } + + /** + * .aapt.pb.Style style = 2; + */ + @java.lang.Override + public boolean hasStyle() { + return instance.hasStyle(); + } + /** + * .aapt.pb.Style style = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Style getStyle() { + return instance.getStyle(); + } + /** + * .aapt.pb.Style style = 2; + */ + public Builder setStyle(com.android.aapt.Resources.Style value) { + copyOnWrite(); + instance.setStyle(value); + return this; + } + /** + * .aapt.pb.Style style = 2; + */ + public Builder setStyle( + com.android.aapt.Resources.Style.Builder builderForValue) { + copyOnWrite(); + instance.setStyle(builderForValue); + return this; + } + /** + * .aapt.pb.Style style = 2; + */ + public Builder mergeStyle(com.android.aapt.Resources.Style value) { + copyOnWrite(); + instance.mergeStyle(value); + return this; + } + /** + * .aapt.pb.Style style = 2; + */ + public Builder clearStyle() { + copyOnWrite(); + instance.clearStyle(); + return this; + } + + /** + * .aapt.pb.Styleable styleable = 3; + */ + @java.lang.Override + public boolean hasStyleable() { + return instance.hasStyleable(); + } + /** + * .aapt.pb.Styleable styleable = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Styleable getStyleable() { + return instance.getStyleable(); + } + /** + * .aapt.pb.Styleable styleable = 3; + */ + public Builder setStyleable(com.android.aapt.Resources.Styleable value) { + copyOnWrite(); + instance.setStyleable(value); + return this; + } + /** + * .aapt.pb.Styleable styleable = 3; + */ + public Builder setStyleable( + com.android.aapt.Resources.Styleable.Builder builderForValue) { + copyOnWrite(); + instance.setStyleable(builderForValue); + return this; + } + /** + * .aapt.pb.Styleable styleable = 3; + */ + public Builder mergeStyleable(com.android.aapt.Resources.Styleable value) { + copyOnWrite(); + instance.mergeStyleable(value); + return this; + } + /** + * .aapt.pb.Styleable styleable = 3; + */ + public Builder clearStyleable() { + copyOnWrite(); + instance.clearStyleable(); + return this; + } + + /** + * .aapt.pb.Array array = 4; + */ + @java.lang.Override + public boolean hasArray() { + return instance.hasArray(); + } + /** + * .aapt.pb.Array array = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.Array getArray() { + return instance.getArray(); + } + /** + * .aapt.pb.Array array = 4; + */ + public Builder setArray(com.android.aapt.Resources.Array value) { + copyOnWrite(); + instance.setArray(value); + return this; + } + /** + * .aapt.pb.Array array = 4; + */ + public Builder setArray( + com.android.aapt.Resources.Array.Builder builderForValue) { + copyOnWrite(); + instance.setArray(builderForValue); + return this; + } + /** + * .aapt.pb.Array array = 4; + */ + public Builder mergeArray(com.android.aapt.Resources.Array value) { + copyOnWrite(); + instance.mergeArray(value); + return this; + } + /** + * .aapt.pb.Array array = 4; + */ + public Builder clearArray() { + copyOnWrite(); + instance.clearArray(); + return this; + } + + /** + * .aapt.pb.Plural plural = 5; + */ + @java.lang.Override + public boolean hasPlural() { + return instance.hasPlural(); + } + /** + * .aapt.pb.Plural plural = 5; + */ + @java.lang.Override + public com.android.aapt.Resources.Plural getPlural() { + return instance.getPlural(); + } + /** + * .aapt.pb.Plural plural = 5; + */ + public Builder setPlural(com.android.aapt.Resources.Plural value) { + copyOnWrite(); + instance.setPlural(value); + return this; + } + /** + * .aapt.pb.Plural plural = 5; + */ + public Builder setPlural( + com.android.aapt.Resources.Plural.Builder builderForValue) { + copyOnWrite(); + instance.setPlural(builderForValue); + return this; + } + /** + * .aapt.pb.Plural plural = 5; + */ + public Builder mergePlural(com.android.aapt.Resources.Plural value) { + copyOnWrite(); + instance.mergePlural(value); + return this; + } + /** + * .aapt.pb.Plural plural = 5; + */ + public Builder clearPlural() { + copyOnWrite(); + instance.clearPlural(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.CompoundValue) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.CompoundValue(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.CompoundValue other = (com.android.aapt.Resources.CompoundValue) arg1; + switch (other.getValueCase()) { + case ATTR: { + value_ = visitor.visitOneofMessage( + valueCase_ == 1, + value_, + other.value_); + break; + } + case STYLE: { + value_ = visitor.visitOneofMessage( + valueCase_ == 2, + value_, + other.value_); + break; + } + case STYLEABLE: { + value_ = visitor.visitOneofMessage( + valueCase_ == 3, + value_, + other.value_); + break; + } + case ARRAY: { + value_ = visitor.visitOneofMessage( + valueCase_ == 4, + value_, + other.value_); + break; + } + case PLURAL: { + value_ = visitor.visitOneofMessage( + valueCase_ == 5, + value_, + other.value_); + break; + } + case VALUE_NOT_SET: { + visitor.visitOneofNotSet(valueCase_ != 0); + break; + } + } + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + if (other.valueCase_ != 0) { + valueCase_ = other.valueCase_; + } + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.Attribute.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((com.android.aapt.Resources.Attribute) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.Attribute.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Attribute) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + com.android.aapt.Resources.Style.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((com.android.aapt.Resources.Style) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.Style.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Style) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + com.android.aapt.Resources.Styleable.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((com.android.aapt.Resources.Styleable) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.Styleable.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Styleable) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + com.android.aapt.Resources.Array.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((com.android.aapt.Resources.Array) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.Array.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Array) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + com.android.aapt.Resources.Plural.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((com.android.aapt.Resources.Plural) value_).toBuilder(); + } + value_ = + input.readMessage(com.android.aapt.Resources.Plural.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Plural) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.CompoundValue.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.CompoundValue) + private static final com.android.aapt.Resources.CompoundValue DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new CompoundValue(); + } + + public static com.android.aapt.Resources.CompoundValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Reference) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * .aapt.pb.Reference.Type type = 1; + */ + int getTypeValue(); + /** + * .aapt.pb.Reference.Type type = 1; + */ + com.android.aapt.Resources.Reference.Type getType(); + + /** + *
+     * The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
+     * 
+ * + * uint32 id = 2; + */ + int getId(); + + /** + *
+     * The name of the resource being referred. This is optional if the resource ID is set.
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * The name of the resource being referred. This is optional if the resource ID is set.
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Whether this reference is referencing a private resource (@*package:type/entry).
+     * 
+ * + * bool private = 4; + */ + boolean getPrivate(); + } + /** + *
+   * A value that is a reference to another resource. This reference can be by name or resource ID.
+   * 
+ * + * Protobuf type {@code aapt.pb.Reference} + */ + public static final class Reference extends + com.google.protobuf.GeneratedMessageLite< + Reference, Reference.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Reference) + ReferenceOrBuilder { + private Reference() { + name_ = ""; + } + /** + * Protobuf enum {@code aapt.pb.Reference.Type} + */ + public enum Type + implements com.google.protobuf.Internal.EnumLite { + /** + *
+       * A plain reference (@package:type/entry).
+       * 
+ * + * REFERENCE = 0; + */ + REFERENCE(0), + /** + *
+       * A reference to a theme attribute (?package:type/entry).
+       * 
+ * + * ATTRIBUTE = 1; + */ + ATTRIBUTE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * A plain reference (@package:type/entry).
+       * 
+ * + * REFERENCE = 0; + */ + public static final int REFERENCE_VALUE = 0; + /** + *
+       * A reference to a theme attribute (?package:type/entry).
+       * 
+ * + * ATTRIBUTE = 1; + */ + public static final int ATTRIBUTE_VALUE = 1; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type forNumber(int value) { + switch (value) { + case 0: return REFERENCE; + case 1: return ATTRIBUTE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return TypeVerifier.INSTANCE; + } + + private static final class TypeVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new TypeVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return Type.forNumber(number) != null; + } + }; + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Reference.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * .aapt.pb.Reference.Type type = 1; + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * .aapt.pb.Reference.Type type = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Reference.Type getType() { + com.android.aapt.Resources.Reference.Type result = com.android.aapt.Resources.Reference.Type.forNumber(type_); + return result == null ? com.android.aapt.Resources.Reference.Type.UNRECOGNIZED : result; + } + /** + * .aapt.pb.Reference.Type type = 1; + */ + private void setTypeValue(int value) { + type_ = value; + } + /** + * .aapt.pb.Reference.Type type = 1; + */ + private void setType(com.android.aapt.Resources.Reference.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + } + /** + * .aapt.pb.Reference.Type type = 1; + */ + private void clearType() { + + type_ = 0; + } + + public static final int ID_FIELD_NUMBER = 2; + private int id_; + /** + *
+     * The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
+     * 
+ * + * uint32 id = 2; + */ + @java.lang.Override + public int getId() { + return id_; + } + /** + *
+     * The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
+     * 
+ * + * uint32 id = 2; + */ + private void setId(int value) { + + id_ = value; + } + /** + *
+     * The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
+     * 
+ * + * uint32 id = 2; + */ + private void clearId() { + + id_ = 0; + } + + public static final int NAME_FIELD_NUMBER = 3; + private java.lang.String name_; + /** + *
+     * The name of the resource being referred. This is optional if the resource ID is set.
+     * 
+ * + * string name = 3; + */ + @java.lang.Override + public java.lang.String getName() { + return name_; + } + /** + *
+     * The name of the resource being referred. This is optional if the resource ID is set.
+     * 
+ * + * string name = 3; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(name_); + } + /** + *
+     * The name of the resource being referred. This is optional if the resource ID is set.
+     * 
+ * + * string name = 3; + */ + private void setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + } + /** + *
+     * The name of the resource being referred. This is optional if the resource ID is set.
+     * 
+ * + * string name = 3; + */ + private void clearName() { + + name_ = getDefaultInstance().getName(); + } + /** + *
+     * The name of the resource being referred. This is optional if the resource ID is set.
+     * 
+ * + * string name = 3; + */ + private void setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value.toStringUtf8(); + } + + public static final int PRIVATE_FIELD_NUMBER = 4; + private boolean private_; + /** + *
+     * Whether this reference is referencing a private resource (@*package:type/entry).
+     * 
+ * + * bool private = 4; + */ + @java.lang.Override + public boolean getPrivate() { + return private_; + } + /** + *
+     * Whether this reference is referencing a private resource (@*package:type/entry).
+     * 
+ * + * bool private = 4; + */ + private void setPrivate(boolean value) { + + private_ = value; + } + /** + *
+     * Whether this reference is referencing a private resource (@*package:type/entry).
+     * 
+ * + * bool private = 4; + */ + private void clearPrivate() { + + private_ = false; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.android.aapt.Resources.Reference.Type.REFERENCE.getNumber()) { + output.writeEnum(1, type_); + } + if (id_ != 0) { + output.writeUInt32(2, id_); + } + if (!name_.isEmpty()) { + output.writeString(3, getName()); + } + if (private_ != false) { + output.writeBool(4, private_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.android.aapt.Resources.Reference.Type.REFERENCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (id_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, id_); + } + if (!name_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(3, getName()); + } + if (private_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, private_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Reference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Reference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Reference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Reference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Reference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Reference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Reference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Reference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Reference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Reference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Reference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Reference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Reference prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A value that is a reference to another resource. This reference can be by name or resource ID.
+     * 
+ * + * Protobuf type {@code aapt.pb.Reference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Reference, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Reference) + com.android.aapt.Resources.ReferenceOrBuilder { + // Construct using com.android.aapt.Resources.Reference.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * .aapt.pb.Reference.Type type = 1; + */ + @java.lang.Override + public int getTypeValue() { + return instance.getTypeValue(); + } + /** + * .aapt.pb.Reference.Type type = 1; + */ + public Builder setTypeValue(int value) { + copyOnWrite(); + instance.setTypeValue(value); + return this; + } + /** + * .aapt.pb.Reference.Type type = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Reference.Type getType() { + return instance.getType(); + } + /** + * .aapt.pb.Reference.Type type = 1; + */ + public Builder setType(com.android.aapt.Resources.Reference.Type value) { + copyOnWrite(); + instance.setType(value); + return this; + } + /** + * .aapt.pb.Reference.Type type = 1; + */ + public Builder clearType() { + copyOnWrite(); + instance.clearType(); + return this; + } + + /** + *
+       * The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
+       * 
+ * + * uint32 id = 2; + */ + @java.lang.Override + public int getId() { + return instance.getId(); + } + /** + *
+       * The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
+       * 
+ * + * uint32 id = 2; + */ + public Builder setId(int value) { + copyOnWrite(); + instance.setId(value); + return this; + } + /** + *
+       * The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
+       * 
+ * + * uint32 id = 2; + */ + public Builder clearId() { + copyOnWrite(); + instance.clearId(); + return this; + } + + /** + *
+       * The name of the resource being referred. This is optional if the resource ID is set.
+       * 
+ * + * string name = 3; + */ + @java.lang.Override + public java.lang.String getName() { + return instance.getName(); + } + /** + *
+       * The name of the resource being referred. This is optional if the resource ID is set.
+       * 
+ * + * string name = 3; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + return instance.getNameBytes(); + } + /** + *
+       * The name of the resource being referred. This is optional if the resource ID is set.
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + copyOnWrite(); + instance.setName(value); + return this; + } + /** + *
+       * The name of the resource being referred. This is optional if the resource ID is set.
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + copyOnWrite(); + instance.clearName(); + return this; + } + /** + *
+       * The name of the resource being referred. This is optional if the resource ID is set.
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setNameBytes(value); + return this; + } + + /** + *
+       * Whether this reference is referencing a private resource (@*package:type/entry).
+       * 
+ * + * bool private = 4; + */ + @java.lang.Override + public boolean getPrivate() { + return instance.getPrivate(); + } + /** + *
+       * Whether this reference is referencing a private resource (@*package:type/entry).
+       * 
+ * + * bool private = 4; + */ + public Builder setPrivate(boolean value) { + copyOnWrite(); + instance.setPrivate(value); + return this; + } + /** + *
+       * Whether this reference is referencing a private resource (@*package:type/entry).
+       * 
+ * + * bool private = 4; + */ + public Builder clearPrivate() { + copyOnWrite(); + instance.clearPrivate(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Reference) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Reference(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Reference other = (com.android.aapt.Resources.Reference) arg1; + type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); + id_ = visitor.visitInt(id_ != 0, id_, + other.id_ != 0, other.id_); + name_ = visitor.visitString(!name_.isEmpty(), name_, + !other.name_.isEmpty(), other.name_); + private_ = visitor.visitBoolean(private_ != false, private_, + other.private_ != false, other.private_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 16: { + + id_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 32: { + + private_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Reference.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Reference) + private static final com.android.aapt.Resources.Reference DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Reference(); + } + + public static com.android.aapt.Resources.Reference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface IdOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Id) + com.google.protobuf.MessageLiteOrBuilder { + } + /** + *
+   * A value that represents an ID. This is just a placeholder, as ID values are used to occupy a
+   * resource ID (0xPPTTEEEE) as a unique identifier. Their value is unimportant.
+   * 
+ * + * Protobuf type {@code aapt.pb.Id} + */ + public static final class Id extends + com.google.protobuf.GeneratedMessageLite< + Id, Id.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Id) + IdOrBuilder { + private Id() { + } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Id parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Id parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Id parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Id parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Id parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Id parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Id parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Id parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Id parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Id parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Id parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Id parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Id prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A value that represents an ID. This is just a placeholder, as ID values are used to occupy a
+     * resource ID (0xPPTTEEEE) as a unique identifier. Their value is unimportant.
+     * 
+ * + * Protobuf type {@code aapt.pb.Id} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Id, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Id) + com.android.aapt.Resources.IdOrBuilder { + // Construct using com.android.aapt.Resources.Id.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + // @@protoc_insertion_point(builder_scope:aapt.pb.Id) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Id(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Id other = (com.android.aapt.Resources.Id) arg1; + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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 (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Id.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Id) + private static final com.android.aapt.Resources.Id DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Id(); + } + + public static com.android.aapt.Resources.Id getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface StringOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.String) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * string value = 1; + */ + java.lang.String getValue(); + /** + * string value = 1; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+   * A value that is a string.
+   * 
+ * + * Protobuf type {@code aapt.pb.String} + */ + public static final class String extends + com.google.protobuf.GeneratedMessageLite< + String, String.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.String) + StringOrBuilder { + private String() { + value_ = ""; + } + public static final int VALUE_FIELD_NUMBER = 1; + private java.lang.String value_; + /** + * string value = 1; + */ + @java.lang.Override + public java.lang.String getValue() { + return value_; + } + /** + * string value = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(value_); + } + /** + * string value = 1; + */ + private void setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + } + /** + * string value = 1; + */ + private void clearValue() { + + value_ = getDefaultInstance().getValue(); + } + /** + * string value = 1; + */ + private void setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value.toStringUtf8(); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!value_.isEmpty()) { + output.writeString(1, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getValue()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.String parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.String parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.String parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.String parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.String parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.String parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.String parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.String parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.String parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.String parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.String parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.String parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.String prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A value that is a string.
+     * 
+ * + * Protobuf type {@code aapt.pb.String} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.String, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.String) + com.android.aapt.Resources.StringOrBuilder { + // Construct using com.android.aapt.Resources.String.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * string value = 1; + */ + @java.lang.Override + public java.lang.String getValue() { + return instance.getValue(); + } + /** + * string value = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + return instance.getValueBytes(); + } + /** + * string value = 1; + */ + public Builder setValue( + java.lang.String value) { + copyOnWrite(); + instance.setValue(value); + return this; + } + /** + * string value = 1; + */ + public Builder clearValue() { + copyOnWrite(); + instance.clearValue(); + return this; + } + /** + * string value = 1; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setValueBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.String) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.String(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.String other = (com.android.aapt.Resources.String) arg1; + value_ = visitor.visitString(!value_.isEmpty(), value_, + !other.value_.isEmpty(), other.value_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.String.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.String) + private static final com.android.aapt.Resources.String DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new String(); + } + + public static com.android.aapt.Resources.String getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface RawStringOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.RawString) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * string value = 1; + */ + java.lang.String getValue(); + /** + * string value = 1; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+   * A value that is a raw string, which is unescaped/uninterpreted. This is typically used to
+   * represent the value of a style attribute before the attribute is compiled and the set of
+   * allowed values is known.
+   * 
+ * + * Protobuf type {@code aapt.pb.RawString} + */ + public static final class RawString extends + com.google.protobuf.GeneratedMessageLite< + RawString, RawString.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.RawString) + RawStringOrBuilder { + private RawString() { + value_ = ""; + } + public static final int VALUE_FIELD_NUMBER = 1; + private java.lang.String value_; + /** + * string value = 1; + */ + @java.lang.Override + public java.lang.String getValue() { + return value_; + } + /** + * string value = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(value_); + } + /** + * string value = 1; + */ + private void setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + } + /** + * string value = 1; + */ + private void clearValue() { + + value_ = getDefaultInstance().getValue(); + } + /** + * string value = 1; + */ + private void setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value.toStringUtf8(); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!value_.isEmpty()) { + output.writeString(1, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getValue()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.RawString parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.RawString parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.RawString parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.RawString parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.RawString parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.RawString parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.RawString parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.RawString parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.RawString parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.RawString parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.RawString parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.RawString parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.RawString prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A value that is a raw string, which is unescaped/uninterpreted. This is typically used to
+     * represent the value of a style attribute before the attribute is compiled and the set of
+     * allowed values is known.
+     * 
+ * + * Protobuf type {@code aapt.pb.RawString} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.RawString, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.RawString) + com.android.aapt.Resources.RawStringOrBuilder { + // Construct using com.android.aapt.Resources.RawString.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * string value = 1; + */ + @java.lang.Override + public java.lang.String getValue() { + return instance.getValue(); + } + /** + * string value = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + return instance.getValueBytes(); + } + /** + * string value = 1; + */ + public Builder setValue( + java.lang.String value) { + copyOnWrite(); + instance.setValue(value); + return this; + } + /** + * string value = 1; + */ + public Builder clearValue() { + copyOnWrite(); + instance.clearValue(); + return this; + } + /** + * string value = 1; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setValueBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.RawString) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.RawString(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.RawString other = (com.android.aapt.Resources.RawString) arg1; + value_ = visitor.visitString(!value_.isEmpty(), value_, + !other.value_.isEmpty(), other.value_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.RawString.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.RawString) + private static final com.android.aapt.Resources.RawString DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new RawString(); + } + + public static com.android.aapt.Resources.RawString getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface StyledStringOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.StyledString) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * The raw text of the string.
+     * 
+ * + * string value = 1; + */ + java.lang.String getValue(); + /** + *
+     * The raw text of the string.
+     * 
+ * + * string value = 1; + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + java.util.List + getSpanList(); + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + com.android.aapt.Resources.StyledString.Span getSpan(int index); + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + int getSpanCount(); + } + /** + *
+   * A string with styling information, like html tags that specify boldness, italics, etc.
+   * 
+ * + * Protobuf type {@code aapt.pb.StyledString} + */ + public static final class StyledString extends + com.google.protobuf.GeneratedMessageLite< + StyledString, StyledString.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.StyledString) + StyledStringOrBuilder { + private StyledString() { + value_ = ""; + span_ = emptyProtobufList(); + } + public interface SpanOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.StyledString.Span) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+       * The name of the tag, and its attributes, encoded as follows:
+       * tag_name;attr1=value1;attr2=value2;[...]
+       * 
+ * + * string tag = 1; + */ + java.lang.String getTag(); + /** + *
+       * The name of the tag, and its attributes, encoded as follows:
+       * tag_name;attr1=value1;attr2=value2;[...]
+       * 
+ * + * string tag = 1; + */ + com.google.protobuf.ByteString + getTagBytes(); + + /** + *
+       * The first character position this span applies to, in UTF-16 offset.
+       * 
+ * + * uint32 first_char = 2; + */ + int getFirstChar(); + + /** + *
+       * The last character position this span applies to, in UTF-16 offset.
+       * 
+ * + * uint32 last_char = 3; + */ + int getLastChar(); + } + /** + *
+     * A Span marks a region of the string text that is styled.
+     * 
+ * + * Protobuf type {@code aapt.pb.StyledString.Span} + */ + public static final class Span extends + com.google.protobuf.GeneratedMessageLite< + Span, Span.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.StyledString.Span) + SpanOrBuilder { + private Span() { + tag_ = ""; + } + public static final int TAG_FIELD_NUMBER = 1; + private java.lang.String tag_; + /** + *
+       * The name of the tag, and its attributes, encoded as follows:
+       * tag_name;attr1=value1;attr2=value2;[...]
+       * 
+ * + * string tag = 1; + */ + @java.lang.Override + public java.lang.String getTag() { + return tag_; + } + /** + *
+       * The name of the tag, and its attributes, encoded as follows:
+       * tag_name;attr1=value1;attr2=value2;[...]
+       * 
+ * + * string tag = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTagBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(tag_); + } + /** + *
+       * The name of the tag, and its attributes, encoded as follows:
+       * tag_name;attr1=value1;attr2=value2;[...]
+       * 
+ * + * string tag = 1; + */ + private void setTag( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tag_ = value; + } + /** + *
+       * The name of the tag, and its attributes, encoded as follows:
+       * tag_name;attr1=value1;attr2=value2;[...]
+       * 
+ * + * string tag = 1; + */ + private void clearTag() { + + tag_ = getDefaultInstance().getTag(); + } + /** + *
+       * The name of the tag, and its attributes, encoded as follows:
+       * tag_name;attr1=value1;attr2=value2;[...]
+       * 
+ * + * string tag = 1; + */ + private void setTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tag_ = value.toStringUtf8(); + } + + public static final int FIRST_CHAR_FIELD_NUMBER = 2; + private int firstChar_; + /** + *
+       * The first character position this span applies to, in UTF-16 offset.
+       * 
+ * + * uint32 first_char = 2; + */ + @java.lang.Override + public int getFirstChar() { + return firstChar_; + } + /** + *
+       * The first character position this span applies to, in UTF-16 offset.
+       * 
+ * + * uint32 first_char = 2; + */ + private void setFirstChar(int value) { + + firstChar_ = value; + } + /** + *
+       * The first character position this span applies to, in UTF-16 offset.
+       * 
+ * + * uint32 first_char = 2; + */ + private void clearFirstChar() { + + firstChar_ = 0; + } + + public static final int LAST_CHAR_FIELD_NUMBER = 3; + private int lastChar_; + /** + *
+       * The last character position this span applies to, in UTF-16 offset.
+       * 
+ * + * uint32 last_char = 3; + */ + @java.lang.Override + public int getLastChar() { + return lastChar_; + } + /** + *
+       * The last character position this span applies to, in UTF-16 offset.
+       * 
+ * + * uint32 last_char = 3; + */ + private void setLastChar(int value) { + + lastChar_ = value; + } + /** + *
+       * The last character position this span applies to, in UTF-16 offset.
+       * 
+ * + * uint32 last_char = 3; + */ + private void clearLastChar() { + + lastChar_ = 0; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!tag_.isEmpty()) { + output.writeString(1, getTag()); + } + if (firstChar_ != 0) { + output.writeUInt32(2, firstChar_); + } + if (lastChar_ != 0) { + output.writeUInt32(3, lastChar_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!tag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getTag()); + } + if (firstChar_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, firstChar_); + } + if (lastChar_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, lastChar_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.StyledString.Span parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.StyledString.Span parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.StyledString.Span parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.StyledString.Span parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.StyledString.Span parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.StyledString.Span parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.StyledString.Span parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.StyledString.Span parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.StyledString.Span parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.StyledString.Span parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.StyledString.Span parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.StyledString.Span parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.StyledString.Span prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+       * A Span marks a region of the string text that is styled.
+       * 
+ * + * Protobuf type {@code aapt.pb.StyledString.Span} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.StyledString.Span, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.StyledString.Span) + com.android.aapt.Resources.StyledString.SpanOrBuilder { + // Construct using com.android.aapt.Resources.StyledString.Span.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+         * The name of the tag, and its attributes, encoded as follows:
+         * tag_name;attr1=value1;attr2=value2;[...]
+         * 
+ * + * string tag = 1; + */ + @java.lang.Override + public java.lang.String getTag() { + return instance.getTag(); + } + /** + *
+         * The name of the tag, and its attributes, encoded as follows:
+         * tag_name;attr1=value1;attr2=value2;[...]
+         * 
+ * + * string tag = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTagBytes() { + return instance.getTagBytes(); + } + /** + *
+         * The name of the tag, and its attributes, encoded as follows:
+         * tag_name;attr1=value1;attr2=value2;[...]
+         * 
+ * + * string tag = 1; + */ + public Builder setTag( + java.lang.String value) { + copyOnWrite(); + instance.setTag(value); + return this; + } + /** + *
+         * The name of the tag, and its attributes, encoded as follows:
+         * tag_name;attr1=value1;attr2=value2;[...]
+         * 
+ * + * string tag = 1; + */ + public Builder clearTag() { + copyOnWrite(); + instance.clearTag(); + return this; + } + /** + *
+         * The name of the tag, and its attributes, encoded as follows:
+         * tag_name;attr1=value1;attr2=value2;[...]
+         * 
+ * + * string tag = 1; + */ + public Builder setTagBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setTagBytes(value); + return this; + } + + /** + *
+         * The first character position this span applies to, in UTF-16 offset.
+         * 
+ * + * uint32 first_char = 2; + */ + @java.lang.Override + public int getFirstChar() { + return instance.getFirstChar(); + } + /** + *
+         * The first character position this span applies to, in UTF-16 offset.
+         * 
+ * + * uint32 first_char = 2; + */ + public Builder setFirstChar(int value) { + copyOnWrite(); + instance.setFirstChar(value); + return this; + } + /** + *
+         * The first character position this span applies to, in UTF-16 offset.
+         * 
+ * + * uint32 first_char = 2; + */ + public Builder clearFirstChar() { + copyOnWrite(); + instance.clearFirstChar(); + return this; + } + + /** + *
+         * The last character position this span applies to, in UTF-16 offset.
+         * 
+ * + * uint32 last_char = 3; + */ + @java.lang.Override + public int getLastChar() { + return instance.getLastChar(); + } + /** + *
+         * The last character position this span applies to, in UTF-16 offset.
+         * 
+ * + * uint32 last_char = 3; + */ + public Builder setLastChar(int value) { + copyOnWrite(); + instance.setLastChar(value); + return this; + } + /** + *
+         * The last character position this span applies to, in UTF-16 offset.
+         * 
+ * + * uint32 last_char = 3; + */ + public Builder clearLastChar() { + copyOnWrite(); + instance.clearLastChar(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.StyledString.Span) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.StyledString.Span(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.StyledString.Span other = (com.android.aapt.Resources.StyledString.Span) arg1; + tag_ = visitor.visitString(!tag_.isEmpty(), tag_, + !other.tag_.isEmpty(), other.tag_); + firstChar_ = visitor.visitInt(firstChar_ != 0, firstChar_, + other.firstChar_ != 0, other.firstChar_); + lastChar_ = visitor.visitInt(lastChar_ != 0, lastChar_, + other.lastChar_ != 0, other.lastChar_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + tag_ = s; + break; + } + case 16: { + + firstChar_ = input.readUInt32(); + break; + } + case 24: { + + lastChar_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.StyledString.Span.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.StyledString.Span) + private static final com.android.aapt.Resources.StyledString.Span DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Span(); + } + + public static com.android.aapt.Resources.StyledString.Span getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + private int bitField0_; + public static final int VALUE_FIELD_NUMBER = 1; + private java.lang.String value_; + /** + *
+     * The raw text of the string.
+     * 
+ * + * string value = 1; + */ + @java.lang.Override + public java.lang.String getValue() { + return value_; + } + /** + *
+     * The raw text of the string.
+     * 
+ * + * string value = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(value_); + } + /** + *
+     * The raw text of the string.
+     * 
+ * + * string value = 1; + */ + private void setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + } + /** + *
+     * The raw text of the string.
+     * 
+ * + * string value = 1; + */ + private void clearValue() { + + value_ = getDefaultInstance().getValue(); + } + /** + *
+     * The raw text of the string.
+     * 
+ * + * string value = 1; + */ + private void setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value.toStringUtf8(); + } + + public static final int SPAN_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.ProtobufList span_; + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + @java.lang.Override + public java.util.List getSpanList() { + return span_; + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public java.util.List + getSpanOrBuilderList() { + return span_; + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + @java.lang.Override + public int getSpanCount() { + return span_.size(); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.StyledString.Span getSpan(int index) { + return span_.get(index); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public com.android.aapt.Resources.StyledString.SpanOrBuilder getSpanOrBuilder( + int index) { + return span_.get(index); + } + private void ensureSpanIsMutable() { + if (!span_.isModifiable()) { + span_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(span_); + } + } + + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + private void setSpan( + int index, com.android.aapt.Resources.StyledString.Span value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpanIsMutable(); + span_.set(index, value); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + private void setSpan( + int index, com.android.aapt.Resources.StyledString.Span.Builder builderForValue) { + ensureSpanIsMutable(); + span_.set(index, builderForValue.build()); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + private void addSpan(com.android.aapt.Resources.StyledString.Span value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpanIsMutable(); + span_.add(value); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + private void addSpan( + int index, com.android.aapt.Resources.StyledString.Span value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpanIsMutable(); + span_.add(index, value); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + private void addSpan( + com.android.aapt.Resources.StyledString.Span.Builder builderForValue) { + ensureSpanIsMutable(); + span_.add(builderForValue.build()); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + private void addSpan( + int index, com.android.aapt.Resources.StyledString.Span.Builder builderForValue) { + ensureSpanIsMutable(); + span_.add(index, builderForValue.build()); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + private void addAllSpan( + java.lang.Iterable values) { + ensureSpanIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, span_); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + private void clearSpan() { + span_ = emptyProtobufList(); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + private void removeSpan(int index) { + ensureSpanIsMutable(); + span_.remove(index); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!value_.isEmpty()) { + output.writeString(1, getValue()); + } + for (int i = 0; i < span_.size(); i++) { + output.writeMessage(2, span_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getValue()); + } + for (int i = 0; i < span_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, span_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.StyledString parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.StyledString parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.StyledString parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.StyledString parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.StyledString parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.StyledString parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.StyledString parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.StyledString parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.StyledString parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.StyledString parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.StyledString parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.StyledString parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.StyledString prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A string with styling information, like html tags that specify boldness, italics, etc.
+     * 
+ * + * Protobuf type {@code aapt.pb.StyledString} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.StyledString, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.StyledString) + com.android.aapt.Resources.StyledStringOrBuilder { + // Construct using com.android.aapt.Resources.StyledString.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * The raw text of the string.
+       * 
+ * + * string value = 1; + */ + @java.lang.Override + public java.lang.String getValue() { + return instance.getValue(); + } + /** + *
+       * The raw text of the string.
+       * 
+ * + * string value = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + return instance.getValueBytes(); + } + /** + *
+       * The raw text of the string.
+       * 
+ * + * string value = 1; + */ + public Builder setValue( + java.lang.String value) { + copyOnWrite(); + instance.setValue(value); + return this; + } + /** + *
+       * The raw text of the string.
+       * 
+ * + * string value = 1; + */ + public Builder clearValue() { + copyOnWrite(); + instance.clearValue(); + return this; + } + /** + *
+       * The raw text of the string.
+       * 
+ * + * string value = 1; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setValueBytes(value); + return this; + } + + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + @java.lang.Override + public java.util.List getSpanList() { + return java.util.Collections.unmodifiableList( + instance.getSpanList()); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + @java.lang.Override + public int getSpanCount() { + return instance.getSpanCount(); + }/** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.StyledString.Span getSpan(int index) { + return instance.getSpan(index); + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public Builder setSpan( + int index, com.android.aapt.Resources.StyledString.Span value) { + copyOnWrite(); + instance.setSpan(index, value); + return this; + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public Builder setSpan( + int index, com.android.aapt.Resources.StyledString.Span.Builder builderForValue) { + copyOnWrite(); + instance.setSpan(index, builderForValue); + return this; + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public Builder addSpan(com.android.aapt.Resources.StyledString.Span value) { + copyOnWrite(); + instance.addSpan(value); + return this; + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public Builder addSpan( + int index, com.android.aapt.Resources.StyledString.Span value) { + copyOnWrite(); + instance.addSpan(index, value); + return this; + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public Builder addSpan( + com.android.aapt.Resources.StyledString.Span.Builder builderForValue) { + copyOnWrite(); + instance.addSpan(builderForValue); + return this; + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public Builder addSpan( + int index, com.android.aapt.Resources.StyledString.Span.Builder builderForValue) { + copyOnWrite(); + instance.addSpan(index, builderForValue); + return this; + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public Builder addAllSpan( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllSpan(values); + return this; + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public Builder clearSpan() { + copyOnWrite(); + instance.clearSpan(); + return this; + } + /** + * repeated .aapt.pb.StyledString.Span span = 2; + */ + public Builder removeSpan(int index) { + copyOnWrite(); + instance.removeSpan(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.StyledString) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.StyledString(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + span_.makeImmutable(); + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.StyledString other = (com.android.aapt.Resources.StyledString) arg1; + value_ = visitor.visitString(!value_.isEmpty(), value_, + !other.value_.isEmpty(), other.value_); + span_= visitor.visitList(span_, other.span_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 18: { + if (!span_.isModifiable()) { + span_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(span_); + } + span_.add( + input.readMessage(com.android.aapt.Resources.StyledString.Span.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.StyledString.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.StyledString) + private static final com.android.aapt.Resources.StyledString DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new StyledString(); + } + + public static com.android.aapt.Resources.StyledString getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface FileReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.FileReference) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * Path to a file within the APK (typically res/type-config/entry.ext).
+     * 
+ * + * string path = 1; + */ + java.lang.String getPath(); + /** + *
+     * Path to a file within the APK (typically res/type-config/entry.ext).
+     * 
+ * + * string path = 1; + */ + com.google.protobuf.ByteString + getPathBytes(); + + /** + *
+     * The type of file this path points to. For UAM bundle, this cannot be
+     * BINARY_XML.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + int getTypeValue(); + /** + *
+     * The type of file this path points to. For UAM bundle, this cannot be
+     * BINARY_XML.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + com.android.aapt.Resources.FileReference.Type getType(); + } + /** + *
+   * A value that is a reference to an external entity, like an XML file or a PNG.
+   * 
+ * + * Protobuf type {@code aapt.pb.FileReference} + */ + public static final class FileReference extends + com.google.protobuf.GeneratedMessageLite< + FileReference, FileReference.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.FileReference) + FileReferenceOrBuilder { + private FileReference() { + path_ = ""; + } + /** + * Protobuf enum {@code aapt.pb.FileReference.Type} + */ + public enum Type + implements com.google.protobuf.Internal.EnumLite { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * PNG = 1; + */ + PNG(1), + /** + * BINARY_XML = 2; + */ + BINARY_XML(2), + /** + * PROTO_XML = 3; + */ + PROTO_XML(3), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * PNG = 1; + */ + public static final int PNG_VALUE = 1; + /** + * BINARY_XML = 2; + */ + public static final int BINARY_XML_VALUE = 2; + /** + * PROTO_XML = 3; + */ + public static final int PROTO_XML_VALUE = 3; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return PNG; + case 2: return BINARY_XML; + case 3: return PROTO_XML; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return TypeVerifier.INSTANCE; + } + + private static final class TypeVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new TypeVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return Type.forNumber(number) != null; + } + }; + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.FileReference.Type) + } + + public static final int PATH_FIELD_NUMBER = 1; + private java.lang.String path_; + /** + *
+     * Path to a file within the APK (typically res/type-config/entry.ext).
+     * 
+ * + * string path = 1; + */ + @java.lang.Override + public java.lang.String getPath() { + return path_; + } + /** + *
+     * Path to a file within the APK (typically res/type-config/entry.ext).
+     * 
+ * + * string path = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPathBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(path_); + } + /** + *
+     * Path to a file within the APK (typically res/type-config/entry.ext).
+     * 
+ * + * string path = 1; + */ + private void setPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + path_ = value; + } + /** + *
+     * Path to a file within the APK (typically res/type-config/entry.ext).
+     * 
+ * + * string path = 1; + */ + private void clearPath() { + + path_ = getDefaultInstance().getPath(); + } + /** + *
+     * Path to a file within the APK (typically res/type-config/entry.ext).
+     * 
+ * + * string path = 1; + */ + private void setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + path_ = value.toStringUtf8(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + *
+     * The type of file this path points to. For UAM bundle, this cannot be
+     * BINARY_XML.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + *
+     * The type of file this path points to. For UAM bundle, this cannot be
+     * BINARY_XML.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.FileReference.Type getType() { + com.android.aapt.Resources.FileReference.Type result = com.android.aapt.Resources.FileReference.Type.forNumber(type_); + return result == null ? com.android.aapt.Resources.FileReference.Type.UNRECOGNIZED : result; + } + /** + *
+     * The type of file this path points to. For UAM bundle, this cannot be
+     * BINARY_XML.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + private void setTypeValue(int value) { + type_ = value; + } + /** + *
+     * The type of file this path points to. For UAM bundle, this cannot be
+     * BINARY_XML.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + private void setType(com.android.aapt.Resources.FileReference.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + } + /** + *
+     * The type of file this path points to. For UAM bundle, this cannot be
+     * BINARY_XML.
+     * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + private void clearType() { + + type_ = 0; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!path_.isEmpty()) { + output.writeString(1, getPath()); + } + if (type_ != com.android.aapt.Resources.FileReference.Type.UNKNOWN.getNumber()) { + output.writeEnum(2, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!path_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getPath()); + } + if (type_ != com.android.aapt.Resources.FileReference.Type.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.FileReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.FileReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.FileReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.FileReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.FileReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.FileReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.FileReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.FileReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.FileReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.FileReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.FileReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.FileReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.FileReference prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A value that is a reference to an external entity, like an XML file or a PNG.
+     * 
+ * + * Protobuf type {@code aapt.pb.FileReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.FileReference, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.FileReference) + com.android.aapt.Resources.FileReferenceOrBuilder { + // Construct using com.android.aapt.Resources.FileReference.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * Path to a file within the APK (typically res/type-config/entry.ext).
+       * 
+ * + * string path = 1; + */ + @java.lang.Override + public java.lang.String getPath() { + return instance.getPath(); + } + /** + *
+       * Path to a file within the APK (typically res/type-config/entry.ext).
+       * 
+ * + * string path = 1; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPathBytes() { + return instance.getPathBytes(); + } + /** + *
+       * Path to a file within the APK (typically res/type-config/entry.ext).
+       * 
+ * + * string path = 1; + */ + public Builder setPath( + java.lang.String value) { + copyOnWrite(); + instance.setPath(value); + return this; + } + /** + *
+       * Path to a file within the APK (typically res/type-config/entry.ext).
+       * 
+ * + * string path = 1; + */ + public Builder clearPath() { + copyOnWrite(); + instance.clearPath(); + return this; + } + /** + *
+       * Path to a file within the APK (typically res/type-config/entry.ext).
+       * 
+ * + * string path = 1; + */ + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setPathBytes(value); + return this; + } + + /** + *
+       * The type of file this path points to. For UAM bundle, this cannot be
+       * BINARY_XML.
+       * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + @java.lang.Override + public int getTypeValue() { + return instance.getTypeValue(); + } + /** + *
+       * The type of file this path points to. For UAM bundle, this cannot be
+       * BINARY_XML.
+       * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + public Builder setTypeValue(int value) { + copyOnWrite(); + instance.setTypeValue(value); + return this; + } + /** + *
+       * The type of file this path points to. For UAM bundle, this cannot be
+       * BINARY_XML.
+       * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.FileReference.Type getType() { + return instance.getType(); + } + /** + *
+       * The type of file this path points to. For UAM bundle, this cannot be
+       * BINARY_XML.
+       * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + public Builder setType(com.android.aapt.Resources.FileReference.Type value) { + copyOnWrite(); + instance.setType(value); + return this; + } + /** + *
+       * The type of file this path points to. For UAM bundle, this cannot be
+       * BINARY_XML.
+       * 
+ * + * .aapt.pb.FileReference.Type type = 2; + */ + public Builder clearType() { + copyOnWrite(); + instance.clearType(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.FileReference) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.FileReference(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.FileReference other = (com.android.aapt.Resources.FileReference) arg1; + path_ = visitor.visitString(!path_.isEmpty(), path_, + !other.path_.isEmpty(), other.path_); + type_ = visitor.visitInt(type_ != 0, type_, other.type_ != 0, other.type_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.FileReference.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.FileReference) + private static final com.android.aapt.Resources.FileReference DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new FileReference(); + } + + public static com.android.aapt.Resources.FileReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface PrimitiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Primitive) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + boolean hasNullValue(); + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + com.android.aapt.Resources.Primitive.NullType getNullValue(); + + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + boolean hasEmptyValue(); + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + com.android.aapt.Resources.Primitive.EmptyType getEmptyValue(); + + /** + * float float_value = 3; + */ + float getFloatValue(); + + /** + * uint32 dimension_value = 13; + */ + int getDimensionValue(); + + /** + * uint32 fraction_value = 14; + */ + int getFractionValue(); + + /** + * int32 int_decimal_value = 6; + */ + int getIntDecimalValue(); + + /** + * uint32 int_hexadecimal_value = 7; + */ + int getIntHexadecimalValue(); + + /** + * bool boolean_value = 8; + */ + boolean getBooleanValue(); + + /** + * uint32 color_argb8_value = 9; + */ + int getColorArgb8Value(); + + /** + * uint32 color_rgb8_value = 10; + */ + int getColorRgb8Value(); + + /** + * uint32 color_argb4_value = 11; + */ + int getColorArgb4Value(); + + /** + * uint32 color_rgb4_value = 12; + */ + int getColorRgb4Value(); + + /** + * float dimension_value_deprecated = 4 [deprecated = true]; + */ + @java.lang.Deprecated float getDimensionValueDeprecated(); + + /** + * float fraction_value_deprecated = 5 [deprecated = true]; + */ + @java.lang.Deprecated float getFractionValueDeprecated(); + + public com.android.aapt.Resources.Primitive.OneofValueCase getOneofValueCase(); + } + /** + *
+   * A value that represents a primitive data type (float, int, boolean, etc.).
+   * Refer to Res_value in ResourceTypes.h for info on types and formatting
+   * 
+ * + * Protobuf type {@code aapt.pb.Primitive} + */ + public static final class Primitive extends + com.google.protobuf.GeneratedMessageLite< + Primitive, Primitive.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Primitive) + PrimitiveOrBuilder { + private Primitive() { + } + public interface NullTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Primitive.NullType) + com.google.protobuf.MessageLiteOrBuilder { + } + /** + * Protobuf type {@code aapt.pb.Primitive.NullType} + */ + public static final class NullType extends + com.google.protobuf.GeneratedMessageLite< + NullType, NullType.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Primitive.NullType) + NullTypeOrBuilder { + private NullType() { + } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Primitive.NullType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Primitive.NullType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive.NullType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Primitive.NullType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive.NullType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Primitive.NullType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive.NullType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Primitive.NullType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive.NullType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Primitive.NullType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive.NullType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Primitive.NullType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Primitive.NullType prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code aapt.pb.Primitive.NullType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Primitive.NullType, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Primitive.NullType) + com.android.aapt.Resources.Primitive.NullTypeOrBuilder { + // Construct using com.android.aapt.Resources.Primitive.NullType.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + // @@protoc_insertion_point(builder_scope:aapt.pb.Primitive.NullType) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Primitive.NullType(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Primitive.NullType other = (com.android.aapt.Resources.Primitive.NullType) arg1; + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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 (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Primitive.NullType.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Primitive.NullType) + private static final com.android.aapt.Resources.Primitive.NullType DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new NullType(); + } + + public static com.android.aapt.Resources.Primitive.NullType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface EmptyTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Primitive.EmptyType) + com.google.protobuf.MessageLiteOrBuilder { + } + /** + * Protobuf type {@code aapt.pb.Primitive.EmptyType} + */ + public static final class EmptyType extends + com.google.protobuf.GeneratedMessageLite< + EmptyType, EmptyType.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Primitive.EmptyType) + EmptyTypeOrBuilder { + private EmptyType() { + } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Primitive.EmptyType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Primitive.EmptyType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Primitive.EmptyType prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + * Protobuf type {@code aapt.pb.Primitive.EmptyType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Primitive.EmptyType, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Primitive.EmptyType) + com.android.aapt.Resources.Primitive.EmptyTypeOrBuilder { + // Construct using com.android.aapt.Resources.Primitive.EmptyType.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + // @@protoc_insertion_point(builder_scope:aapt.pb.Primitive.EmptyType) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Primitive.EmptyType(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Primitive.EmptyType other = (com.android.aapt.Resources.Primitive.EmptyType) arg1; + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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 (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Primitive.EmptyType.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Primitive.EmptyType) + private static final com.android.aapt.Resources.Primitive.EmptyType DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new EmptyType(); + } + + public static com.android.aapt.Resources.Primitive.EmptyType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + private int oneofValueCase_ = 0; + private java.lang.Object oneofValue_; + public enum OneofValueCase + implements com.google.protobuf.Internal.EnumLite { + NULL_VALUE(1), + EMPTY_VALUE(2), + FLOAT_VALUE(3), + DIMENSION_VALUE(13), + FRACTION_VALUE(14), + INT_DECIMAL_VALUE(6), + INT_HEXADECIMAL_VALUE(7), + BOOLEAN_VALUE(8), + COLOR_ARGB8_VALUE(9), + COLOR_RGB8_VALUE(10), + COLOR_ARGB4_VALUE(11), + COLOR_RGB4_VALUE(12), + DIMENSION_VALUE_DEPRECATED(4), + FRACTION_VALUE_DEPRECATED(5), + ONEOFVALUE_NOT_SET(0); + private final int value; + private OneofValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneofValueCase valueOf(int value) { + return forNumber(value); + } + + public static OneofValueCase forNumber(int value) { + switch (value) { + case 1: return NULL_VALUE; + case 2: return EMPTY_VALUE; + case 3: return FLOAT_VALUE; + case 13: return DIMENSION_VALUE; + case 14: return FRACTION_VALUE; + case 6: return INT_DECIMAL_VALUE; + case 7: return INT_HEXADECIMAL_VALUE; + case 8: return BOOLEAN_VALUE; + case 9: return COLOR_ARGB8_VALUE; + case 10: return COLOR_RGB8_VALUE; + case 11: return COLOR_ARGB4_VALUE; + case 12: return COLOR_RGB4_VALUE; + case 4: return DIMENSION_VALUE_DEPRECATED; + case 5: return FRACTION_VALUE_DEPRECATED; + case 0: return ONEOFVALUE_NOT_SET; + default: return null; + } + } + @java.lang.Override + public int getNumber() { + return this.value; + } + }; + + @java.lang.Override + public OneofValueCase + getOneofValueCase() { + return OneofValueCase.forNumber( + oneofValueCase_); + } + + private void clearOneofValue() { + oneofValueCase_ = 0; + oneofValue_ = null; + } + + public static final int NULL_VALUE_FIELD_NUMBER = 1; + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + @java.lang.Override + public boolean hasNullValue() { + return oneofValueCase_ == 1; + } + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Primitive.NullType getNullValue() { + if (oneofValueCase_ == 1) { + return (com.android.aapt.Resources.Primitive.NullType) oneofValue_; + } + return com.android.aapt.Resources.Primitive.NullType.getDefaultInstance(); + } + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + private void setNullValue(com.android.aapt.Resources.Primitive.NullType value) { + if (value == null) { + throw new NullPointerException(); + } + oneofValue_ = value; + oneofValueCase_ = 1; + } + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + private void setNullValue( + com.android.aapt.Resources.Primitive.NullType.Builder builderForValue) { + oneofValue_ = builderForValue.build(); + oneofValueCase_ = 1; + } + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + private void mergeNullValue(com.android.aapt.Resources.Primitive.NullType value) { + if (value == null) { + throw new NullPointerException(); + } + if (oneofValueCase_ == 1 && + oneofValue_ != com.android.aapt.Resources.Primitive.NullType.getDefaultInstance()) { + oneofValue_ = com.android.aapt.Resources.Primitive.NullType.newBuilder((com.android.aapt.Resources.Primitive.NullType) oneofValue_) + .mergeFrom(value).buildPartial(); + } else { + oneofValue_ = value; + } + oneofValueCase_ = 1; + } + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + private void clearNullValue() { + if (oneofValueCase_ == 1) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int EMPTY_VALUE_FIELD_NUMBER = 2; + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + @java.lang.Override + public boolean hasEmptyValue() { + return oneofValueCase_ == 2; + } + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Primitive.EmptyType getEmptyValue() { + if (oneofValueCase_ == 2) { + return (com.android.aapt.Resources.Primitive.EmptyType) oneofValue_; + } + return com.android.aapt.Resources.Primitive.EmptyType.getDefaultInstance(); + } + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + private void setEmptyValue(com.android.aapt.Resources.Primitive.EmptyType value) { + if (value == null) { + throw new NullPointerException(); + } + oneofValue_ = value; + oneofValueCase_ = 2; + } + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + private void setEmptyValue( + com.android.aapt.Resources.Primitive.EmptyType.Builder builderForValue) { + oneofValue_ = builderForValue.build(); + oneofValueCase_ = 2; + } + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + private void mergeEmptyValue(com.android.aapt.Resources.Primitive.EmptyType value) { + if (value == null) { + throw new NullPointerException(); + } + if (oneofValueCase_ == 2 && + oneofValue_ != com.android.aapt.Resources.Primitive.EmptyType.getDefaultInstance()) { + oneofValue_ = com.android.aapt.Resources.Primitive.EmptyType.newBuilder((com.android.aapt.Resources.Primitive.EmptyType) oneofValue_) + .mergeFrom(value).buildPartial(); + } else { + oneofValue_ = value; + } + oneofValueCase_ = 2; + } + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + private void clearEmptyValue() { + if (oneofValueCase_ == 2) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int FLOAT_VALUE_FIELD_NUMBER = 3; + /** + * float float_value = 3; + */ + @java.lang.Override + public float getFloatValue() { + if (oneofValueCase_ == 3) { + return (java.lang.Float) oneofValue_; + } + return 0F; + } + /** + * float float_value = 3; + */ + private void setFloatValue(float value) { + oneofValueCase_ = 3; + oneofValue_ = value; + } + /** + * float float_value = 3; + */ + private void clearFloatValue() { + if (oneofValueCase_ == 3) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int DIMENSION_VALUE_FIELD_NUMBER = 13; + /** + * uint32 dimension_value = 13; + */ + @java.lang.Override + public int getDimensionValue() { + if (oneofValueCase_ == 13) { + return (java.lang.Integer) oneofValue_; + } + return 0; + } + /** + * uint32 dimension_value = 13; + */ + private void setDimensionValue(int value) { + oneofValueCase_ = 13; + oneofValue_ = value; + } + /** + * uint32 dimension_value = 13; + */ + private void clearDimensionValue() { + if (oneofValueCase_ == 13) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int FRACTION_VALUE_FIELD_NUMBER = 14; + /** + * uint32 fraction_value = 14; + */ + @java.lang.Override + public int getFractionValue() { + if (oneofValueCase_ == 14) { + return (java.lang.Integer) oneofValue_; + } + return 0; + } + /** + * uint32 fraction_value = 14; + */ + private void setFractionValue(int value) { + oneofValueCase_ = 14; + oneofValue_ = value; + } + /** + * uint32 fraction_value = 14; + */ + private void clearFractionValue() { + if (oneofValueCase_ == 14) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int INT_DECIMAL_VALUE_FIELD_NUMBER = 6; + /** + * int32 int_decimal_value = 6; + */ + @java.lang.Override + public int getIntDecimalValue() { + if (oneofValueCase_ == 6) { + return (java.lang.Integer) oneofValue_; + } + return 0; + } + /** + * int32 int_decimal_value = 6; + */ + private void setIntDecimalValue(int value) { + oneofValueCase_ = 6; + oneofValue_ = value; + } + /** + * int32 int_decimal_value = 6; + */ + private void clearIntDecimalValue() { + if (oneofValueCase_ == 6) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int INT_HEXADECIMAL_VALUE_FIELD_NUMBER = 7; + /** + * uint32 int_hexadecimal_value = 7; + */ + @java.lang.Override + public int getIntHexadecimalValue() { + if (oneofValueCase_ == 7) { + return (java.lang.Integer) oneofValue_; + } + return 0; + } + /** + * uint32 int_hexadecimal_value = 7; + */ + private void setIntHexadecimalValue(int value) { + oneofValueCase_ = 7; + oneofValue_ = value; + } + /** + * uint32 int_hexadecimal_value = 7; + */ + private void clearIntHexadecimalValue() { + if (oneofValueCase_ == 7) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int BOOLEAN_VALUE_FIELD_NUMBER = 8; + /** + * bool boolean_value = 8; + */ + @java.lang.Override + public boolean getBooleanValue() { + if (oneofValueCase_ == 8) { + return (java.lang.Boolean) oneofValue_; + } + return false; + } + /** + * bool boolean_value = 8; + */ + private void setBooleanValue(boolean value) { + oneofValueCase_ = 8; + oneofValue_ = value; + } + /** + * bool boolean_value = 8; + */ + private void clearBooleanValue() { + if (oneofValueCase_ == 8) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int COLOR_ARGB8_VALUE_FIELD_NUMBER = 9; + /** + * uint32 color_argb8_value = 9; + */ + @java.lang.Override + public int getColorArgb8Value() { + if (oneofValueCase_ == 9) { + return (java.lang.Integer) oneofValue_; + } + return 0; + } + /** + * uint32 color_argb8_value = 9; + */ + private void setColorArgb8Value(int value) { + oneofValueCase_ = 9; + oneofValue_ = value; + } + /** + * uint32 color_argb8_value = 9; + */ + private void clearColorArgb8Value() { + if (oneofValueCase_ == 9) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int COLOR_RGB8_VALUE_FIELD_NUMBER = 10; + /** + * uint32 color_rgb8_value = 10; + */ + @java.lang.Override + public int getColorRgb8Value() { + if (oneofValueCase_ == 10) { + return (java.lang.Integer) oneofValue_; + } + return 0; + } + /** + * uint32 color_rgb8_value = 10; + */ + private void setColorRgb8Value(int value) { + oneofValueCase_ = 10; + oneofValue_ = value; + } + /** + * uint32 color_rgb8_value = 10; + */ + private void clearColorRgb8Value() { + if (oneofValueCase_ == 10) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int COLOR_ARGB4_VALUE_FIELD_NUMBER = 11; + /** + * uint32 color_argb4_value = 11; + */ + @java.lang.Override + public int getColorArgb4Value() { + if (oneofValueCase_ == 11) { + return (java.lang.Integer) oneofValue_; + } + return 0; + } + /** + * uint32 color_argb4_value = 11; + */ + private void setColorArgb4Value(int value) { + oneofValueCase_ = 11; + oneofValue_ = value; + } + /** + * uint32 color_argb4_value = 11; + */ + private void clearColorArgb4Value() { + if (oneofValueCase_ == 11) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int COLOR_RGB4_VALUE_FIELD_NUMBER = 12; + /** + * uint32 color_rgb4_value = 12; + */ + @java.lang.Override + public int getColorRgb4Value() { + if (oneofValueCase_ == 12) { + return (java.lang.Integer) oneofValue_; + } + return 0; + } + /** + * uint32 color_rgb4_value = 12; + */ + private void setColorRgb4Value(int value) { + oneofValueCase_ = 12; + oneofValue_ = value; + } + /** + * uint32 color_rgb4_value = 12; + */ + private void clearColorRgb4Value() { + if (oneofValueCase_ == 12) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int DIMENSION_VALUE_DEPRECATED_FIELD_NUMBER = 4; + /** + * float dimension_value_deprecated = 4 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public float getDimensionValueDeprecated() { + if (oneofValueCase_ == 4) { + return (java.lang.Float) oneofValue_; + } + return 0F; + } + /** + * float dimension_value_deprecated = 4 [deprecated = true]; + */ + private void setDimensionValueDeprecated(float value) { + oneofValueCase_ = 4; + oneofValue_ = value; + } + /** + * float dimension_value_deprecated = 4 [deprecated = true]; + */ + private void clearDimensionValueDeprecated() { + if (oneofValueCase_ == 4) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + public static final int FRACTION_VALUE_DEPRECATED_FIELD_NUMBER = 5; + /** + * float fraction_value_deprecated = 5 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public float getFractionValueDeprecated() { + if (oneofValueCase_ == 5) { + return (java.lang.Float) oneofValue_; + } + return 0F; + } + /** + * float fraction_value_deprecated = 5 [deprecated = true]; + */ + private void setFractionValueDeprecated(float value) { + oneofValueCase_ = 5; + oneofValue_ = value; + } + /** + * float fraction_value_deprecated = 5 [deprecated = true]; + */ + private void clearFractionValueDeprecated() { + if (oneofValueCase_ == 5) { + oneofValueCase_ = 0; + oneofValue_ = null; + } + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (oneofValueCase_ == 1) { + output.writeMessage(1, (com.android.aapt.Resources.Primitive.NullType) oneofValue_); + } + if (oneofValueCase_ == 2) { + output.writeMessage(2, (com.android.aapt.Resources.Primitive.EmptyType) oneofValue_); + } + if (oneofValueCase_ == 3) { + output.writeFloat( + 3, (float)((java.lang.Float) oneofValue_)); + } + if (oneofValueCase_ == 4) { + output.writeFloat( + 4, (float)((java.lang.Float) oneofValue_)); + } + if (oneofValueCase_ == 5) { + output.writeFloat( + 5, (float)((java.lang.Float) oneofValue_)); + } + if (oneofValueCase_ == 6) { + output.writeInt32( + 6, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 7) { + output.writeUInt32( + 7, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 8) { + output.writeBool( + 8, (boolean)((java.lang.Boolean) oneofValue_)); + } + if (oneofValueCase_ == 9) { + output.writeUInt32( + 9, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 10) { + output.writeUInt32( + 10, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 11) { + output.writeUInt32( + 11, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 12) { + output.writeUInt32( + 12, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 13) { + output.writeUInt32( + 13, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 14) { + output.writeUInt32( + 14, (int)((java.lang.Integer) oneofValue_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (oneofValueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.android.aapt.Resources.Primitive.NullType) oneofValue_); + } + if (oneofValueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.android.aapt.Resources.Primitive.EmptyType) oneofValue_); + } + if (oneofValueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 3, (float)((java.lang.Float) oneofValue_)); + } + if (oneofValueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 4, (float)((java.lang.Float) oneofValue_)); + } + if (oneofValueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 5, (float)((java.lang.Float) oneofValue_)); + } + if (oneofValueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 6, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 7, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 8, (boolean)((java.lang.Boolean) oneofValue_)); + } + if (oneofValueCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 9, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 10, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 11, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 12, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 13) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 13, (int)((java.lang.Integer) oneofValue_)); + } + if (oneofValueCase_ == 14) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 14, (int)((java.lang.Integer) oneofValue_)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Primitive parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Primitive parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Primitive parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Primitive parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Primitive parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Primitive parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Primitive parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Primitive parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Primitive prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A value that represents a primitive data type (float, int, boolean, etc.).
+     * Refer to Res_value in ResourceTypes.h for info on types and formatting
+     * 
+ * + * Protobuf type {@code aapt.pb.Primitive} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Primitive, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Primitive) + com.android.aapt.Resources.PrimitiveOrBuilder { + // Construct using com.android.aapt.Resources.Primitive.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + @java.lang.Override + public OneofValueCase + getOneofValueCase() { + return instance.getOneofValueCase(); + } + + public Builder clearOneofValue() { + copyOnWrite(); + instance.clearOneofValue(); + return this; + } + + + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + @java.lang.Override + public boolean hasNullValue() { + return instance.hasNullValue(); + } + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Primitive.NullType getNullValue() { + return instance.getNullValue(); + } + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + public Builder setNullValue(com.android.aapt.Resources.Primitive.NullType value) { + copyOnWrite(); + instance.setNullValue(value); + return this; + } + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + public Builder setNullValue( + com.android.aapt.Resources.Primitive.NullType.Builder builderForValue) { + copyOnWrite(); + instance.setNullValue(builderForValue); + return this; + } + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + public Builder mergeNullValue(com.android.aapt.Resources.Primitive.NullType value) { + copyOnWrite(); + instance.mergeNullValue(value); + return this; + } + /** + * .aapt.pb.Primitive.NullType null_value = 1; + */ + public Builder clearNullValue() { + copyOnWrite(); + instance.clearNullValue(); + return this; + } + + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + @java.lang.Override + public boolean hasEmptyValue() { + return instance.hasEmptyValue(); + } + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Primitive.EmptyType getEmptyValue() { + return instance.getEmptyValue(); + } + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + public Builder setEmptyValue(com.android.aapt.Resources.Primitive.EmptyType value) { + copyOnWrite(); + instance.setEmptyValue(value); + return this; + } + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + public Builder setEmptyValue( + com.android.aapt.Resources.Primitive.EmptyType.Builder builderForValue) { + copyOnWrite(); + instance.setEmptyValue(builderForValue); + return this; + } + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + public Builder mergeEmptyValue(com.android.aapt.Resources.Primitive.EmptyType value) { + copyOnWrite(); + instance.mergeEmptyValue(value); + return this; + } + /** + * .aapt.pb.Primitive.EmptyType empty_value = 2; + */ + public Builder clearEmptyValue() { + copyOnWrite(); + instance.clearEmptyValue(); + return this; + } + + /** + * float float_value = 3; + */ + @java.lang.Override + public float getFloatValue() { + return instance.getFloatValue(); + } + /** + * float float_value = 3; + */ + public Builder setFloatValue(float value) { + copyOnWrite(); + instance.setFloatValue(value); + return this; + } + /** + * float float_value = 3; + */ + public Builder clearFloatValue() { + copyOnWrite(); + instance.clearFloatValue(); + return this; + } + + /** + * uint32 dimension_value = 13; + */ + @java.lang.Override + public int getDimensionValue() { + return instance.getDimensionValue(); + } + /** + * uint32 dimension_value = 13; + */ + public Builder setDimensionValue(int value) { + copyOnWrite(); + instance.setDimensionValue(value); + return this; + } + /** + * uint32 dimension_value = 13; + */ + public Builder clearDimensionValue() { + copyOnWrite(); + instance.clearDimensionValue(); + return this; + } + + /** + * uint32 fraction_value = 14; + */ + @java.lang.Override + public int getFractionValue() { + return instance.getFractionValue(); + } + /** + * uint32 fraction_value = 14; + */ + public Builder setFractionValue(int value) { + copyOnWrite(); + instance.setFractionValue(value); + return this; + } + /** + * uint32 fraction_value = 14; + */ + public Builder clearFractionValue() { + copyOnWrite(); + instance.clearFractionValue(); + return this; + } + + /** + * int32 int_decimal_value = 6; + */ + @java.lang.Override + public int getIntDecimalValue() { + return instance.getIntDecimalValue(); + } + /** + * int32 int_decimal_value = 6; + */ + public Builder setIntDecimalValue(int value) { + copyOnWrite(); + instance.setIntDecimalValue(value); + return this; + } + /** + * int32 int_decimal_value = 6; + */ + public Builder clearIntDecimalValue() { + copyOnWrite(); + instance.clearIntDecimalValue(); + return this; + } + + /** + * uint32 int_hexadecimal_value = 7; + */ + @java.lang.Override + public int getIntHexadecimalValue() { + return instance.getIntHexadecimalValue(); + } + /** + * uint32 int_hexadecimal_value = 7; + */ + public Builder setIntHexadecimalValue(int value) { + copyOnWrite(); + instance.setIntHexadecimalValue(value); + return this; + } + /** + * uint32 int_hexadecimal_value = 7; + */ + public Builder clearIntHexadecimalValue() { + copyOnWrite(); + instance.clearIntHexadecimalValue(); + return this; + } + + /** + * bool boolean_value = 8; + */ + @java.lang.Override + public boolean getBooleanValue() { + return instance.getBooleanValue(); + } + /** + * bool boolean_value = 8; + */ + public Builder setBooleanValue(boolean value) { + copyOnWrite(); + instance.setBooleanValue(value); + return this; + } + /** + * bool boolean_value = 8; + */ + public Builder clearBooleanValue() { + copyOnWrite(); + instance.clearBooleanValue(); + return this; + } + + /** + * uint32 color_argb8_value = 9; + */ + @java.lang.Override + public int getColorArgb8Value() { + return instance.getColorArgb8Value(); + } + /** + * uint32 color_argb8_value = 9; + */ + public Builder setColorArgb8Value(int value) { + copyOnWrite(); + instance.setColorArgb8Value(value); + return this; + } + /** + * uint32 color_argb8_value = 9; + */ + public Builder clearColorArgb8Value() { + copyOnWrite(); + instance.clearColorArgb8Value(); + return this; + } + + /** + * uint32 color_rgb8_value = 10; + */ + @java.lang.Override + public int getColorRgb8Value() { + return instance.getColorRgb8Value(); + } + /** + * uint32 color_rgb8_value = 10; + */ + public Builder setColorRgb8Value(int value) { + copyOnWrite(); + instance.setColorRgb8Value(value); + return this; + } + /** + * uint32 color_rgb8_value = 10; + */ + public Builder clearColorRgb8Value() { + copyOnWrite(); + instance.clearColorRgb8Value(); + return this; + } + + /** + * uint32 color_argb4_value = 11; + */ + @java.lang.Override + public int getColorArgb4Value() { + return instance.getColorArgb4Value(); + } + /** + * uint32 color_argb4_value = 11; + */ + public Builder setColorArgb4Value(int value) { + copyOnWrite(); + instance.setColorArgb4Value(value); + return this; + } + /** + * uint32 color_argb4_value = 11; + */ + public Builder clearColorArgb4Value() { + copyOnWrite(); + instance.clearColorArgb4Value(); + return this; + } + + /** + * uint32 color_rgb4_value = 12; + */ + @java.lang.Override + public int getColorRgb4Value() { + return instance.getColorRgb4Value(); + } + /** + * uint32 color_rgb4_value = 12; + */ + public Builder setColorRgb4Value(int value) { + copyOnWrite(); + instance.setColorRgb4Value(value); + return this; + } + /** + * uint32 color_rgb4_value = 12; + */ + public Builder clearColorRgb4Value() { + copyOnWrite(); + instance.clearColorRgb4Value(); + return this; + } + + /** + * float dimension_value_deprecated = 4 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public float getDimensionValueDeprecated() { + return instance.getDimensionValueDeprecated(); + } + /** + * float dimension_value_deprecated = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setDimensionValueDeprecated(float value) { + copyOnWrite(); + instance.setDimensionValueDeprecated(value); + return this; + } + /** + * float dimension_value_deprecated = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearDimensionValueDeprecated() { + copyOnWrite(); + instance.clearDimensionValueDeprecated(); + return this; + } + + /** + * float fraction_value_deprecated = 5 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public float getFractionValueDeprecated() { + return instance.getFractionValueDeprecated(); + } + /** + * float fraction_value_deprecated = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setFractionValueDeprecated(float value) { + copyOnWrite(); + instance.setFractionValueDeprecated(value); + return this; + } + /** + * float fraction_value_deprecated = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearFractionValueDeprecated() { + copyOnWrite(); + instance.clearFractionValueDeprecated(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Primitive) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Primitive(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Primitive other = (com.android.aapt.Resources.Primitive) arg1; + switch (other.getOneofValueCase()) { + case NULL_VALUE: { + oneofValue_ = visitor.visitOneofMessage( + oneofValueCase_ == 1, + oneofValue_, + other.oneofValue_); + break; + } + case EMPTY_VALUE: { + oneofValue_ = visitor.visitOneofMessage( + oneofValueCase_ == 2, + oneofValue_, + other.oneofValue_); + break; + } + case FLOAT_VALUE: { + oneofValue_ = visitor.visitOneofFloat( + oneofValueCase_ == 3, oneofValue_, other.oneofValue_); + break; + } + case DIMENSION_VALUE: { + oneofValue_ = visitor.visitOneofInt( + oneofValueCase_ == 13, oneofValue_, other.oneofValue_); + break; + } + case FRACTION_VALUE: { + oneofValue_ = visitor.visitOneofInt( + oneofValueCase_ == 14, oneofValue_, other.oneofValue_); + break; + } + case INT_DECIMAL_VALUE: { + oneofValue_ = visitor.visitOneofInt( + oneofValueCase_ == 6, oneofValue_, other.oneofValue_); + break; + } + case INT_HEXADECIMAL_VALUE: { + oneofValue_ = visitor.visitOneofInt( + oneofValueCase_ == 7, oneofValue_, other.oneofValue_); + break; + } + case BOOLEAN_VALUE: { + oneofValue_ = visitor.visitOneofBoolean( + oneofValueCase_ == 8, oneofValue_, other.oneofValue_); + break; + } + case COLOR_ARGB8_VALUE: { + oneofValue_ = visitor.visitOneofInt( + oneofValueCase_ == 9, oneofValue_, other.oneofValue_); + break; + } + case COLOR_RGB8_VALUE: { + oneofValue_ = visitor.visitOneofInt( + oneofValueCase_ == 10, oneofValue_, other.oneofValue_); + break; + } + case COLOR_ARGB4_VALUE: { + oneofValue_ = visitor.visitOneofInt( + oneofValueCase_ == 11, oneofValue_, other.oneofValue_); + break; + } + case COLOR_RGB4_VALUE: { + oneofValue_ = visitor.visitOneofInt( + oneofValueCase_ == 12, oneofValue_, other.oneofValue_); + break; + } + case DIMENSION_VALUE_DEPRECATED: { + oneofValue_ = visitor.visitOneofFloat( + oneofValueCase_ == 4, oneofValue_, other.oneofValue_); + break; + } + case FRACTION_VALUE_DEPRECATED: { + oneofValue_ = visitor.visitOneofFloat( + oneofValueCase_ == 5, oneofValue_, other.oneofValue_); + break; + } + case ONEOFVALUE_NOT_SET: { + visitor.visitOneofNotSet(oneofValueCase_ != 0); + break; + } + } + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + if (other.oneofValueCase_ != 0) { + oneofValueCase_ = other.oneofValueCase_; + } + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.Primitive.NullType.Builder subBuilder = null; + if (oneofValueCase_ == 1) { + subBuilder = ((com.android.aapt.Resources.Primitive.NullType) oneofValue_).toBuilder(); + } + oneofValue_ = + input.readMessage(com.android.aapt.Resources.Primitive.NullType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Primitive.NullType) oneofValue_); + oneofValue_ = subBuilder.buildPartial(); + } + oneofValueCase_ = 1; + break; + } + case 18: { + com.android.aapt.Resources.Primitive.EmptyType.Builder subBuilder = null; + if (oneofValueCase_ == 2) { + subBuilder = ((com.android.aapt.Resources.Primitive.EmptyType) oneofValue_).toBuilder(); + } + oneofValue_ = + input.readMessage(com.android.aapt.Resources.Primitive.EmptyType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.android.aapt.Resources.Primitive.EmptyType) oneofValue_); + oneofValue_ = subBuilder.buildPartial(); + } + oneofValueCase_ = 2; + break; + } + case 29: { + oneofValueCase_ = 3; + oneofValue_ = input.readFloat(); + break; + } + case 37: { + oneofValueCase_ = 4; + oneofValue_ = input.readFloat(); + break; + } + case 45: { + oneofValueCase_ = 5; + oneofValue_ = input.readFloat(); + break; + } + case 48: { + oneofValueCase_ = 6; + oneofValue_ = input.readInt32(); + break; + } + case 56: { + oneofValueCase_ = 7; + oneofValue_ = input.readUInt32(); + break; + } + case 64: { + oneofValueCase_ = 8; + oneofValue_ = input.readBool(); + break; + } + case 72: { + oneofValueCase_ = 9; + oneofValue_ = input.readUInt32(); + break; + } + case 80: { + oneofValueCase_ = 10; + oneofValue_ = input.readUInt32(); + break; + } + case 88: { + oneofValueCase_ = 11; + oneofValue_ = input.readUInt32(); + break; + } + case 96: { + oneofValueCase_ = 12; + oneofValue_ = input.readUInt32(); + break; + } + case 104: { + oneofValueCase_ = 13; + oneofValue_ = input.readUInt32(); + break; + } + case 112: { + oneofValueCase_ = 14; + oneofValue_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Primitive.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Primitive) + private static final com.android.aapt.Resources.Primitive DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Primitive(); + } + + public static com.android.aapt.Resources.Primitive getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface AttributeOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Attribute) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
+     * enum FormatFlags.
+     * 
+ * + * uint32 format_flags = 1; + */ + int getFormatFlags(); + + /** + *
+     * The smallest integer allowed for this XML attribute. Only makes sense if the format includes
+     * FormatFlags::INTEGER.
+     * 
+ * + * int32 min_int = 2; + */ + int getMinInt(); + + /** + *
+     * The largest integer allowed for this XML attribute. Only makes sense if the format includes
+     * FormatFlags::INTEGER.
+     * 
+ * + * int32 max_int = 3; + */ + int getMaxInt(); + + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + java.util.List + getSymbolList(); + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + com.android.aapt.Resources.Attribute.Symbol getSymbol(int index); + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + int getSymbolCount(); + } + /** + *
+   * A value that represents an XML attribute and what values it accepts.
+   * 
+ * + * Protobuf type {@code aapt.pb.Attribute} + */ + public static final class Attribute extends + com.google.protobuf.GeneratedMessageLite< + Attribute, Attribute.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Attribute) + AttributeOrBuilder { + private Attribute() { + symbol_ = emptyProtobufList(); + } + /** + *
+     * Bitmask of formats allowed for an attribute.
+     * 
+ * + * Protobuf enum {@code aapt.pb.Attribute.FormatFlags} + */ + public enum FormatFlags + implements com.google.protobuf.Internal.EnumLite { + /** + *
+       * Proto3 requires a default of 0.
+       * 
+ * + * NONE = 0; + */ + NONE(0), + /** + *
+       * Allows any type except ENUM and FLAGS.
+       * 
+ * + * ANY = 65535; + */ + ANY(65535), + /** + *
+       * Allows Reference values.
+       * 
+ * + * REFERENCE = 1; + */ + REFERENCE(1), + /** + *
+       * Allows String/StyledString values.
+       * 
+ * + * STRING = 2; + */ + STRING(2), + /** + *
+       * Allows any integer BinaryPrimitive values.
+       * 
+ * + * INTEGER = 4; + */ + INTEGER(4), + /** + *
+       * Allows any boolean BinaryPrimitive values.
+       * 
+ * + * BOOLEAN = 8; + */ + BOOLEAN(8), + /** + *
+       * Allows any color BinaryPrimitive values.
+       * 
+ * + * COLOR = 16; + */ + COLOR(16), + /** + *
+       * Allows any float BinaryPrimitive values.
+       * 
+ * + * FLOAT = 32; + */ + FLOAT(32), + /** + *
+       * Allows any dimension BinaryPrimitive values.
+       * 
+ * + * DIMENSION = 64; + */ + DIMENSION(64), + /** + *
+       * Allows any fraction BinaryPrimitive values.
+       * 
+ * + * FRACTION = 128; + */ + FRACTION(128), + /** + *
+       * Allows enums that are defined in the Attribute's symbols.
+       * 
+ * + * ENUM = 65536; + */ + ENUM(65536), + /** + *
+       * ENUM and FLAGS cannot BOTH be set.
+       * 
+ * + * FLAGS = 131072; + */ + FLAGS(131072), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Proto3 requires a default of 0.
+       * 
+ * + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + /** + *
+       * Allows any type except ENUM and FLAGS.
+       * 
+ * + * ANY = 65535; + */ + public static final int ANY_VALUE = 65535; + /** + *
+       * Allows Reference values.
+       * 
+ * + * REFERENCE = 1; + */ + public static final int REFERENCE_VALUE = 1; + /** + *
+       * Allows String/StyledString values.
+       * 
+ * + * STRING = 2; + */ + public static final int STRING_VALUE = 2; + /** + *
+       * Allows any integer BinaryPrimitive values.
+       * 
+ * + * INTEGER = 4; + */ + public static final int INTEGER_VALUE = 4; + /** + *
+       * Allows any boolean BinaryPrimitive values.
+       * 
+ * + * BOOLEAN = 8; + */ + public static final int BOOLEAN_VALUE = 8; + /** + *
+       * Allows any color BinaryPrimitive values.
+       * 
+ * + * COLOR = 16; + */ + public static final int COLOR_VALUE = 16; + /** + *
+       * Allows any float BinaryPrimitive values.
+       * 
+ * + * FLOAT = 32; + */ + public static final int FLOAT_VALUE = 32; + /** + *
+       * Allows any dimension BinaryPrimitive values.
+       * 
+ * + * DIMENSION = 64; + */ + public static final int DIMENSION_VALUE = 64; + /** + *
+       * Allows any fraction BinaryPrimitive values.
+       * 
+ * + * FRACTION = 128; + */ + public static final int FRACTION_VALUE = 128; + /** + *
+       * Allows enums that are defined in the Attribute's symbols.
+       * 
+ * + * ENUM = 65536; + */ + public static final int ENUM_VALUE = 65536; + /** + *
+       * ENUM and FLAGS cannot BOTH be set.
+       * 
+ * + * FLAGS = 131072; + */ + public static final int FLAGS_VALUE = 131072; + + + @java.lang.Override + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FormatFlags valueOf(int value) { + return forNumber(value); + } + + public static FormatFlags forNumber(int value) { + switch (value) { + case 0: return NONE; + case 65535: return ANY; + case 1: return REFERENCE; + case 2: return STRING; + case 4: return INTEGER; + case 8: return BOOLEAN; + case 16: return COLOR; + case 32: return FLOAT; + case 64: return DIMENSION; + case 128: return FRACTION; + case 65536: return ENUM; + case 131072: return FLAGS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FormatFlags> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override + public FormatFlags findValueByNumber(int number) { + return FormatFlags.forNumber(number); + } + }; + + public static com.google.protobuf.Internal.EnumVerifier + internalGetVerifier() { + return FormatFlagsVerifier.INSTANCE; + } + + private static final class FormatFlagsVerifier implements + com.google.protobuf.Internal.EnumVerifier { + static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new FormatFlagsVerifier(); + @java.lang.Override + public boolean isInRange(int number) { + return FormatFlags.forNumber(number) != null; + } + }; + + private final int value; + + private FormatFlags(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:aapt.pb.Attribute.FormatFlags) + } + + public interface SymbolOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Attribute.Symbol) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+       * Where the enum/flag item was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + boolean hasSource(); + /** + *
+       * Where the enum/flag item was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + com.android.aapt.Resources.Source getSource(); + + /** + *
+       * Any comments associated with the enum or flag.
+       * 
+ * + * string comment = 2; + */ + java.lang.String getComment(); + /** + *
+       * Any comments associated with the enum or flag.
+       * 
+ * + * string comment = 2; + */ + com.google.protobuf.ByteString + getCommentBytes(); + + /** + *
+       * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+       * values.
+       * 
+ * + * .aapt.pb.Reference name = 3; + */ + boolean hasName(); + /** + *
+       * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+       * values.
+       * 
+ * + * .aapt.pb.Reference name = 3; + */ + com.android.aapt.Resources.Reference getName(); + + /** + *
+       * The value of the enum/flag.
+       * 
+ * + * uint32 value = 4; + */ + int getValue(); + } + /** + *
+     * A Symbol used to represent an enum or a flag.
+     * 
+ * + * Protobuf type {@code aapt.pb.Attribute.Symbol} + */ + public static final class Symbol extends + com.google.protobuf.GeneratedMessageLite< + Symbol, Symbol.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Attribute.Symbol) + SymbolOrBuilder { + private Symbol() { + comment_ = ""; + } + public static final int SOURCE_FIELD_NUMBER = 1; + private com.android.aapt.Resources.Source source_; + /** + *
+       * Where the enum/flag item was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public boolean hasSource() { + return source_ != null; + } + /** + *
+       * Where the enum/flag item was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return source_ == null ? com.android.aapt.Resources.Source.getDefaultInstance() : source_; + } + /** + *
+       * Where the enum/flag item was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + private void setSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + + } + /** + *
+       * Where the enum/flag item was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + private void setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + source_ = builderForValue.build(); + + } + /** + *
+       * Where the enum/flag item was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + if (source_ != null && + source_ != com.android.aapt.Resources.Source.getDefaultInstance()) { + source_ = + com.android.aapt.Resources.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + + } + /** + *
+       * Where the enum/flag item was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + private void clearSource() { source_ = null; + + } + + public static final int COMMENT_FIELD_NUMBER = 2; + private java.lang.String comment_; + /** + *
+       * Any comments associated with the enum or flag.
+       * 
+ * + * string comment = 2; + */ + @java.lang.Override + public java.lang.String getComment() { + return comment_; + } + /** + *
+       * Any comments associated with the enum or flag.
+       * 
+ * + * string comment = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(comment_); + } + /** + *
+       * Any comments associated with the enum or flag.
+       * 
+ * + * string comment = 2; + */ + private void setComment( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + comment_ = value; + } + /** + *
+       * Any comments associated with the enum or flag.
+       * 
+ * + * string comment = 2; + */ + private void clearComment() { + + comment_ = getDefaultInstance().getComment(); + } + /** + *
+       * Any comments associated with the enum or flag.
+       * 
+ * + * string comment = 2; + */ + private void setCommentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + comment_ = value.toStringUtf8(); + } + + public static final int NAME_FIELD_NUMBER = 3; + private com.android.aapt.Resources.Reference name_; + /** + *
+       * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+       * values.
+       * 
+ * + * .aapt.pb.Reference name = 3; + */ + @java.lang.Override + public boolean hasName() { + return name_ != null; + } + /** + *
+       * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+       * values.
+       * 
+ * + * .aapt.pb.Reference name = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Reference getName() { + return name_ == null ? com.android.aapt.Resources.Reference.getDefaultInstance() : name_; + } + /** + *
+       * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+       * values.
+       * 
+ * + * .aapt.pb.Reference name = 3; + */ + private void setName(com.android.aapt.Resources.Reference value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + + } + /** + *
+       * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+       * values.
+       * 
+ * + * .aapt.pb.Reference name = 3; + */ + private void setName( + com.android.aapt.Resources.Reference.Builder builderForValue) { + name_ = builderForValue.build(); + + } + /** + *
+       * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+       * values.
+       * 
+ * + * .aapt.pb.Reference name = 3; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeName(com.android.aapt.Resources.Reference value) { + if (value == null) { + throw new NullPointerException(); + } + if (name_ != null && + name_ != com.android.aapt.Resources.Reference.getDefaultInstance()) { + name_ = + com.android.aapt.Resources.Reference.newBuilder(name_).mergeFrom(value).buildPartial(); + } else { + name_ = value; + } + + } + /** + *
+       * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+       * values.
+       * 
+ * + * .aapt.pb.Reference name = 3; + */ + private void clearName() { name_ = null; + + } + + public static final int VALUE_FIELD_NUMBER = 4; + private int value_; + /** + *
+       * The value of the enum/flag.
+       * 
+ * + * uint32 value = 4; + */ + @java.lang.Override + public int getValue() { + return value_; + } + /** + *
+       * The value of the enum/flag.
+       * 
+ * + * uint32 value = 4; + */ + private void setValue(int value) { + + value_ = value; + } + /** + *
+       * The value of the enum/flag.
+       * 
+ * + * uint32 value = 4; + */ + private void clearValue() { + + value_ = 0; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (source_ != null) { + output.writeMessage(1, getSource()); + } + if (!comment_.isEmpty()) { + output.writeString(2, getComment()); + } + if (name_ != null) { + output.writeMessage(3, getName()); + } + if (value_ != 0) { + output.writeUInt32(4, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSource()); + } + if (!comment_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getComment()); + } + if (name_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getName()); + } + if (value_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Attribute.Symbol parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Attribute.Symbol parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Attribute.Symbol parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Attribute.Symbol parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Attribute.Symbol parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Attribute.Symbol parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Attribute.Symbol parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Attribute.Symbol parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Attribute.Symbol parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Attribute.Symbol parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Attribute.Symbol parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Attribute.Symbol parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Attribute.Symbol prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+       * A Symbol used to represent an enum or a flag.
+       * 
+ * + * Protobuf type {@code aapt.pb.Attribute.Symbol} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Attribute.Symbol, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Attribute.Symbol) + com.android.aapt.Resources.Attribute.SymbolOrBuilder { + // Construct using com.android.aapt.Resources.Attribute.Symbol.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+         * Where the enum/flag item was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public boolean hasSource() { + return instance.hasSource(); + } + /** + *
+         * Where the enum/flag item was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return instance.getSource(); + } + /** + *
+         * Where the enum/flag item was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder setSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.setSource(value); + return this; + } + /** + *
+         * Where the enum/flag item was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + copyOnWrite(); + instance.setSource(builderForValue); + return this; + } + /** + *
+         * Where the enum/flag item was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder mergeSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.mergeSource(value); + return this; + } + /** + *
+         * Where the enum/flag item was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder clearSource() { copyOnWrite(); + instance.clearSource(); + return this; + } + + /** + *
+         * Any comments associated with the enum or flag.
+         * 
+ * + * string comment = 2; + */ + @java.lang.Override + public java.lang.String getComment() { + return instance.getComment(); + } + /** + *
+         * Any comments associated with the enum or flag.
+         * 
+ * + * string comment = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return instance.getCommentBytes(); + } + /** + *
+         * Any comments associated with the enum or flag.
+         * 
+ * + * string comment = 2; + */ + public Builder setComment( + java.lang.String value) { + copyOnWrite(); + instance.setComment(value); + return this; + } + /** + *
+         * Any comments associated with the enum or flag.
+         * 
+ * + * string comment = 2; + */ + public Builder clearComment() { + copyOnWrite(); + instance.clearComment(); + return this; + } + /** + *
+         * Any comments associated with the enum or flag.
+         * 
+ * + * string comment = 2; + */ + public Builder setCommentBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setCommentBytes(value); + return this; + } + + /** + *
+         * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+         * values.
+         * 
+ * + * .aapt.pb.Reference name = 3; + */ + @java.lang.Override + public boolean hasName() { + return instance.hasName(); + } + /** + *
+         * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+         * values.
+         * 
+ * + * .aapt.pb.Reference name = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Reference getName() { + return instance.getName(); + } + /** + *
+         * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+         * values.
+         * 
+ * + * .aapt.pb.Reference name = 3; + */ + public Builder setName(com.android.aapt.Resources.Reference value) { + copyOnWrite(); + instance.setName(value); + return this; + } + /** + *
+         * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+         * values.
+         * 
+ * + * .aapt.pb.Reference name = 3; + */ + public Builder setName( + com.android.aapt.Resources.Reference.Builder builderForValue) { + copyOnWrite(); + instance.setName(builderForValue); + return this; + } + /** + *
+         * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+         * values.
+         * 
+ * + * .aapt.pb.Reference name = 3; + */ + public Builder mergeName(com.android.aapt.Resources.Reference value) { + copyOnWrite(); + instance.mergeName(value); + return this; + } + /** + *
+         * The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
+         * values.
+         * 
+ * + * .aapt.pb.Reference name = 3; + */ + public Builder clearName() { copyOnWrite(); + instance.clearName(); + return this; + } + + /** + *
+         * The value of the enum/flag.
+         * 
+ * + * uint32 value = 4; + */ + @java.lang.Override + public int getValue() { + return instance.getValue(); + } + /** + *
+         * The value of the enum/flag.
+         * 
+ * + * uint32 value = 4; + */ + public Builder setValue(int value) { + copyOnWrite(); + instance.setValue(value); + return this; + } + /** + *
+         * The value of the enum/flag.
+         * 
+ * + * uint32 value = 4; + */ + public Builder clearValue() { + copyOnWrite(); + instance.clearValue(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Attribute.Symbol) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Attribute.Symbol(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Attribute.Symbol other = (com.android.aapt.Resources.Attribute.Symbol) arg1; + source_ = visitor.visitMessage(source_, other.source_); + comment_ = visitor.visitString(!comment_.isEmpty(), comment_, + !other.comment_.isEmpty(), other.comment_); + name_ = visitor.visitMessage(name_, other.name_); + value_ = visitor.visitInt(value_ != 0, value_, + other.value_ != 0, other.value_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.android.aapt.Resources.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + comment_ = s; + break; + } + case 26: { + com.android.aapt.Resources.Reference.Builder subBuilder = null; + if (name_ != null) { + subBuilder = name_.toBuilder(); + } + name_ = input.readMessage(com.android.aapt.Resources.Reference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(name_); + name_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + value_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Attribute.Symbol.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Attribute.Symbol) + private static final com.android.aapt.Resources.Attribute.Symbol DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Symbol(); + } + + public static com.android.aapt.Resources.Attribute.Symbol getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + private int bitField0_; + public static final int FORMAT_FLAGS_FIELD_NUMBER = 1; + private int formatFlags_; + /** + *
+     * A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
+     * enum FormatFlags.
+     * 
+ * + * uint32 format_flags = 1; + */ + @java.lang.Override + public int getFormatFlags() { + return formatFlags_; + } + /** + *
+     * A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
+     * enum FormatFlags.
+     * 
+ * + * uint32 format_flags = 1; + */ + private void setFormatFlags(int value) { + + formatFlags_ = value; + } + /** + *
+     * A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
+     * enum FormatFlags.
+     * 
+ * + * uint32 format_flags = 1; + */ + private void clearFormatFlags() { + + formatFlags_ = 0; + } + + public static final int MIN_INT_FIELD_NUMBER = 2; + private int minInt_; + /** + *
+     * The smallest integer allowed for this XML attribute. Only makes sense if the format includes
+     * FormatFlags::INTEGER.
+     * 
+ * + * int32 min_int = 2; + */ + @java.lang.Override + public int getMinInt() { + return minInt_; + } + /** + *
+     * The smallest integer allowed for this XML attribute. Only makes sense if the format includes
+     * FormatFlags::INTEGER.
+     * 
+ * + * int32 min_int = 2; + */ + private void setMinInt(int value) { + + minInt_ = value; + } + /** + *
+     * The smallest integer allowed for this XML attribute. Only makes sense if the format includes
+     * FormatFlags::INTEGER.
+     * 
+ * + * int32 min_int = 2; + */ + private void clearMinInt() { + + minInt_ = 0; + } + + public static final int MAX_INT_FIELD_NUMBER = 3; + private int maxInt_; + /** + *
+     * The largest integer allowed for this XML attribute. Only makes sense if the format includes
+     * FormatFlags::INTEGER.
+     * 
+ * + * int32 max_int = 3; + */ + @java.lang.Override + public int getMaxInt() { + return maxInt_; + } + /** + *
+     * The largest integer allowed for this XML attribute. Only makes sense if the format includes
+     * FormatFlags::INTEGER.
+     * 
+ * + * int32 max_int = 3; + */ + private void setMaxInt(int value) { + + maxInt_ = value; + } + /** + *
+     * The largest integer allowed for this XML attribute. Only makes sense if the format includes
+     * FormatFlags::INTEGER.
+     * 
+ * + * int32 max_int = 3; + */ + private void clearMaxInt() { + + maxInt_ = 0; + } + + public static final int SYMBOL_FIELD_NUMBER = 4; + private com.google.protobuf.Internal.ProtobufList symbol_; + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + @java.lang.Override + public java.util.List getSymbolList() { + return symbol_; + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public java.util.List + getSymbolOrBuilderList() { + return symbol_; + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + @java.lang.Override + public int getSymbolCount() { + return symbol_.size(); + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.Attribute.Symbol getSymbol(int index) { + return symbol_.get(index); + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public com.android.aapt.Resources.Attribute.SymbolOrBuilder getSymbolOrBuilder( + int index) { + return symbol_.get(index); + } + private void ensureSymbolIsMutable() { + if (!symbol_.isModifiable()) { + symbol_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(symbol_); + } + } + + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + private void setSymbol( + int index, com.android.aapt.Resources.Attribute.Symbol value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSymbolIsMutable(); + symbol_.set(index, value); + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + private void setSymbol( + int index, com.android.aapt.Resources.Attribute.Symbol.Builder builderForValue) { + ensureSymbolIsMutable(); + symbol_.set(index, builderForValue.build()); + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + private void addSymbol(com.android.aapt.Resources.Attribute.Symbol value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSymbolIsMutable(); + symbol_.add(value); + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + private void addSymbol( + int index, com.android.aapt.Resources.Attribute.Symbol value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSymbolIsMutable(); + symbol_.add(index, value); + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + private void addSymbol( + com.android.aapt.Resources.Attribute.Symbol.Builder builderForValue) { + ensureSymbolIsMutable(); + symbol_.add(builderForValue.build()); + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + private void addSymbol( + int index, com.android.aapt.Resources.Attribute.Symbol.Builder builderForValue) { + ensureSymbolIsMutable(); + symbol_.add(index, builderForValue.build()); + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + private void addAllSymbol( + java.lang.Iterable values) { + ensureSymbolIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, symbol_); + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + private void clearSymbol() { + symbol_ = emptyProtobufList(); + } + /** + *
+     * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+     * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+     * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + private void removeSymbol(int index) { + ensureSymbolIsMutable(); + symbol_.remove(index); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (formatFlags_ != 0) { + output.writeUInt32(1, formatFlags_); + } + if (minInt_ != 0) { + output.writeInt32(2, minInt_); + } + if (maxInt_ != 0) { + output.writeInt32(3, maxInt_); + } + for (int i = 0; i < symbol_.size(); i++) { + output.writeMessage(4, symbol_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (formatFlags_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, formatFlags_); + } + if (minInt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minInt_); + } + if (maxInt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxInt_); + } + for (int i = 0; i < symbol_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, symbol_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Attribute parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Attribute parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Attribute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Attribute parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Attribute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Attribute parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Attribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Attribute parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Attribute parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Attribute parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Attribute parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Attribute parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Attribute prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A value that represents an XML attribute and what values it accepts.
+     * 
+ * + * Protobuf type {@code aapt.pb.Attribute} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Attribute, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Attribute) + com.android.aapt.Resources.AttributeOrBuilder { + // Construct using com.android.aapt.Resources.Attribute.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
+       * enum FormatFlags.
+       * 
+ * + * uint32 format_flags = 1; + */ + @java.lang.Override + public int getFormatFlags() { + return instance.getFormatFlags(); + } + /** + *
+       * A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
+       * enum FormatFlags.
+       * 
+ * + * uint32 format_flags = 1; + */ + public Builder setFormatFlags(int value) { + copyOnWrite(); + instance.setFormatFlags(value); + return this; + } + /** + *
+       * A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
+       * enum FormatFlags.
+       * 
+ * + * uint32 format_flags = 1; + */ + public Builder clearFormatFlags() { + copyOnWrite(); + instance.clearFormatFlags(); + return this; + } + + /** + *
+       * The smallest integer allowed for this XML attribute. Only makes sense if the format includes
+       * FormatFlags::INTEGER.
+       * 
+ * + * int32 min_int = 2; + */ + @java.lang.Override + public int getMinInt() { + return instance.getMinInt(); + } + /** + *
+       * The smallest integer allowed for this XML attribute. Only makes sense if the format includes
+       * FormatFlags::INTEGER.
+       * 
+ * + * int32 min_int = 2; + */ + public Builder setMinInt(int value) { + copyOnWrite(); + instance.setMinInt(value); + return this; + } + /** + *
+       * The smallest integer allowed for this XML attribute. Only makes sense if the format includes
+       * FormatFlags::INTEGER.
+       * 
+ * + * int32 min_int = 2; + */ + public Builder clearMinInt() { + copyOnWrite(); + instance.clearMinInt(); + return this; + } + + /** + *
+       * The largest integer allowed for this XML attribute. Only makes sense if the format includes
+       * FormatFlags::INTEGER.
+       * 
+ * + * int32 max_int = 3; + */ + @java.lang.Override + public int getMaxInt() { + return instance.getMaxInt(); + } + /** + *
+       * The largest integer allowed for this XML attribute. Only makes sense if the format includes
+       * FormatFlags::INTEGER.
+       * 
+ * + * int32 max_int = 3; + */ + public Builder setMaxInt(int value) { + copyOnWrite(); + instance.setMaxInt(value); + return this; + } + /** + *
+       * The largest integer allowed for this XML attribute. Only makes sense if the format includes
+       * FormatFlags::INTEGER.
+       * 
+ * + * int32 max_int = 3; + */ + public Builder clearMaxInt() { + copyOnWrite(); + instance.clearMaxInt(); + return this; + } + + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + @java.lang.Override + public java.util.List getSymbolList() { + return java.util.Collections.unmodifiableList( + instance.getSymbolList()); + } + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + @java.lang.Override + public int getSymbolCount() { + return instance.getSymbolCount(); + }/** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.Attribute.Symbol getSymbol(int index) { + return instance.getSymbol(index); + } + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public Builder setSymbol( + int index, com.android.aapt.Resources.Attribute.Symbol value) { + copyOnWrite(); + instance.setSymbol(index, value); + return this; + } + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public Builder setSymbol( + int index, com.android.aapt.Resources.Attribute.Symbol.Builder builderForValue) { + copyOnWrite(); + instance.setSymbol(index, builderForValue); + return this; + } + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public Builder addSymbol(com.android.aapt.Resources.Attribute.Symbol value) { + copyOnWrite(); + instance.addSymbol(value); + return this; + } + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public Builder addSymbol( + int index, com.android.aapt.Resources.Attribute.Symbol value) { + copyOnWrite(); + instance.addSymbol(index, value); + return this; + } + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public Builder addSymbol( + com.android.aapt.Resources.Attribute.Symbol.Builder builderForValue) { + copyOnWrite(); + instance.addSymbol(builderForValue); + return this; + } + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public Builder addSymbol( + int index, com.android.aapt.Resources.Attribute.Symbol.Builder builderForValue) { + copyOnWrite(); + instance.addSymbol(index, builderForValue); + return this; + } + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public Builder addAllSymbol( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllSymbol(values); + return this; + } + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public Builder clearSymbol() { + copyOnWrite(); + instance.clearSymbol(); + return this; + } + /** + *
+       * The set of enums/flags defined in this attribute. Only makes sense if the format includes
+       * either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
+       * 
+ * + * repeated .aapt.pb.Attribute.Symbol symbol = 4; + */ + public Builder removeSymbol(int index) { + copyOnWrite(); + instance.removeSymbol(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Attribute) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Attribute(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + symbol_.makeImmutable(); + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Attribute other = (com.android.aapt.Resources.Attribute) arg1; + formatFlags_ = visitor.visitInt(formatFlags_ != 0, formatFlags_, + other.formatFlags_ != 0, other.formatFlags_); + minInt_ = visitor.visitInt(minInt_ != 0, minInt_, + other.minInt_ != 0, other.minInt_); + maxInt_ = visitor.visitInt(maxInt_ != 0, maxInt_, + other.maxInt_ != 0, other.maxInt_); + symbol_= visitor.visitList(symbol_, other.symbol_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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: { + + formatFlags_ = input.readUInt32(); + break; + } + case 16: { + + minInt_ = input.readInt32(); + break; + } + case 24: { + + maxInt_ = input.readInt32(); + break; + } + case 34: { + if (!symbol_.isModifiable()) { + symbol_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(symbol_); + } + symbol_.add( + input.readMessage(com.android.aapt.Resources.Attribute.Symbol.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Attribute.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Attribute) + private static final com.android.aapt.Resources.Attribute DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Attribute(); + } + + public static com.android.aapt.Resources.Attribute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface StyleOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Style) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+     * The optinal style from which this style inherits attributes.
+     * 
+ * + * .aapt.pb.Reference parent = 1; + */ + boolean hasParent(); + /** + *
+     * The optinal style from which this style inherits attributes.
+     * 
+ * + * .aapt.pb.Reference parent = 1; + */ + com.android.aapt.Resources.Reference getParent(); + + /** + *
+     * The source file information of the parent inheritance declaration.
+     * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + boolean hasParentSource(); + /** + *
+     * The source file information of the parent inheritance declaration.
+     * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + com.android.aapt.Resources.Source getParentSource(); + + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + java.util.List + getEntryList(); + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + com.android.aapt.Resources.Style.Entry getEntry(int index); + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + int getEntryCount(); + } + /** + *
+   * A value that represents a style.
+   * 
+ * + * Protobuf type {@code aapt.pb.Style} + */ + public static final class Style extends + com.google.protobuf.GeneratedMessageLite< + Style, Style.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Style) + StyleOrBuilder { + private Style() { + entry_ = emptyProtobufList(); + } + public interface EntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:aapt.pb.Style.Entry) + com.google.protobuf.MessageLiteOrBuilder { + + /** + *
+       * Where the entry was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + boolean hasSource(); + /** + *
+       * Where the entry was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + com.android.aapt.Resources.Source getSource(); + + /** + *
+       * Any comments associated with the entry.
+       * 
+ * + * string comment = 2; + */ + java.lang.String getComment(); + /** + *
+       * Any comments associated with the entry.
+       * 
+ * + * string comment = 2; + */ + com.google.protobuf.ByteString + getCommentBytes(); + + /** + *
+       * A reference to the XML attribute.
+       * 
+ * + * .aapt.pb.Reference key = 3; + */ + boolean hasKey(); + /** + *
+       * A reference to the XML attribute.
+       * 
+ * + * .aapt.pb.Reference key = 3; + */ + com.android.aapt.Resources.Reference getKey(); + + /** + *
+       * The Item defined for this XML attribute.
+       * 
+ * + * .aapt.pb.Item item = 4; + */ + boolean hasItem(); + /** + *
+       * The Item defined for this XML attribute.
+       * 
+ * + * .aapt.pb.Item item = 4; + */ + com.android.aapt.Resources.Item getItem(); + } + /** + *
+     * An XML attribute/value pair defined in the style.
+     * 
+ * + * Protobuf type {@code aapt.pb.Style.Entry} + */ + public static final class Entry extends + com.google.protobuf.GeneratedMessageLite< + Entry, Entry.Builder> implements + // @@protoc_insertion_point(message_implements:aapt.pb.Style.Entry) + EntryOrBuilder { + private Entry() { + comment_ = ""; + } + public static final int SOURCE_FIELD_NUMBER = 1; + private com.android.aapt.Resources.Source source_; + /** + *
+       * Where the entry was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public boolean hasSource() { + return source_ != null; + } + /** + *
+       * Where the entry was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return source_ == null ? com.android.aapt.Resources.Source.getDefaultInstance() : source_; + } + /** + *
+       * Where the entry was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + private void setSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + + } + /** + *
+       * Where the entry was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + private void setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + source_ = builderForValue.build(); + + } + /** + *
+       * Where the entry was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + if (source_ != null && + source_ != com.android.aapt.Resources.Source.getDefaultInstance()) { + source_ = + com.android.aapt.Resources.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + + } + /** + *
+       * Where the entry was defined.
+       * 
+ * + * .aapt.pb.Source source = 1; + */ + private void clearSource() { source_ = null; + + } + + public static final int COMMENT_FIELD_NUMBER = 2; + private java.lang.String comment_; + /** + *
+       * Any comments associated with the entry.
+       * 
+ * + * string comment = 2; + */ + @java.lang.Override + public java.lang.String getComment() { + return comment_; + } + /** + *
+       * Any comments associated with the entry.
+       * 
+ * + * string comment = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(comment_); + } + /** + *
+       * Any comments associated with the entry.
+       * 
+ * + * string comment = 2; + */ + private void setComment( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + comment_ = value; + } + /** + *
+       * Any comments associated with the entry.
+       * 
+ * + * string comment = 2; + */ + private void clearComment() { + + comment_ = getDefaultInstance().getComment(); + } + /** + *
+       * Any comments associated with the entry.
+       * 
+ * + * string comment = 2; + */ + private void setCommentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + comment_ = value.toStringUtf8(); + } + + public static final int KEY_FIELD_NUMBER = 3; + private com.android.aapt.Resources.Reference key_; + /** + *
+       * A reference to the XML attribute.
+       * 
+ * + * .aapt.pb.Reference key = 3; + */ + @java.lang.Override + public boolean hasKey() { + return key_ != null; + } + /** + *
+       * A reference to the XML attribute.
+       * 
+ * + * .aapt.pb.Reference key = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Reference getKey() { + return key_ == null ? com.android.aapt.Resources.Reference.getDefaultInstance() : key_; + } + /** + *
+       * A reference to the XML attribute.
+       * 
+ * + * .aapt.pb.Reference key = 3; + */ + private void setKey(com.android.aapt.Resources.Reference value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + + } + /** + *
+       * A reference to the XML attribute.
+       * 
+ * + * .aapt.pb.Reference key = 3; + */ + private void setKey( + com.android.aapt.Resources.Reference.Builder builderForValue) { + key_ = builderForValue.build(); + + } + /** + *
+       * A reference to the XML attribute.
+       * 
+ * + * .aapt.pb.Reference key = 3; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeKey(com.android.aapt.Resources.Reference value) { + if (value == null) { + throw new NullPointerException(); + } + if (key_ != null && + key_ != com.android.aapt.Resources.Reference.getDefaultInstance()) { + key_ = + com.android.aapt.Resources.Reference.newBuilder(key_).mergeFrom(value).buildPartial(); + } else { + key_ = value; + } + + } + /** + *
+       * A reference to the XML attribute.
+       * 
+ * + * .aapt.pb.Reference key = 3; + */ + private void clearKey() { key_ = null; + + } + + public static final int ITEM_FIELD_NUMBER = 4; + private com.android.aapt.Resources.Item item_; + /** + *
+       * The Item defined for this XML attribute.
+       * 
+ * + * .aapt.pb.Item item = 4; + */ + @java.lang.Override + public boolean hasItem() { + return item_ != null; + } + /** + *
+       * The Item defined for this XML attribute.
+       * 
+ * + * .aapt.pb.Item item = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.Item getItem() { + return item_ == null ? com.android.aapt.Resources.Item.getDefaultInstance() : item_; + } + /** + *
+       * The Item defined for this XML attribute.
+       * 
+ * + * .aapt.pb.Item item = 4; + */ + private void setItem(com.android.aapt.Resources.Item value) { + if (value == null) { + throw new NullPointerException(); + } + item_ = value; + + } + /** + *
+       * The Item defined for this XML attribute.
+       * 
+ * + * .aapt.pb.Item item = 4; + */ + private void setItem( + com.android.aapt.Resources.Item.Builder builderForValue) { + item_ = builderForValue.build(); + + } + /** + *
+       * The Item defined for this XML attribute.
+       * 
+ * + * .aapt.pb.Item item = 4; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeItem(com.android.aapt.Resources.Item value) { + if (value == null) { + throw new NullPointerException(); + } + if (item_ != null && + item_ != com.android.aapt.Resources.Item.getDefaultInstance()) { + item_ = + com.android.aapt.Resources.Item.newBuilder(item_).mergeFrom(value).buildPartial(); + } else { + item_ = value; + } + + } + /** + *
+       * The Item defined for this XML attribute.
+       * 
+ * + * .aapt.pb.Item item = 4; + */ + private void clearItem() { item_ = null; + + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (source_ != null) { + output.writeMessage(1, getSource()); + } + if (!comment_.isEmpty()) { + output.writeString(2, getComment()); + } + if (key_ != null) { + output.writeMessage(3, getKey()); + } + if (item_ != null) { + output.writeMessage(4, getItem()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSource()); + } + if (!comment_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getComment()); + } + if (key_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getKey()); + } + if (item_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getItem()); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Style.Entry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Style.Entry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Style.Entry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Style.Entry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Style.Entry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Style.Entry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Style.Entry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Style.Entry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Style.Entry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Style.Entry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Style.Entry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Style.Entry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Style.Entry prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+       * An XML attribute/value pair defined in the style.
+       * 
+ * + * Protobuf type {@code aapt.pb.Style.Entry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Style.Entry, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Style.Entry) + com.android.aapt.Resources.Style.EntryOrBuilder { + // Construct using com.android.aapt.Resources.Style.Entry.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+         * Where the entry was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public boolean hasSource() { + return instance.hasSource(); + } + /** + *
+         * Where the entry was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getSource() { + return instance.getSource(); + } + /** + *
+         * Where the entry was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder setSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.setSource(value); + return this; + } + /** + *
+         * Where the entry was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder setSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + copyOnWrite(); + instance.setSource(builderForValue); + return this; + } + /** + *
+         * Where the entry was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder mergeSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.mergeSource(value); + return this; + } + /** + *
+         * Where the entry was defined.
+         * 
+ * + * .aapt.pb.Source source = 1; + */ + public Builder clearSource() { copyOnWrite(); + instance.clearSource(); + return this; + } + + /** + *
+         * Any comments associated with the entry.
+         * 
+ * + * string comment = 2; + */ + @java.lang.Override + public java.lang.String getComment() { + return instance.getComment(); + } + /** + *
+         * Any comments associated with the entry.
+         * 
+ * + * string comment = 2; + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommentBytes() { + return instance.getCommentBytes(); + } + /** + *
+         * Any comments associated with the entry.
+         * 
+ * + * string comment = 2; + */ + public Builder setComment( + java.lang.String value) { + copyOnWrite(); + instance.setComment(value); + return this; + } + /** + *
+         * Any comments associated with the entry.
+         * 
+ * + * string comment = 2; + */ + public Builder clearComment() { + copyOnWrite(); + instance.clearComment(); + return this; + } + /** + *
+         * Any comments associated with the entry.
+         * 
+ * + * string comment = 2; + */ + public Builder setCommentBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setCommentBytes(value); + return this; + } + + /** + *
+         * A reference to the XML attribute.
+         * 
+ * + * .aapt.pb.Reference key = 3; + */ + @java.lang.Override + public boolean hasKey() { + return instance.hasKey(); + } + /** + *
+         * A reference to the XML attribute.
+         * 
+ * + * .aapt.pb.Reference key = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Reference getKey() { + return instance.getKey(); + } + /** + *
+         * A reference to the XML attribute.
+         * 
+ * + * .aapt.pb.Reference key = 3; + */ + public Builder setKey(com.android.aapt.Resources.Reference value) { + copyOnWrite(); + instance.setKey(value); + return this; + } + /** + *
+         * A reference to the XML attribute.
+         * 
+ * + * .aapt.pb.Reference key = 3; + */ + public Builder setKey( + com.android.aapt.Resources.Reference.Builder builderForValue) { + copyOnWrite(); + instance.setKey(builderForValue); + return this; + } + /** + *
+         * A reference to the XML attribute.
+         * 
+ * + * .aapt.pb.Reference key = 3; + */ + public Builder mergeKey(com.android.aapt.Resources.Reference value) { + copyOnWrite(); + instance.mergeKey(value); + return this; + } + /** + *
+         * A reference to the XML attribute.
+         * 
+ * + * .aapt.pb.Reference key = 3; + */ + public Builder clearKey() { copyOnWrite(); + instance.clearKey(); + return this; + } + + /** + *
+         * The Item defined for this XML attribute.
+         * 
+ * + * .aapt.pb.Item item = 4; + */ + @java.lang.Override + public boolean hasItem() { + return instance.hasItem(); + } + /** + *
+         * The Item defined for this XML attribute.
+         * 
+ * + * .aapt.pb.Item item = 4; + */ + @java.lang.Override + public com.android.aapt.Resources.Item getItem() { + return instance.getItem(); + } + /** + *
+         * The Item defined for this XML attribute.
+         * 
+ * + * .aapt.pb.Item item = 4; + */ + public Builder setItem(com.android.aapt.Resources.Item value) { + copyOnWrite(); + instance.setItem(value); + return this; + } + /** + *
+         * The Item defined for this XML attribute.
+         * 
+ * + * .aapt.pb.Item item = 4; + */ + public Builder setItem( + com.android.aapt.Resources.Item.Builder builderForValue) { + copyOnWrite(); + instance.setItem(builderForValue); + return this; + } + /** + *
+         * The Item defined for this XML attribute.
+         * 
+ * + * .aapt.pb.Item item = 4; + */ + public Builder mergeItem(com.android.aapt.Resources.Item value) { + copyOnWrite(); + instance.mergeItem(value); + return this; + } + /** + *
+         * The Item defined for this XML attribute.
+         * 
+ * + * .aapt.pb.Item item = 4; + */ + public Builder clearItem() { copyOnWrite(); + instance.clearItem(); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Style.Entry) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Style.Entry(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Style.Entry other = (com.android.aapt.Resources.Style.Entry) arg1; + source_ = visitor.visitMessage(source_, other.source_); + comment_ = visitor.visitString(!comment_.isEmpty(), comment_, + !other.comment_.isEmpty(), other.comment_); + key_ = visitor.visitMessage(key_, other.key_); + item_ = visitor.visitMessage(item_, other.item_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.android.aapt.Resources.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + comment_ = s; + break; + } + case 26: { + com.android.aapt.Resources.Reference.Builder subBuilder = null; + if (key_ != null) { + subBuilder = key_.toBuilder(); + } + key_ = input.readMessage(com.android.aapt.Resources.Reference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(key_); + key_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.android.aapt.Resources.Item.Builder subBuilder = null; + if (item_ != null) { + subBuilder = item_.toBuilder(); + } + item_ = input.readMessage(com.android.aapt.Resources.Item.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(item_); + item_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Style.Entry.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Style.Entry) + private static final com.android.aapt.Resources.Style.Entry DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Entry(); + } + + public static com.android.aapt.Resources.Style.Entry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + private com.android.aapt.Resources.Reference parent_; + /** + *
+     * The optinal style from which this style inherits attributes.
+     * 
+ * + * .aapt.pb.Reference parent = 1; + */ + @java.lang.Override + public boolean hasParent() { + return parent_ != null; + } + /** + *
+     * The optinal style from which this style inherits attributes.
+     * 
+ * + * .aapt.pb.Reference parent = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Reference getParent() { + return parent_ == null ? com.android.aapt.Resources.Reference.getDefaultInstance() : parent_; + } + /** + *
+     * The optinal style from which this style inherits attributes.
+     * 
+ * + * .aapt.pb.Reference parent = 1; + */ + private void setParent(com.android.aapt.Resources.Reference value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + + } + /** + *
+     * The optinal style from which this style inherits attributes.
+     * 
+ * + * .aapt.pb.Reference parent = 1; + */ + private void setParent( + com.android.aapt.Resources.Reference.Builder builderForValue) { + parent_ = builderForValue.build(); + + } + /** + *
+     * The optinal style from which this style inherits attributes.
+     * 
+ * + * .aapt.pb.Reference parent = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeParent(com.android.aapt.Resources.Reference value) { + if (value == null) { + throw new NullPointerException(); + } + if (parent_ != null && + parent_ != com.android.aapt.Resources.Reference.getDefaultInstance()) { + parent_ = + com.android.aapt.Resources.Reference.newBuilder(parent_).mergeFrom(value).buildPartial(); + } else { + parent_ = value; + } + + } + /** + *
+     * The optinal style from which this style inherits attributes.
+     * 
+ * + * .aapt.pb.Reference parent = 1; + */ + private void clearParent() { parent_ = null; + + } + + public static final int PARENT_SOURCE_FIELD_NUMBER = 2; + private com.android.aapt.Resources.Source parentSource_; + /** + *
+     * The source file information of the parent inheritance declaration.
+     * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + @java.lang.Override + public boolean hasParentSource() { + return parentSource_ != null; + } + /** + *
+     * The source file information of the parent inheritance declaration.
+     * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getParentSource() { + return parentSource_ == null ? com.android.aapt.Resources.Source.getDefaultInstance() : parentSource_; + } + /** + *
+     * The source file information of the parent inheritance declaration.
+     * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + private void setParentSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + parentSource_ = value; + + } + /** + *
+     * The source file information of the parent inheritance declaration.
+     * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + private void setParentSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + parentSource_ = builderForValue.build(); + + } + /** + *
+     * The source file information of the parent inheritance declaration.
+     * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeParentSource(com.android.aapt.Resources.Source value) { + if (value == null) { + throw new NullPointerException(); + } + if (parentSource_ != null && + parentSource_ != com.android.aapt.Resources.Source.getDefaultInstance()) { + parentSource_ = + com.android.aapt.Resources.Source.newBuilder(parentSource_).mergeFrom(value).buildPartial(); + } else { + parentSource_ = value; + } + + } + /** + *
+     * The source file information of the parent inheritance declaration.
+     * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + private void clearParentSource() { parentSource_ = null; + + } + + public static final int ENTRY_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.ProtobufList entry_; + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + @java.lang.Override + public java.util.List getEntryList() { + return entry_; + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public java.util.List + getEntryOrBuilderList() { + return entry_; + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + @java.lang.Override + public int getEntryCount() { + return entry_.size(); + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Style.Entry getEntry(int index) { + return entry_.get(index); + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public com.android.aapt.Resources.Style.EntryOrBuilder getEntryOrBuilder( + int index) { + return entry_.get(index); + } + private void ensureEntryIsMutable() { + if (!entry_.isModifiable()) { + entry_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(entry_); + } + } + + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + private void setEntry( + int index, com.android.aapt.Resources.Style.Entry value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntryIsMutable(); + entry_.set(index, value); + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + private void setEntry( + int index, com.android.aapt.Resources.Style.Entry.Builder builderForValue) { + ensureEntryIsMutable(); + entry_.set(index, builderForValue.build()); + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + private void addEntry(com.android.aapt.Resources.Style.Entry value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntryIsMutable(); + entry_.add(value); + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + private void addEntry( + int index, com.android.aapt.Resources.Style.Entry value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntryIsMutable(); + entry_.add(index, value); + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + private void addEntry( + com.android.aapt.Resources.Style.Entry.Builder builderForValue) { + ensureEntryIsMutable(); + entry_.add(builderForValue.build()); + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + private void addEntry( + int index, com.android.aapt.Resources.Style.Entry.Builder builderForValue) { + ensureEntryIsMutable(); + entry_.add(index, builderForValue.build()); + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + private void addAllEntry( + java.lang.Iterable values) { + ensureEntryIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, entry_); + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + private void clearEntry() { + entry_ = emptyProtobufList(); + } + /** + *
+     * The set of XML attribute/value pairs for this style.
+     * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + private void removeEntry(int index) { + ensureEntryIsMutable(); + entry_.remove(index); + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (parent_ != null) { + output.writeMessage(1, getParent()); + } + if (parentSource_ != null) { + output.writeMessage(2, getParentSource()); + } + for (int i = 0; i < entry_.size(); i++) { + output.writeMessage(3, entry_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (parent_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getParent()); + } + if (parentSource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getParentSource()); + } + for (int i = 0; i < entry_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, entry_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + public static com.android.aapt.Resources.Style parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Style parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Style parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Style parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Style parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static com.android.aapt.Resources.Style parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static com.android.aapt.Resources.Style parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Style parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Style parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Style parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static com.android.aapt.Resources.Style parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static com.android.aapt.Resources.Style parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } + public static Builder newBuilder(com.android.aapt.Resources.Style prototype) { + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + } + + /** + *
+     * A value that represents a style.
+     * 
+ * + * Protobuf type {@code aapt.pb.Style} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + com.android.aapt.Resources.Style, Builder> implements + // @@protoc_insertion_point(builder_implements:aapt.pb.Style) + com.android.aapt.Resources.StyleOrBuilder { + // Construct using com.android.aapt.Resources.Style.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + *
+       * The optinal style from which this style inherits attributes.
+       * 
+ * + * .aapt.pb.Reference parent = 1; + */ + @java.lang.Override + public boolean hasParent() { + return instance.hasParent(); + } + /** + *
+       * The optinal style from which this style inherits attributes.
+       * 
+ * + * .aapt.pb.Reference parent = 1; + */ + @java.lang.Override + public com.android.aapt.Resources.Reference getParent() { + return instance.getParent(); + } + /** + *
+       * The optinal style from which this style inherits attributes.
+       * 
+ * + * .aapt.pb.Reference parent = 1; + */ + public Builder setParent(com.android.aapt.Resources.Reference value) { + copyOnWrite(); + instance.setParent(value); + return this; + } + /** + *
+       * The optinal style from which this style inherits attributes.
+       * 
+ * + * .aapt.pb.Reference parent = 1; + */ + public Builder setParent( + com.android.aapt.Resources.Reference.Builder builderForValue) { + copyOnWrite(); + instance.setParent(builderForValue); + return this; + } + /** + *
+       * The optinal style from which this style inherits attributes.
+       * 
+ * + * .aapt.pb.Reference parent = 1; + */ + public Builder mergeParent(com.android.aapt.Resources.Reference value) { + copyOnWrite(); + instance.mergeParent(value); + return this; + } + /** + *
+       * The optinal style from which this style inherits attributes.
+       * 
+ * + * .aapt.pb.Reference parent = 1; + */ + public Builder clearParent() { copyOnWrite(); + instance.clearParent(); + return this; + } + + /** + *
+       * The source file information of the parent inheritance declaration.
+       * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + @java.lang.Override + public boolean hasParentSource() { + return instance.hasParentSource(); + } + /** + *
+       * The source file information of the parent inheritance declaration.
+       * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + @java.lang.Override + public com.android.aapt.Resources.Source getParentSource() { + return instance.getParentSource(); + } + /** + *
+       * The source file information of the parent inheritance declaration.
+       * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + public Builder setParentSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.setParentSource(value); + return this; + } + /** + *
+       * The source file information of the parent inheritance declaration.
+       * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + public Builder setParentSource( + com.android.aapt.Resources.Source.Builder builderForValue) { + copyOnWrite(); + instance.setParentSource(builderForValue); + return this; + } + /** + *
+       * The source file information of the parent inheritance declaration.
+       * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + public Builder mergeParentSource(com.android.aapt.Resources.Source value) { + copyOnWrite(); + instance.mergeParentSource(value); + return this; + } + /** + *
+       * The source file information of the parent inheritance declaration.
+       * 
+ * + * .aapt.pb.Source parent_source = 2; + */ + public Builder clearParentSource() { copyOnWrite(); + instance.clearParentSource(); + return this; + } + + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + @java.lang.Override + public java.util.List getEntryList() { + return java.util.Collections.unmodifiableList( + instance.getEntryList()); + } + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + @java.lang.Override + public int getEntryCount() { + return instance.getEntryCount(); + }/** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + @java.lang.Override + public com.android.aapt.Resources.Style.Entry getEntry(int index) { + return instance.getEntry(index); + } + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public Builder setEntry( + int index, com.android.aapt.Resources.Style.Entry value) { + copyOnWrite(); + instance.setEntry(index, value); + return this; + } + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public Builder setEntry( + int index, com.android.aapt.Resources.Style.Entry.Builder builderForValue) { + copyOnWrite(); + instance.setEntry(index, builderForValue); + return this; + } + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public Builder addEntry(com.android.aapt.Resources.Style.Entry value) { + copyOnWrite(); + instance.addEntry(value); + return this; + } + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public Builder addEntry( + int index, com.android.aapt.Resources.Style.Entry value) { + copyOnWrite(); + instance.addEntry(index, value); + return this; + } + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public Builder addEntry( + com.android.aapt.Resources.Style.Entry.Builder builderForValue) { + copyOnWrite(); + instance.addEntry(builderForValue); + return this; + } + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public Builder addEntry( + int index, com.android.aapt.Resources.Style.Entry.Builder builderForValue) { + copyOnWrite(); + instance.addEntry(index, builderForValue); + return this; + } + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public Builder addAllEntry( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllEntry(values); + return this; + } + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public Builder clearEntry() { + copyOnWrite(); + instance.clearEntry(); + return this; + } + /** + *
+       * The set of XML attribute/value pairs for this style.
+       * 
+ * + * repeated .aapt.pb.Style.Entry entry = 3; + */ + public Builder removeEntry(int index) { + copyOnWrite(); + instance.removeEntry(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:aapt.pb.Style) + } + @java.lang.Override + @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) + protected final java.lang.Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + java.lang.Object arg0, java.lang.Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new com.android.aapt.Resources.Style(); + } + case NEW_BUILDER: { + return new Builder(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + entry_.makeImmutable(); + return null; + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + com.android.aapt.Resources.Style other = (com.android.aapt.Resources.Style) arg1; + parent_ = visitor.visitMessage(parent_, other.parent_); + parentSource_ = visitor.visitMessage(parentSource_, other.parentSource_); + entry_= visitor.visitList(entry_, other.entry_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + 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.android.aapt.Resources.Reference.Builder subBuilder = null; + if (parent_ != null) { + subBuilder = parent_.toBuilder(); + } + parent_ = input.readMessage(com.android.aapt.Resources.Reference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parent_); + parent_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.android.aapt.Resources.Source.Builder subBuilder = null; + if (parentSource_ != null) { + subBuilder = parentSource_.toBuilder(); + } + parentSource_ = input.readMessage(com.android.aapt.Resources.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentSource_); + parentSource_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!entry_.isModifiable()) { + entry_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(entry_); + } + entry_.add( + input.readMessage(com.android.aapt.Resources.Style.Entry.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField(tag, input)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + // fall through + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + com.google.protobuf.Parser parser = PARSER; + if (parser == null) { + synchronized (com.android.aapt.Resources.Style.class) { + parser = PARSER; + if (parser == null) { + parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + PARSER = parser; + } + } + } + return parser; + } + case GET_MEMOIZED_IS_INITIALIZED: { + return (byte) 1; + } + case SET_MEMOIZED_IS_INITIALIZED: { + return null; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:aapt.pb.Style) + private static final com.android.aapt.Resources.Style DEFAULT_INSTANCE; + static { + // New instances are implicitly immutable so no need to make + // immutable. + DEFAULT_INSTANCE = new Style(); + } + + public static com.android.aapt.Resources.Style getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser