public final class

LayoutElementProto.SpanText

extends <any>

implements LayoutElementProto.SpanTextOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.SpanText

Overview

 A portion of text which can be added to a Span. Two different SpanText
 elements on the same line will be aligned to the same baseline, regardless of
 the size of each SpanText.
 
Protobuf type androidx.wear.protolayout.proto.SpanText

Summary

Fields
public static final intANDROID_TEXT_STYLE_FIELD_NUMBER

public static final intFONT_STYLE_FIELD_NUMBER

public static final intMODIFIERS_FIELD_NUMBER

public static final intTEXT_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public LayoutElementProto.AndroidTextStylegetAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.

public static LayoutElementProto.SpanTextgetDefaultInstance()

public LayoutElementProto.FontStylegetFontStyle()

 The style of font to use (size, bold etc).

public ModifiersProto.SpanModifiersgetModifiers()

 Modifiers for this element.

public TypesProto.StringPropgetText()

 The text to render.

public booleanhasAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.

public booleanhasFontStyle()

 The style of font to use (size, bold etc).

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasText()

 The text to render.

public static LayoutElementProto.SpanText.BuildernewBuilder()

public static LayoutElementProto.SpanText.BuildernewBuilder(LayoutElementProto.SpanText prototype)

public static LayoutElementProto.SpanTextparseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.SpanTextparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanTextparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanTextparseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.SpanTextparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanTextparseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.SpanTextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanTextparseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.SpanTextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanTextparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final int TEXT_FIELD_NUMBER

public static final int FONT_STYLE_FIELD_NUMBER

public static final int MODIFIERS_FIELD_NUMBER

public static final int ANDROID_TEXT_STYLE_FIELD_NUMBER

Methods

public boolean hasText()

 The text to render.
 
.androidx.wear.protolayout.proto.StringProp text = 1;

public TypesProto.StringProp getText()

 The text to render.
 
.androidx.wear.protolayout.proto.StringProp text = 1;

public boolean hasFontStyle()

 The style of font to use (size, bold etc). If not specified, defaults to
 the platform's default body font.
 
.androidx.wear.protolayout.proto.FontStyle font_style = 2;

public LayoutElementProto.FontStyle getFontStyle()

 The style of font to use (size, bold etc). If not specified, defaults to
 the platform's default body font.
 
.androidx.wear.protolayout.proto.FontStyle font_style = 2;

public boolean hasModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.SpanModifiers modifiers = 3;

public ModifiersProto.SpanModifiers getModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.SpanModifiers modifiers = 3;

public boolean hasAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.
 
.androidx.wear.protolayout.proto.AndroidTextStyle android_text_style = 4;

public LayoutElementProto.AndroidTextStyle getAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.
 
.androidx.wear.protolayout.proto.AndroidTextStyle android_text_style = 4;

public static LayoutElementProto.SpanText parseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.SpanText parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanText parseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.SpanText parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanText parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanText parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanText parseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.SpanText parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanText parseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.SpanText parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.SpanText.Builder newBuilder()

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static LayoutElementProto.SpanText getDefaultInstance()

public static <any> parser()