Class Resources.Item

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.android.aapt.Resources.Item
All Implemented Interfaces:
Resources.ItemOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Resources

public static final class Resources.Item extends com.google.protobuf.GeneratedMessageV3 implements Resources.ItemOrBuilder
 An Item is an abstract type. It represents a value that can appear inline in many places, such
 as XML attribute values or on the right hand side of style attribute definitions. The concrete
 type is one of the types below. Only one can be set.
 
Protobuf type aapt.pb.Item
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getValueCase

      public Resources.Item.ValueCase getValueCase()
      Specified by:
      getValueCase in interface Resources.ItemOrBuilder
    • hasRef

      public boolean hasRef()
      .aapt.pb.Reference ref = 1;
      Specified by:
      hasRef in interface Resources.ItemOrBuilder
      Returns:
      Whether the ref field is set.
    • getRef

      public Resources.Reference getRef()
      .aapt.pb.Reference ref = 1;
      Specified by:
      getRef in interface Resources.ItemOrBuilder
      Returns:
      The ref.
    • getRefOrBuilder

      public Resources.ReferenceOrBuilder getRefOrBuilder()
      .aapt.pb.Reference ref = 1;
      Specified by:
      getRefOrBuilder in interface Resources.ItemOrBuilder
    • hasStr

      public boolean hasStr()
      .aapt.pb.String str = 2;
      Specified by:
      hasStr in interface Resources.ItemOrBuilder
      Returns:
      Whether the str field is set.
    • getStr

      public Resources.String getStr()
      .aapt.pb.String str = 2;
      Specified by:
      getStr in interface Resources.ItemOrBuilder
      Returns:
      The str.
    • getStrOrBuilder

      public Resources.StringOrBuilder getStrOrBuilder()
      .aapt.pb.String str = 2;
      Specified by:
      getStrOrBuilder in interface Resources.ItemOrBuilder
    • hasRawStr

      public boolean hasRawStr()
      .aapt.pb.RawString raw_str = 3;
      Specified by:
      hasRawStr in interface Resources.ItemOrBuilder
      Returns:
      Whether the rawStr field is set.
    • getRawStr

      public Resources.RawString getRawStr()
      .aapt.pb.RawString raw_str = 3;
      Specified by:
      getRawStr in interface Resources.ItemOrBuilder
      Returns:
      The rawStr.
    • getRawStrOrBuilder

      public Resources.RawStringOrBuilder getRawStrOrBuilder()
      .aapt.pb.RawString raw_str = 3;
      Specified by:
      getRawStrOrBuilder in interface Resources.ItemOrBuilder
    • hasStyledStr

      public boolean hasStyledStr()
      .aapt.pb.StyledString styled_str = 4;
      Specified by:
      hasStyledStr in interface Resources.ItemOrBuilder
      Returns:
      Whether the styledStr field is set.
    • getStyledStr

      public Resources.StyledString getStyledStr()
      .aapt.pb.StyledString styled_str = 4;
      Specified by:
      getStyledStr in interface Resources.ItemOrBuilder
      Returns:
      The styledStr.
    • getStyledStrOrBuilder

      public Resources.StyledStringOrBuilder getStyledStrOrBuilder()
      .aapt.pb.StyledString styled_str = 4;
      Specified by:
      getStyledStrOrBuilder in interface Resources.ItemOrBuilder
    • hasFile

      public boolean hasFile()
      .aapt.pb.FileReference file = 5;
      Specified by:
      hasFile in interface Resources.ItemOrBuilder
      Returns:
      Whether the file field is set.
    • getFile

      public Resources.FileReference getFile()
      .aapt.pb.FileReference file = 5;
      Specified by:
      getFile in interface Resources.ItemOrBuilder
      Returns:
      The file.
    • getFileOrBuilder

      public Resources.FileReferenceOrBuilder getFileOrBuilder()
      .aapt.pb.FileReference file = 5;
      Specified by:
      getFileOrBuilder in interface Resources.ItemOrBuilder
    • hasId

      public boolean hasId()
      .aapt.pb.Id id = 6;
      Specified by:
      hasId in interface Resources.ItemOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public Resources.Id getId()
      .aapt.pb.Id id = 6;
      Specified by:
      getId in interface Resources.ItemOrBuilder
      Returns:
      The id.
    • getIdOrBuilder

      public Resources.IdOrBuilder getIdOrBuilder()
      .aapt.pb.Id id = 6;
      Specified by:
      getIdOrBuilder in interface Resources.ItemOrBuilder
    • hasPrim

      public boolean hasPrim()
      .aapt.pb.Primitive prim = 7;
      Specified by:
      hasPrim in interface Resources.ItemOrBuilder
      Returns:
      Whether the prim field is set.
    • getPrim

      public Resources.Primitive getPrim()
      .aapt.pb.Primitive prim = 7;
      Specified by:
      getPrim in interface Resources.ItemOrBuilder
      Returns:
      The prim.
    • getPrimOrBuilder

      public Resources.PrimitiveOrBuilder getPrimOrBuilder()
      .aapt.pb.Primitive prim = 7;
      Specified by:
      getPrimOrBuilder in interface Resources.ItemOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Resources.Item parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.Item parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.Item parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.Item parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.Item parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.Item parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.Item parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Resources.Item parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Resources.Item parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Resources.Item parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Resources.Item parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Resources.Item parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Resources.Item.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Resources.Item.Builder newBuilder()
    • newBuilder

      public static Resources.Item.Builder newBuilder(Resources.Item prototype)
    • toBuilder

      public Resources.Item.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Resources.Item.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Resources.Item getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Resources.Item> parser()
    • getParserForType

      public com.google.protobuf.Parser<Resources.Item> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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