Package com.android.aapt
Class Resources.FileReference.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Resources.FileReference.Builder>
com.android.aapt.Resources.FileReference.Builder
- All Implemented Interfaces:
Resources.FileReferenceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Resources.FileReference
public static final class Resources.FileReference.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.FileReference.Builder>
implements Resources.FileReferenceOrBuilder
A value that is a reference to an external entity, like an XML file or a PNG.Protobuf type
aapt.pb.FileReference-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Path to a file within the APK (typically res/type-config/entry.ext).The type of file this path points to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPath()Path to a file within the APK (typically res/type-config/entry.ext).com.google.protobuf.ByteStringPath to a file within the APK (typically res/type-config/entry.ext).getType()The type of file this path points to.intThe type of file this path points to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Resources.FileReference other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Path to a file within the APK (typically res/type-config/entry.ext).setPathBytes(com.google.protobuf.ByteString value) Path to a file within the APK (typically res/type-config/entry.ext).The type of file this path points to.setTypeValue(int value) The type of file this path points to.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.FileReference.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.FileReference.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.FileReference.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.FileReference.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.FileReference.Builder>
-
mergeFrom
public Resources.FileReference.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.FileReference.Builder>- Throws:
IOException
-
getPath
Path to a file within the APK (typically res/type-config/entry.ext).
string path = 1;- Specified by:
getPathin interfaceResources.FileReferenceOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Path to a file within the APK (typically res/type-config/entry.ext).
string path = 1;- Specified by:
getPathBytesin interfaceResources.FileReferenceOrBuilder- Returns:
- The bytes for path.
-
setPath
Path to a file within the APK (typically res/type-config/entry.ext).
string path = 1;- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
Path to a file within the APK (typically res/type-config/entry.ext).
string path = 1;- Returns:
- This builder for chaining.
-
setPathBytes
Path to a file within the APK (typically res/type-config/entry.ext).
string path = 1;- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()The type of file this path points to. For UAM bundle, this cannot be BINARY_XML.
.aapt.pb.FileReference.Type type = 2;- Specified by:
getTypeValuein interfaceResources.FileReferenceOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The type of file this path points to. For UAM bundle, this cannot be BINARY_XML.
.aapt.pb.FileReference.Type type = 2;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
The type of file this path points to. For UAM bundle, this cannot be BINARY_XML.
.aapt.pb.FileReference.Type type = 2;- Specified by:
getTypein interfaceResources.FileReferenceOrBuilder- Returns:
- The type.
-
setType
The type of file this path points to. For UAM bundle, this cannot be BINARY_XML.
.aapt.pb.FileReference.Type type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of file this path points to. For UAM bundle, this cannot be BINARY_XML.
.aapt.pb.FileReference.Type type = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Resources.FileReference.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.FileReference.Builder>
-
mergeUnknownFields
public final Resources.FileReference.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.FileReference.Builder>
-