public final class

TypesProto.StringProp

extends <any>

implements TypesProto.StringPropOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.TypesProto.StringProp

Overview

 A string type.
 
Protobuf type androidx.wear.protolayout.proto.StringProp

Summary

Fields
public static final intDYNAMIC_VALUE_FIELD_NUMBER

public static final intTEXT_ALIGNMENT_FOR_LAYOUT_FIELD_NUMBER

public static final intVALUE_FIELD_NUMBER

public static final intVALUE_FOR_LAYOUT_FIELD_NUMBER

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

public static TypesProto.StringPropgetDefaultInstance()

public DynamicProto.DynamicStringgetDynamicValue()

 The dynamic value.

public TypesProto.StringProp.OptionalValueCasegetOptionalValueCase()

public TypesProto.StringProp.OptionalValueForLayoutCasegetOptionalValueForLayoutCase()

public AlignmentProto.TextAlignmentgetTextAlignmentForLayout()

 Alignment alignment of the actual text within the space reserved by
 value_for_layout.

public intgetTextAlignmentForLayoutValue()

 Alignment alignment of the actual text within the space reserved by
 value_for_layout.

public java.lang.StringgetValue()

 The static value.

public com.google.protobuf.ByteStringgetValueBytes()

 The static value.

public java.lang.StringgetValueForLayout()

 When used as a layout-changing data bind, the string to measure, when
 considering how wide the element should be in the layout.

public com.google.protobuf.ByteStringgetValueForLayoutBytes()

 When used as a layout-changing data bind, the string to measure, when
 considering how wide the element should be in the layout.

public booleanhasDynamicValue()

 The dynamic value.

public booleanhasValue()

 The static value.

public booleanhasValueForLayout()

 When used as a layout-changing data bind, the string to measure, when
 considering how wide the element should be in the layout.

public static TypesProto.StringProp.BuildernewBuilder()

public static TypesProto.StringProp.BuildernewBuilder(TypesProto.StringProp prototype)

public static TypesProto.StringPropparseDelimitedFrom(java.io.InputStream input)

public static TypesProto.StringPropparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TypesProto.StringPropparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TypesProto.StringPropparseFrom(java.nio.ByteBuffer data)

public static TypesProto.StringPropparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TypesProto.StringPropparseFrom(com.google.protobuf.ByteString data)

public static TypesProto.StringPropparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TypesProto.StringPropparseFrom(com.google.protobuf.CodedInputStream input)

public static TypesProto.StringPropparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TypesProto.StringPropparseFrom(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 VALUE_FIELD_NUMBER

public static final int DYNAMIC_VALUE_FIELD_NUMBER

public static final int VALUE_FOR_LAYOUT_FIELD_NUMBER

public static final int TEXT_ALIGNMENT_FOR_LAYOUT_FIELD_NUMBER

Methods

public TypesProto.StringProp.OptionalValueCase getOptionalValueCase()

public TypesProto.StringProp.OptionalValueForLayoutCase getOptionalValueForLayoutCase()

public boolean hasValue()

 The static value. If a dynamic value is also set and the renderer
 supports dynamic values for the corresponding field, this static value
 will be ignored. If the static value is not specified, {@code null} will
 be used instead.
 
string value = 1;

Returns:

Whether the value field is set.

public java.lang.String getValue()

 The static value. If a dynamic value is also set and the renderer
 supports dynamic values for the corresponding field, this static value
 will be ignored. If the static value is not specified, {@code null} will
 be used instead.
 
string value = 1;

Returns:

The value.

public com.google.protobuf.ByteString getValueBytes()

 The static value. If a dynamic value is also set and the renderer
 supports dynamic values for the corresponding field, this static value
 will be ignored. If the static value is not specified, {@code null} will
 be used instead.
 
string value = 1;

Returns:

The bytes for value.

public boolean hasDynamicValue()

 The dynamic value. Note that when setting this value, the static value is
 still required to be set to support older renderers that only read the
 static value. If {@code dynamicValue} has an invalid result, the provided
 static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicString dynamic_value = 2;

public DynamicProto.DynamicString getDynamicValue()

 The dynamic value. Note that when setting this value, the static value is
 still required to be set to support older renderers that only read the
 static value. If {@code dynamicValue} has an invalid result, the provided
 static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicString dynamic_value = 2;

public boolean hasValueForLayout()

 When used as a layout-changing data bind, the string to measure, when
 considering how wide the element should be in the layout.
 
string value_for_layout = 3;

Returns:

Whether the valueForLayout field is set.

public java.lang.String getValueForLayout()

 When used as a layout-changing data bind, the string to measure, when
 considering how wide the element should be in the layout.
 
string value_for_layout = 3;

Returns:

The valueForLayout.

public com.google.protobuf.ByteString getValueForLayoutBytes()

 When used as a layout-changing data bind, the string to measure, when
 considering how wide the element should be in the layout.
 
string value_for_layout = 3;

Returns:

The bytes for valueForLayout.

public int getTextAlignmentForLayoutValue()

 Alignment alignment of the actual text within the space reserved by
 value_for_layout. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.TextAlignment text_alignment_for_layout = 4;

Returns:

The enum numeric value on the wire for textAlignmentForLayout.

public AlignmentProto.TextAlignment getTextAlignmentForLayout()

 Alignment alignment of the actual text within the space reserved by
 value_for_layout. If not specified, defaults to center alignment.
 
.androidx.wear.protolayout.proto.TextAlignment text_alignment_for_layout = 4;

Returns:

The textAlignmentForLayout.

public static TypesProto.StringProp parseFrom(java.nio.ByteBuffer data)

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

public static TypesProto.StringProp parseFrom(com.google.protobuf.ByteString data)

public static TypesProto.StringProp parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

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

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

public static TypesProto.StringProp parseDelimitedFrom(java.io.InputStream input)

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

public static TypesProto.StringProp parseFrom(com.google.protobuf.CodedInputStream input)

public static TypesProto.StringProp parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static TypesProto.StringProp.Builder newBuilder()

public static TypesProto.StringProp.Builder newBuilder(TypesProto.StringProp prototype)

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

public static TypesProto.StringProp getDefaultInstance()

public static <any> parser()