Class Resources.StyledString.Span.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Resources.StyledString.Span.Builder>
com.android.aapt.Resources.StyledString.Span.Builder
All Implemented Interfaces:
Resources.StyledString.SpanOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Resources.StyledString.Span

public static final class Resources.StyledString.Span.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.StyledString.Span.Builder> implements Resources.StyledString.SpanOrBuilder
 A Span marks a region of the string text that is styled.
 
Protobuf type aapt.pb.StyledString.Span
  • 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.StyledString.Span.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.StyledString.Span.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.StyledString.Span.Builder>
    • getDefaultInstanceForType

      public Resources.StyledString.Span getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Resources.StyledString.Span buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Resources.StyledString.Span.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.StyledString.Span.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.StyledString.Span.Builder>
    • mergeFrom

      public Resources.StyledString.Span.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.StyledString.Span.Builder>
      Throws:
      IOException
    • getTag

      public String getTag()
       The name of the tag, and its attributes, encoded as follows:
       tag_name;attr1=value1;attr2=value2;[...]
       
      string tag = 1;
      Specified by:
      getTag in interface Resources.StyledString.SpanOrBuilder
      Returns:
      The tag.
    • getTagBytes

      public com.google.protobuf.ByteString getTagBytes()
       The name of the tag, and its attributes, encoded as follows:
       tag_name;attr1=value1;attr2=value2;[...]
       
      string tag = 1;
      Specified by:
      getTagBytes in interface Resources.StyledString.SpanOrBuilder
      Returns:
      The bytes for tag.
    • setTag

       The name of the tag, and its attributes, encoded as follows:
       tag_name;attr1=value1;attr2=value2;[...]
       
      string tag = 1;
      Parameters:
      value - The tag to set.
      Returns:
      This builder for chaining.
    • clearTag

       The name of the tag, and its attributes, encoded as follows:
       tag_name;attr1=value1;attr2=value2;[...]
       
      string tag = 1;
      Returns:
      This builder for chaining.
    • setTagBytes

      public Resources.StyledString.Span.Builder setTagBytes(com.google.protobuf.ByteString value)
       The name of the tag, and its attributes, encoded as follows:
       tag_name;attr1=value1;attr2=value2;[...]
       
      string tag = 1;
      Parameters:
      value - The bytes for tag to set.
      Returns:
      This builder for chaining.
    • getFirstChar

      public int getFirstChar()
       The first character position this span applies to, in UTF-16 offset.
       
      uint32 first_char = 2;
      Specified by:
      getFirstChar in interface Resources.StyledString.SpanOrBuilder
      Returns:
      The firstChar.
    • setFirstChar

      public Resources.StyledString.Span.Builder setFirstChar(int value)
       The first character position this span applies to, in UTF-16 offset.
       
      uint32 first_char = 2;
      Parameters:
      value - The firstChar to set.
      Returns:
      This builder for chaining.
    • clearFirstChar

      public Resources.StyledString.Span.Builder clearFirstChar()
       The first character position this span applies to, in UTF-16 offset.
       
      uint32 first_char = 2;
      Returns:
      This builder for chaining.
    • getLastChar

      public int getLastChar()
       The last character position this span applies to, in UTF-16 offset.
       
      uint32 last_char = 3;
      Specified by:
      getLastChar in interface Resources.StyledString.SpanOrBuilder
      Returns:
      The lastChar.
    • setLastChar

      public Resources.StyledString.Span.Builder setLastChar(int value)
       The last character position this span applies to, in UTF-16 offset.
       
      uint32 last_char = 3;
      Parameters:
      value - The lastChar to set.
      Returns:
      This builder for chaining.
    • clearLastChar

      public Resources.StyledString.Span.Builder clearLastChar()
       The last character position this span applies to, in UTF-16 offset.
       
      uint32 last_char = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Resources.StyledString.Span.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.StyledString.Span.Builder>
    • mergeUnknownFields

      public final Resources.StyledString.Span.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.StyledString.Span.Builder>