Class 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, java.lang.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 Detail

      • 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

        public 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
      • clone

        public Resources.Visibility.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Visibility.Builder>
      • setField

        public Resources.Visibility.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Visibility.Builder>
      • clearField

        public Resources.Visibility.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Visibility.Builder>
      • clearOneof

        public Resources.Visibility.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Visibility.Builder>
      • setRepeatedField

        public Resources.Visibility.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Visibility.Builder>
      • addRepeatedField

        public Resources.Visibility.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Visibility.Builder>
      • 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 java.io.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:
        java.io.IOException
      • 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.
      • 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.
      • 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;
      • getComment

        public java.lang.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​(java.lang.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>