public final class

ModifiersProto.Modifiers.Builder

extends <any>

implements ModifiersProto.ModifiersOrBuilder

 java.lang.Object

↳<any>

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

Overview

 Modifiers for an element. These may change the way they are drawn (e.g.
 Padding or Background), or change their behaviour (e.g. Clickable, or
 Semantics).
 
Protobuf type androidx.wear.protolayout.proto.Modifiers

Summary

Methods
public ModifiersProto.Modifiers.BuilderclearBackground()

 The background (with optional corner radius) of the modified element.

public ModifiersProto.Modifiers.BuilderclearBorder()

 The border of the modified element.

public ModifiersProto.Modifiers.BuilderclearClickable()

 The clickable property of the modified element.

public ModifiersProto.Modifiers.BuilderclearContentUpdateAnimation()

 The content transition of an element.

public ModifiersProto.Modifiers.BuilderclearHidden()

 Whether the attached element is hidden, or visible.

public ModifiersProto.Modifiers.BuilderclearId()

 The optional identifier for the layout element.

public ModifiersProto.Modifiers.BuilderclearMetadata()

 Metadata about an element.

public ModifiersProto.Modifiers.BuilderclearOpacity()

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque.

public ModifiersProto.Modifiers.BuilderclearPadding()

 The padding of the modified element.

public ModifiersProto.Modifiers.BuilderclearSemantics()

 The semantics of the modified element.

public ModifiersProto.Modifiers.BuilderclearTransformation()

 The transformation applied to the element post-layout

public ModifiersProto.Modifiers.BuilderclearVisible()

 Whether the attached element is visible, or hidden.

public ModifiersProto.BackgroundgetBackground()

 The background (with optional corner radius) of the modified element.

public ModifiersProto.BordergetBorder()

 The border of the modified element.

public ModifiersProto.ClickablegetClickable()

 The clickable property of the modified element.

public ModifiersProto.AnimatedVisibilitygetContentUpdateAnimation()

 The content transition of an element.

public TypesProto.BoolPropgetHidden()

 Whether the attached element is hidden, or visible.

public java.lang.StringgetId()

 The optional identifier for the layout element.

public com.google.protobuf.ByteStringgetIdBytes()

 The optional identifier for the layout element.

public ModifiersProto.ElementMetadatagetMetadata()

 Metadata about an element.

public TypesProto.FloatPropgetOpacity()

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque.

public ModifiersProto.PaddinggetPadding()

 The padding of the modified element.

public ModifiersProto.SemanticsgetSemantics()

 The semantics of the modified element.

public ModifiersProto.TransformationgetTransformation()

 The transformation applied to the element post-layout

public TypesProto.BoolPropgetVisible()

 Whether the attached element is visible, or hidden.

public booleanhasBackground()

 The background (with optional corner radius) of the modified element.

public booleanhasBorder()

 The border of the modified element.

public booleanhasClickable()

 The clickable property of the modified element.

public booleanhasContentUpdateAnimation()

 The content transition of an element.

public booleanhasHidden()

 Whether the attached element is hidden, or visible.

public booleanhasMetadata()

 Metadata about an element.

public booleanhasOpacity()

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque.

public booleanhasPadding()

 The padding of the modified element.

public booleanhasSemantics()

 The semantics of the modified element.

public booleanhasTransformation()

 The transformation applied to the element post-layout

public booleanhasVisible()

 Whether the attached element is visible, or hidden.

public ModifiersProto.Modifiers.BuildermergeBackground(ModifiersProto.Background value)

 The background (with optional corner radius) of the modified element.

public ModifiersProto.Modifiers.BuildermergeBorder(ModifiersProto.Border value)

 The border of the modified element.

public ModifiersProto.Modifiers.BuildermergeClickable(ModifiersProto.Clickable value)

 The clickable property of the modified element.

public ModifiersProto.Modifiers.BuildermergeContentUpdateAnimation(ModifiersProto.AnimatedVisibility value)

 The content transition of an element.

public ModifiersProto.Modifiers.BuildermergeHidden(TypesProto.BoolProp value)

 Whether the attached element is hidden, or visible.

public ModifiersProto.Modifiers.BuildermergeMetadata(ModifiersProto.ElementMetadata value)

 Metadata about an element.

