public final class

ResourceProto.InlineImageResource.Builder

extends <any>

implements ResourceProto.InlineImageResourceOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.ResourceProto.InlineImageResource.Builder

Overview

 An image resource whose data is fully inlined, with no dependency on a
 system or app resource.
 
Protobuf type androidx.wear.protolayout.proto.InlineImageResource

Summary

Methods
public ResourceProto.InlineImageResource.BuilderclearData()

 The byte array representing the image.

public ResourceProto.InlineImageResource.BuilderclearFormat()

 The format of the byte array data representing the image.

public ResourceProto.InlineImageResource.BuilderclearHeightPx()

 The native height of the image, in pixels.

public ResourceProto.InlineImageResource.BuilderclearWidthPx()

 The native width of the image, in pixels.

public com.google.protobuf.ByteStringgetData()

 The byte array representing the image.

public ResourceProto.ImageFormatgetFormat()

 The format of the byte array data representing the image.

public intgetFormatValue()

 The format of the byte array data representing the image.

public intgetHeightPx()

 The native height of the image, in pixels.

public intgetWidthPx()

 The native width of the image, in pixels.

public ResourceProto.InlineImageResource.BuildersetData(com.google.protobuf.ByteString value)

 The byte array representing the image.

public ResourceProto.InlineImageResource.BuildersetFormat(ResourceProto.ImageFormat value)

 The format of the byte array data representing the image.

public ResourceProto.InlineImageResource.BuildersetFormatValue(int value)

 The format of the byte array data representing the image.

public ResourceProto.InlineImageResource.BuildersetHeightPx(int value)

 The native height of the image, in pixels.

public ResourceProto.InlineImageResource.BuildersetWidthPx(int value)

 The native width of the image, in pixels.

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

Methods

public com.google.protobuf.ByteString getData()

 The byte array representing the image.
 
bytes data = 1;

Returns:

The data.

public ResourceProto.InlineImageResource.Builder setData(com.google.protobuf.ByteString value)

 The byte array representing the image.
 
bytes data = 1;

Parameters:

value: The data to set.

Returns:

This builder for chaining.

 The byte array representing the image.
 
bytes data = 1;

Returns:

This builder for chaining.

public int getWidthPx()

 The native width of the image, in pixels. Only required for formats
 (e.g. IMAGE_FORMAT_RGB_565) where the image data does not include size.
 
int32 width_px = 2;

Returns:

The widthPx.

public ResourceProto.InlineImageResource.Builder setWidthPx(int value)

 The native width of the image, in pixels. Only required for formats
 (e.g. IMAGE_FORMAT_RGB_565) where the image data does not include size.
 
int32 width_px = 2;

Parameters:

value: The widthPx to set.

Returns:

This builder for chaining.

 The native width of the image, in pixels. Only required for formats
 (e.g. IMAGE_FORMAT_RGB_565) where the image data does not include size.
 
int32 width_px = 2;

Returns:

This builder for chaining.

public int getHeightPx()

 The native height of the image, in pixels. Only required for formats
 (e.g. IMAGE_FORMAT_RGB_565) where the image data does not include size.
 
int32 height_px = 3;

Returns:

The heightPx.

public ResourceProto.InlineImageResource.Builder setHeightPx(int value)

 The native height of the image, in pixels. Only required for formats
 (e.g. IMAGE_FORMAT_RGB_565) where the image data does not include size.
 
int32 height_px = 3;

Parameters:

value: The heightPx to set.

Returns:

This builder for chaining.

 The native height of the image, in pixels. Only required for formats
 (e.g. IMAGE_FORMAT_RGB_565) where the image data does not include size.
 
int32 height_px = 3;

Returns:

This builder for chaining.

public int getFormatValue()

 The format of the byte array data representing the image. May be left
 unspecified or set to IMAGE_FORMAT_UNDEFINED in which case the platform
 will attempt to extract this from the raw image data. If the platform does
 not support the format, the image will not be decoded or displayed.
 
.androidx.wear.protolayout.proto.ImageFormat format = 4;

Returns:

The enum numeric value on the wire for format.

public ResourceProto.InlineImageResource.Builder setFormatValue(int value)

 The format of the byte array data representing the image. May be left
 unspecified or set to IMAGE_FORMAT_UNDEFINED in which case the platform
 will attempt to extract this from the raw image data. If the platform does
 not support the format, the image will not be decoded or displayed.
 
.androidx.wear.protolayout.proto.ImageFormat format = 4;

Parameters:

value: The format to set.

Returns:

This builder for chaining.

public ResourceProto.ImageFormat getFormat()

 The format of the byte array data representing the image. May be left
 unspecified or set to IMAGE_FORMAT_UNDEFINED in which case the platform
 will attempt to extract this from the raw image data. If the platform does
 not support the format, the image will not be decoded or displayed.
 
.androidx.wear.protolayout.proto.ImageFormat format = 4;

Returns:

The format.

 The format of the byte array data representing the image. May be left
 unspecified or set to IMAGE_FORMAT_UNDEFINED in which case the platform
 will attempt to extract this from the raw image data. If the platform does
 not support the format, the image will not be decoded or displayed.
 
.androidx.wear.protolayout.proto.ImageFormat format = 4;

Parameters:

value: The enum numeric value on the wire for format to set.

Returns:

This builder for chaining.

 The format of the byte array data representing the image. May be left
 unspecified or set to IMAGE_FORMAT_UNDEFINED in which case the platform
 will attempt to extract this from the raw image data. If the platform does
 not support the format, the image will not be decoded or displayed.
 
.androidx.wear.protolayout.proto.ImageFormat format = 4;

Returns:

This builder for chaining.