Package com.android.aapt
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The comment associated with the <public> tag..aapt.pb.Visibility.Level level = 1;The path at which this entry's visibility was defined (eg.Indicates that the resource id may change across builds and that the public R.java identifier for this resource should not be final.The comment associated with the <public> tag.com.google.protobuf.ByteStringThe comment associated with the <public> tag.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLevel().aapt.pb.Visibility.Level level = 1;int.aapt.pb.Visibility.Level level = 1;The path at which this entry's visibility was defined (eg.The path at which this entry's visibility was defined (eg.The path at which this entry's visibility was defined (eg.booleanIndicates that the resource id may change across builds and that the public R.java identifier for this resource should not be final.booleanThe path at which this entry's visibility was defined (eg.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Resources.Visibility other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSource(Resources.Source value) The path at which this entry's visibility was defined (eg.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setComment(String value) The comment associated with the <public> tag.setCommentBytes(com.google.protobuf.ByteString value) The comment associated with the <public> tag..aapt.pb.Visibility.Level level = 1;setLevelValue(int value) .aapt.pb.Visibility.Level level = 1;setSource(Resources.Source value) The path at which this entry's visibility was defined (eg.setSource(Resources.Source.Builder builderForValue) The path at which this entry's visibility was defined (eg.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.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Visibility.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.Visibility.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.Visibility.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.Visibility.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.Visibility.Builder>- Throws:
IOException
-
getLevelValue
public int getLevelValue().aapt.pb.Visibility.Level level = 1;- Specified by:
getLevelValuein interfaceResources.VisibilityOrBuilder- Returns:
- The enum numeric value on the wire for level.
-
setLevelValue
.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
.aapt.pb.Visibility.Level level = 1;- Specified by:
getLevelin interfaceResources.VisibilityOrBuilder- Returns:
- The level.
-
setLevel
.aapt.pb.Visibility.Level level = 1;- Parameters:
value- The level to set.- Returns:
- This builder for chaining.
-
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:
hasSourcein interfaceResources.VisibilityOrBuilder- Returns:
- Whether the source field is set.
-
getSource
The path at which this entry's visibility was defined (eg. public.xml).
.aapt.pb.Source source = 2;- Specified by:
getSourcein interfaceResources.VisibilityOrBuilder- Returns:
- The source.
-
setSource
The path at which this entry's visibility was defined (eg. public.xml).
.aapt.pb.Source source = 2; -
setSource
The path at which this entry's visibility was defined (eg. public.xml).
.aapt.pb.Source source = 2; -
mergeSource
The path at which this entry's visibility was defined (eg. public.xml).
.aapt.pb.Source source = 2; -
clearSource
The path at which this entry's visibility was defined (eg. public.xml).
.aapt.pb.Source source = 2; -
getSourceBuilder
The path at which this entry's visibility was defined (eg. public.xml).
.aapt.pb.Source source = 2; -
getSourceOrBuilder
The path at which this entry's visibility was defined (eg. public.xml).
.aapt.pb.Source source = 2;- Specified by:
getSourceOrBuilderin interfaceResources.VisibilityOrBuilder
-
getComment
The comment associated with the <public> tag.
string comment = 3;- Specified by:
getCommentin interfaceResources.VisibilityOrBuilder- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()The comment associated with the <public> tag.
string comment = 3;- Specified by:
getCommentBytesin interfaceResources.VisibilityOrBuilder- Returns:
- The bytes for comment.
-
setComment
The comment associated with the <public> tag.
string comment = 3;- Parameters:
value- The comment to set.- Returns:
- This builder for chaining.
-
clearComment
The comment associated with the <public> tag.
string comment = 3;- Returns:
- This builder for chaining.
-
setCommentBytes
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:
getStagedApiin interfaceResources.VisibilityOrBuilder- Returns:
- The stagedApi.
-
setStagedApi
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Visibility.Builder>
-
mergeUnknownFields
public final Resources.Visibility.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Visibility.Builder>
-