public final class

ModifiersProto.Semantics.Builder

extends <any>

implements ModifiersProto.SemanticsOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.ModifiersProto.Semantics.Builder

Overview

 A modifier for an element which has accessibility semantics associated with
 it. This should generally be used sparingly, and in most cases should only be
 applied to the top-level layout element or to Clickables.
 
Protobuf type androidx.wear.protolayout.proto.Semantics

Summary

Methods
public ModifiersProto.Semantics.BuilderclearContentDescription()

 The content description associated with this element.

public ModifiersProto.Semantics.BuilderclearObsoleteContentDescription()

 The content description associated with this element.

public ModifiersProto.Semantics.BuilderclearRole()

 The type of user interface element.

public ModifiersProto.Semantics.BuilderclearStateDescription()

 The localized state description of the semantics node.

public TypesProto.StringPropgetContentDescription()

 The content description associated with this element.

public java.lang.StringgetObsoleteContentDescription()

 The content description associated with this element.

public com.google.protobuf.ByteStringgetObsoleteContentDescriptionBytes()

 The content description associated with this element.

public ModifiersProto.SemanticsRolegetRole()

 The type of user interface element.

public intgetRoleValue()

 The type of user interface element.

public TypesProto.StringPropgetStateDescription()

 The localized state description of the semantics node.

public booleanhasContentDescription()

 The content description associated with this element.

public booleanhasStateDescription()

 The localized state description of the semantics node.

public ModifiersProto.Semantics.BuildermergeContentDescription(TypesProto.StringProp value)

 The content description associated with this element.

public ModifiersProto.Semantics.BuildermergeStateDescription(TypesProto.StringProp value)

 The localized state description of the semantics node.

public ModifiersProto.Semantics.BuildersetContentDescription(TypesProto.StringProp.Builder builderForValue)

 The content description associated with this element.

public ModifiersProto.Semantics.BuildersetContentDescription(TypesProto.StringProp value)

 The content description associated with this element.

public ModifiersProto.Semantics.BuildersetObsoleteContentDescription(java.lang.String value)

 The content description associated with this element.

public ModifiersProto.Semantics.BuildersetObsoleteContentDescriptionBytes(com.google.protobuf.ByteString value)

 The content description associated with this element.

public ModifiersProto.Semantics.BuildersetRole(ModifiersProto.SemanticsRole value)

 The type of user interface element.

public ModifiersProto.Semantics.BuildersetRoleValue(int value)

 The type of user interface element.

public ModifiersProto.Semantics.BuildersetStateDescription(TypesProto.StringProp.Builder builderForValue)

 The localized state description of the semantics node.

public ModifiersProto.Semantics.BuildersetStateDescription(TypesProto.StringProp value)

 The localized state description of the semantics node.

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

Methods

public java.lang.String getObsoleteContentDescription()

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.
 @deprecated Use content_description instead.
 
string obsolete_content_description = 1;

Returns:

The obsoleteContentDescription.

public com.google.protobuf.ByteString getObsoleteContentDescriptionBytes()

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.
 @deprecated Use content_description instead.
 
string obsolete_content_description = 1;

Returns:

The bytes for obsoleteContentDescription.

public ModifiersProto.Semantics.Builder setObsoleteContentDescription(java.lang.String value)

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.
 @deprecated Use content_description instead.
 
string obsolete_content_description = 1;

Parameters:

value: The obsoleteContentDescription to set.

Returns:

This builder for chaining.

public ModifiersProto.Semantics.Builder clearObsoleteContentDescription()

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.
 @deprecated Use content_description instead.
 
string obsolete_content_description = 1;

Returns:

This builder for chaining.

public ModifiersProto.Semantics.Builder setObsoleteContentDescriptionBytes(com.google.protobuf.ByteString value)

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.
 @deprecated Use content_description instead.
 
string obsolete_content_description = 1;

Parameters:

value: The bytes for obsoleteContentDescription to set.

Returns:

This builder for chaining.

