public final class

LayoutElementProto.ExtensionLayoutElement.Builder

extends <any>

implements LayoutElementProto.ExtensionLayoutElementOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.ExtensionLayoutElement.Builder

Overview

 A layout element which can be defined by a renderer extension. The
 payload in this message will be passed verbatim to any registered renderer
 extension in the renderer. It is then expected that the extension can
 parse this message, and emit the relevant element.

 If a renderer extension is not installed, this resource will not render
 any element, although the specified space will still be occupied. If the
 payload cannot be parsed by the renderer extension, then still nothing should
 be rendered, although this behaviour is defined by the renderer extension.
 
Protobuf type androidx.wear.protolayout.proto.ExtensionLayoutElement

Summary

Methods
public LayoutElementProto.ExtensionLayoutElement.BuilderclearExtensionId()

 The ID of the renderer extension that should be used for rendering this
 layout element.

public LayoutElementProto.ExtensionLayoutElement.BuilderclearHeight()

 The height of this element.

public LayoutElementProto.ExtensionLayoutElement.BuilderclearPayload()

 The content of the renderer extension element.

public LayoutElementProto.ExtensionLayoutElement.BuilderclearWidth()

 The width of this element.

public java.lang.StringgetExtensionId()

 The ID of the renderer extension that should be used for rendering this
 layout element.

public com.google.protobuf.ByteStringgetExtensionIdBytes()

 The ID of the renderer extension that should be used for rendering this
 layout element.

public DimensionProto.ExtensionDimensiongetHeight()

 The height of this element.

public com.google.protobuf.ByteStringgetPayload()

 The content of the renderer extension element.

public DimensionProto.ExtensionDimensiongetWidth()

 The width of this element.

public booleanhasHeight()

 The height of this element.

public booleanhasWidth()

 The width of this element.

public LayoutElementProto.ExtensionLayoutElement.BuildermergeHeight(DimensionProto.ExtensionDimension value)

 The height of this element.

public LayoutElementProto.ExtensionLayoutElement.BuildermergeWidth(DimensionProto.ExtensionDimension value)

 The width of this element.

public LayoutElementProto.ExtensionLayoutElement.BuildersetExtensionId(java.lang.String value)

 The ID of the renderer extension that should be used for rendering this
 layout element.

public LayoutElementProto.ExtensionLayoutElement.BuildersetExtensionIdBytes(com.google.protobuf.ByteString value)

 The ID of the renderer extension that should be used for rendering this
 layout element.

public LayoutElementProto.ExtensionLayoutElement.BuildersetHeight(DimensionProto.ExtensionDimension.Builder builderForValue)

 The height of this element.

public LayoutElementProto.ExtensionLayoutElement.BuildersetHeight(DimensionProto.ExtensionDimension value)

 The height of this element.

public LayoutElementProto.ExtensionLayoutElement.BuildersetPayload(com.google.protobuf.ByteString value)

 The content of the renderer extension element.

public LayoutElementProto.ExtensionLayoutElement.BuildersetWidth(DimensionProto.ExtensionDimension.Builder builderForValue)

 The width of this element.

public LayoutElementProto.ExtensionLayoutElement.BuildersetWidth(DimensionProto.ExtensionDimension value)

 The width of this element.

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

Methods

public com.google.protobuf.ByteString getPayload()

 The content of the renderer extension element. This can be any data; it is
 expected that the renderer extension knows how to parse this field.
 
bytes payload = 1;

Returns:

The payload.

public LayoutElementProto.ExtensionLayoutElement.Builder setPayload(com.google.protobuf.ByteString value)

 The content of the renderer extension element. This can be any data; it is
 expected that the renderer extension knows how to parse this field.
 
bytes payload = 1;

Parameters:

value: The payload to set.

Returns:

This builder for chaining.

 The content of the renderer extension element. This can be any data; it is
 expected that the renderer extension knows how to parse this field.
 
bytes payload = 1;

Returns:

This builder for chaining.

public java.lang.String getExtensionId()

 The ID of the renderer extension that should be used for rendering this
 layout element.
 
string extension_id = 2;

Returns:

The extensionId.

public com.google.protobuf.ByteString getExtensionIdBytes()

 The ID of the renderer extension that should be used for rendering this
 layout element.
 
string extension_id = 2;

Returns:

The bytes for extensionId.

public LayoutElementProto.ExtensionLayoutElement.Builder setExtensionId(java.lang.String value)

 The ID of the renderer extension that should be used for rendering this
 layout element.
 
string extension_id = 2;

Parameters:

value: The extensionId to set.

Returns:

This builder for chaining.

 The ID of the renderer extension that should be used for rendering this
 layout element.
 
string extension_id = 2;

Returns:

This builder for chaining.

public LayoutElementProto.ExtensionLayoutElement.Builder setExtensionIdBytes(com.google.protobuf.ByteString value)

 The ID of the renderer extension that should be used for rendering this
 layout element.
 
string extension_id = 2;

Parameters:

value: The bytes for extensionId to set.

Returns:

This builder for chaining.

public boolean hasWidth()

 The width of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension width = 3;

 The width of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension width = 3;

 The width of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension width = 3;

 The width of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension width = 3;

 The width of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension width = 3;

 The width of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension width = 3;

public boolean hasHeight()

 The height of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension height = 4;

 The height of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension height = 4;

 The height of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension height = 4;

 The height of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension height = 4;

 The height of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension height = 4;

 The height of this element.
 
.androidx.wear.protolayout.proto.ExtensionDimension height = 4;