Class Resources.Value.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Resources.Value.Builder>
com.android.aapt.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, 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 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.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
    • 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>
    • mergeFrom

      public Resources.Value.Builder mergeFrom(Resources.Value other)
    • 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 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:
      IOException
    • getValueCase

      public Resources.Value.ValueCase getValueCase()
      Specified by:
      getValueCase in interface Resources.ValueOrBuilder
    • clearValue

      public Resources.Value.Builder clearValue()
    • 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.
    • getSource

      public Resources.Source getSource()
       Where the value was defined.
       
      .aapt.pb.Source source = 1;
      Specified by:
      getSource in interface Resources.ValueOrBuilder
      Returns:
      The source.
    • setSource

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

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

      public Resources.Value.Builder mergeSource(Resources.Source value)
       Where the value was defined.
       
      .aapt.pb.Source source = 1;
    • 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;
    • getSourceOrBuilder

      public Resources.SourceOrBuilder getSourceOrBuilder()
       Where the value was defined.
       
      .aapt.pb.Source source = 1;
      Specified by:
      getSourceOrBuilder in interface Resources.ValueOrBuilder
    • getComment

      public 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(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.
    • getItem

      public Resources.Item getItem()
      .aapt.pb.Item item = 4;
      Specified by:
      getItem in interface Resources.ValueOrBuilder
      Returns:
      The item.
    • setItem

      public Resources.Value.Builder setItem(Resources.Item value)
      .aapt.pb.Item item = 4;
    • setItem

      public Resources.Value.Builder setItem(Resources.Item.Builder builderForValue)
      .aapt.pb.Item item = 4;
    • mergeItem

      public Resources.Value.Builder mergeItem(Resources.Item value)
      .aapt.pb.Item item = 4;
    • clearItem

      public Resources.Value.Builder clearItem()
      .aapt.pb.Item item = 4;
    • getItemBuilder

      public Resources.Item.Builder getItemBuilder()
      .aapt.pb.Item item = 4;
    • getItemOrBuilder

      public Resources.ItemOrBuilder getItemOrBuilder()
      .aapt.pb.Item item = 4;
      Specified by:
      getItemOrBuilder in interface Resources.ValueOrBuilder
    • hasCompoundValue

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

      public Resources.CompoundValue getCompoundValue()
      .aapt.pb.CompoundValue compound_value = 5;
      Specified by:
      getCompoundValue in interface Resources.ValueOrBuilder
      Returns:
      The compoundValue.
    • setCompoundValue

      public Resources.Value.Builder setCompoundValue(Resources.CompoundValue value)
      .aapt.pb.CompoundValue compound_value = 5;
    • setCompoundValue

      public Resources.Value.Builder setCompoundValue(Resources.CompoundValue.Builder builderForValue)
      .aapt.pb.CompoundValue compound_value = 5;
    • mergeCompoundValue

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

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

      public Resources.CompoundValue.Builder getCompoundValueBuilder()
      .aapt.pb.CompoundValue compound_value = 5;
    • getCompoundValueOrBuilder

      public Resources.CompoundValueOrBuilder getCompoundValueOrBuilder()
      .aapt.pb.CompoundValue compound_value = 5;
      Specified by:
      getCompoundValueOrBuilder in interface Resources.ValueOrBuilder
    • 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>