public ModifiersProto.Modifiers.BuildermergeOpacity(TypesProto.FloatProp value)

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque.

public ModifiersProto.Modifiers.BuildermergePadding(ModifiersProto.Padding value)

 The padding of the modified element.

public ModifiersProto.Modifiers.BuildermergeSemantics(ModifiersProto.Semantics value)

 The semantics of the modified element.

public ModifiersProto.Modifiers.BuildermergeTransformation(ModifiersProto.Transformation value)

 The transformation applied to the element post-layout

public ModifiersProto.Modifiers.BuildermergeVisible(TypesProto.BoolProp value)

 Whether the attached element is visible, or hidden.

public ModifiersProto.Modifiers.BuildersetBackground(ModifiersProto.Background.Builder builderForValue)

 The background (with optional corner radius) of the modified element.

public ModifiersProto.Modifiers.BuildersetBackground(ModifiersProto.Background value)

 The background (with optional corner radius) of the modified element.

public ModifiersProto.Modifiers.BuildersetBorder(ModifiersProto.Border.Builder builderForValue)

 The border of the modified element.

public ModifiersProto.Modifiers.BuildersetBorder(ModifiersProto.Border value)

 The border of the modified element.

public ModifiersProto.Modifiers.BuildersetClickable(ModifiersProto.Clickable.Builder builderForValue)

 The clickable property of the modified element.

public ModifiersProto.Modifiers.BuildersetClickable(ModifiersProto.Clickable value)

 The clickable property of the modified element.

public ModifiersProto.Modifiers.BuildersetContentUpdateAnimation(ModifiersProto.AnimatedVisibility.Builder builderForValue)

 The content transition of an element.

public ModifiersProto.Modifiers.BuildersetContentUpdateAnimation(ModifiersProto.AnimatedVisibility value)

 The content transition of an element.

public ModifiersProto.Modifiers.BuildersetHidden(TypesProto.BoolProp.Builder builderForValue)

 Whether the attached element is hidden, or visible.

public ModifiersProto.Modifiers.BuildersetHidden(TypesProto.BoolProp value)

 Whether the attached element is hidden, or visible.

public ModifiersProto.Modifiers.BuildersetId(java.lang.String value)

 The optional identifier for the layout element.

public ModifiersProto.Modifiers.BuildersetIdBytes(com.google.protobuf.ByteString value)

 The optional identifier for the layout element.

public ModifiersProto.Modifiers.BuildersetMetadata(ModifiersProto.ElementMetadata.Builder builderForValue)

 Metadata about an element.

public ModifiersProto.Modifiers.BuildersetMetadata(ModifiersProto.ElementMetadata value)

 Metadata about an element.

public ModifiersProto.Modifiers.BuildersetOpacity(TypesProto.FloatProp.Builder builderForValue)

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque.

public ModifiersProto.Modifiers.BuildersetOpacity(TypesProto.FloatProp value)

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque.

public ModifiersProto.Modifiers.BuildersetPadding(ModifiersProto.Padding.Builder builderForValue)

 The padding of the modified element.

public ModifiersProto.Modifiers.BuildersetPadding(ModifiersProto.Padding value)

 The padding of the modified element.

public ModifiersProto.Modifiers.BuildersetSemantics(ModifiersProto.Semantics.Builder builderForValue)

 The semantics of the modified element.

public ModifiersProto.Modifiers.BuildersetSemantics(ModifiersProto.Semantics value)

 The semantics of the modified element.

public ModifiersProto.Modifiers.BuildersetTransformation(ModifiersProto.Transformation.Builder builderForValue)

 The transformation applied to the element post-layout

public ModifiersProto.Modifiers.BuildersetTransformation(ModifiersProto.Transformation value)

 The transformation applied to the element post-layout

public ModifiersProto.Modifiers.BuildersetVisible(TypesProto.BoolProp.Builder builderForValue)

 Whether the attached element is visible, or hidden.

public ModifiersProto.Modifiers.BuildersetVisible(TypesProto.BoolProp value)

 Whether the attached element is visible, or hidden.

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

Methods

public boolean hasClickable()

 The clickable property of the modified element. It allows its wrapped
 element to have actions associated with it, which will be executed when the
 element is tapped.
 
