public final class

ResourceProto.InlineImageResource

extends <any>

implements ResourceProto.InlineImageResourceOrBuilder

 java.lang.Object

↳<any>

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

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

Fields
public static final intDATA_FIELD_NUMBER

public static final intFORMAT_FIELD_NUMBER

public static final intHEIGHT_PX_FIELD_NUMBER

public static final intWIDTH_PX_FIELD_NUMBER

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

public com.google.protobuf.ByteStringgetData()

 The byte array representing the image.

public static ResourceProto.InlineImageResourcegetDefaultInstance()

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 static ResourceProto.InlineImageResource.BuildernewBuilder()

public static ResourceProto.InlineImageResource.BuildernewBuilder(ResourceProto.InlineImageResource prototype)

public static ResourceProto.InlineImageResourceparseDelimitedFrom(java.io.InputStream input)

public static ResourceProto.InlineImageResourceparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.InlineImageResourceparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.InlineImageResourceparseFrom(java.nio.ByteBuffer data)

public static ResourceProto.InlineImageResourceparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.InlineImageResourceparseFrom(com.google.protobuf.ByteString data)

public static ResourceProto.InlineImageResourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.InlineImageResourceparseFrom(com.google.protobuf.CodedInputStream input)

public static ResourceProto.InlineImageResourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ResourceProto.InlineImageResourceparseFrom(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 DATA_FIELD_NUMBER

public static final int WIDTH_PX_FIELD_NUMBER

public static final int HEIGHT_PX_FIELD_NUMBER

public static final int FORMAT_FIELD_NUMBER

Methods

public com.google.protobuf.ByteString getData()

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

Returns:

The data.

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

public static ResourceProto.InlineImageResource parseFrom(java.nio.ByteBuffer data)

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

public static ResourceProto.InlineImageResource parseFrom(com.google.protobuf.ByteString data)

public static ResourceProto.InlineImageResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

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

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

public static ResourceProto.InlineImageResource parseDelimitedFrom(java.io.InputStream input)

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

public static ResourceProto.InlineImageResource parseFrom(com.google.protobuf.CodedInputStream input)

public static ResourceProto.InlineImageResource 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 ResourceProto.InlineImageResource getDefaultInstance()

public static <any> parser()