Class Resources.Value.Builder

  • All Implemented Interfaces:
    Resources.ValueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    Resources.Value

    public static final class Resources.Value.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.Value.Builder>
    implements Resources.ValueOrBuilder
     The generic meta-data for every value in a resource table.
     
    Protobuf type aapt.pb.Value
    • 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.Value.Builder>
      • clear

        public Resources.Value.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.Value.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.Value.Builder>
      • getDefaultInstanceForType

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

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

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

        public Resources.Value.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.Value.Builder>
      • setField

        public Resources.Value.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.Value.Builder>
      • clearField

        public Resources.Value.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.Value.Builder>
      • clearOneof

        public Resources.Value.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.Value.Builder>
      • setRepeatedField

        public Resources.Value.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.Value.Builder>
      • addRepeatedField

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

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

        public Resources.Value.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.Value.Builder>
        Throws:
        java.io.IOException
      • hasSource

        public boolean hasSource()
         Where the value was defined.
         
        .aapt.pb.Source source = 1;
        Specified by:
        hasSource in interface Resources.ValueOrBuilder
        Returns:
        Whether the source field is set.
      • clearSource

        public Resources.Value.Builder clearSource()
         Where the value was defined.
         
        .aapt.pb.Source source = 1;
      • getSourceBuilder

        public Resources.Source.Builder getSourceBuilder()
         Where the value was defined.
         
        .aapt.pb.Source source = 1;
      • getComment

        public java.lang.String getComment()
         Any comment associated with the value.
         
        string comment = 2;
        Specified by:
        getComment in interface Resources.ValueOrBuilder
        Returns:
        The comment.
      • getCommentBytes

        public com.google.protobuf.ByteString getCommentBytes()
         Any comment associated with the value.
         
        string comment = 2;
        Specified by:
        getCommentBytes in interface Resources.ValueOrBuilder
        Returns:
        The bytes for comment.
      • setComment

        public Resources.Value.Builder setComment​(java.lang.String value)
         Any comment associated with the value.
         
        string comment = 2;
        Parameters:
        value - The comment to set.
        Returns:
        This builder for chaining.
      • clearComment

        public Resources.Value.Builder clearComment()
         Any comment associated with the value.
         
        string comment = 2;
        Returns:
        This builder for chaining.
      • setCommentBytes

        public Resources.Value.Builder setCommentBytes​(com.google.protobuf.ByteString value)
         Any comment associated with the value.
         
        string comment = 2;
        Parameters:
        value - The bytes for comment to set.
        Returns:
        This builder for chaining.
      • getWeak

        public boolean getWeak()
         Whether the value can be overridden.
         
        bool weak = 3;
        Specified by:
        getWeak in interface Resources.ValueOrBuilder
        Returns:
        The weak.
      • setWeak

        public Resources.Value.Builder setWeak​(boolean value)
         Whether the value can be overridden.
         
        bool weak = 3;
        Parameters:
        value - The weak to set.
        Returns:
        This builder for chaining.
      • clearWeak

        public Resources.Value.Builder clearWeak()
         Whether the value can be overridden.
         
        bool weak = 3;
        Returns:
        This builder for chaining.
      • hasItem

        public boolean hasItem()
        .aapt.pb.Item item = 4;
        Specified by:
        hasItem in interface Resources.ValueOrBuilder
        Returns:
        Whether the item field is set.
      • hasCompoundValue

        public boolean hasCompoundValue()
        .aapt.pb.CompoundValue compound_value = 5;
        Specified by:
        hasCompoundValue in interface Resources.ValueOrBuilder
        Returns:
        Whether the compoundValue field is set.
      • clearCompoundValue

        public Resources.Value.Builder clearCompoundValue()
        .aapt.pb.CompoundValue compound_value = 5;
      • setUnknownFields

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

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