public final class

LayoutElementProto.Image

extends <any>

implements LayoutElementProto.ImageOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.Image

Overview

 An image.

 Images used in this element must exist in the resource bundle that
 corresponds to this layout. Images must have their dimension specified, and
 will be rendered at this width and height, regardless of their native
 dimension.
 
Protobuf type androidx.wear.protolayout.proto.Image

Summary

Fields
public static final intCOLOR_FILTER_FIELD_NUMBER

public static final intCONTENT_SCALE_MODE_FIELD_NUMBER

public static final intHEIGHT_FIELD_NUMBER

public static final intMODIFIERS_FIELD_NUMBER

public static final intRESOURCE_ID_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 LayoutElementProto.ColorFiltergetColorFilter()

 Filtering parameters for this image.

public LayoutElementProto.ContentScaleModePropgetContentScaleMode()

 How to scale the image resource inside the bounds specified by width/height
 if its size does not match those bounds.

public static LayoutElementProto.ImagegetDefaultInstance()

public DimensionProto.ImageDimensiongetHeight()

 The height of this image.

public ModifiersProto.ModifiersgetModifiers()

 Modifiers for this element.

public TypesProto.StringPropgetResourceId()

 The resource_id of the image to render.

public DimensionProto.ImageDimensiongetWidth()

 The width of this image.

public booleanhasColorFilter()

 Filtering parameters for this image.

public booleanhasContentScaleMode()

 How to scale the image resource inside the bounds specified by width/height
 if its size does not match those bounds.

public booleanhasHeight()

 The height of this image.

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasResourceId()

 The resource_id of the image to render.

public booleanhasWidth()

 The width of this image.

public static LayoutElementProto.Image.BuildernewBuilder()

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

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

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

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

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

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

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

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

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

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

public static LayoutElementProto.ImageparseFrom(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 RESOURCE_ID_FIELD_NUMBER

public static final int WIDTH_FIELD_NUMBER

public static final int HEIGHT_FIELD_NUMBER

public static final int CONTENT_SCALE_MODE_FIELD_NUMBER

public static final int MODIFIERS_FIELD_NUMBER

public static final int COLOR_FILTER_FIELD_NUMBER

Methods

public boolean hasResourceId()

 The resource_id of the image to render. This must exist in the supplied
 resource bundle.
 
.androidx.wear.protolayout.proto.StringProp resource_id = 1;

public TypesProto.StringProp getResourceId()

 The resource_id of the image to render. This must exist in the supplied
 resource bundle.
 
.androidx.wear.protolayout.proto.StringProp resource_id = 1;

public boolean hasWidth()

 The width of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.ImageDimension width = 2;

 The width of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.ImageDimension width = 2;

public boolean hasHeight()

 The height of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.ImageDimension height = 3;

 The height of this image. If not defined, the image will not be rendered.
 
.androidx.wear.protolayout.proto.ImageDimension height = 3;

public boolean hasContentScaleMode()

 How to scale the image resource inside the bounds specified by width/height
 if its size does not match those bounds. Defaults to
 CONTENT_SCALE_MODE_FIT.
 
.androidx.wear.protolayout.proto.ContentScaleModeProp content_scale_mode = 4;

public LayoutElementProto.ContentScaleModeProp getContentScaleMode()

 How to scale the image resource inside the bounds specified by width/height
 if its size does not match those bounds. Defaults to
 CONTENT_SCALE_MODE_FIT.
 
.androidx.wear.protolayout.proto.ContentScaleModeProp content_scale_mode = 4;

public boolean hasModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

public ModifiersProto.Modifiers getModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 5;

public boolean hasColorFilter()

 Filtering parameters for this image. If not specified, defaults to no
 filtering.
 
.androidx.wear.protolayout.proto.ColorFilter color_filter = 6;

public LayoutElementProto.ColorFilter getColorFilter()

 Filtering parameters for this image. If not specified, defaults to no
 filtering.
 
.androidx.wear.protolayout.proto.ColorFilter color_filter = 6;

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

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

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

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

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

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

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

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

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

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

public static LayoutElementProto.Image.Builder newBuilder()

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

public static LayoutElementProto.Image getDefaultInstance()

public static <any> parser()