.androidx.wear.protolayout.proto.Clickable clickable = 1;

public ModifiersProto.Clickable getClickable()

 The clickable property of the modified element. It allows its wrapped
 element to have actions associated with it, which will be executed when the
 element is tapped.
 
.androidx.wear.protolayout.proto.Clickable clickable = 1;

 The clickable property of the modified element. It allows its wrapped
 element to have actions associated with it, which will be executed when the
 element is tapped.
 
.androidx.wear.protolayout.proto.Clickable clickable = 1;

 The clickable property of the modified element. It allows its wrapped
 element to have actions associated with it, which will be executed when the
 element is tapped.
 
.androidx.wear.protolayout.proto.Clickable clickable = 1;

 The clickable property of the modified element. It allows its wrapped
 element to have actions associated with it, which will be executed when the
 element is tapped.
 
.androidx.wear.protolayout.proto.Clickable clickable = 1;

public ModifiersProto.Modifiers.Builder clearClickable()

 The clickable property of the modified element. It allows its wrapped
 element to have actions associated with it, which will be executed when the
 element is tapped.
 
.androidx.wear.protolayout.proto.Clickable clickable = 1;

public boolean hasSemantics()

 The semantics of the modified element. This can be used to add metadata to
 the modified element (eg. screen reader content descriptions).
 
.androidx.wear.protolayout.proto.Semantics semantics = 2;

public ModifiersProto.Semantics getSemantics()

 The semantics of the modified element. This can be used to add metadata to
 the modified element (eg. screen reader content descriptions).
 
.androidx.wear.protolayout.proto.Semantics semantics = 2;

 The semantics of the modified element. This can be used to add metadata to
 the modified element (eg. screen reader content descriptions).
 
.androidx.wear.protolayout.proto.Semantics semantics = 2;

 The semantics of the modified element. This can be used to add metadata to
 the modified element (eg. screen reader content descriptions).
 
.androidx.wear.protolayout.proto.Semantics semantics = 2;

 The semantics of the modified element. This can be used to add metadata to
 the modified element (eg. screen reader content descriptions).
 
.androidx.wear.protolayout.proto.Semantics semantics = 2;

public ModifiersProto.Modifiers.Builder clearSemantics()

 The semantics of the modified element. This can be used to add metadata to
 the modified element (eg. screen reader content descriptions).
 
.androidx.wear.protolayout.proto.Semantics semantics = 2;

public boolean hasPadding()

 The padding of the modified element.
 
.androidx.wear.protolayout.proto.Padding padding = 3;

public ModifiersProto.Padding getPadding()

 The padding of the modified element.
 
.androidx.wear.protolayout.proto.Padding padding = 3;

 The padding of the modified element.
 
.androidx.wear.protolayout.proto.Padding padding = 3;

 The padding of the modified element.
 
.androidx.wear.protolayout.proto.Padding padding = 3;

 The padding of the modified element.
 
.androidx.wear.protolayout.proto.Padding padding = 3;

public ModifiersProto.Modifiers.Builder clearPadding()

 The padding of the modified element.
 
.androidx.wear.protolayout.proto.Padding padding = 3;

public boolean hasBorder()

 The border of the modified element.
 
.androidx.wear.protolayout.proto.Border border = 4;

public ModifiersProto.Border getBorder()

 The border of the modified element.
 
.androidx.wear.protolayout.proto.Border border = 4;

 The border of the modified element.
 
.androidx.wear.protolayout.proto.Border border = 4;

 The border of the modified element.
 
.androidx.wear.protolayout.proto.Border border = 4;

 The border of the modified element.
 
.androidx.wear.protolayout.proto.Border border = 4;

 The border of the modified element.
 
.androidx.wear.protolayout.proto.Border border = 4;

public boolean hasBackground()

 The background (with optional corner radius) of the modified element.
 
.androidx.wear.protolayout.proto.Background background = 5;

public ModifiersProto.Background getBackground()

 The background (with optional corner radius) of the modified element.
 
.androidx.wear.protolayout.proto.Background background = 5;

 The background (with optional corner radius) of the modified element.
 
.androidx.wear.protolayout.proto.Background background = 5;

 The background (with optional corner radius) of the modified element.
 
