public final class

ModifiersProto.Semantics

extends <any>

implements ModifiersProto.SemanticsOrBuilder

 java.lang.Object

↳<any>

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

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

Fields
public static final intCONTENT_DESCRIPTION_FIELD_NUMBER

public static final intOBSOLETE_CONTENT_DESCRIPTION_FIELD_NUMBER

public static final intROLE_FIELD_NUMBER

public static final intSTATE_DESCRIPTION_FIELD_NUMBER

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

public TypesProto.StringPropgetContentDescription()

 The content description associated with this element.

public static ModifiersProto.SemanticsgetDefaultInstance()

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 static ModifiersProto.Semantics.BuildernewBuilder()

public static ModifiersProto.Semantics.BuildernewBuilder(ModifiersProto.Semantics prototype)

public static ModifiersProto.SemanticsparseDelimitedFrom(java.io.InputStream input)

public static ModifiersProto.SemanticsparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.SemanticsparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.SemanticsparseFrom(java.nio.ByteBuffer data)

public static ModifiersProto.SemanticsparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.SemanticsparseFrom(com.google.protobuf.ByteString data)

public static ModifiersProto.SemanticsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.SemanticsparseFrom(com.google.protobuf.CodedInputStream input)

public static ModifiersProto.SemanticsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.SemanticsparseFrom(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 OBSOLETE_CONTENT_DESCRIPTION_FIELD_NUMBER

public static final int CONTENT_DESCRIPTION_FIELD_NUMBER

public static final int ROLE_FIELD_NUMBER

public static final int STATE_DESCRIPTION_FIELD_NUMBER

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 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 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.

 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.

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;

public static ModifiersProto.Semantics parseFrom(java.nio.ByteBuffer data)

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

public static ModifiersProto.Semantics parseFrom(com.google.protobuf.ByteString data)

public static ModifiersProto.Semantics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

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

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

public static ModifiersProto.Semantics parseDelimitedFrom(java.io.InputStream input)

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

public static ModifiersProto.Semantics parseFrom(com.google.protobuf.CodedInputStream input)

public static ModifiersProto.Semantics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ModifiersProto.Semantics.Builder newBuilder()

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

public static ModifiersProto.Semantics getDefaultInstance()

public static <any> parser()