Class Resources.Visibility.Builder

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

public static final class Resources.Visibility.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.Visibility.Builder> implements Resources.VisibilityOrBuilder
 The Visibility of a symbol/entry (public, private, undefined).
 
Protobuf type aapt.pb.Visibility
  • 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.Visibility.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.Visibility.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.Visibility.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public int getLevelValue()
      .aapt.pb.Visibility.Level level = 1;
      Specified by:
      getLevelValue in interface Resources.VisibilityOrBuilder
      Returns:
      The enum numeric value on the wire for level.
    • setLevelValue

      public Resources.Visibility.Builder setLevelValue(int value)
      .aapt.pb.Visibility.Level level = 1;
      Parameters:
      value - The enum numeric value on the wire for level to set.
      Returns:
      This builder for chaining.
    • getLevel

      public Resources.Visibility.Level getLevel()
      .aapt.pb.Visibility.Level level = 1;
      Specified by:
      getLevel in interface Resources.VisibilityOrBuilder
      Returns:
      The level.
    • setLevel

      .aapt.pb.Visibility.Level level = 1;
      Parameters:
      value - The level to set.
      Returns:
      This builder for chaining.
    • clearLevel

      public Resources.Visibility.Builder clearLevel()
      .aapt.pb.Visibility.Level level = 1;
      Returns:
      This builder for chaining.
    • hasSource

      public boolean hasSource()
       The path at which this entry's visibility was defined (eg. public.xml).
       
      .aapt.pb.Source source = 2;
      Specified by:
      hasSource in interface Resources.VisibilityOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public Resources.Source getSource()
       The path at which this entry's visibility was defined (eg. public.xml).
       
      .aapt.pb.Source source = 2;
      Specified by:
      getSource in interface Resources.VisibilityOrBuilder
      Returns:
      The source.
    • setSource

       The path at which this entry's visibility was defined (eg. public.xml).
       
      .aapt.pb.Source source = 2;
    • setSource

      public Resources.Visibility.Builder setSource(Resources.Source.Builder builderForValue)
       The path at which this entry's visibility was defined (eg. public.xml).
       
      .aapt.pb.Source source = 2;
    • mergeSource

      public Resources.Visibility.Builder mergeSource(Resources.Source value)
       The path at which this entry's visibility was defined (eg. public.xml).
       
      .aapt.pb.Source source = 2;
    • clearSource

      public Resources.Visibility.Builder clearSource()
       The path at which this entry's visibility was defined (eg. public.xml).
       
      .aapt.pb.Source source = 2;
    • getSourceBuilder

      public Resources.Source.Builder getSourceBuilder()
       The path at which this entry's visibility was defined (eg. public.xml).
       
      .aapt.pb.Source source = 2;
    • getSourceOrBuilder

      public Resources.SourceOrBuilder getSourceOrBuilder()
       The path at which this entry's visibility was defined (eg. public.xml).
       
      .aapt.pb.Source source = 2;
      Specified by:
      getSourceOrBuilder in interface Resources.VisibilityOrBuilder
    • getComment

      public String getComment()
       The comment associated with the <public> tag.
       
      string comment = 3;
      Specified by:
      getComment in interface Resources.VisibilityOrBuilder
      Returns:
      The comment.
    • getCommentBytes

      public com.google.protobuf.ByteString getCommentBytes()
       The comment associated with the <public> tag.
       
      string comment = 3;
      Specified by:
      getCommentBytes in interface Resources.VisibilityOrBuilder
      Returns:
      The bytes for comment.
    • setComment

      public Resources.Visibility.Builder setComment(String value)
       The comment associated with the <public> tag.
       
      string comment = 3;
      Parameters:
      value - The comment to set.
      Returns:
      This builder for chaining.
    • clearComment

      public Resources.Visibility.Builder clearComment()
       The comment associated with the <public> tag.
       
      string comment = 3;
      Returns:
      This builder for chaining.
    • setCommentBytes

      public Resources.Visibility.Builder setCommentBytes(com.google.protobuf.ByteString value)
       The comment associated with the <public> tag.
       
      string comment = 3;
      Parameters:
      value - The bytes for comment to set.
      Returns:
      This builder for chaining.
    • getStagedApi

      public boolean getStagedApi()
       Indicates that the resource id may change across builds and that the public R.java identifier
       for this resource should not be final. This is set to `true` for resources in `staging-group`
       tags.
       
      bool staged_api = 4;
      Specified by:
      getStagedApi in interface Resources.VisibilityOrBuilder
      Returns:
      The stagedApi.
    • setStagedApi

      public Resources.Visibility.Builder setStagedApi(boolean value)
       Indicates that the resource id may change across builds and that the public R.java identifier
       for this resource should not be final. This is set to `true` for resources in `staging-group`
       tags.
       
      bool staged_api = 4;
      Parameters:
      value - The stagedApi to set.
      Returns:
      This builder for chaining.
    • clearStagedApi

      public Resources.Visibility.Builder clearStagedApi()
       Indicates that the resource id may change across builds and that the public R.java identifier
       for this resource should not be final. This is set to `true` for resources in `staging-group`
       tags.
       
      bool staged_api = 4;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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