Package com.android.aapt
Class Resources.Value.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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,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 typeaapt.pb.Value
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Resources.Value.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Resources.Valuebuild()Resources.ValuebuildPartial()Resources.Value.Builderclear()Resources.Value.BuilderclearComment()Any comment associated with the value.Resources.Value.BuilderclearCompoundValue().aapt.pb.CompoundValue compound_value = 5;Resources.Value.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Resources.Value.BuilderclearItem().aapt.pb.Item item = 4;Resources.Value.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Resources.Value.BuilderclearSource()Where the value was defined.Resources.Value.BuilderclearValue()Resources.Value.BuilderclearWeak()Whether the value can be overridden.Resources.Value.Builderclone()java.lang.StringgetComment()Any comment associated with the value.com.google.protobuf.ByteStringgetCommentBytes()Any comment associated with the value.Resources.CompoundValuegetCompoundValue().aapt.pb.CompoundValue compound_value = 5;Resources.CompoundValue.BuildergetCompoundValueBuilder().aapt.pb.CompoundValue compound_value = 5;Resources.CompoundValueOrBuildergetCompoundValueOrBuilder().aapt.pb.CompoundValue compound_value = 5;Resources.ValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Resources.ItemgetItem().aapt.pb.Item item = 4;Resources.Item.BuildergetItemBuilder().aapt.pb.Item item = 4;Resources.ItemOrBuildergetItemOrBuilder().aapt.pb.Item item = 4;Resources.SourcegetSource()Where the value was defined.Resources.Source.BuildergetSourceBuilder()Where the value was defined.Resources.SourceOrBuildergetSourceOrBuilder()Where the value was defined.Resources.Value.ValueCasegetValueCase()booleangetWeak()Whether the value can be overridden.booleanhasCompoundValue().aapt.pb.CompoundValue compound_value = 5;booleanhasItem().aapt.pb.Item item = 4;booleanhasSource()Where the value was defined.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Resources.Value.BuildermergeCompoundValue(Resources.CompoundValue value).aapt.pb.CompoundValue compound_value = 5;Resources.Value.BuildermergeFrom(Resources.Value other)Resources.Value.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Resources.Value.BuildermergeFrom(com.google.protobuf.Message other)Resources.Value.BuildermergeItem(Resources.Item value).aapt.pb.Item item = 4;Resources.Value.BuildermergeSource(Resources.Source value)Where the value was defined.Resources.Value.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Resources.Value.BuildersetComment(java.lang.String value)Any comment associated with the value.Resources.Value.BuildersetCommentBytes(com.google.protobuf.ByteString value)Any comment associated with the value.Resources.Value.BuildersetCompoundValue(Resources.CompoundValue value).aapt.pb.CompoundValue compound_value = 5;Resources.Value.BuildersetCompoundValue(Resources.CompoundValue.Builder builderForValue).aapt.pb.CompoundValue compound_value = 5;Resources.Value.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Resources.Value.BuildersetItem(Resources.Item value).aapt.pb.Item item = 4;Resources.Value.BuildersetItem(Resources.Item.Builder builderForValue).aapt.pb.Item item = 4;Resources.Value.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Resources.Value.BuildersetSource(Resources.Source value)Where the value was defined.Resources.Value.BuildersetSource(Resources.Source.Builder builderForValue)Where the value was defined.Resources.Value.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Resources.Value.BuildersetWeak(boolean value)Whether the value can be overridden.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Value.Builder>
-
clear
public Resources.Value.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Value.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Value.Builder>
-
getDefaultInstanceForType
public Resources.Value getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Resources.Value build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Resources.Value buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Resources.Value.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.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:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Value.Builder>
-
clearField
public Resources.Value.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Value.Builder>
-
clearOneof
public Resources.Value.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.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:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Value.Builder>
-
mergeFrom
public Resources.Value.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.Value.Builder>
-
mergeFrom
public Resources.Value.Builder mergeFrom(Resources.Value other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.Value.Builder>- Throws:
java.io.IOException
-
getValueCase
public Resources.Value.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceResources.ValueOrBuilder
-
clearValue
public Resources.Value.Builder clearValue()
-
hasSource
public boolean hasSource()
Where the value was defined.
.aapt.pb.Source source = 1;- Specified by:
hasSourcein interfaceResources.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:
getSourcein interfaceResources.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:
getSourceOrBuilderin interfaceResources.ValueOrBuilder
-
getComment
public java.lang.String getComment()
Any comment associated with the value.
string comment = 2;- Specified by:
getCommentin interfaceResources.ValueOrBuilder- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()
Any comment associated with the value.
string comment = 2;- Specified by:
getCommentBytesin interfaceResources.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:
getWeakin interfaceResources.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:
hasItemin interfaceResources.ValueOrBuilder- Returns:
- Whether the item field is set.
-
getItem
public Resources.Item getItem()
.aapt.pb.Item item = 4;- Specified by:
getItemin interfaceResources.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:
getItemOrBuilderin interfaceResources.ValueOrBuilder
-
hasCompoundValue
public boolean hasCompoundValue()
.aapt.pb.CompoundValue compound_value = 5;- Specified by:
hasCompoundValuein interfaceResources.ValueOrBuilder- Returns:
- Whether the compoundValue field is set.
-
getCompoundValue
public Resources.CompoundValue getCompoundValue()
.aapt.pb.CompoundValue compound_value = 5;- Specified by:
getCompoundValuein interfaceResources.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:
getCompoundValueOrBuilderin interfaceResources.ValueOrBuilder
-
setUnknownFields
public final Resources.Value.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Value.Builder>
-
mergeUnknownFields
public final Resources.Value.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Value.Builder>
-
-