.androidx.wear.protolayout.proto.Background background = 5;

 The background (with optional corner radius) of the modified element.
 
.androidx.wear.protolayout.proto.Background background = 5;

public ModifiersProto.Modifiers.Builder clearBackground()

 The background (with optional corner radius) of the modified element.
 
.androidx.wear.protolayout.proto.Background background = 5;

public boolean hasMetadata()

 Metadata about an element. For use by libraries building higher-level
 components only. This can be used to track component metadata
 
.androidx.wear.protolayout.proto.ElementMetadata metadata = 6;

public ModifiersProto.ElementMetadata getMetadata()

 Metadata about an element. For use by libraries building higher-level
 components only. This can be used to track component metadata
 
.androidx.wear.protolayout.proto.ElementMetadata metadata = 6;

 Metadata about an element. For use by libraries building higher-level
 components only. This can be used to track component metadata
 
.androidx.wear.protolayout.proto.ElementMetadata metadata = 6;

 Metadata about an element. For use by libraries building higher-level
 components only. This can be used to track component metadata
 
.androidx.wear.protolayout.proto.ElementMetadata metadata = 6;

 Metadata about an element. For use by libraries building higher-level
 components only. This can be used to track component metadata
 
.androidx.wear.protolayout.proto.ElementMetadata metadata = 6;

public ModifiersProto.Modifiers.Builder clearMetadata()

 Metadata about an element. For use by libraries building higher-level
 components only. This can be used to track component metadata
 
.androidx.wear.protolayout.proto.ElementMetadata metadata = 6;

public boolean hasContentUpdateAnimation()

 The content transition of an element. Any update to the element or its
 children will trigger this animation for this element and everything
 underneath it.
 
.androidx.wear.protolayout.proto.AnimatedVisibility content_update_animation = 7;

public ModifiersProto.AnimatedVisibility getContentUpdateAnimation()

 The content transition of an element. Any update to the element or its
 children will trigger this animation for this element and everything
 underneath it.
 
.androidx.wear.protolayout.proto.AnimatedVisibility content_update_animation = 7;

 The content transition of an element. Any update to the element or its
 children will trigger this animation for this element and everything
 underneath it.
 
.androidx.wear.protolayout.proto.AnimatedVisibility content_update_animation = 7;

public ModifiersProto.Modifiers.Builder setContentUpdateAnimation(ModifiersProto.AnimatedVisibility.Builder builderForValue)

 The content transition of an element. Any update to the element or its
 children will trigger this animation for this element and everything
 underneath it.
 
.androidx.wear.protolayout.proto.AnimatedVisibility content_update_animation = 7;

 The content transition of an element. Any update to the element or its
 children will trigger this animation for this element and everything
 underneath it.
 
.androidx.wear.protolayout.proto.AnimatedVisibility content_update_animation = 7;

public ModifiersProto.Modifiers.Builder clearContentUpdateAnimation()

 The content transition of an element. Any update to the element or its
 children will trigger this animation for this element and everything
 underneath it.
 
.androidx.wear.protolayout.proto.AnimatedVisibility content_update_animation = 7;

public boolean hasHidden()

 Whether the attached element is hidden, or visible. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).

 Defaults to false (i.e. not hidden).
 This field is deprecated and is only kept for backward compatibility.
 
.androidx.wear.protolayout.proto.BoolProp hidden = 8;

public TypesProto.BoolProp getHidden()

 Whether the attached element is hidden, or visible. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).

 Defaults to false (i.e. not hidden).
 This field is deprecated and is only kept for backward compatibility.
 
.androidx.wear.protolayout.proto.BoolProp hidden = 8;

 Whether the attached element is hidden, or visible. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).

 Defaults to false (i.e. not hidden).
 This field is deprecated and is only kept for backward compatibility.
 
.androidx.wear.protolayout.proto.BoolProp hidden = 8;

 Whether the attached element is hidden, or visible. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).

 Defaults to false (i.e. not hidden).
 This field is deprecated and is only kept for backward compatibility.
 
.androidx.wear.protolayout.proto.BoolProp hidden = 8;

 Whether the attached element is hidden, or visible. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).

 Defaults to false (i.e. not hidden).
 This field is deprecated and is only kept for backward compatibility.
 
