public final class

ResourceProto.ImageResource

extends <any>

implements ResourceProto.ImageResourceOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.ResourceProto.ImageResource

Overview

 An image resource, which can be used by layouts. This holds multiple
 underlying resource types, which the underlying runtime will pick according
 to what it thinks is appropriate.
 
Protobuf type androidx.wear.protolayout.proto.ImageResource

Summary

Fields
public static final intANDROID_ANIMATED_RESOURCE_BY_RES_ID_FIELD_NUMBER

public static final intANDROID_CONTENT_URI_FIELD_NUMBER

public static final intANDROID_RESOURCE_BY_NAME_FIELD_NUMBER

public static final intANDROID_RESOURCE_BY_RES_ID_FIELD_NUMBER

public static final intANDROID_SEEKABLE_ANIMATED_RESOURCE_BY_RES_ID_FIELD_NUMBER

public static final intHTTP_RESOURCE_FIELD_NUMBER

public static final intINLINE_RESOURCE_FIELD_NUMBER

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

public ResourceProto.AndroidAnimatedImageResourceByResIdgetAndroidAnimatedResourceByResId()

 A non-seekable animated image resource that maps to an Android drawable by
 resource ID.

public ResourceProto.AndroidImageResourceByContentUrigetAndroidContentUri()

 An image which loads its drawable via an Android Content URI.

public ResourceProto.AndroidImageResourceByNamegetAndroidResourceByName()

 An image resource that maps to an Android drawable by name.

public ResourceProto.AndroidImageResourceByResIdgetAndroidResourceByResId()

 An image resource that maps to an Android drawable by resource ID.

public ResourceProto.AndroidSeekableAnimatedImageResourceByResIdgetAndroidSeekableAnimatedResourceByResId()

 A seekable animated image resource that maps to an Android drawable by
 resource ID.

public static ResourceProto.ImageResourcegetDefaultInstance()

public ResourceProto.HttpImageResourcegetHttpResource()

 An image resource that contains a URL to a http image.

public ResourceProto.InlineImageResourcegetInlineResource()

 An image resource that contains the image data inline.

public booleanhasAndroidAnimatedResourceByResId()

 A non-seekable animated image resource that maps to an Android drawable by
 resource ID.

public booleanhasAndroidContentUri()

 An image which loads its drawable via an Android Content URI.

public booleanhasAndroidResourceByName()

 An image resource that maps to an Android drawable by name.

public booleanhasAndroidResourceByResId()

 An image resource that maps to an Android drawable by resource ID.

public booleanhasAndroidSeekableAnimatedResourceByResId()

 A seekable animated image resource that maps to an Android drawable by
 resource ID.

public booleanhasHttpResource()

 An image resource that contains a URL to a http image.

public booleanhasInlineResource()

 An image resource that contains the image data inline.

public static ResourceProto.ImageResource.BuildernewBuilder()

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

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

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

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

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

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

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

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

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

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

public static ResourceProto.ImageResourceparseFrom(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 ANDROID_RESOURCE_BY_RES_ID_FIELD_NUMBER

public static final int INLINE_RESOURCE_FIELD_NUMBER

public static final int ANDROID_RESOURCE_BY_NAME_FIELD_NUMBER

public static final int HTTP_RESOURCE_FIELD_NUMBER

public static final int ANDROID_CONTENT_URI_FIELD_NUMBER

public static final int ANDROID_ANIMATED_RESOURCE_BY_RES_ID_FIELD_NUMBER

public static final int ANDROID_SEEKABLE_ANIMATED_RESOURCE_BY_RES_ID_FIELD_NUMBER

Methods

public boolean hasAndroidResourceByResId()

 An image resource that maps to an Android drawable by resource ID.
 
.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;

public ResourceProto.AndroidImageResourceByResId getAndroidResourceByResId()

 An image resource that maps to an Android drawable by resource ID.
 
.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;

public boolean hasInlineResource()

 An image resource that contains the image data inline.
 
.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;

public ResourceProto.InlineImageResource getInlineResource()

 An image resource that contains the image data inline.
 
.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;

public boolean hasAndroidResourceByName()

 An image resource that maps to an Android drawable by name.
 
.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;

public ResourceProto.AndroidImageResourceByName getAndroidResourceByName()

 An image resource that maps to an Android drawable by name.
 
.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;

public boolean hasHttpResource()

 An image resource that contains a URL to a http image.
 
.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;

public ResourceProto.HttpImageResource getHttpResource()

 An image resource that contains a URL to a http image.
 
.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;

public boolean hasAndroidContentUri()

 An image which loads its drawable via an Android Content URI.
 
.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;

 An image which loads its drawable via an Android Content URI.
 
.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;

public boolean hasAndroidAnimatedResourceByResId()

 A non-seekable animated image resource that maps to an Android drawable by
 resource ID. The animation is started with given trigger, fire and forget.
 
.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;

public ResourceProto.AndroidAnimatedImageResourceByResId getAndroidAnimatedResourceByResId()

 A non-seekable animated image resource that maps to an Android drawable by
 resource ID. The animation is started with given trigger, fire and forget.
 
.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;

public boolean hasAndroidSeekableAnimatedResourceByResId()

 A seekable animated image resource that maps to an Android drawable by
 resource ID. The animation progress is bound to the provided dynamic float.
 
.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;

public ResourceProto.AndroidSeekableAnimatedImageResourceByResId getAndroidSeekableAnimatedResourceByResId()

 A seekable animated image resource that maps to an Android drawable by
 resource ID. The animation progress is bound to the provided dynamic float.
 
.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;

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

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

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

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

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

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

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

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

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

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

public static ResourceProto.ImageResource.Builder newBuilder()

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

public static ResourceProto.ImageResource getDefaultInstance()

public static <any> parser()