Class Resources.Reference.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Resources.Reference.Builder>
com.android.aapt.Resources.Reference.Builder
All Implemented Interfaces:
Resources.ReferenceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Resources.Reference

public static final class Resources.Reference.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.Reference.Builder> implements Resources.ReferenceOrBuilder
 A value that is a reference to another resource. This reference can be by name or resource ID.
 
Protobuf type aapt.pb.Reference
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Reference.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Reference.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Reference.Builder>
    • getDefaultInstanceForType

      public Resources.Reference getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Resources.Reference build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Resources.Reference buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Resources.Reference.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Resources.Reference.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Reference.Builder>
    • mergeFrom

      public Resources.Reference.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Resources.Reference.Builder>
      Throws:
      IOException
    • getTypeValue

      public int getTypeValue()
      .aapt.pb.Reference.Type type = 1;
      Specified by:
      getTypeValue in interface Resources.ReferenceOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Resources.Reference.Builder setTypeValue(int value)
      .aapt.pb.Reference.Type type = 1;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Resources.Reference.Type getType()
      .aapt.pb.Reference.Type type = 1;
      Specified by:
      getType in interface Resources.ReferenceOrBuilder
      Returns:
      The type.
    • setType

      .aapt.pb.Reference.Type type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Resources.Reference.Builder clearType()
      .aapt.pb.Reference.Type type = 1;
      Returns:
      This builder for chaining.
    • getId

      public int getId()
       The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
       
      uint32 id = 2;
      Specified by:
      getId in interface Resources.ReferenceOrBuilder
      Returns:
      The id.
    • setId

      public Resources.Reference.Builder setId(int value)
       The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
       
      uint32 id = 2;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Resources.Reference.Builder clearId()
       The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
       
      uint32 id = 2;
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       The name of the resource being referred. This is optional if the resource ID is set.
       
      string name = 3;
      Specified by:
      getName in interface Resources.ReferenceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the resource being referred. This is optional if the resource ID is set.
       
      string name = 3;
      Specified by:
      getNameBytes in interface Resources.ReferenceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Resources.Reference.Builder setName(String value)
       The name of the resource being referred. This is optional if the resource ID is set.
       
      string name = 3;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Resources.Reference.Builder clearName()
       The name of the resource being referred. This is optional if the resource ID is set.
       
      string name = 3;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Resources.Reference.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the resource being referred. This is optional if the resource ID is set.
       
      string name = 3;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getPrivate

      public boolean getPrivate()
       Whether this reference is referencing a private resource (@*package:type/entry).
       
      bool private = 4;
      Specified by:
      getPrivate in interface Resources.ReferenceOrBuilder
      Returns:
      The private.
    • setPrivate

      public Resources.Reference.Builder setPrivate(boolean value)
       Whether this reference is referencing a private resource (@*package:type/entry).
       
      bool private = 4;
      Parameters:
      value - The private to set.
      Returns:
      This builder for chaining.
    • clearPrivate

      public Resources.Reference.Builder clearPrivate()
       Whether this reference is referencing a private resource (@*package:type/entry).
       
      bool private = 4;
      Returns:
      This builder for chaining.
    • hasIsDynamic

      public boolean hasIsDynamic()
       Whether this reference is dynamic.
       
      .aapt.pb.Boolean is_dynamic = 5;
      Specified by:
      hasIsDynamic in interface Resources.ReferenceOrBuilder
      Returns:
      Whether the isDynamic field is set.
    • getIsDynamic

      public Resources.Boolean getIsDynamic()
       Whether this reference is dynamic.
       
      .aapt.pb.Boolean is_dynamic = 5;
      Specified by:
      getIsDynamic in interface Resources.ReferenceOrBuilder
      Returns:
      The isDynamic.
    • setIsDynamic

      public Resources.Reference.Builder setIsDynamic(Resources.Boolean value)
       Whether this reference is dynamic.
       
      .aapt.pb.Boolean is_dynamic = 5;
    • setIsDynamic

      public Resources.Reference.Builder setIsDynamic(Resources.Boolean.Builder builderForValue)
       Whether this reference is dynamic.
       
      .aapt.pb.Boolean is_dynamic = 5;
    • mergeIsDynamic

      public Resources.Reference.Builder mergeIsDynamic(Resources.Boolean value)
       Whether this reference is dynamic.
       
      .aapt.pb.Boolean is_dynamic = 5;
    • clearIsDynamic

      public Resources.Reference.Builder clearIsDynamic()
       Whether this reference is dynamic.
       
      .aapt.pb.Boolean is_dynamic = 5;
    • getIsDynamicBuilder

      public Resources.Boolean.Builder getIsDynamicBuilder()
       Whether this reference is dynamic.
       
      .aapt.pb.Boolean is_dynamic = 5;
    • getIsDynamicOrBuilder

      public Resources.BooleanOrBuilder getIsDynamicOrBuilder()
       Whether this reference is dynamic.
       
      .aapt.pb.Boolean is_dynamic = 5;
      Specified by:
      getIsDynamicOrBuilder in interface Resources.ReferenceOrBuilder
    • getTypeFlags

      public int getTypeFlags()
       The type flags used when compiling the reference. Used for substituting the contents of macros.
       
      uint32 type_flags = 6;
      Specified by:
      getTypeFlags in interface Resources.ReferenceOrBuilder
      Returns:
      The typeFlags.
    • setTypeFlags

      public Resources.Reference.Builder setTypeFlags(int value)
       The type flags used when compiling the reference. Used for substituting the contents of macros.
       
      uint32 type_flags = 6;
      Parameters:
      value - The typeFlags to set.
      Returns:
      This builder for chaining.
    • clearTypeFlags

      public Resources.Reference.Builder clearTypeFlags()
       The type flags used when compiling the reference. Used for substituting the contents of macros.
       
      uint32 type_flags = 6;
      Returns:
      This builder for chaining.
    • getAllowRaw

      public boolean getAllowRaw()
       Whether raw string values would have been accepted in place of this reference definition. Used
       for substituting the contents of macros.
       
      bool allow_raw = 7;
      Specified by:
      getAllowRaw in interface Resources.ReferenceOrBuilder
      Returns:
      The allowRaw.
    • setAllowRaw

      public Resources.Reference.Builder setAllowRaw(boolean value)
       Whether raw string values would have been accepted in place of this reference definition. Used
       for substituting the contents of macros.
       
      bool allow_raw = 7;
      Parameters:
      value - The allowRaw to set.
      Returns:
      This builder for chaining.
    • clearAllowRaw

      public Resources.Reference.Builder clearAllowRaw()
       Whether raw string values would have been accepted in place of this reference definition. Used
       for substituting the contents of macros.
       
      bool allow_raw = 7;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Resources.Reference.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Reference.Builder>
    • mergeUnknownFields

      public final Resources.Reference.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Reference.Builder>