.androidx.wear.protolayout.proto.BoolProp hidden = 8;

 Whether the attached element is hidden, or visible. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).

 Defaults to false (i.e. not hidden).
 This field is deprecated and is only kept for backward compatibility.
 
.androidx.wear.protolayout.proto.BoolProp hidden = 8;

public java.lang.String getId()

 The optional identifier for the layout element.
 
string id = 9;

Returns:

The id.

public com.google.protobuf.ByteString getIdBytes()

 The optional identifier for the layout element.
 
string id = 9;

Returns:

The bytes for id.

public ModifiersProto.Modifiers.Builder setId(java.lang.String value)

 The optional identifier for the layout element.
 
string id = 9;

Parameters:

value: The id to set.

Returns:

This builder for chaining.

 The optional identifier for the layout element.
 
string id = 9;

Returns:

This builder for chaining.

public ModifiersProto.Modifiers.Builder setIdBytes(com.google.protobuf.ByteString value)

 The optional identifier for the layout element.
 
string id = 9;

Parameters:

value: The bytes for id to set.

Returns:

This builder for chaining.

public boolean hasVisible()

 Whether the attached element is visible, or hidden. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents. Defaults to
 visible.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).
 
.androidx.wear.protolayout.proto.BoolProp visible = 10;

public TypesProto.BoolProp getVisible()

 Whether the attached element is visible, or hidden. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents. Defaults to
 visible.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).
 
.androidx.wear.protolayout.proto.BoolProp visible = 10;

 Whether the attached element is visible, or hidden. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents. Defaults to
 visible.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).
 
.androidx.wear.protolayout.proto.BoolProp visible = 10;

 Whether the attached element is visible, or hidden. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents. Defaults to
 visible.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).
 
.androidx.wear.protolayout.proto.BoolProp visible = 10;

 Whether the attached element is visible, or hidden. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents. Defaults to
 visible.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).
 
.androidx.wear.protolayout.proto.BoolProp visible = 10;

public ModifiersProto.Modifiers.Builder clearVisible()

 Whether the attached element is visible, or hidden. If the element is
 hidden, then it will still consume space in the layout, but will not render
 any contents, nor will any children render any contents. Defaults to
 visible.

 Note that a hidden element also cannot be clickable (i.e. a Clickable
 modifier would be ignored).
 
.androidx.wear.protolayout.proto.BoolProp visible = 10;

public boolean hasTransformation()

 The transformation applied to the element post-layout
 
.androidx.wear.protolayout.proto.Transformation transformation = 11;

public ModifiersProto.Transformation getTransformation()

 The transformation applied to the element post-layout
 
.androidx.wear.protolayout.proto.Transformation transformation = 11;

 The transformation applied to the element post-layout
 
.androidx.wear.protolayout.proto.Transformation transformation = 11;

 The transformation applied to the element post-layout
 
.androidx.wear.protolayout.proto.Transformation transformation = 11;

 The transformation applied to the element post-layout
 
.androidx.wear.protolayout.proto.Transformation transformation = 11;

public ModifiersProto.Modifiers.Builder clearTransformation()

 The transformation applied to the element post-layout
 
.androidx.wear.protolayout.proto.Transformation transformation = 11;

public boolean hasOpacity()

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque. Defaults to 1.
 
.androidx.wear.protolayout.proto.FloatProp opacity = 12;

public TypesProto.FloatProp getOpacity()

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque. Defaults to 1.
 
.androidx.wear.protolayout.proto.FloatProp opacity = 12;

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque. Defaults to 1.
 
.androidx.wear.protolayout.proto.FloatProp opacity = 12;

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque. Defaults to 1.
 
.androidx.wear.protolayout.proto.FloatProp opacity = 12;

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque. Defaults to 1.
 
.androidx.wear.protolayout.proto.FloatProp opacity = 12;

public ModifiersProto.Modifiers.Builder clearOpacity()

 The opacity of the element with a value from 0 to 1, where 0 means
 the element is completely transparent and 1 means the element is
 completely opaque. Defaults to 1.
 
.androidx.wear.protolayout.proto.FloatProp opacity = 12;