public final class

TypesProto.StringProp.Builder

extends <any>

implements TypesProto.StringPropOrBuilder

 java.lang.Object

↳<any>

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

Overview

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

Summary

Methods
public TypesProto.StringProp.BuilderclearDynamicValue()

 The dynamic value.

public TypesProto.StringProp.BuilderclearOptionalValue()

public TypesProto.StringProp.BuilderclearOptionalValueForLayout()

public TypesProto.StringProp.BuilderclearTextAlignmentForLayout()

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

public TypesProto.StringProp.BuilderclearValue()

 The static value.

public TypesProto.StringProp.BuilderclearValueForLayout()

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

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 TypesProto.StringProp.BuildermergeDynamicValue(DynamicProto.DynamicString value)

 The dynamic value.

public TypesProto.StringProp.BuildersetDynamicValue(DynamicProto.DynamicString.Builder builderForValue)

 The dynamic value.

public TypesProto.StringProp.BuildersetDynamicValue(DynamicProto.DynamicString value)

 The dynamic value.

public TypesProto.StringProp.BuildersetTextAlignmentForLayout(AlignmentProto.TextAlignment value)

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

public TypesProto.StringProp.BuildersetTextAlignmentForLayoutValue(int value)

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

public TypesProto.StringProp.BuildersetValue(java.lang.String value)

 The static value.

public TypesProto.StringProp.BuildersetValueBytes(com.google.protobuf.ByteString value)

 The static value.

public TypesProto.StringProp.BuildersetValueForLayout(java.lang.String value)

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

public TypesProto.StringProp.BuildersetValueForLayoutBytes(com.google.protobuf.ByteString value)

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

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

Methods

public TypesProto.StringProp.OptionalValueCase getOptionalValueCase()

public TypesProto.StringProp.Builder clearOptionalValue()

public TypesProto.StringProp.OptionalValueForLayoutCase getOptionalValueForLayoutCase()

public TypesProto.StringProp.Builder clearOptionalValueForLayout()

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 TypesProto.StringProp.Builder setValue(java.lang.String value)

 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;

Parameters:

value: The value to set.

Returns:

This builder for chaining.

public TypesProto.StringProp.Builder clearValue()

 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:

This builder for chaining.

public TypesProto.StringProp.Builder setValueBytes(com.google.protobuf.ByteString value)

 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;

Parameters:

value: The bytes for value to set.

Returns:

This builder for chaining.

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;

 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;

 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;

 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 TypesProto.StringProp.Builder clearDynamicValue()

 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 TypesProto.StringProp.Builder setValueForLayout(java.lang.String value)

 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;

Parameters:

value: The valueForLayout to set.

Returns:

This builder for chaining.

public TypesProto.StringProp.Builder clearValueForLayout()

 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:

This builder for chaining.

public TypesProto.StringProp.Builder setValueForLayoutBytes(com.google.protobuf.ByteString value)

 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;

Parameters:

value: The bytes for valueForLayout to set.

Returns:

This builder for chaining.

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 TypesProto.StringProp.Builder setTextAlignmentForLayoutValue(int value)

 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;

Parameters:

value: The textAlignmentForLayout to set.

Returns:

This builder for chaining.

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 TypesProto.StringProp.Builder setTextAlignmentForLayout(AlignmentProto.TextAlignment value)

 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;

Parameters:

value: The enum numeric value on the wire for textAlignmentForLayout to set.

Returns:

This builder for chaining.

public TypesProto.StringProp.Builder clearTextAlignmentForLayout()

 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:

This builder for chaining.