public boolean hasContentDescription()

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).
 
.androidx.wear.protolayout.proto.StringProp content_description = 4;

public TypesProto.StringProp getContentDescription()

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).
 
.androidx.wear.protolayout.proto.StringProp content_description = 4;

public ModifiersProto.Semantics.Builder setContentDescription(TypesProto.StringProp value)

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).
 
.androidx.wear.protolayout.proto.StringProp content_description = 4;

public ModifiersProto.Semantics.Builder setContentDescription(TypesProto.StringProp.Builder builderForValue)

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).
 
.androidx.wear.protolayout.proto.StringProp content_description = 4;

public ModifiersProto.Semantics.Builder mergeContentDescription(TypesProto.StringProp value)

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).
 
.androidx.wear.protolayout.proto.StringProp content_description = 4;

public ModifiersProto.Semantics.Builder clearContentDescription()

 The content description associated with this element. This will be dictated
 when the element is focused by the screen reader.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).
 
.androidx.wear.protolayout.proto.StringProp content_description = 4;

public int getRoleValue()

 The type of user interface element. Accessibility services might use this
 to describe the element or do customizations.
 
.androidx.wear.protolayout.proto.SemanticsRole role = 2;

Returns:

The enum numeric value on the wire for role.

public ModifiersProto.Semantics.Builder setRoleValue(int value)

 The type of user interface element. Accessibility services might use this
 to describe the element or do customizations.
 
.androidx.wear.protolayout.proto.SemanticsRole role = 2;

Parameters:

value: The role to set.

Returns:

This builder for chaining.

 The type of user interface element. Accessibility services might use this
 to describe the element or do customizations.
 
.androidx.wear.protolayout.proto.SemanticsRole role = 2;

Returns:

The role.

 The type of user interface element. Accessibility services might use this
 to describe the element or do customizations.
 
.androidx.wear.protolayout.proto.SemanticsRole role = 2;

Parameters:

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

Returns:

This builder for chaining.

 The type of user interface element. Accessibility services might use this
 to describe the element or do customizations.
 
.androidx.wear.protolayout.proto.SemanticsRole role = 2;

Returns:

This builder for chaining.

public boolean hasStateDescription()

 The localized state description of the semantics node.
 For example: "on" or "off". This will be dictated when the element is
 focused by the screen reader.

 This field is bindable and will use the dynamic value (if set).
 
.androidx.wear.protolayout.proto.StringProp state_description = 3;

public TypesProto.StringProp getStateDescription()

 The localized state description of the semantics node.
 For example: "on" or "off". This will be dictated when the element is
 focused by the screen reader.

 This field is bindable and will use the dynamic value (if set).
 
.androidx.wear.protolayout.proto.StringProp state_description = 3;

 The localized state description of the semantics node.
 For example: "on" or "off". This will be dictated when the element is
 focused by the screen reader.

 This field is bindable and will use the dynamic value (if set).
 
.androidx.wear.protolayout.proto.StringProp state_description = 3;

public ModifiersProto.Semantics.Builder setStateDescription(TypesProto.StringProp.Builder builderForValue)

 The localized state description of the semantics node.
 For example: "on" or "off". This will be dictated when the element is
 focused by the screen reader.

 This field is bindable and will use the dynamic value (if set).
 
.androidx.wear.protolayout.proto.StringProp state_description = 3;

public ModifiersProto.Semantics.Builder mergeStateDescription(TypesProto.StringProp value)

 The localized state description of the semantics node.
 For example: "on" or "off". This will be dictated when the element is
 focused by the screen reader.

 This field is bindable and will use the dynamic value (if set).
 
.androidx.wear.protolayout.proto.StringProp state_description = 3;

public ModifiersProto.Semantics.Builder clearStateDescription()

 The localized state description of the semantics node.
 For example: "on" or "off". This will be dictated when the element is
 focused by the screen reader.

 This field is bindable and will use the dynamic value (if set).
 
.androidx.wear.protolayout.proto.StringProp state_description = 3;