public final class

ResourceProto

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.proto.ResourceProto

Gradle dependencies

compile group: 'androidx.wear.protolayout', name: 'protolayout-proto', version: '1.2.0'

  • groupId: androidx.wear.protolayout
  • artifactId: protolayout-proto
  • version: 1.2.0

Artifact androidx.wear.protolayout:protolayout-proto:1.2.0 it located at Google repository (https://maven.google.com/)

Summary

Methods
public static voidregisterAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)

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

Methods

public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)

Source

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: resources.proto

package androidx.wear.protolayout.proto;

public final class ResourceProto {
  private ResourceProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  /**
   * <pre>
   * Format describing the contents of an image data byte array.
   * </pre>
   *
   * Protobuf enum {@code androidx.wear.protolayout.proto.ImageFormat}
   */
  public enum ImageFormat
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <pre>
     * An undefined image format.
     * </pre>
     *
     * <code>IMAGE_FORMAT_UNDEFINED = 0;</code>
     */
    IMAGE_FORMAT_UNDEFINED(0),
    /**
     * <pre>
     * An image format where each pixel is stored on 2 bytes, with red using 5
     * bits, green using 6 bits and blue using 5 bits of precision.
     * </pre>
     *
     * <code>IMAGE_FORMAT_RGB_565 = 1;</code>
     */
    IMAGE_FORMAT_RGB_565(1),
    /**
     * <pre>
     * An image format where each pixel is stored on 4 bytes.
     * RGB and alpha (for translucency) is stored with 8 bits of precision.
     * </pre>
     *
     * <code>IMAGE_FORMAT_ARGB_8888 = 2;</code>
     */
    IMAGE_FORMAT_ARGB_8888(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <pre>
     * An undefined image format.
     * </pre>
     *
     * <code>IMAGE_FORMAT_UNDEFINED = 0;</code>
     */
    public static final int IMAGE_FORMAT_UNDEFINED_VALUE = 0;
    /**
     * <pre>
     * An image format where each pixel is stored on 2 bytes, with red using 5
     * bits, green using 6 bits and blue using 5 bits of precision.
     * </pre>
     *
     * <code>IMAGE_FORMAT_RGB_565 = 1;</code>
     */
    public static final int IMAGE_FORMAT_RGB_565_VALUE = 1;
    /**
     * <pre>
     * An image format where each pixel is stored on 4 bytes.
     * RGB and alpha (for translucency) is stored with 8 bits of precision.
     * </pre>
     *
     * <code>IMAGE_FORMAT_ARGB_8888 = 2;</code>
     */
    public static final int IMAGE_FORMAT_ARGB_8888_VALUE = 2;


    @java.lang.Override
    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ImageFormat valueOf(int value) {
      return forNumber(value);
    }

    public static ImageFormat forNumber(int value) {
      switch (value) {
        case 0: return IMAGE_FORMAT_UNDEFINED;
        case 1: return IMAGE_FORMAT_RGB_565;
        case 2: return IMAGE_FORMAT_ARGB_8888;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<ImageFormat>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        ImageFormat> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<ImageFormat>() {
            @java.lang.Override
            public ImageFormat findValueByNumber(int number) {
              return ImageFormat.forNumber(number);
            }
          };

    public static com.google.protobuf.Internal.EnumVerifier 
        internalGetVerifier() {
      return ImageFormatVerifier.INSTANCE;
    }

    private static final class ImageFormatVerifier implements 
         com.google.protobuf.Internal.EnumVerifier { 
            static final com.google.protobuf.Internal.EnumVerifier           INSTANCE = new ImageFormatVerifier();
            @java.lang.Override
            public boolean isInRange(int number) {
              return ImageFormat.forNumber(number) != null;
            }
          };

    private final int value;

    private ImageFormat(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:androidx.wear.protolayout.proto.ImageFormat)
  }

  /**
   * <pre>
   * Format describing the contents of an animated image.
   * </pre>
   *
   * Protobuf enum {@code androidx.wear.protolayout.proto.AnimatedImageFormat}
   */
  public enum AnimatedImageFormat
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <pre>
     * An undefined image format.
     * </pre>
     *
     * <code>ANIMATED_IMAGE_FORMAT_UNDEFINED = 0;</code>
     */
    ANIMATED_IMAGE_FORMAT_UNDEFINED(0),
    /**
     * <pre>
     * Android AnimatedVectorDrawable.
     * </pre>
     *
     * <code>ANIMATED_IMAGE_FORMAT_AVD = 1;</code>
     */
    ANIMATED_IMAGE_FORMAT_AVD(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * <pre>
     * An undefined image format.
     * </pre>
     *
     * <code>ANIMATED_IMAGE_FORMAT_UNDEFINED = 0;</code>
     */
    public static final int ANIMATED_IMAGE_FORMAT_UNDEFINED_VALUE = 0;
    /**
     * <pre>
     * Android AnimatedVectorDrawable.
     * </pre>
     *
     * <code>ANIMATED_IMAGE_FORMAT_AVD = 1;</code>
     */
    public static final int ANIMATED_IMAGE_FORMAT_AVD_VALUE = 1;


    @java.lang.Override
    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static AnimatedImageFormat valueOf(int value) {
      return forNumber(value);
    }

    public static AnimatedImageFormat forNumber(int value) {
      switch (value) {
        case 0: return ANIMATED_IMAGE_FORMAT_UNDEFINED;
        case 1: return ANIMATED_IMAGE_FORMAT_AVD;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<AnimatedImageFormat>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        AnimatedImageFormat> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<AnimatedImageFormat>() {
            @java.lang.Override
            public AnimatedImageFormat findValueByNumber(int number) {
              return AnimatedImageFormat.forNumber(number);
            }
          };

    public static com.google.protobuf.Internal.EnumVerifier 
        internalGetVerifier() {
      return AnimatedImageFormatVerifier.INSTANCE;
    }

    private static final class AnimatedImageFormatVerifier implements 
         com.google.protobuf.Internal.EnumVerifier { 
            static final com.google.protobuf.Internal.EnumVerifier           INSTANCE = new AnimatedImageFormatVerifier();
            @java.lang.Override
            public boolean isInRange(int number) {
              return AnimatedImageFormat.forNumber(number) != null;
            }
          };

    private final int value;

    private AnimatedImageFormat(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:androidx.wear.protolayout.proto.AnimatedImageFormat)
  }

  public interface AndroidImageResourceByResIdOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.protolayout.proto.AndroidImageResourceByResId)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The Android resource ID of this image. This must refer to a drawable under
     * R.drawable.
     * </pre>
     *
     * <code>int32 resource_id = 1;</code>
     * @return The resourceId.
     */
    int getResourceId();
  }
  /**
   * <pre>
   * An image resource which maps to an Android drawable by resource ID.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.protolayout.proto.AndroidImageResourceByResId}
   */
  public  static final class AndroidImageResourceByResId extends
      com.google.protobuf.GeneratedMessageLite<
          AndroidImageResourceByResId, AndroidImageResourceByResId.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.protolayout.proto.AndroidImageResourceByResId)
      AndroidImageResourceByResIdOrBuilder {
    private AndroidImageResourceByResId() {
    }
    public static final int RESOURCE_ID_FIELD_NUMBER = 1;
    private int resourceId_;
    /**
     * <pre>
     * The Android resource ID of this image. This must refer to a drawable under
     * R.drawable.
     * </pre>
     *
     * <code>int32 resource_id = 1;</code>
     * @return The resourceId.
     */
    @java.lang.Override
    public int getResourceId() {
      return resourceId_;
    }
    /**
     * <pre>
     * The Android resource ID of this image. This must refer to a drawable under
     * R.drawable.
     * </pre>
     *
     * <code>int32 resource_id = 1;</code>
     * @param value The resourceId to set.
     */
    private void setResourceId(int value) {
      
      resourceId_ = value;
    }
    /**
     * <pre>
     * The Android resource ID of this image. This must refer to a drawable under
     * R.drawable.
     * </pre>
     *
     * <code>int32 resource_id = 1;</code>
     */
    private void clearResourceId() {

      resourceId_ = 0;
    }

    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * An image resource which maps to an Android drawable by resource ID.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.protolayout.proto.AndroidImageResourceByResId}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.protolayout.proto.AndroidImageResourceByResId)
        androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResIdOrBuilder {
      // Construct using androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The Android resource ID of this image. This must refer to a drawable under
       * R.drawable.
       * </pre>
       *
       * <code>int32 resource_id = 1;</code>
       * @return The resourceId.
       */
      @java.lang.Override
      public int getResourceId() {
        return instance.getResourceId();
      }
      /**
       * <pre>
       * The Android resource ID of this image. This must refer to a drawable under
       * R.drawable.
       * </pre>
       *
       * <code>int32 resource_id = 1;</code>
       * @param value The resourceId to set.
       * @return This builder for chaining.
       */
      public Builder setResourceId(int value) {
        copyOnWrite();
        instance.setResourceId(value);
        return this;
      }
      /**
       * <pre>
       * The Android resource ID of this image. This must refer to a drawable under
       * R.drawable.
       * </pre>
       *
       * <code>int32 resource_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearResourceId() {
        copyOnWrite();
        instance.clearResourceId();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.protolayout.proto.AndroidImageResourceByResId)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "resourceId_",
            };
            java.lang.String info =
                "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0004";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:androidx.wear.protolayout.proto.AndroidImageResourceByResId)
    private static final androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId DEFAULT_INSTANCE;
    static {
      AndroidImageResourceByResId defaultInstance = new AndroidImageResourceByResId();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        AndroidImageResourceByResId.class, defaultInstance);
    }

    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<AndroidImageResourceByResId> PARSER;

    public static com.google.protobuf.Parser<AndroidImageResourceByResId> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface AndroidImageResourceByNameOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.protolayout.proto.AndroidImageResourceByName)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The name of the drawable. An Android drawable by this name (i.e.
     * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
     * system.
     * </pre>
     *
     * <code>string name = 1;</code>
     * @return The name.
     */
    java.lang.String getName();
    /**
     * <pre>
     * The name of the drawable. An Android drawable by this name (i.e.
     * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
     * system.
     * </pre>
     *
     * <code>string name = 1;</code>
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();
  }
  /**
   * <pre>
   * An image resource which maps to an Android drawable by name.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.protolayout.proto.AndroidImageResourceByName}
   */
  public  static final class AndroidImageResourceByName extends
      com.google.protobuf.GeneratedMessageLite<
          AndroidImageResourceByName, AndroidImageResourceByName.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.protolayout.proto.AndroidImageResourceByName)
      AndroidImageResourceByNameOrBuilder {
    private AndroidImageResourceByName() {
      name_ = "";
    }
    public static final int NAME_FIELD_NUMBER = 1;
    private java.lang.String name_;
    /**
     * <pre>
     * The name of the drawable. An Android drawable by this name (i.e.
     * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
     * system.
     * </pre>
     *
     * <code>string name = 1;</code>
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      return name_;
    }
    /**
     * <pre>
     * The name of the drawable. An Android drawable by this name (i.e.
     * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
     * system.
     * </pre>
     *
     * <code>string name = 1;</code>
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNameBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(name_);
    }
    /**
     * <pre>
     * The name of the drawable. An Android drawable by this name (i.e.
     * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
     * system.
     * </pre>
     *
     * <code>string name = 1;</code>
     * @param value The name to set.
     */
    private void setName(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  
      name_ = value;
    }
    /**
     * <pre>
     * The name of the drawable. An Android drawable by this name (i.e.
     * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
     * system.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    private void clearName() {

      name_ = getDefaultInstance().getName();
    }
    /**
     * <pre>
     * The name of the drawable. An Android drawable by this name (i.e.
     * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
     * system.
     * </pre>
     *
     * <code>string name = 1;</code>
     * @param value The bytes for name to set.
     */
    private void setNameBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      name_ = value.toStringUtf8();

    }

    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * An image resource which maps to an Android drawable by name.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.protolayout.proto.AndroidImageResourceByName}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.protolayout.proto.AndroidImageResourceByName)
        androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByNameOrBuilder {
      // Construct using androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The name of the drawable. An Android drawable by this name (i.e.
       * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
       * system.
       * </pre>
       *
       * <code>string name = 1;</code>
       * @return The name.
       */
      @java.lang.Override
      public java.lang.String getName() {
        return instance.getName();
      }
      /**
       * <pre>
       * The name of the drawable. An Android drawable by this name (i.e.
       * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
       * system.
       * </pre>
       *
       * <code>string name = 1;</code>
       * @return The bytes for name.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getNameBytes() {
        return instance.getNameBytes();
      }
      /**
       * <pre>
       * The name of the drawable. An Android drawable by this name (i.e.
       * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
       * system.
       * </pre>
       *
       * <code>string name = 1;</code>
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        copyOnWrite();
        instance.setName(value);
        return this;
      }
      /**
       * <pre>
       * The name of the drawable. An Android drawable by this name (i.e.
       * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
       * system.
       * </pre>
       *
       * <code>string name = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearName() {
        copyOnWrite();
        instance.clearName();
        return this;
      }
      /**
       * <pre>
       * The name of the drawable. An Android drawable by this name (i.e.
       * R.drawable.&lt;name&gt;) must exist in the app which provides this layout to the
       * system.
       * </pre>
       *
       * <code>string name = 1;</code>
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setNameBytes(value);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.protolayout.proto.AndroidImageResourceByName)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "name_",
            };
            java.lang.String info =
                "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0208";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:androidx.wear.protolayout.proto.AndroidImageResourceByName)
    private static final androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName DEFAULT_INSTANCE;
    static {
      AndroidImageResourceByName defaultInstance = new AndroidImageResourceByName();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        AndroidImageResourceByName.class, defaultInstance);
    }

    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<AndroidImageResourceByName> PARSER;

    public static com.google.protobuf.Parser<AndroidImageResourceByName> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface InlineImageResourceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.protolayout.proto.InlineImageResource)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The byte array representing the image.
     * </pre>
     *
     * <code>bytes data = 1;</code>
     * @return The data.
     */
    com.google.protobuf.ByteString getData();

    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 width_px = 2;</code>
     * @return The widthPx.
     */
    int getWidthPx();

    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 height_px = 3;</code>
     * @return The heightPx.
     */
    int getHeightPx();

    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @return The enum numeric value on the wire for format.
     */
    int getFormatValue();
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @return The format.
     */
    androidx.wear.protolayout.proto.ResourceProto.ImageFormat getFormat();
  }
  /**
   * <pre>
   * An image resource whose data is fully inlined, with no dependency on a
   * system or app resource.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.protolayout.proto.InlineImageResource}
   */
  public  static final class InlineImageResource extends
      com.google.protobuf.GeneratedMessageLite<
          InlineImageResource, InlineImageResource.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.protolayout.proto.InlineImageResource)
      InlineImageResourceOrBuilder {
    private InlineImageResource() {
      data_ = com.google.protobuf.ByteString.EMPTY;
    }
    public static final int DATA_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString data_;
    /**
     * <pre>
     * The byte array representing the image.
     * </pre>
     *
     * <code>bytes data = 1;</code>
     * @return The data.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getData() {
      return data_;
    }
    /**
     * <pre>
     * The byte array representing the image.
     * </pre>
     *
     * <code>bytes data = 1;</code>
     * @param value The data to set.
     */
    private void setData(com.google.protobuf.ByteString value) {
      java.lang.Class<?> valueClass = value.getClass();
  
      data_ = value;
    }
    /**
     * <pre>
     * The byte array representing the image.
     * </pre>
     *
     * <code>bytes data = 1;</code>
     */
    private void clearData() {

      data_ = getDefaultInstance().getData();
    }

    public static final int WIDTH_PX_FIELD_NUMBER = 2;
    private int widthPx_;
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 width_px = 2;</code>
     * @return The widthPx.
     */
    @java.lang.Override
    public int getWidthPx() {
      return widthPx_;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 width_px = 2;</code>
     * @param value The widthPx to set.
     */
    private void setWidthPx(int value) {
      
      widthPx_ = value;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 width_px = 2;</code>
     */
    private void clearWidthPx() {

      widthPx_ = 0;
    }

    public static final int HEIGHT_PX_FIELD_NUMBER = 3;
    private int heightPx_;
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 height_px = 3;</code>
     * @return The heightPx.
     */
    @java.lang.Override
    public int getHeightPx() {
      return heightPx_;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 height_px = 3;</code>
     * @param value The heightPx to set.
     */
    private void setHeightPx(int value) {
      
      heightPx_ = value;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 height_px = 3;</code>
     */
    private void clearHeightPx() {

      heightPx_ = 0;
    }

    public static final int FORMAT_FIELD_NUMBER = 4;
    private int format_;
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @return The enum numeric value on the wire for format.
     */
    @java.lang.Override
    public int getFormatValue() {
      return format_;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @return The format.
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.ImageFormat getFormat() {
      androidx.wear.protolayout.proto.ResourceProto.ImageFormat result = androidx.wear.protolayout.proto.ResourceProto.ImageFormat.forNumber(format_);
      return result == null ? androidx.wear.protolayout.proto.ResourceProto.ImageFormat.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @param value The enum numeric value on the wire for format to set.
     */
    private void setFormatValue(int value) {
        format_ = value;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @param value The format to set.
     */
    private void setFormat(androidx.wear.protolayout.proto.ResourceProto.ImageFormat value) {
      format_ = value.getNumber();

    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     */
    private void clearFormat() {

      format_ = 0;
    }

    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(androidx.wear.protolayout.proto.ResourceProto.InlineImageResource prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * An image resource whose data is fully inlined, with no dependency on a
     * system or app resource.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.protolayout.proto.InlineImageResource}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.protolayout.proto.ResourceProto.InlineImageResource, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.protolayout.proto.InlineImageResource)
        androidx.wear.protolayout.proto.ResourceProto.InlineImageResourceOrBuilder {
      // Construct using androidx.wear.protolayout.proto.ResourceProto.InlineImageResource.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The byte array representing the image.
       * </pre>
       *
       * <code>bytes data = 1;</code>
       * @return The data.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getData() {
        return instance.getData();
      }
      /**
       * <pre>
       * The byte array representing the image.
       * </pre>
       *
       * <code>bytes data = 1;</code>
       * @param value The data to set.
       * @return This builder for chaining.
       */
      public Builder setData(com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setData(value);
        return this;
      }
      /**
       * <pre>
       * The byte array representing the image.
       * </pre>
       *
       * <code>bytes data = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearData() {
        copyOnWrite();
        instance.clearData();
        return this;
      }

      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 width_px = 2;</code>
       * @return The widthPx.
       */
      @java.lang.Override
      public int getWidthPx() {
        return instance.getWidthPx();
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 width_px = 2;</code>
       * @param value The widthPx to set.
       * @return This builder for chaining.
       */
      public Builder setWidthPx(int value) {
        copyOnWrite();
        instance.setWidthPx(value);
        return this;
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 width_px = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearWidthPx() {
        copyOnWrite();
        instance.clearWidthPx();
        return this;
      }

      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 height_px = 3;</code>
       * @return The heightPx.
       */
      @java.lang.Override
      public int getHeightPx() {
        return instance.getHeightPx();
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 height_px = 3;</code>
       * @param value The heightPx to set.
       * @return This builder for chaining.
       */
      public Builder setHeightPx(int value) {
        copyOnWrite();
        instance.setHeightPx(value);
        return this;
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 height_px = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearHeightPx() {
        copyOnWrite();
        instance.clearHeightPx();
        return this;
      }

      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
       * @return The enum numeric value on the wire for format.
       */
      @java.lang.Override
      public int getFormatValue() {
        return instance.getFormatValue();
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
       * @param value The format to set.
       * @return This builder for chaining.
       */
      public Builder setFormatValue(int value) {
        copyOnWrite();
        instance.setFormatValue(value);
        return this;
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
       * @return The format.
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.ImageFormat getFormat() {
        return instance.getFormat();
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
       * @param value The enum numeric value on the wire for format to set.
       * @return This builder for chaining.
       */
      public Builder setFormat(androidx.wear.protolayout.proto.ResourceProto.ImageFormat value) {
        copyOnWrite();
        instance.setFormat(value);
        return this;
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearFormat() {
        copyOnWrite();
        instance.clearFormat();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.protolayout.proto.InlineImageResource)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new androidx.wear.protolayout.proto.ResourceProto.InlineImageResource();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "data_",
              "widthPx_",
              "heightPx_",
              "format_",
            };
            java.lang.String info =
                "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\n\u0002\u0004" +
                "\u0003\u0004\u0004\f";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.protolayout.proto.ResourceProto.InlineImageResource> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.protolayout.proto.ResourceProto.InlineImageResource.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.protolayout.proto.ResourceProto.InlineImageResource>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:androidx.wear.protolayout.proto.InlineImageResource)
    private static final androidx.wear.protolayout.proto.ResourceProto.InlineImageResource DEFAULT_INSTANCE;
    static {
      InlineImageResource defaultInstance = new InlineImageResource();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        InlineImageResource.class, defaultInstance);
    }

    public static androidx.wear.protolayout.proto.ResourceProto.InlineImageResource getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<InlineImageResource> PARSER;

    public static com.google.protobuf.Parser<InlineImageResource> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface HttpImageResourceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.protolayout.proto.HttpImageResource)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The URL from which the image will be fetched.
     * </pre>
     *
     * <code>string url = 1;</code>
     * @return The url.
     */
    java.lang.String getUrl();
    /**
     * <pre>
     * The URL from which the image will be fetched.
     * </pre>
     *
     * <code>string url = 1;</code>
     * @return The bytes for url.
     */
    com.google.protobuf.ByteString
        getUrlBytes();

    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 width_px = 2;</code>
     * @return The widthPx.
     */
    int getWidthPx();

    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 height_px = 3;</code>
     * @return The heightPx.
     */
    int getHeightPx();

    /**
     * <pre>
     * The format of the image to be fetched. 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @return The enum numeric value on the wire for format.
     */
    int getFormatValue();
    /**
     * <pre>
     * The format of the image to be fetched. 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @return The format.
     */
    androidx.wear.protolayout.proto.ResourceProto.ImageFormat getFormat();

    /**
     * <pre>
     * Resource ID to look up in Resources#id_to_image to provide a placeholder
     * image. The placeholder image will be drawn in the Image or SpanImage
     * element which references this resource while the HTTP image is loading.
     * Note that this must not point to another HttpImageResource; it should point
     * to an image resource which can be immediately loaded.
     *
     * If this is empty, no placeholder image will be used (i.e. the Image or
     * SpanImage will remain transparent until the image has loaded).
     * </pre>
     *
     * <code>string placeholder_image_resource_id = 5;</code>
     * @return The placeholderImageResourceId.
     */
    java.lang.String getPlaceholderImageResourceId();
    /**
     * <pre>
     * Resource ID to look up in Resources#id_to_image to provide a placeholder
     * image. The placeholder image will be drawn in the Image or SpanImage
     * element which references this resource while the HTTP image is loading.
     * Note that this must not point to another HttpImageResource; it should point
     * to an image resource which can be immediately loaded.
     *
     * If this is empty, no placeholder image will be used (i.e. the Image or
     * SpanImage will remain transparent until the image has loaded).
     * </pre>
     *
     * <code>string placeholder_image_resource_id = 5;</code>
     * @return The bytes for placeholderImageResourceId.
     */
    com.google.protobuf.ByteString
        getPlaceholderImageResourceIdBytes();
  }
  /**
   * <pre>
   * An image to be loaded from an HTTP source. May not be supported on all
   * platforms.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.protolayout.proto.HttpImageResource}
   */
  public  static final class HttpImageResource extends
      com.google.protobuf.GeneratedMessageLite<
          HttpImageResource, HttpImageResource.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.protolayout.proto.HttpImageResource)
      HttpImageResourceOrBuilder {
    private HttpImageResource() {
      url_ = "";
      placeholderImageResourceId_ = "";
    }
    public static final int URL_FIELD_NUMBER = 1;
    private java.lang.String url_;
    /**
     * <pre>
     * The URL from which the image will be fetched.
     * </pre>
     *
     * <code>string url = 1;</code>
     * @return The url.
     */
    @java.lang.Override
    public java.lang.String getUrl() {
      return url_;
    }
    /**
     * <pre>
     * The URL from which the image will be fetched.
     * </pre>
     *
     * <code>string url = 1;</code>
     * @return The bytes for url.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getUrlBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(url_);
    }
    /**
     * <pre>
     * The URL from which the image will be fetched.
     * </pre>
     *
     * <code>string url = 1;</code>
     * @param value The url to set.
     */
    private void setUrl(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  
      url_ = value;
    }
    /**
     * <pre>
     * The URL from which the image will be fetched.
     * </pre>
     *
     * <code>string url = 1;</code>
     */
    private void clearUrl() {

      url_ = getDefaultInstance().getUrl();
    }
    /**
     * <pre>
     * The URL from which the image will be fetched.
     * </pre>
     *
     * <code>string url = 1;</code>
     * @param value The bytes for url to set.
     */
    private void setUrlBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      url_ = value.toStringUtf8();

    }

    public static final int WIDTH_PX_FIELD_NUMBER = 2;
    private int widthPx_;
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 width_px = 2;</code>
     * @return The widthPx.
     */
    @java.lang.Override
    public int getWidthPx() {
      return widthPx_;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 width_px = 2;</code>
     * @param value The widthPx to set.
     */
    private void setWidthPx(int value) {
      
      widthPx_ = value;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 width_px = 2;</code>
     */
    private void clearWidthPx() {

      widthPx_ = 0;
    }

    public static final int HEIGHT_PX_FIELD_NUMBER = 3;
    private int heightPx_;
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 height_px = 3;</code>
     * @return The heightPx.
     */
    @java.lang.Override
    public int getHeightPx() {
      return heightPx_;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 height_px = 3;</code>
     * @param value The heightPx to set.
     */
    private void setHeightPx(int value) {
      
      heightPx_ = value;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>int32 height_px = 3;</code>
     */
    private void clearHeightPx() {

      heightPx_ = 0;
    }

    public static final int FORMAT_FIELD_NUMBER = 4;
    private int format_;
    /**
     * <pre>
     * The format of the image to be fetched. 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @return The enum numeric value on the wire for format.
     */
    @java.lang.Override
    public int getFormatValue() {
      return format_;
    }
    /**
     * <pre>
     * The format of the image to be fetched. 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @return The format.
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.ImageFormat getFormat() {
      androidx.wear.protolayout.proto.ResourceProto.ImageFormat result = androidx.wear.protolayout.proto.ResourceProto.ImageFormat.forNumber(format_);
      return result == null ? androidx.wear.protolayout.proto.ResourceProto.ImageFormat.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * The format of the image to be fetched. 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @param value The enum numeric value on the wire for format to set.
     */
    private void setFormatValue(int value) {
        format_ = value;
    }
    /**
     * <pre>
     * The format of the image to be fetched. 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     * @param value The format to set.
     */
    private void setFormat(androidx.wear.protolayout.proto.ResourceProto.ImageFormat value) {
      format_ = value.getNumber();

    }
    /**
     * <pre>
     * The format of the image to be fetched. 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
     */
    private void clearFormat() {

      format_ = 0;
    }

    public static final int PLACEHOLDER_IMAGE_RESOURCE_ID_FIELD_NUMBER = 5;
    private java.lang.String placeholderImageResourceId_;
    /**
     * <pre>
     * Resource ID to look up in Resources#id_to_image to provide a placeholder
     * image. The placeholder image will be drawn in the Image or SpanImage
     * element which references this resource while the HTTP image is loading.
     * Note that this must not point to another HttpImageResource; it should point
     * to an image resource which can be immediately loaded.
     *
     * If this is empty, no placeholder image will be used (i.e. the Image or
     * SpanImage will remain transparent until the image has loaded).
     * </pre>
     *
     * <code>string placeholder_image_resource_id = 5;</code>
     * @return The placeholderImageResourceId.
     */
    @java.lang.Override
    public java.lang.String getPlaceholderImageResourceId() {
      return placeholderImageResourceId_;
    }
    /**
     * <pre>
     * Resource ID to look up in Resources#id_to_image to provide a placeholder
     * image. The placeholder image will be drawn in the Image or SpanImage
     * element which references this resource while the HTTP image is loading.
     * Note that this must not point to another HttpImageResource; it should point
     * to an image resource which can be immediately loaded.
     *
     * If this is empty, no placeholder image will be used (i.e. the Image or
     * SpanImage will remain transparent until the image has loaded).
     * </pre>
     *
     * <code>string placeholder_image_resource_id = 5;</code>
     * @return The bytes for placeholderImageResourceId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPlaceholderImageResourceIdBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(placeholderImageResourceId_);
    }
    /**
     * <pre>
     * Resource ID to look up in Resources#id_to_image to provide a placeholder
     * image. The placeholder image will be drawn in the Image or SpanImage
     * element which references this resource while the HTTP image is loading.
     * Note that this must not point to another HttpImageResource; it should point
     * to an image resource which can be immediately loaded.
     *
     * If this is empty, no placeholder image will be used (i.e. the Image or
     * SpanImage will remain transparent until the image has loaded).
     * </pre>
     *
     * <code>string placeholder_image_resource_id = 5;</code>
     * @param value The placeholderImageResourceId to set.
     */
    private void setPlaceholderImageResourceId(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  
      placeholderImageResourceId_ = value;
    }
    /**
     * <pre>
     * Resource ID to look up in Resources#id_to_image to provide a placeholder
     * image. The placeholder image will be drawn in the Image or SpanImage
     * element which references this resource while the HTTP image is loading.
     * Note that this must not point to another HttpImageResource; it should point
     * to an image resource which can be immediately loaded.
     *
     * If this is empty, no placeholder image will be used (i.e. the Image or
     * SpanImage will remain transparent until the image has loaded).
     * </pre>
     *
     * <code>string placeholder_image_resource_id = 5;</code>
     */
    private void clearPlaceholderImageResourceId() {

      placeholderImageResourceId_ = getDefaultInstance().getPlaceholderImageResourceId();
    }
    /**
     * <pre>
     * Resource ID to look up in Resources#id_to_image to provide a placeholder
     * image. The placeholder image will be drawn in the Image or SpanImage
     * element which references this resource while the HTTP image is loading.
     * Note that this must not point to another HttpImageResource; it should point
     * to an image resource which can be immediately loaded.
     *
     * If this is empty, no placeholder image will be used (i.e. the Image or
     * SpanImage will remain transparent until the image has loaded).
     * </pre>
     *
     * <code>string placeholder_image_resource_id = 5;</code>
     * @param value The bytes for placeholderImageResourceId to set.
     */
    private void setPlaceholderImageResourceIdBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      placeholderImageResourceId_ = value.toStringUtf8();

    }

    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(androidx.wear.protolayout.proto.ResourceProto.HttpImageResource prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * An image to be loaded from an HTTP source. May not be supported on all
     * platforms.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.protolayout.proto.HttpImageResource}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.protolayout.proto.ResourceProto.HttpImageResource, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.protolayout.proto.HttpImageResource)
        androidx.wear.protolayout.proto.ResourceProto.HttpImageResourceOrBuilder {
      // Construct using androidx.wear.protolayout.proto.ResourceProto.HttpImageResource.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The URL from which the image will be fetched.
       * </pre>
       *
       * <code>string url = 1;</code>
       * @return The url.
       */
      @java.lang.Override
      public java.lang.String getUrl() {
        return instance.getUrl();
      }
      /**
       * <pre>
       * The URL from which the image will be fetched.
       * </pre>
       *
       * <code>string url = 1;</code>
       * @return The bytes for url.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getUrlBytes() {
        return instance.getUrlBytes();
      }
      /**
       * <pre>
       * The URL from which the image will be fetched.
       * </pre>
       *
       * <code>string url = 1;</code>
       * @param value The url to set.
       * @return This builder for chaining.
       */
      public Builder setUrl(
          java.lang.String value) {
        copyOnWrite();
        instance.setUrl(value);
        return this;
      }
      /**
       * <pre>
       * The URL from which the image will be fetched.
       * </pre>
       *
       * <code>string url = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearUrl() {
        copyOnWrite();
        instance.clearUrl();
        return this;
      }
      /**
       * <pre>
       * The URL from which the image will be fetched.
       * </pre>
       *
       * <code>string url = 1;</code>
       * @param value The bytes for url to set.
       * @return This builder for chaining.
       */
      public Builder setUrlBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setUrlBytes(value);
        return this;
      }

      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 width_px = 2;</code>
       * @return The widthPx.
       */
      @java.lang.Override
      public int getWidthPx() {
        return instance.getWidthPx();
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 width_px = 2;</code>
       * @param value The widthPx to set.
       * @return This builder for chaining.
       */
      public Builder setWidthPx(int value) {
        copyOnWrite();
        instance.setWidthPx(value);
        return this;
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 width_px = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearWidthPx() {
        copyOnWrite();
        instance.clearWidthPx();
        return this;
      }

      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 height_px = 3;</code>
       * @return The heightPx.
       */
      @java.lang.Override
      public int getHeightPx() {
        return instance.getHeightPx();
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 height_px = 3;</code>
       * @param value The heightPx to set.
       * @return This builder for chaining.
       */
      public Builder setHeightPx(int value) {
        copyOnWrite();
        instance.setHeightPx(value);
        return this;
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>int32 height_px = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearHeightPx() {
        copyOnWrite();
        instance.clearHeightPx();
        return this;
      }

      /**
       * <pre>
       * The format of the image to be fetched. 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
       * @return The enum numeric value on the wire for format.
       */
      @java.lang.Override
      public int getFormatValue() {
        return instance.getFormatValue();
      }
      /**
       * <pre>
       * The format of the image to be fetched. 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
       * @param value The format to set.
       * @return This builder for chaining.
       */
      public Builder setFormatValue(int value) {
        copyOnWrite();
        instance.setFormatValue(value);
        return this;
      }
      /**
       * <pre>
       * The format of the image to be fetched. 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
       * @return The format.
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.ImageFormat getFormat() {
        return instance.getFormat();
      }
      /**
       * <pre>
       * The format of the image to be fetched. 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
       * @param value The enum numeric value on the wire for format to set.
       * @return This builder for chaining.
       */
      public Builder setFormat(androidx.wear.protolayout.proto.ResourceProto.ImageFormat value) {
        copyOnWrite();
        instance.setFormat(value);
        return this;
      }
      /**
       * <pre>
       * The format of the image to be fetched. 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.ImageFormat format = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearFormat() {
        copyOnWrite();
        instance.clearFormat();
        return this;
      }

      /**
       * <pre>
       * Resource ID to look up in Resources#id_to_image to provide a placeholder
       * image. The placeholder image will be drawn in the Image or SpanImage
       * element which references this resource while the HTTP image is loading.
       * Note that this must not point to another HttpImageResource; it should point
       * to an image resource which can be immediately loaded.
       *
       * If this is empty, no placeholder image will be used (i.e. the Image or
       * SpanImage will remain transparent until the image has loaded).
       * </pre>
       *
       * <code>string placeholder_image_resource_id = 5;</code>
       * @return The placeholderImageResourceId.
       */
      @java.lang.Override
      public java.lang.String getPlaceholderImageResourceId() {
        return instance.getPlaceholderImageResourceId();
      }
      /**
       * <pre>
       * Resource ID to look up in Resources#id_to_image to provide a placeholder
       * image. The placeholder image will be drawn in the Image or SpanImage
       * element which references this resource while the HTTP image is loading.
       * Note that this must not point to another HttpImageResource; it should point
       * to an image resource which can be immediately loaded.
       *
       * If this is empty, no placeholder image will be used (i.e. the Image or
       * SpanImage will remain transparent until the image has loaded).
       * </pre>
       *
       * <code>string placeholder_image_resource_id = 5;</code>
       * @return The bytes for placeholderImageResourceId.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getPlaceholderImageResourceIdBytes() {
        return instance.getPlaceholderImageResourceIdBytes();
      }
      /**
       * <pre>
       * Resource ID to look up in Resources#id_to_image to provide a placeholder
       * image. The placeholder image will be drawn in the Image or SpanImage
       * element which references this resource while the HTTP image is loading.
       * Note that this must not point to another HttpImageResource; it should point
       * to an image resource which can be immediately loaded.
       *
       * If this is empty, no placeholder image will be used (i.e. the Image or
       * SpanImage will remain transparent until the image has loaded).
       * </pre>
       *
       * <code>string placeholder_image_resource_id = 5;</code>
       * @param value The placeholderImageResourceId to set.
       * @return This builder for chaining.
       */
      public Builder setPlaceholderImageResourceId(
          java.lang.String value) {
        copyOnWrite();
        instance.setPlaceholderImageResourceId(value);
        return this;
      }
      /**
       * <pre>
       * Resource ID to look up in Resources#id_to_image to provide a placeholder
       * image. The placeholder image will be drawn in the Image or SpanImage
       * element which references this resource while the HTTP image is loading.
       * Note that this must not point to another HttpImageResource; it should point
       * to an image resource which can be immediately loaded.
       *
       * If this is empty, no placeholder image will be used (i.e. the Image or
       * SpanImage will remain transparent until the image has loaded).
       * </pre>
       *
       * <code>string placeholder_image_resource_id = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearPlaceholderImageResourceId() {
        copyOnWrite();
        instance.clearPlaceholderImageResourceId();
        return this;
      }
      /**
       * <pre>
       * Resource ID to look up in Resources#id_to_image to provide a placeholder
       * image. The placeholder image will be drawn in the Image or SpanImage
       * element which references this resource while the HTTP image is loading.
       * Note that this must not point to another HttpImageResource; it should point
       * to an image resource which can be immediately loaded.
       *
       * If this is empty, no placeholder image will be used (i.e. the Image or
       * SpanImage will remain transparent until the image has loaded).
       * </pre>
       *
       * <code>string placeholder_image_resource_id = 5;</code>
       * @param value The bytes for placeholderImageResourceId to set.
       * @return This builder for chaining.
       */
      public Builder setPlaceholderImageResourceIdBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setPlaceholderImageResourceIdBytes(value);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.protolayout.proto.HttpImageResource)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new androidx.wear.protolayout.proto.ResourceProto.HttpImageResource();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "url_",
              "widthPx_",
              "heightPx_",
              "format_",
              "placeholderImageResourceId_",
            };
            java.lang.String info =
                "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0208\u0002\u0004" +
                "\u0003\u0004\u0004\f\u0005\u0208";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.protolayout.proto.ResourceProto.HttpImageResource> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.protolayout.proto.ResourceProto.HttpImageResource.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.protolayout.proto.ResourceProto.HttpImageResource>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:androidx.wear.protolayout.proto.HttpImageResource)
    private static final androidx.wear.protolayout.proto.ResourceProto.HttpImageResource DEFAULT_INSTANCE;
    static {
      HttpImageResource defaultInstance = new HttpImageResource();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        HttpImageResource.class, defaultInstance);
    }

    public static androidx.wear.protolayout.proto.ResourceProto.HttpImageResource getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<HttpImageResource> PARSER;

    public static com.google.protobuf.Parser<HttpImageResource> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface AndroidImageResourceByContentUriOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.protolayout.proto.AndroidImageResourceByContentUri)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The content URI to use, on the format content://authority/resource.
     * </pre>
     *
     * <code>string content_uri = 1;</code>
     * @return The contentUri.
     */
    java.lang.String getContentUri();
    /**
     * <pre>
     * The content URI to use, on the format content://authority/resource.
     * </pre>
     *
     * <code>string content_uri = 1;</code>
     * @return The bytes for contentUri.
     */
    com.google.protobuf.ByteString
        getContentUriBytes();
  }
  /**
   * <pre>
   * An image to be loaded from a ContentProvider, by content URI.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.protolayout.proto.AndroidImageResourceByContentUri}
   */
  public  static final class AndroidImageResourceByContentUri extends
      com.google.protobuf.GeneratedMessageLite<
          AndroidImageResourceByContentUri, AndroidImageResourceByContentUri.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.protolayout.proto.AndroidImageResourceByContentUri)
      AndroidImageResourceByContentUriOrBuilder {
    private AndroidImageResourceByContentUri() {
      contentUri_ = "";
    }
    public static final int CONTENT_URI_FIELD_NUMBER = 1;
    private java.lang.String contentUri_;
    /**
     * <pre>
     * The content URI to use, on the format content://authority/resource.
     * </pre>
     *
     * <code>string content_uri = 1;</code>
     * @return The contentUri.
     */
    @java.lang.Override
    public java.lang.String getContentUri() {
      return contentUri_;
    }
    /**
     * <pre>
     * The content URI to use, on the format content://authority/resource.
     * </pre>
     *
     * <code>string content_uri = 1;</code>
     * @return The bytes for contentUri.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getContentUriBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(contentUri_);
    }
    /**
     * <pre>
     * The content URI to use, on the format content://authority/resource.
     * </pre>
     *
     * <code>string content_uri = 1;</code>
     * @param value The contentUri to set.
     */
    private void setContentUri(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  
      contentUri_ = value;
    }
    /**
     * <pre>
     * The content URI to use, on the format content://authority/resource.
     * </pre>
     *
     * <code>string content_uri = 1;</code>
     */
    private void clearContentUri() {

      contentUri_ = getDefaultInstance().getContentUri();
    }
    /**
     * <pre>
     * The content URI to use, on the format content://authority/resource.
     * </pre>
     *
     * <code>string content_uri = 1;</code>
     * @param value The bytes for contentUri to set.
     */
    private void setContentUriBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      contentUri_ = value.toStringUtf8();

    }

    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * An image to be loaded from a ContentProvider, by content URI.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.protolayout.proto.AndroidImageResourceByContentUri}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.protolayout.proto.AndroidImageResourceByContentUri)
        androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUriOrBuilder {
      // Construct using androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The content URI to use, on the format content://authority/resource.
       * </pre>
       *
       * <code>string content_uri = 1;</code>
       * @return The contentUri.
       */
      @java.lang.Override
      public java.lang.String getContentUri() {
        return instance.getContentUri();
      }
      /**
       * <pre>
       * The content URI to use, on the format content://authority/resource.
       * </pre>
       *
       * <code>string content_uri = 1;</code>
       * @return The bytes for contentUri.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getContentUriBytes() {
        return instance.getContentUriBytes();
      }
      /**
       * <pre>
       * The content URI to use, on the format content://authority/resource.
       * </pre>
       *
       * <code>string content_uri = 1;</code>
       * @param value The contentUri to set.
       * @return This builder for chaining.
       */
      public Builder setContentUri(
          java.lang.String value) {
        copyOnWrite();
        instance.setContentUri(value);
        return this;
      }
      /**
       * <pre>
       * The content URI to use, on the format content://authority/resource.
       * </pre>
       *
       * <code>string content_uri = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearContentUri() {
        copyOnWrite();
        instance.clearContentUri();
        return this;
      }
      /**
       * <pre>
       * The content URI to use, on the format content://authority/resource.
       * </pre>
       *
       * <code>string content_uri = 1;</code>
       * @param value The bytes for contentUri to set.
       * @return This builder for chaining.
       */
      public Builder setContentUriBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setContentUriBytes(value);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.protolayout.proto.AndroidImageResourceByContentUri)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "contentUri_",
            };
            java.lang.String info =
                "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0208";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:androidx.wear.protolayout.proto.AndroidImageResourceByContentUri)
    private static final androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri DEFAULT_INSTANCE;
    static {
      AndroidImageResourceByContentUri defaultInstance = new AndroidImageResourceByContentUri();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        AndroidImageResourceByContentUri.class, defaultInstance);
    }

    public static androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<AndroidImageResourceByContentUri> PARSER;

    public static com.google.protobuf.Parser<AndroidImageResourceByContentUri> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface AndroidAnimatedImageResourceByResIdOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @return The enum numeric value on the wire for animatedImageFormat.
     */
    int getAnimatedImageFormatValue();
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @return The animatedImageFormat.
     */
    androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat getAnimatedImageFormat();

    /**
     * <pre>
     * The Android resource ID, e.g. R.drawable.foo.
     * </pre>
     *
     * <code>int32 resource_id = 2;</code>
     * @return The resourceId.
     */
    int getResourceId();

    /**
     * <pre>
     * The trigger to start the animation.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
     * @return Whether the startTrigger field is set.
     */
    boolean hasStartTrigger();
    /**
     * <pre>
     * The trigger to start the animation.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
     * @return The startTrigger.
     */
    androidx.wear.protolayout.proto.TriggerProto.Trigger getStartTrigger();
  }
  /**
   * <pre>
   * 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.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId}
   */
  public  static final class AndroidAnimatedImageResourceByResId extends
      com.google.protobuf.GeneratedMessageLite<
          AndroidAnimatedImageResourceByResId, AndroidAnimatedImageResourceByResId.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId)
      AndroidAnimatedImageResourceByResIdOrBuilder {
    private AndroidAnimatedImageResourceByResId() {
    }
    public static final int ANIMATED_IMAGE_FORMAT_FIELD_NUMBER = 1;
    private int animatedImageFormat_;
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @return The enum numeric value on the wire for animatedImageFormat.
     */
    @java.lang.Override
    public int getAnimatedImageFormatValue() {
      return animatedImageFormat_;
    }
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @return The animatedImageFormat.
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat getAnimatedImageFormat() {
      androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat result = androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat.forNumber(animatedImageFormat_);
      return result == null ? androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @param value The enum numeric value on the wire for animatedImageFormat to set.
     */
    private void setAnimatedImageFormatValue(int value) {
        animatedImageFormat_ = value;
    }
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @param value The animatedImageFormat to set.
     */
    private void setAnimatedImageFormat(androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat value) {
      animatedImageFormat_ = value.getNumber();

    }
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     */
    private void clearAnimatedImageFormat() {

      animatedImageFormat_ = 0;
    }

    public static final int RESOURCE_ID_FIELD_NUMBER = 2;
    private int resourceId_;
    /**
     * <pre>
     * The Android resource ID, e.g. R.drawable.foo.
     * </pre>
     *
     * <code>int32 resource_id = 2;</code>
     * @return The resourceId.
     */
    @java.lang.Override
    public int getResourceId() {
      return resourceId_;
    }
    /**
     * <pre>
     * The Android resource ID, e.g. R.drawable.foo.
     * </pre>
     *
     * <code>int32 resource_id = 2;</code>
     * @param value The resourceId to set.
     */
    private void setResourceId(int value) {
      
      resourceId_ = value;
    }
    /**
     * <pre>
     * The Android resource ID, e.g. R.drawable.foo.
     * </pre>
     *
     * <code>int32 resource_id = 2;</code>
     */
    private void clearResourceId() {

      resourceId_ = 0;
    }

    public static final int START_TRIGGER_FIELD_NUMBER = 3;
    private androidx.wear.protolayout.proto.TriggerProto.Trigger startTrigger_;
    /**
     * <pre>
     * The trigger to start the animation.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
     */
    @java.lang.Override
    public boolean hasStartTrigger() {
      return startTrigger_ != null;
    }
    /**
     * <pre>
     * The trigger to start the animation.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.TriggerProto.Trigger getStartTrigger() {
      return startTrigger_ == null ? androidx.wear.protolayout.proto.TriggerProto.Trigger.getDefaultInstance() : startTrigger_;
    }
    /**
     * <pre>
     * The trigger to start the animation.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
     */
    private void setStartTrigger(androidx.wear.protolayout.proto.TriggerProto.Trigger value) {
      value.getClass();
  startTrigger_ = value;

      }
    /**
     * <pre>
     * The trigger to start the animation.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeStartTrigger(androidx.wear.protolayout.proto.TriggerProto.Trigger value) {
      value.getClass();
  if (startTrigger_ != null &&
          startTrigger_ != androidx.wear.protolayout.proto.TriggerProto.Trigger.getDefaultInstance()) {
        startTrigger_ =
          androidx.wear.protolayout.proto.TriggerProto.Trigger.newBuilder(startTrigger_).mergeFrom(value).buildPartial();
      } else {
        startTrigger_ = value;
      }

    }
    /**
     * <pre>
     * The trigger to start the animation.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
     */
    private void clearStartTrigger() {  startTrigger_ = null;

    }

    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * 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.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId)
        androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResIdOrBuilder {
      // Construct using androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The format for the animated image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
       * @return The enum numeric value on the wire for animatedImageFormat.
       */
      @java.lang.Override
      public int getAnimatedImageFormatValue() {
        return instance.getAnimatedImageFormatValue();
      }
      /**
       * <pre>
       * The format for the animated image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
       * @param value The animatedImageFormat to set.
       * @return This builder for chaining.
       */
      public Builder setAnimatedImageFormatValue(int value) {
        copyOnWrite();
        instance.setAnimatedImageFormatValue(value);
        return this;
      }
      /**
       * <pre>
       * The format for the animated image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
       * @return The animatedImageFormat.
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat getAnimatedImageFormat() {
        return instance.getAnimatedImageFormat();
      }
      /**
       * <pre>
       * The format for the animated image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
       * @param value The enum numeric value on the wire for animatedImageFormat to set.
       * @return This builder for chaining.
       */
      public Builder setAnimatedImageFormat(androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat value) {
        copyOnWrite();
        instance.setAnimatedImageFormat(value);
        return this;
      }
      /**
       * <pre>
       * The format for the animated image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearAnimatedImageFormat() {
        copyOnWrite();
        instance.clearAnimatedImageFormat();
        return this;
      }

      /**
       * <pre>
       * The Android resource ID, e.g. R.drawable.foo.
       * </pre>
       *
       * <code>int32 resource_id = 2;</code>
       * @return The resourceId.
       */
      @java.lang.Override
      public int getResourceId() {
        return instance.getResourceId();
      }
      /**
       * <pre>
       * The Android resource ID, e.g. R.drawable.foo.
       * </pre>
       *
       * <code>int32 resource_id = 2;</code>
       * @param value The resourceId to set.
       * @return This builder for chaining.
       */
      public Builder setResourceId(int value) {
        copyOnWrite();
        instance.setResourceId(value);
        return this;
      }
      /**
       * <pre>
       * The Android resource ID, e.g. R.drawable.foo.
       * </pre>
       *
       * <code>int32 resource_id = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearResourceId() {
        copyOnWrite();
        instance.clearResourceId();
        return this;
      }

      /**
       * <pre>
       * The trigger to start the animation.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
       */
      @java.lang.Override
      public boolean hasStartTrigger() {
        return instance.hasStartTrigger();
      }
      /**
       * <pre>
       * The trigger to start the animation.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.TriggerProto.Trigger getStartTrigger() {
        return instance.getStartTrigger();
      }
      /**
       * <pre>
       * The trigger to start the animation.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
       */
      public Builder setStartTrigger(androidx.wear.protolayout.proto.TriggerProto.Trigger value) {
        copyOnWrite();
        instance.setStartTrigger(value);
        return this;
        }
      /**
       * <pre>
       * The trigger to start the animation.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
       */
      public Builder setStartTrigger(
          androidx.wear.protolayout.proto.TriggerProto.Trigger.Builder builderForValue) {
        copyOnWrite();
        instance.setStartTrigger(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * The trigger to start the animation.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
       */
      public Builder mergeStartTrigger(androidx.wear.protolayout.proto.TriggerProto.Trigger value) {
        copyOnWrite();
        instance.mergeStartTrigger(value);
        return this;
      }
      /**
       * <pre>
       * The trigger to start the animation.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.Trigger start_trigger = 3;</code>
       */
      public Builder clearStartTrigger() {  copyOnWrite();
        instance.clearStartTrigger();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "animatedImageFormat_",
              "resourceId_",
              "startTrigger_",
            };
            java.lang.String info =
                "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\f\u0002\u0004" +
                "\u0003\t";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId)
    private static final androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId DEFAULT_INSTANCE;
    static {
      AndroidAnimatedImageResourceByResId defaultInstance = new AndroidAnimatedImageResourceByResId();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        AndroidAnimatedImageResourceByResId.class, defaultInstance);
    }

    public static androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<AndroidAnimatedImageResourceByResId> PARSER;

    public static com.google.protobuf.Parser<AndroidAnimatedImageResourceByResId> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface AndroidSeekableAnimatedImageResourceByResIdOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @return The enum numeric value on the wire for animatedImageFormat.
     */
    int getAnimatedImageFormatValue();
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @return The animatedImageFormat.
     */
    androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat getAnimatedImageFormat();

    /**
     * <pre>
     * The Android resource ID, e.g. R.drawable.foo
     * </pre>
     *
     * <code>int32 resource_id = 2;</code>
     * @return The resourceId.
     */
    int getResourceId();

    /**
     * <pre>
     * A DynamicFloat, normally transformed from certain states with the data
     * binding pipeline to control the progress of the animation. Its value is
     * required to fall in the range of [0.0, 1.0]. Any values outside this range
     * would be clamped. When the first value of the DynamicFloat arrives, the
     * animation starts from progress 0 to that value. After that it plays from
     * current progress to the new value on subsequent updates. If not set, the
     * animation will play on load (similar to a non-seekable animated).
     * </pre>
     *
     * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
     * @return Whether the progress field is set.
     */
    boolean hasProgress();
    /**
     * <pre>
     * A DynamicFloat, normally transformed from certain states with the data
     * binding pipeline to control the progress of the animation. Its value is
     * required to fall in the range of [0.0, 1.0]. Any values outside this range
     * would be clamped. When the first value of the DynamicFloat arrives, the
     * animation starts from progress 0 to that value. After that it plays from
     * current progress to the new value on subsequent updates. If not set, the
     * animation will play on load (similar to a non-seekable animated).
     * </pre>
     *
     * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
     * @return The progress.
     */
    androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat getProgress();
  }
  /**
   * <pre>
   * A seekable animated image resource that maps to an Android drawable by
   * resource ID. The animation progress is bound to the provided dynamic float.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId}
   */
  public  static final class AndroidSeekableAnimatedImageResourceByResId extends
      com.google.protobuf.GeneratedMessageLite<
          AndroidSeekableAnimatedImageResourceByResId, AndroidSeekableAnimatedImageResourceByResId.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId)
      AndroidSeekableAnimatedImageResourceByResIdOrBuilder {
    private AndroidSeekableAnimatedImageResourceByResId() {
    }
    public static final int ANIMATED_IMAGE_FORMAT_FIELD_NUMBER = 1;
    private int animatedImageFormat_;
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @return The enum numeric value on the wire for animatedImageFormat.
     */
    @java.lang.Override
    public int getAnimatedImageFormatValue() {
      return animatedImageFormat_;
    }
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @return The animatedImageFormat.
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat getAnimatedImageFormat() {
      androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat result = androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat.forNumber(animatedImageFormat_);
      return result == null ? androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @param value The enum numeric value on the wire for animatedImageFormat to set.
     */
    private void setAnimatedImageFormatValue(int value) {
        animatedImageFormat_ = value;
    }
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     * @param value The animatedImageFormat to set.
     */
    private void setAnimatedImageFormat(androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat value) {
      animatedImageFormat_ = value.getNumber();

    }
    /**
     * <pre>
     * The format for the animated image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
     */
    private void clearAnimatedImageFormat() {

      animatedImageFormat_ = 0;
    }

    public static final int RESOURCE_ID_FIELD_NUMBER = 2;
    private int resourceId_;
    /**
     * <pre>
     * The Android resource ID, e.g. R.drawable.foo
     * </pre>
     *
     * <code>int32 resource_id = 2;</code>
     * @return The resourceId.
     */
    @java.lang.Override
    public int getResourceId() {
      return resourceId_;
    }
    /**
     * <pre>
     * The Android resource ID, e.g. R.drawable.foo
     * </pre>
     *
     * <code>int32 resource_id = 2;</code>
     * @param value The resourceId to set.
     */
    private void setResourceId(int value) {
      
      resourceId_ = value;
    }
    /**
     * <pre>
     * The Android resource ID, e.g. R.drawable.foo
     * </pre>
     *
     * <code>int32 resource_id = 2;</code>
     */
    private void clearResourceId() {

      resourceId_ = 0;
    }

    public static final int PROGRESS_FIELD_NUMBER = 3;
    private androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat progress_;
    /**
     * <pre>
     * A DynamicFloat, normally transformed from certain states with the data
     * binding pipeline to control the progress of the animation. Its value is
     * required to fall in the range of [0.0, 1.0]. Any values outside this range
     * would be clamped. When the first value of the DynamicFloat arrives, the
     * animation starts from progress 0 to that value. After that it plays from
     * current progress to the new value on subsequent updates. If not set, the
     * animation will play on load (similar to a non-seekable animated).
     * </pre>
     *
     * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
     */
    @java.lang.Override
    public boolean hasProgress() {
      return progress_ != null;
    }
    /**
     * <pre>
     * A DynamicFloat, normally transformed from certain states with the data
     * binding pipeline to control the progress of the animation. Its value is
     * required to fall in the range of [0.0, 1.0]. Any values outside this range
     * would be clamped. When the first value of the DynamicFloat arrives, the
     * animation starts from progress 0 to that value. After that it plays from
     * current progress to the new value on subsequent updates. If not set, the
     * animation will play on load (similar to a non-seekable animated).
     * </pre>
     *
     * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat getProgress() {
      return progress_ == null ? androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat.getDefaultInstance() : progress_;
    }
    /**
     * <pre>
     * A DynamicFloat, normally transformed from certain states with the data
     * binding pipeline to control the progress of the animation. Its value is
     * required to fall in the range of [0.0, 1.0]. Any values outside this range
     * would be clamped. When the first value of the DynamicFloat arrives, the
     * animation starts from progress 0 to that value. After that it plays from
     * current progress to the new value on subsequent updates. If not set, the
     * animation will play on load (similar to a non-seekable animated).
     * </pre>
     *
     * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
     */
    private void setProgress(androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat value) {
      value.getClass();
  progress_ = value;

      }
    /**
     * <pre>
     * A DynamicFloat, normally transformed from certain states with the data
     * binding pipeline to control the progress of the animation. Its value is
     * required to fall in the range of [0.0, 1.0]. Any values outside this range
     * would be clamped. When the first value of the DynamicFloat arrives, the
     * animation starts from progress 0 to that value. After that it plays from
     * current progress to the new value on subsequent updates. If not set, the
     * animation will play on load (similar to a non-seekable animated).
     * </pre>
     *
     * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeProgress(androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat value) {
      value.getClass();
  if (progress_ != null &&
          progress_ != androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat.getDefaultInstance()) {
        progress_ =
          androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat.newBuilder(progress_).mergeFrom(value).buildPartial();
      } else {
        progress_ = value;
      }

    }
    /**
     * <pre>
     * A DynamicFloat, normally transformed from certain states with the data
     * binding pipeline to control the progress of the animation. Its value is
     * required to fall in the range of [0.0, 1.0]. Any values outside this range
     * would be clamped. When the first value of the DynamicFloat arrives, the
     * animation starts from progress 0 to that value. After that it plays from
     * current progress to the new value on subsequent updates. If not set, the
     * animation will play on load (similar to a non-seekable animated).
     * </pre>
     *
     * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
     */
    private void clearProgress() {  progress_ = null;

    }

    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * A seekable animated image resource that maps to an Android drawable by
     * resource ID. The animation progress is bound to the provided dynamic float.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId)
        androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResIdOrBuilder {
      // Construct using androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The format for the animated image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
       * @return The enum numeric value on the wire for animatedImageFormat.
       */
      @java.lang.Override
      public int getAnimatedImageFormatValue() {
        return instance.getAnimatedImageFormatValue();
      }
      /**
       * <pre>
       * The format for the animated image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
       * @param value The animatedImageFormat to set.
       * @return This builder for chaining.
       */
      public Builder setAnimatedImageFormatValue(int value) {
        copyOnWrite();
        instance.setAnimatedImageFormatValue(value);
        return this;
      }
      /**
       * <pre>
       * The format for the animated image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
       * @return The animatedImageFormat.
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat getAnimatedImageFormat() {
        return instance.getAnimatedImageFormat();
      }
      /**
       * <pre>
       * The format for the animated image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
       * @param value The enum numeric value on the wire for animatedImageFormat to set.
       * @return This builder for chaining.
       */
      public Builder setAnimatedImageFormat(androidx.wear.protolayout.proto.ResourceProto.AnimatedImageFormat value) {
        copyOnWrite();
        instance.setAnimatedImageFormat(value);
        return this;
      }
      /**
       * <pre>
       * The format for the animated image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AnimatedImageFormat animated_image_format = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearAnimatedImageFormat() {
        copyOnWrite();
        instance.clearAnimatedImageFormat();
        return this;
      }

      /**
       * <pre>
       * The Android resource ID, e.g. R.drawable.foo
       * </pre>
       *
       * <code>int32 resource_id = 2;</code>
       * @return The resourceId.
       */
      @java.lang.Override
      public int getResourceId() {
        return instance.getResourceId();
      }
      /**
       * <pre>
       * The Android resource ID, e.g. R.drawable.foo
       * </pre>
       *
       * <code>int32 resource_id = 2;</code>
       * @param value The resourceId to set.
       * @return This builder for chaining.
       */
      public Builder setResourceId(int value) {
        copyOnWrite();
        instance.setResourceId(value);
        return this;
      }
      /**
       * <pre>
       * The Android resource ID, e.g. R.drawable.foo
       * </pre>
       *
       * <code>int32 resource_id = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearResourceId() {
        copyOnWrite();
        instance.clearResourceId();
        return this;
      }

      /**
       * <pre>
       * A DynamicFloat, normally transformed from certain states with the data
       * binding pipeline to control the progress of the animation. Its value is
       * required to fall in the range of [0.0, 1.0]. Any values outside this range
       * would be clamped. When the first value of the DynamicFloat arrives, the
       * animation starts from progress 0 to that value. After that it plays from
       * current progress to the new value on subsequent updates. If not set, the
       * animation will play on load (similar to a non-seekable animated).
       * </pre>
       *
       * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
       */
      @java.lang.Override
      public boolean hasProgress() {
        return instance.hasProgress();
      }
      /**
       * <pre>
       * A DynamicFloat, normally transformed from certain states with the data
       * binding pipeline to control the progress of the animation. Its value is
       * required to fall in the range of [0.0, 1.0]. Any values outside this range
       * would be clamped. When the first value of the DynamicFloat arrives, the
       * animation starts from progress 0 to that value. After that it plays from
       * current progress to the new value on subsequent updates. If not set, the
       * animation will play on load (similar to a non-seekable animated).
       * </pre>
       *
       * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat getProgress() {
        return instance.getProgress();
      }
      /**
       * <pre>
       * A DynamicFloat, normally transformed from certain states with the data
       * binding pipeline to control the progress of the animation. Its value is
       * required to fall in the range of [0.0, 1.0]. Any values outside this range
       * would be clamped. When the first value of the DynamicFloat arrives, the
       * animation starts from progress 0 to that value. After that it plays from
       * current progress to the new value on subsequent updates. If not set, the
       * animation will play on load (similar to a non-seekable animated).
       * </pre>
       *
       * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
       */
      public Builder setProgress(androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat value) {
        copyOnWrite();
        instance.setProgress(value);
        return this;
        }
      /**
       * <pre>
       * A DynamicFloat, normally transformed from certain states with the data
       * binding pipeline to control the progress of the animation. Its value is
       * required to fall in the range of [0.0, 1.0]. Any values outside this range
       * would be clamped. When the first value of the DynamicFloat arrives, the
       * animation starts from progress 0 to that value. After that it plays from
       * current progress to the new value on subsequent updates. If not set, the
       * animation will play on load (similar to a non-seekable animated).
       * </pre>
       *
       * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
       */
      public Builder setProgress(
          androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat.Builder builderForValue) {
        copyOnWrite();
        instance.setProgress(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * A DynamicFloat, normally transformed from certain states with the data
       * binding pipeline to control the progress of the animation. Its value is
       * required to fall in the range of [0.0, 1.0]. Any values outside this range
       * would be clamped. When the first value of the DynamicFloat arrives, the
       * animation starts from progress 0 to that value. After that it plays from
       * current progress to the new value on subsequent updates. If not set, the
       * animation will play on load (similar to a non-seekable animated).
       * </pre>
       *
       * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
       */
      public Builder mergeProgress(androidx.wear.protolayout.expression.proto.DynamicProto.DynamicFloat value) {
        copyOnWrite();
        instance.mergeProgress(value);
        return this;
      }
      /**
       * <pre>
       * A DynamicFloat, normally transformed from certain states with the data
       * binding pipeline to control the progress of the animation. Its value is
       * required to fall in the range of [0.0, 1.0]. Any values outside this range
       * would be clamped. When the first value of the DynamicFloat arrives, the
       * animation starts from progress 0 to that value. After that it plays from
       * current progress to the new value on subsequent updates. If not set, the
       * animation will play on load (similar to a non-seekable animated).
       * </pre>
       *
       * <code>.androidx.wear.protolayout.expression.proto.DynamicFloat progress = 3;</code>
       */
      public Builder clearProgress() {  copyOnWrite();
        instance.clearProgress();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "animatedImageFormat_",
              "resourceId_",
              "progress_",
            };
            java.lang.String info =
                "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\f\u0002\u0004" +
                "\u0003\t";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId)
    private static final androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId DEFAULT_INSTANCE;
    static {
      AndroidSeekableAnimatedImageResourceByResId defaultInstance = new AndroidSeekableAnimatedImageResourceByResId();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        AndroidSeekableAnimatedImageResourceByResId.class, defaultInstance);
    }

    public static androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<AndroidSeekableAnimatedImageResourceByResId> PARSER;

    public static com.google.protobuf.Parser<AndroidSeekableAnimatedImageResourceByResId> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface ImageResourceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.protolayout.proto.ImageResource)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * An image resource that maps to an Android drawable by resource ID.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
     * @return Whether the androidResourceByResId field is set.
     */
    boolean hasAndroidResourceByResId();
    /**
     * <pre>
     * An image resource that maps to an Android drawable by resource ID.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
     * @return The androidResourceByResId.
     */
    androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId getAndroidResourceByResId();

    /**
     * <pre>
     * An image resource that contains the image data inline.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
     * @return Whether the inlineResource field is set.
     */
    boolean hasInlineResource();
    /**
     * <pre>
     * An image resource that contains the image data inline.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
     * @return The inlineResource.
     */
    androidx.wear.protolayout.proto.ResourceProto.InlineImageResource getInlineResource();

    /**
     * <pre>
     * An image resource that maps to an Android drawable by name.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
     * @return Whether the androidResourceByName field is set.
     */
    boolean hasAndroidResourceByName();
    /**
     * <pre>
     * An image resource that maps to an Android drawable by name.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
     * @return The androidResourceByName.
     */
    androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName getAndroidResourceByName();

    /**
     * <pre>
     * An image resource that contains a URL to a http image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
     * @return Whether the httpResource field is set.
     */
    boolean hasHttpResource();
    /**
     * <pre>
     * An image resource that contains a URL to a http image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
     * @return The httpResource.
     */
    androidx.wear.protolayout.proto.ResourceProto.HttpImageResource getHttpResource();

    /**
     * <pre>
     * An image which loads its drawable via an Android Content URI.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
     * @return Whether the androidContentUri field is set.
     */
    boolean hasAndroidContentUri();
    /**
     * <pre>
     * An image which loads its drawable via an Android Content URI.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
     * @return The androidContentUri.
     */
    androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri getAndroidContentUri();

    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
     * @return Whether the androidAnimatedResourceByResId field is set.
     */
    boolean hasAndroidAnimatedResourceByResId();
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
     * @return The androidAnimatedResourceByResId.
     */
    androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId getAndroidAnimatedResourceByResId();

    /**
     * <pre>
     * A seekable animated image resource that maps to an Android drawable by
     * resource ID. The animation progress is bound to the provided dynamic float.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
     * @return Whether the androidSeekableAnimatedResourceByResId field is set.
     */
    boolean hasAndroidSeekableAnimatedResourceByResId();
    /**
     * <pre>
     * A seekable animated image resource that maps to an Android drawable by
     * resource ID. The animation progress is bound to the provided dynamic float.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
     * @return The androidSeekableAnimatedResourceByResId.
     */
    androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId getAndroidSeekableAnimatedResourceByResId();
  }
  /**
   * <pre>
   * 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.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.protolayout.proto.ImageResource}
   */
  public  static final class ImageResource extends
      com.google.protobuf.GeneratedMessageLite<
          ImageResource, ImageResource.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.protolayout.proto.ImageResource)
      ImageResourceOrBuilder {
    private ImageResource() {
    }
    public static final int ANDROID_RESOURCE_BY_RES_ID_FIELD_NUMBER = 1;
    private androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId androidResourceByResId_;
    /**
     * <pre>
     * An image resource that maps to an Android drawable by resource ID.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
     */
    @java.lang.Override
    public boolean hasAndroidResourceByResId() {
      return androidResourceByResId_ != null;
    }
    /**
     * <pre>
     * An image resource that maps to an Android drawable by resource ID.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId getAndroidResourceByResId() {
      return androidResourceByResId_ == null ? androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId.getDefaultInstance() : androidResourceByResId_;
    }
    /**
     * <pre>
     * An image resource that maps to an Android drawable by resource ID.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
     */
    private void setAndroidResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId value) {
      value.getClass();
  androidResourceByResId_ = value;

      }
    /**
     * <pre>
     * An image resource that maps to an Android drawable by resource ID.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeAndroidResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId value) {
      value.getClass();
  if (androidResourceByResId_ != null &&
          androidResourceByResId_ != androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId.getDefaultInstance()) {
        androidResourceByResId_ =
          androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId.newBuilder(androidResourceByResId_).mergeFrom(value).buildPartial();
      } else {
        androidResourceByResId_ = value;
      }

    }
    /**
     * <pre>
     * An image resource that maps to an Android drawable by resource ID.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
     */
    private void clearAndroidResourceByResId() {  androidResourceByResId_ = null;

    }

    public static final int INLINE_RESOURCE_FIELD_NUMBER = 2;
    private androidx.wear.protolayout.proto.ResourceProto.InlineImageResource inlineResource_;
    /**
     * <pre>
     * An image resource that contains the image data inline.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
     */
    @java.lang.Override
    public boolean hasInlineResource() {
      return inlineResource_ != null;
    }
    /**
     * <pre>
     * An image resource that contains the image data inline.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.InlineImageResource getInlineResource() {
      return inlineResource_ == null ? androidx.wear.protolayout.proto.ResourceProto.InlineImageResource.getDefaultInstance() : inlineResource_;
    }
    /**
     * <pre>
     * An image resource that contains the image data inline.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
     */
    private void setInlineResource(androidx.wear.protolayout.proto.ResourceProto.InlineImageResource value) {
      value.getClass();
  inlineResource_ = value;

      }
    /**
     * <pre>
     * An image resource that contains the image data inline.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeInlineResource(androidx.wear.protolayout.proto.ResourceProto.InlineImageResource value) {
      value.getClass();
  if (inlineResource_ != null &&
          inlineResource_ != androidx.wear.protolayout.proto.ResourceProto.InlineImageResource.getDefaultInstance()) {
        inlineResource_ =
          androidx.wear.protolayout.proto.ResourceProto.InlineImageResource.newBuilder(inlineResource_).mergeFrom(value).buildPartial();
      } else {
        inlineResource_ = value;
      }

    }
    /**
     * <pre>
     * An image resource that contains the image data inline.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
     */
    private void clearInlineResource() {  inlineResource_ = null;

    }

    public static final int ANDROID_RESOURCE_BY_NAME_FIELD_NUMBER = 3;
    private androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName androidResourceByName_;
    /**
     * <pre>
     * An image resource that maps to an Android drawable by name.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
     */
    @java.lang.Override
    public boolean hasAndroidResourceByName() {
      return androidResourceByName_ != null;
    }
    /**
     * <pre>
     * An image resource that maps to an Android drawable by name.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName getAndroidResourceByName() {
      return androidResourceByName_ == null ? androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName.getDefaultInstance() : androidResourceByName_;
    }
    /**
     * <pre>
     * An image resource that maps to an Android drawable by name.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
     */
    private void setAndroidResourceByName(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName value) {
      value.getClass();
  androidResourceByName_ = value;

      }
    /**
     * <pre>
     * An image resource that maps to an Android drawable by name.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeAndroidResourceByName(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName value) {
      value.getClass();
  if (androidResourceByName_ != null &&
          androidResourceByName_ != androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName.getDefaultInstance()) {
        androidResourceByName_ =
          androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName.newBuilder(androidResourceByName_).mergeFrom(value).buildPartial();
      } else {
        androidResourceByName_ = value;
      }

    }
    /**
     * <pre>
     * An image resource that maps to an Android drawable by name.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
     */
    private void clearAndroidResourceByName() {  androidResourceByName_ = null;

    }

    public static final int HTTP_RESOURCE_FIELD_NUMBER = 4;
    private androidx.wear.protolayout.proto.ResourceProto.HttpImageResource httpResource_;
    /**
     * <pre>
     * An image resource that contains a URL to a http image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
     */
    @java.lang.Override
    public boolean hasHttpResource() {
      return httpResource_ != null;
    }
    /**
     * <pre>
     * An image resource that contains a URL to a http image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.HttpImageResource getHttpResource() {
      return httpResource_ == null ? androidx.wear.protolayout.proto.ResourceProto.HttpImageResource.getDefaultInstance() : httpResource_;
    }
    /**
     * <pre>
     * An image resource that contains a URL to a http image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
     */
    private void setHttpResource(androidx.wear.protolayout.proto.ResourceProto.HttpImageResource value) {
      value.getClass();
  httpResource_ = value;

      }
    /**
     * <pre>
     * An image resource that contains a URL to a http image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeHttpResource(androidx.wear.protolayout.proto.ResourceProto.HttpImageResource value) {
      value.getClass();
  if (httpResource_ != null &&
          httpResource_ != androidx.wear.protolayout.proto.ResourceProto.HttpImageResource.getDefaultInstance()) {
        httpResource_ =
          androidx.wear.protolayout.proto.ResourceProto.HttpImageResource.newBuilder(httpResource_).mergeFrom(value).buildPartial();
      } else {
        httpResource_ = value;
      }

    }
    /**
     * <pre>
     * An image resource that contains a URL to a http image.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
     */
    private void clearHttpResource() {  httpResource_ = null;

    }

    public static final int ANDROID_CONTENT_URI_FIELD_NUMBER = 5;
    private androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri androidContentUri_;
    /**
     * <pre>
     * An image which loads its drawable via an Android Content URI.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
     */
    @java.lang.Override
    public boolean hasAndroidContentUri() {
      return androidContentUri_ != null;
    }
    /**
     * <pre>
     * An image which loads its drawable via an Android Content URI.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri getAndroidContentUri() {
      return androidContentUri_ == null ? androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri.getDefaultInstance() : androidContentUri_;
    }
    /**
     * <pre>
     * An image which loads its drawable via an Android Content URI.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
     */
    private void setAndroidContentUri(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri value) {
      value.getClass();
  androidContentUri_ = value;

      }
    /**
     * <pre>
     * An image which loads its drawable via an Android Content URI.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeAndroidContentUri(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri value) {
      value.getClass();
  if (androidContentUri_ != null &&
          androidContentUri_ != androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri.getDefaultInstance()) {
        androidContentUri_ =
          androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri.newBuilder(androidContentUri_).mergeFrom(value).buildPartial();
      } else {
        androidContentUri_ = value;
      }

    }
    /**
     * <pre>
     * An image which loads its drawable via an Android Content URI.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
     */
    private void clearAndroidContentUri() {  androidContentUri_ = null;

    }

    public static final int ANDROID_ANIMATED_RESOURCE_BY_RES_ID_FIELD_NUMBER = 6;
    private androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId androidAnimatedResourceByResId_;
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
     */
    @java.lang.Override
    public boolean hasAndroidAnimatedResourceByResId() {
      return androidAnimatedResourceByResId_ != null;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId getAndroidAnimatedResourceByResId() {
      return androidAnimatedResourceByResId_ == null ? androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId.getDefaultInstance() : androidAnimatedResourceByResId_;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
     */
    private void setAndroidAnimatedResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId value) {
      value.getClass();
  androidAnimatedResourceByResId_ = value;

      }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeAndroidAnimatedResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId value) {
      value.getClass();
  if (androidAnimatedResourceByResId_ != null &&
          androidAnimatedResourceByResId_ != androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId.getDefaultInstance()) {
        androidAnimatedResourceByResId_ =
          androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId.newBuilder(androidAnimatedResourceByResId_).mergeFrom(value).buildPartial();
      } else {
        androidAnimatedResourceByResId_ = value;
      }

    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
     */
    private void clearAndroidAnimatedResourceByResId() {  androidAnimatedResourceByResId_ = null;

    }

    public static final int ANDROID_SEEKABLE_ANIMATED_RESOURCE_BY_RES_ID_FIELD_NUMBER = 7;
    private androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId androidSeekableAnimatedResourceByResId_;
    /**
     * <pre>
     * A seekable animated image resource that maps to an Android drawable by
     * resource ID. The animation progress is bound to the provided dynamic float.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
     */
    @java.lang.Override
    public boolean hasAndroidSeekableAnimatedResourceByResId() {
      return androidSeekableAnimatedResourceByResId_ != null;
    }
    /**
     * <pre>
     * A seekable animated image resource that maps to an Android drawable by
     * resource ID. The animation progress is bound to the provided dynamic float.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId getAndroidSeekableAnimatedResourceByResId() {
      return androidSeekableAnimatedResourceByResId_ == null ? androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId.getDefaultInstance() : androidSeekableAnimatedResourceByResId_;
    }
    /**
     * <pre>
     * A seekable animated image resource that maps to an Android drawable by
     * resource ID. The animation progress is bound to the provided dynamic float.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
     */
    private void setAndroidSeekableAnimatedResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId value) {
      value.getClass();
  androidSeekableAnimatedResourceByResId_ = value;

      }
    /**
     * <pre>
     * A seekable animated image resource that maps to an Android drawable by
     * resource ID. The animation progress is bound to the provided dynamic float.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeAndroidSeekableAnimatedResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId value) {
      value.getClass();
  if (androidSeekableAnimatedResourceByResId_ != null &&
          androidSeekableAnimatedResourceByResId_ != androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId.getDefaultInstance()) {
        androidSeekableAnimatedResourceByResId_ =
          androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId.newBuilder(androidSeekableAnimatedResourceByResId_).mergeFrom(value).buildPartial();
      } else {
        androidSeekableAnimatedResourceByResId_ = value;
      }

    }
    /**
     * <pre>
     * A seekable animated image resource that maps to an Android drawable by
     * resource ID. The animation progress is bound to the provided dynamic float.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
     */
    private void clearAndroidSeekableAnimatedResourceByResId() {  androidSeekableAnimatedResourceByResId_ = null;

    }

    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(androidx.wear.protolayout.proto.ResourceProto.ImageResource prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * 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.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.protolayout.proto.ImageResource}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.protolayout.proto.ResourceProto.ImageResource, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.protolayout.proto.ImageResource)
        androidx.wear.protolayout.proto.ResourceProto.ImageResourceOrBuilder {
      // Construct using androidx.wear.protolayout.proto.ResourceProto.ImageResource.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * An image resource that maps to an Android drawable by resource ID.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
       */
      @java.lang.Override
      public boolean hasAndroidResourceByResId() {
        return instance.hasAndroidResourceByResId();
      }
      /**
       * <pre>
       * An image resource that maps to an Android drawable by resource ID.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId getAndroidResourceByResId() {
        return instance.getAndroidResourceByResId();
      }
      /**
       * <pre>
       * An image resource that maps to an Android drawable by resource ID.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
       */
      public Builder setAndroidResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId value) {
        copyOnWrite();
        instance.setAndroidResourceByResId(value);
        return this;
        }
      /**
       * <pre>
       * An image resource that maps to an Android drawable by resource ID.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
       */
      public Builder setAndroidResourceByResId(
          androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId.Builder builderForValue) {
        copyOnWrite();
        instance.setAndroidResourceByResId(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * An image resource that maps to an Android drawable by resource ID.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
       */
      public Builder mergeAndroidResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByResId value) {
        copyOnWrite();
        instance.mergeAndroidResourceByResId(value);
        return this;
      }
      /**
       * <pre>
       * An image resource that maps to an Android drawable by resource ID.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByResId android_resource_by_res_id = 1;</code>
       */
      public Builder clearAndroidResourceByResId() {  copyOnWrite();
        instance.clearAndroidResourceByResId();
        return this;
      }

      /**
       * <pre>
       * An image resource that contains the image data inline.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
       */
      @java.lang.Override
      public boolean hasInlineResource() {
        return instance.hasInlineResource();
      }
      /**
       * <pre>
       * An image resource that contains the image data inline.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.InlineImageResource getInlineResource() {
        return instance.getInlineResource();
      }
      /**
       * <pre>
       * An image resource that contains the image data inline.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
       */
      public Builder setInlineResource(androidx.wear.protolayout.proto.ResourceProto.InlineImageResource value) {
        copyOnWrite();
        instance.setInlineResource(value);
        return this;
        }
      /**
       * <pre>
       * An image resource that contains the image data inline.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
       */
      public Builder setInlineResource(
          androidx.wear.protolayout.proto.ResourceProto.InlineImageResource.Builder builderForValue) {
        copyOnWrite();
        instance.setInlineResource(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * An image resource that contains the image data inline.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
       */
      public Builder mergeInlineResource(androidx.wear.protolayout.proto.ResourceProto.InlineImageResource value) {
        copyOnWrite();
        instance.mergeInlineResource(value);
        return this;
      }
      /**
       * <pre>
       * An image resource that contains the image data inline.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.InlineImageResource inline_resource = 2;</code>
       */
      public Builder clearInlineResource() {  copyOnWrite();
        instance.clearInlineResource();
        return this;
      }

      /**
       * <pre>
       * An image resource that maps to an Android drawable by name.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
       */
      @java.lang.Override
      public boolean hasAndroidResourceByName() {
        return instance.hasAndroidResourceByName();
      }
      /**
       * <pre>
       * An image resource that maps to an Android drawable by name.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName getAndroidResourceByName() {
        return instance.getAndroidResourceByName();
      }
      /**
       * <pre>
       * An image resource that maps to an Android drawable by name.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
       */
      public Builder setAndroidResourceByName(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName value) {
        copyOnWrite();
        instance.setAndroidResourceByName(value);
        return this;
        }
      /**
       * <pre>
       * An image resource that maps to an Android drawable by name.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
       */
      public Builder setAndroidResourceByName(
          androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName.Builder builderForValue) {
        copyOnWrite();
        instance.setAndroidResourceByName(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * An image resource that maps to an Android drawable by name.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
       */
      public Builder mergeAndroidResourceByName(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByName value) {
        copyOnWrite();
        instance.mergeAndroidResourceByName(value);
        return this;
      }
      /**
       * <pre>
       * An image resource that maps to an Android drawable by name.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByName android_resource_by_name = 3;</code>
       */
      public Builder clearAndroidResourceByName() {  copyOnWrite();
        instance.clearAndroidResourceByName();
        return this;
      }

      /**
       * <pre>
       * An image resource that contains a URL to a http image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
       */
      @java.lang.Override
      public boolean hasHttpResource() {
        return instance.hasHttpResource();
      }
      /**
       * <pre>
       * An image resource that contains a URL to a http image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.HttpImageResource getHttpResource() {
        return instance.getHttpResource();
      }
      /**
       * <pre>
       * An image resource that contains a URL to a http image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
       */
      public Builder setHttpResource(androidx.wear.protolayout.proto.ResourceProto.HttpImageResource value) {
        copyOnWrite();
        instance.setHttpResource(value);
        return this;
        }
      /**
       * <pre>
       * An image resource that contains a URL to a http image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
       */
      public Builder setHttpResource(
          androidx.wear.protolayout.proto.ResourceProto.HttpImageResource.Builder builderForValue) {
        copyOnWrite();
        instance.setHttpResource(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * An image resource that contains a URL to a http image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
       */
      public Builder mergeHttpResource(androidx.wear.protolayout.proto.ResourceProto.HttpImageResource value) {
        copyOnWrite();
        instance.mergeHttpResource(value);
        return this;
      }
      /**
       * <pre>
       * An image resource that contains a URL to a http image.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.HttpImageResource http_resource = 4;</code>
       */
      public Builder clearHttpResource() {  copyOnWrite();
        instance.clearHttpResource();
        return this;
      }

      /**
       * <pre>
       * An image which loads its drawable via an Android Content URI.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
       */
      @java.lang.Override
      public boolean hasAndroidContentUri() {
        return instance.hasAndroidContentUri();
      }
      /**
       * <pre>
       * An image which loads its drawable via an Android Content URI.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri getAndroidContentUri() {
        return instance.getAndroidContentUri();
      }
      /**
       * <pre>
       * An image which loads its drawable via an Android Content URI.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
       */
      public Builder setAndroidContentUri(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri value) {
        copyOnWrite();
        instance.setAndroidContentUri(value);
        return this;
        }
      /**
       * <pre>
       * An image which loads its drawable via an Android Content URI.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
       */
      public Builder setAndroidContentUri(
          androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri.Builder builderForValue) {
        copyOnWrite();
        instance.setAndroidContentUri(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * An image which loads its drawable via an Android Content URI.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
       */
      public Builder mergeAndroidContentUri(androidx.wear.protolayout.proto.ResourceProto.AndroidImageResourceByContentUri value) {
        copyOnWrite();
        instance.mergeAndroidContentUri(value);
        return this;
      }
      /**
       * <pre>
       * An image which loads its drawable via an Android Content URI.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidImageResourceByContentUri android_content_uri = 5;</code>
       */
      public Builder clearAndroidContentUri() {  copyOnWrite();
        instance.clearAndroidContentUri();
        return this;
      }

      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
       */
      @java.lang.Override
      public boolean hasAndroidAnimatedResourceByResId() {
        return instance.hasAndroidAnimatedResourceByResId();
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId getAndroidAnimatedResourceByResId() {
        return instance.getAndroidAnimatedResourceByResId();
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
       */
      public Builder setAndroidAnimatedResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId value) {
        copyOnWrite();
        instance.setAndroidAnimatedResourceByResId(value);
        return this;
        }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
       */
      public Builder setAndroidAnimatedResourceByResId(
          androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId.Builder builderForValue) {
        copyOnWrite();
        instance.setAndroidAnimatedResourceByResId(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
       */
      public Builder mergeAndroidAnimatedResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidAnimatedImageResourceByResId value) {
        copyOnWrite();
        instance.mergeAndroidAnimatedResourceByResId(value);
        return this;
      }
      /**
       * <pre>
       * 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.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidAnimatedImageResourceByResId android_animated_resource_by_res_id = 6;</code>
       */
      public Builder clearAndroidAnimatedResourceByResId() {  copyOnWrite();
        instance.clearAndroidAnimatedResourceByResId();
        return this;
      }

      /**
       * <pre>
       * A seekable animated image resource that maps to an Android drawable by
       * resource ID. The animation progress is bound to the provided dynamic float.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
       */
      @java.lang.Override
      public boolean hasAndroidSeekableAnimatedResourceByResId() {
        return instance.hasAndroidSeekableAnimatedResourceByResId();
      }
      /**
       * <pre>
       * A seekable animated image resource that maps to an Android drawable by
       * resource ID. The animation progress is bound to the provided dynamic float.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId getAndroidSeekableAnimatedResourceByResId() {
        return instance.getAndroidSeekableAnimatedResourceByResId();
      }
      /**
       * <pre>
       * A seekable animated image resource that maps to an Android drawable by
       * resource ID. The animation progress is bound to the provided dynamic float.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
       */
      public Builder setAndroidSeekableAnimatedResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId value) {
        copyOnWrite();
        instance.setAndroidSeekableAnimatedResourceByResId(value);
        return this;
        }
      /**
       * <pre>
       * A seekable animated image resource that maps to an Android drawable by
       * resource ID. The animation progress is bound to the provided dynamic float.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
       */
      public Builder setAndroidSeekableAnimatedResourceByResId(
          androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId.Builder builderForValue) {
        copyOnWrite();
        instance.setAndroidSeekableAnimatedResourceByResId(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * A seekable animated image resource that maps to an Android drawable by
       * resource ID. The animation progress is bound to the provided dynamic float.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
       */
      public Builder mergeAndroidSeekableAnimatedResourceByResId(androidx.wear.protolayout.proto.ResourceProto.AndroidSeekableAnimatedImageResourceByResId value) {
        copyOnWrite();
        instance.mergeAndroidSeekableAnimatedResourceByResId(value);
        return this;
      }
      /**
       * <pre>
       * A seekable animated image resource that maps to an Android drawable by
       * resource ID. The animation progress is bound to the provided dynamic float.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.AndroidSeekableAnimatedImageResourceByResId android_seekable_animated_resource_by_res_id = 7;</code>
       */
      public Builder clearAndroidSeekableAnimatedResourceByResId() {  copyOnWrite();
        instance.clearAndroidSeekableAnimatedResourceByResId();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.protolayout.proto.ImageResource)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new androidx.wear.protolayout.proto.ResourceProto.ImageResource();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "androidResourceByResId_",
              "inlineResource_",
              "androidResourceByName_",
              "httpResource_",
              "androidContentUri_",
              "androidAnimatedResourceByResId_",
              "androidSeekableAnimatedResourceByResId_",
            };
            java.lang.String info =
                "\u0000\u0007\u0000\u0000\u0001\u0007\u0007\u0000\u0000\u0000\u0001\t\u0002\t\u0003" +
                "\t\u0004\t\u0005\t\u0006\t\u0007\t";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.protolayout.proto.ResourceProto.ImageResource> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.protolayout.proto.ResourceProto.ImageResource.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.protolayout.proto.ResourceProto.ImageResource>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:androidx.wear.protolayout.proto.ImageResource)
    private static final androidx.wear.protolayout.proto.ResourceProto.ImageResource DEFAULT_INSTANCE;
    static {
      ImageResource defaultInstance = new ImageResource();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        ImageResource.class, defaultInstance);
    }

    public static androidx.wear.protolayout.proto.ResourceProto.ImageResource getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<ImageResource> PARSER;

    public static com.google.protobuf.Parser<ImageResource> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface ResourcesOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.protolayout.proto.Resources)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The version of this Resources instance.
     *
     * Each layout specifies the version of resources it requires. After fetching
     * a layout, the renderer will use the resources version specified by the
     * layout to separately fetch the resources.
     *
     * This value must match the version of the resources required by the layout
     * for the layout to render successfully, and must match the resource version
     * specified in ResourcesRequest which triggered this request.
     * </pre>
     *
     * <code>string version = 1;</code>
     * @return The version.
     */
    java.lang.String getVersion();
    /**
     * <pre>
     * The version of this Resources instance.
     *
     * Each layout specifies the version of resources it requires. After fetching
     * a layout, the renderer will use the resources version specified by the
     * layout to separately fetch the resources.
     *
     * This value must match the version of the resources required by the layout
     * for the layout to render successfully, and must match the resource version
     * specified in ResourcesRequest which triggered this request.
     * </pre>
     *
     * <code>string version = 1;</code>
     * @return The bytes for version.
     */
    com.google.protobuf.ByteString
        getVersionBytes();

    /**
     * <pre>
     * A map of resource_ids to images, which can be used by layouts.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
     */
    int getIdToImageCount();
    /**
     * <pre>
     * A map of resource_ids to images, which can be used by layouts.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
     */
    boolean containsIdToImage(
        java.lang.String key);
    /**
     * Use {@link #getIdToImageMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource>
    getIdToImage();
    /**
     * <pre>
     * A map of resource_ids to images, which can be used by layouts.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
     */
    java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource>
    getIdToImageMap();
    /**
     * <pre>
     * A map of resource_ids to images, which can be used by layouts.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
     */

    /* nullable */
androidx.wear.protolayout.proto.ResourceProto.ImageResource getIdToImageOrDefault(
        java.lang.String key,
        /* nullable */
androidx.wear.protolayout.proto.ResourceProto.ImageResource defaultValue);
    /**
     * <pre>
     * A map of resource_ids to images, which can be used by layouts.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
     */

    androidx.wear.protolayout.proto.ResourceProto.ImageResource getIdToImageOrThrow(
        java.lang.String key);
  }
  /**
   * <pre>
   * The resources for a layout.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.protolayout.proto.Resources}
   */
  public  static final class Resources extends
      com.google.protobuf.GeneratedMessageLite<
          Resources, Resources.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.protolayout.proto.Resources)
      ResourcesOrBuilder {
    private Resources() {
      version_ = "";
    }
    public static final int VERSION_FIELD_NUMBER = 1;
    private java.lang.String version_;
    /**
     * <pre>
     * The version of this Resources instance.
     *
     * Each layout specifies the version of resources it requires. After fetching
     * a layout, the renderer will use the resources version specified by the
     * layout to separately fetch the resources.
     *
     * This value must match the version of the resources required by the layout
     * for the layout to render successfully, and must match the resource version
     * specified in ResourcesRequest which triggered this request.
     * </pre>
     *
     * <code>string version = 1;</code>
     * @return The version.
     */
    @java.lang.Override
    public java.lang.String getVersion() {
      return version_;
    }
    /**
     * <pre>
     * The version of this Resources instance.
     *
     * Each layout specifies the version of resources it requires. After fetching
     * a layout, the renderer will use the resources version specified by the
     * layout to separately fetch the resources.
     *
     * This value must match the version of the resources required by the layout
     * for the layout to render successfully, and must match the resource version
     * specified in ResourcesRequest which triggered this request.
     * </pre>
     *
     * <code>string version = 1;</code>
     * @return The bytes for version.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getVersionBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(version_);
    }
    /**
     * <pre>
     * The version of this Resources instance.
     *
     * Each layout specifies the version of resources it requires. After fetching
     * a layout, the renderer will use the resources version specified by the
     * layout to separately fetch the resources.
     *
     * This value must match the version of the resources required by the layout
     * for the layout to render successfully, and must match the resource version
     * specified in ResourcesRequest which triggered this request.
     * </pre>
     *
     * <code>string version = 1;</code>
     * @param value The version to set.
     */
    private void setVersion(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  
      version_ = value;
    }
    /**
     * <pre>
     * The version of this Resources instance.
     *
     * Each layout specifies the version of resources it requires. After fetching
     * a layout, the renderer will use the resources version specified by the
     * layout to separately fetch the resources.
     *
     * This value must match the version of the resources required by the layout
     * for the layout to render successfully, and must match the resource version
     * specified in ResourcesRequest which triggered this request.
     * </pre>
     *
     * <code>string version = 1;</code>
     */
    private void clearVersion() {

      version_ = getDefaultInstance().getVersion();
    }
    /**
     * <pre>
     * The version of this Resources instance.
     *
     * Each layout specifies the version of resources it requires. After fetching
     * a layout, the renderer will use the resources version specified by the
     * layout to separately fetch the resources.
     *
     * This value must match the version of the resources required by the layout
     * for the layout to render successfully, and must match the resource version
     * specified in ResourcesRequest which triggered this request.
     * </pre>
     *
     * <code>string version = 1;</code>
     * @param value The bytes for version to set.
     */
    private void setVersionBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      version_ = value.toStringUtf8();

    }

    public static final int ID_TO_IMAGE_FIELD_NUMBER = 2;
    private static final class IdToImageDefaultEntryHolder {
      static final com.google.protobuf.MapEntryLite<
          java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> defaultEntry =
              com.google.protobuf.MapEntryLite
              .<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource>newDefaultInstance(
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "",
                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
                  androidx.wear.protolayout.proto.ResourceProto.ImageResource.getDefaultInstance());
    }
    private com.google.protobuf.MapFieldLite<
        java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> idToImage_ =
            com.google.protobuf.MapFieldLite.emptyMapField();
    private com.google.protobuf.MapFieldLite<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource>
    internalGetIdToImage() {
      return idToImage_;
    }
    private com.google.protobuf.MapFieldLite<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource>
    internalGetMutableIdToImage() {
      if (!idToImage_.isMutable()) {
        idToImage_ = idToImage_.mutableCopy();
      }
      return idToImage_;
    }
    @java.lang.Override

    public int getIdToImageCount() {
      return internalGetIdToImage().size();
    }
    /**
     * <pre>
     * A map of resource_ids to images, which can be used by layouts.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
     */
    @java.lang.Override

    public boolean containsIdToImage(
        java.lang.String key) {
      java.lang.Class<?> keyClass = key.getClass();
      return internalGetIdToImage().containsKey(key);
    }
    /**
     * Use {@link #getIdToImageMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> getIdToImage() {
      return getIdToImageMap();
    }
    /**
     * <pre>
     * A map of resource_ids to images, which can be used by layouts.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> getIdToImageMap() {
      return java.util.Collections.unmodifiableMap(
          internalGetIdToImage());
    }
    /**
     * <pre>
     * A map of resource_ids to images, which can be used by layouts.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
     */
    @java.lang.Override

    public /* nullable */
androidx.wear.protolayout.proto.ResourceProto.ImageResource getIdToImageOrDefault(
        java.lang.String key,
        /* nullable */
androidx.wear.protolayout.proto.ResourceProto.ImageResource defaultValue) {
      java.lang.Class<?> keyClass = key.getClass();
      java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> map =
          internalGetIdToImage();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * A map of resource_ids to images, which can be used by layouts.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
     */
    @java.lang.Override

    public androidx.wear.protolayout.proto.ResourceProto.ImageResource getIdToImageOrThrow(
        java.lang.String key) {
      java.lang.Class<?> keyClass = key.getClass();
      java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> map =
          internalGetIdToImage();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }
    /**
     * <pre>
     * A map of resource_ids to images, which can be used by layouts.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
     */
    private java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource>
    getMutableIdToImageMap() {
      return internalGetMutableIdToImage();
    }

    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.ResourceProto.Resources parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(androidx.wear.protolayout.proto.ResourceProto.Resources prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * The resources for a layout.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.protolayout.proto.Resources}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.protolayout.proto.ResourceProto.Resources, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.protolayout.proto.Resources)
        androidx.wear.protolayout.proto.ResourceProto.ResourcesOrBuilder {
      // Construct using androidx.wear.protolayout.proto.ResourceProto.Resources.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The version of this Resources instance.
       *
       * Each layout specifies the version of resources it requires. After fetching
       * a layout, the renderer will use the resources version specified by the
       * layout to separately fetch the resources.
       *
       * This value must match the version of the resources required by the layout
       * for the layout to render successfully, and must match the resource version
       * specified in ResourcesRequest which triggered this request.
       * </pre>
       *
       * <code>string version = 1;</code>
       * @return The version.
       */
      @java.lang.Override
      public java.lang.String getVersion() {
        return instance.getVersion();
      }
      /**
       * <pre>
       * The version of this Resources instance.
       *
       * Each layout specifies the version of resources it requires. After fetching
       * a layout, the renderer will use the resources version specified by the
       * layout to separately fetch the resources.
       *
       * This value must match the version of the resources required by the layout
       * for the layout to render successfully, and must match the resource version
       * specified in ResourcesRequest which triggered this request.
       * </pre>
       *
       * <code>string version = 1;</code>
       * @return The bytes for version.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getVersionBytes() {
        return instance.getVersionBytes();
      }
      /**
       * <pre>
       * The version of this Resources instance.
       *
       * Each layout specifies the version of resources it requires. After fetching
       * a layout, the renderer will use the resources version specified by the
       * layout to separately fetch the resources.
       *
       * This value must match the version of the resources required by the layout
       * for the layout to render successfully, and must match the resource version
       * specified in ResourcesRequest which triggered this request.
       * </pre>
       *
       * <code>string version = 1;</code>
       * @param value The version to set.
       * @return This builder for chaining.
       */
      public Builder setVersion(
          java.lang.String value) {
        copyOnWrite();
        instance.setVersion(value);
        return this;
      }
      /**
       * <pre>
       * The version of this Resources instance.
       *
       * Each layout specifies the version of resources it requires. After fetching
       * a layout, the renderer will use the resources version specified by the
       * layout to separately fetch the resources.
       *
       * This value must match the version of the resources required by the layout
       * for the layout to render successfully, and must match the resource version
       * specified in ResourcesRequest which triggered this request.
       * </pre>
       *
       * <code>string version = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearVersion() {
        copyOnWrite();
        instance.clearVersion();
        return this;
      }
      /**
       * <pre>
       * The version of this Resources instance.
       *
       * Each layout specifies the version of resources it requires. After fetching
       * a layout, the renderer will use the resources version specified by the
       * layout to separately fetch the resources.
       *
       * This value must match the version of the resources required by the layout
       * for the layout to render successfully, and must match the resource version
       * specified in ResourcesRequest which triggered this request.
       * </pre>
       *
       * <code>string version = 1;</code>
       * @param value The bytes for version to set.
       * @return This builder for chaining.
       */
      public Builder setVersionBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setVersionBytes(value);
        return this;
      }

      @java.lang.Override

      public int getIdToImageCount() {
        return instance.getIdToImageMap().size();
      }
      /**
       * <pre>
       * A map of resource_ids to images, which can be used by layouts.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
       */
      @java.lang.Override

      public boolean containsIdToImage(
          java.lang.String key) {
        java.lang.Class<?> keyClass = key.getClass();
        return instance.getIdToImageMap().containsKey(key);
      }

      public Builder clearIdToImage() {
        copyOnWrite();
        instance.getMutableIdToImageMap().clear();
        return this;
      }
      /**
       * <pre>
       * A map of resource_ids to images, which can be used by layouts.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
       */

      public Builder removeIdToImage(
          java.lang.String key) {
        java.lang.Class<?> keyClass = key.getClass();
        copyOnWrite();
        instance.getMutableIdToImageMap().remove(key);
        return this;
      }
      /**
       * Use {@link #getIdToImageMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> getIdToImage() {
        return getIdToImageMap();
      }
      /**
       * <pre>
       * A map of resource_ids to images, which can be used by layouts.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
       */
      @java.lang.Override
      public java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> getIdToImageMap() {
        return java.util.Collections.unmodifiableMap(
            instance.getIdToImageMap());
      }
      /**
       * <pre>
       * A map of resource_ids to images, which can be used by layouts.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
       */
      @java.lang.Override

      public /* nullable */
androidx.wear.protolayout.proto.ResourceProto.ImageResource getIdToImageOrDefault(
          java.lang.String key,
          /* nullable */
androidx.wear.protolayout.proto.ResourceProto.ImageResource defaultValue) {
        java.lang.Class<?> keyClass = key.getClass();
        java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> map =
            instance.getIdToImageMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <pre>
       * A map of resource_ids to images, which can be used by layouts.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
       */
      @java.lang.Override

      public androidx.wear.protolayout.proto.ResourceProto.ImageResource getIdToImageOrThrow(
          java.lang.String key) {
        java.lang.Class<?> keyClass = key.getClass();
        java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> map =
            instance.getIdToImageMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }
      /**
       * <pre>
       * A map of resource_ids to images, which can be used by layouts.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
       */
      public Builder putIdToImage(
          java.lang.String key,
          androidx.wear.protolayout.proto.ResourceProto.ImageResource value) {
        java.lang.Class<?> keyClass = key.getClass();
        java.lang.Class<?> valueClass = value.getClass();
        copyOnWrite();
        instance.getMutableIdToImageMap().put(key, value);
        return this;
      }
      /**
       * <pre>
       * A map of resource_ids to images, which can be used by layouts.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.proto.ImageResource&gt; id_to_image = 2;</code>
       */
      public Builder putAllIdToImage(
          java.util.Map<java.lang.String, androidx.wear.protolayout.proto.ResourceProto.ImageResource> values) {
        copyOnWrite();
        instance.getMutableIdToImageMap().putAll(values);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.protolayout.proto.Resources)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new androidx.wear.protolayout.proto.ResourceProto.Resources();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "version_",
              "idToImage_",
              IdToImageDefaultEntryHolder.defaultEntry,
            };
            java.lang.String info =
                "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0001\u0000\u0000\u0001\u0208\u00022";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.protolayout.proto.ResourceProto.Resources> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.protolayout.proto.ResourceProto.Resources.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.protolayout.proto.ResourceProto.Resources>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:androidx.wear.protolayout.proto.Resources)
    private static final androidx.wear.protolayout.proto.ResourceProto.Resources DEFAULT_INSTANCE;
    static {
      Resources defaultInstance = new Resources();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        Resources.class, defaultInstance);
    }

    public static androidx.wear.protolayout.proto.ResourceProto.Resources getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<Resources> PARSER;

    public static com.google.protobuf.Parser<Resources> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}