public final class

LayoutElementProto.ExtensionLayoutElement

extends <any>

implements LayoutElementProto.ExtensionLayoutElementOrBuilder

 java.lang.Object

↳<any>

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

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

Fields
public static final intEXTENSION_ID_FIELD_NUMBER

public static final intHEIGHT_FIELD_NUMBER

public static final intPAYLOAD_FIELD_NUMBER

public static final intWIDTH_FIELD_NUMBER

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

public static LayoutElementProto.ExtensionLayoutElementgetDefaultInstance()

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 static LayoutElementProto.ExtensionLayoutElement.BuildernewBuilder()

public static LayoutElementProto.ExtensionLayoutElement.BuildernewBuilder(LayoutElementProto.ExtensionLayoutElement prototype)

public static LayoutElementProto.ExtensionLayoutElementparseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.ExtensionLayoutElementparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.ExtensionLayoutElementparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.ExtensionLayoutElementparseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.ExtensionLayoutElementparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.ExtensionLayoutElementparseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.ExtensionLayoutElementparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.ExtensionLayoutElementparseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.ExtensionLayoutElementparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.ExtensionLayoutElementparseFrom(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 PAYLOAD_FIELD_NUMBER

public static final int EXTENSION_ID_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER

public static final int HEIGHT_FIELD_NUMBER

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

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;

public static LayoutElementProto.ExtensionLayoutElement parseFrom(java.nio.ByteBuffer data)

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

public static LayoutElementProto.ExtensionLayoutElement parseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.ExtensionLayoutElement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

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

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

public static LayoutElementProto.ExtensionLayoutElement parseDelimitedFrom(java.io.InputStream input)

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

public static LayoutElementProto.ExtensionLayoutElement parseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.ExtensionLayoutElement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

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

public static LayoutElementProto.ExtensionLayoutElement getDefaultInstance()

public static <any> parser()