Class Resources.FileReference.Builder

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

public static final class Resources.FileReference.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.FileReference.Builder> implements Resources.FileReferenceOrBuilder
 A value that is a reference to an external entity, like an XML file or a PNG.
 
Protobuf type aapt.pb.FileReference
  • 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.FileReference.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.FileReference.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.FileReference.Builder>
    • getDefaultInstanceForType

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

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

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

      public Resources.FileReference.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.FileReference.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.FileReference.Builder>
    • mergeFrom

      public Resources.FileReference.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.FileReference.Builder>
      Throws:
      IOException
    • getPath

      public String getPath()
       Path to a file within the APK (typically res/type-config/entry.ext).
       
      string path = 1;
      Specified by:
      getPath in interface Resources.FileReferenceOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Path to a file within the APK (typically res/type-config/entry.ext).
       
      string path = 1;
      Specified by:
      getPathBytes in interface Resources.FileReferenceOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public Resources.FileReference.Builder setPath(String value)
       Path to a file within the APK (typically res/type-config/entry.ext).
       
      string path = 1;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public Resources.FileReference.Builder clearPath()
       Path to a file within the APK (typically res/type-config/entry.ext).
       
      string path = 1;
      Returns:
      This builder for chaining.
    • setPathBytes

      public Resources.FileReference.Builder setPathBytes(com.google.protobuf.ByteString value)
       Path to a file within the APK (typically res/type-config/entry.ext).
       
      string path = 1;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       The type of file this path points to. For UAM bundle, this cannot be
       BINARY_XML.
       
      .aapt.pb.FileReference.Type type = 2;
      Specified by:
      getTypeValue in interface Resources.FileReferenceOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Resources.FileReference.Builder setTypeValue(int value)
       The type of file this path points to. For UAM bundle, this cannot be
       BINARY_XML.
       
      .aapt.pb.FileReference.Type type = 2;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Resources.FileReference.Type getType()
       The type of file this path points to. For UAM bundle, this cannot be
       BINARY_XML.
       
      .aapt.pb.FileReference.Type type = 2;
      Specified by:
      getType in interface Resources.FileReferenceOrBuilder
      Returns:
      The type.
    • setType

       The type of file this path points to. For UAM bundle, this cannot be
       BINARY_XML.
       
      .aapt.pb.FileReference.Type type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Resources.FileReference.Builder clearType()
       The type of file this path points to. For UAM bundle, this cannot be
       BINARY_XML.
       
      .aapt.pb.FileReference.Type type = 2;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Resources.FileReference.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.FileReference.Builder>
    • mergeUnknownFields

      public final Resources.FileReference.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.FileReference.Builder>