RequestProto.java

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

package androidx.wear.tiles.proto;

public final class RequestProto {
  private RequestProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  public interface TileRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.tiles.proto.TileRequest)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * Parameters describing the device requesting the tile update.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
     * @return Whether the deviceConfiguration field is set.
     */
    boolean hasDeviceConfiguration();
    /**
     * <pre>
     * Parameters describing the device requesting the tile update.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
     * @return The deviceConfiguration.
     */
    androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters getDeviceConfiguration();

    /**
     * <pre>
     * The state that should be used when building the tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
     * @return Whether the currentState field is set.
     */
    boolean hasCurrentState();
    /**
     * <pre>
     * The state that should be used when building the tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
     * @return The currentState.
     */
    androidx.wear.protolayout.proto.StateProto.State getCurrentState();

    /**
     * <pre>
     * The ID of the tile being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 3;</code>
     * @return The tileId.
     */
    int getTileId();
  }
  /**
   * <pre>
   * Parameters passed to a Tile Service when the renderer is requesting a new
   * version of the tile.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.tiles.proto.TileRequest}
   */
  public  static final class TileRequest extends
      com.google.protobuf.GeneratedMessageLite<
          TileRequest, TileRequest.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.tiles.proto.TileRequest)
      TileRequestOrBuilder {
    private TileRequest() {
    }
    public static final int DEVICE_CONFIGURATION_FIELD_NUMBER = 1;
    private androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters deviceConfiguration_;
    /**
     * <pre>
     * Parameters describing the device requesting the tile update.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
     */
    @java.lang.Override
    public boolean hasDeviceConfiguration() {
      return deviceConfiguration_ != null;
    }
    /**
     * <pre>
     * Parameters describing the device requesting the tile update.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters getDeviceConfiguration() {
      return deviceConfiguration_ == null ? androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters.getDefaultInstance() : deviceConfiguration_;
    }
    /**
     * <pre>
     * Parameters describing the device requesting the tile update.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
     */
    private void setDeviceConfiguration(androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters value) {
      value.getClass();
  deviceConfiguration_ = value;
      
      }
    /**
     * <pre>
     * Parameters describing the device requesting the tile update.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeDeviceConfiguration(androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters value) {
      value.getClass();
  if (deviceConfiguration_ != null &&
          deviceConfiguration_ != androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters.getDefaultInstance()) {
        deviceConfiguration_ =
          androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters.newBuilder(deviceConfiguration_).mergeFrom(value).buildPartial();
      } else {
        deviceConfiguration_ = value;
      }
      
    }
    /**
     * <pre>
     * Parameters describing the device requesting the tile update.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
     */
    private void clearDeviceConfiguration() {  deviceConfiguration_ = null;
      
    }

    public static final int CURRENT_STATE_FIELD_NUMBER = 2;
    private androidx.wear.protolayout.proto.StateProto.State currentState_;
    /**
     * <pre>
     * The state that should be used when building the tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
     */
    @java.lang.Override
    public boolean hasCurrentState() {
      return currentState_ != null;
    }
    /**
     * <pre>
     * The state that should be used when building the tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.StateProto.State getCurrentState() {
      return currentState_ == null ? androidx.wear.protolayout.proto.StateProto.State.getDefaultInstance() : currentState_;
    }
    /**
     * <pre>
     * The state that should be used when building the tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
     */
    private void setCurrentState(androidx.wear.protolayout.proto.StateProto.State value) {
      value.getClass();
  currentState_ = value;
      
      }
    /**
     * <pre>
     * The state that should be used when building the tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeCurrentState(androidx.wear.protolayout.proto.StateProto.State value) {
      value.getClass();
  if (currentState_ != null &&
          currentState_ != androidx.wear.protolayout.proto.StateProto.State.getDefaultInstance()) {
        currentState_ =
          androidx.wear.protolayout.proto.StateProto.State.newBuilder(currentState_).mergeFrom(value).buildPartial();
      } else {
        currentState_ = value;
      }
      
    }
    /**
     * <pre>
     * The state that should be used when building the tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
     */
    private void clearCurrentState() {  currentState_ = null;
      
    }

    public static final int TILE_ID_FIELD_NUMBER = 3;
    private int tileId_;
    /**
     * <pre>
     * The ID of the tile being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 3;</code>
     * @return The tileId.
     */
    @java.lang.Override
    public int getTileId() {
      return tileId_;
    }
    /**
     * <pre>
     * The ID of the tile being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 3;</code>
     * @param value The tileId to set.
     */
    private void setTileId(int value) {
      
      tileId_ = value;
    }
    /**
     * <pre>
     * The ID of the tile being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 3;</code>
     */
    private void clearTileId() {
      
      tileId_ = 0;
    }

    public static androidx.wear.tiles.proto.RequestProto.TileRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.tiles.proto.RequestProto.TileRequest 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.tiles.proto.RequestProto.TileRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.tiles.proto.RequestProto.TileRequest 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.tiles.proto.RequestProto.TileRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.tiles.proto.RequestProto.TileRequest 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.tiles.proto.RequestProto.TileRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.tiles.proto.RequestProto.TileRequest 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.tiles.proto.RequestProto.TileRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.tiles.proto.RequestProto.TileRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.tiles.proto.RequestProto.TileRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.tiles.proto.RequestProto.TileRequest 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.tiles.proto.RequestProto.TileRequest prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * Parameters passed to a Tile Service when the renderer is requesting a new
     * version of the tile.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.tiles.proto.TileRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.tiles.proto.RequestProto.TileRequest, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.tiles.proto.TileRequest)
        androidx.wear.tiles.proto.RequestProto.TileRequestOrBuilder {
      // Construct using androidx.wear.tiles.proto.RequestProto.TileRequest.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * Parameters describing the device requesting the tile update.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
       */
      @java.lang.Override
      public boolean hasDeviceConfiguration() {
        return instance.hasDeviceConfiguration();
      }
      /**
       * <pre>
       * Parameters describing the device requesting the tile update.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters getDeviceConfiguration() {
        return instance.getDeviceConfiguration();
      }
      /**
       * <pre>
       * Parameters describing the device requesting the tile update.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
       */
      public Builder setDeviceConfiguration(androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters value) {
        copyOnWrite();
        instance.setDeviceConfiguration(value);
        return this;
        }
      /**
       * <pre>
       * Parameters describing the device requesting the tile update.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
       */
      public Builder setDeviceConfiguration(
          androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters.Builder builderForValue) {
        copyOnWrite();
        instance.setDeviceConfiguration(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * Parameters describing the device requesting the tile update.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
       */
      public Builder mergeDeviceConfiguration(androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters value) {
        copyOnWrite();
        instance.mergeDeviceConfiguration(value);
        return this;
      }
      /**
       * <pre>
       * Parameters describing the device requesting the tile update.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 1;</code>
       */
      public Builder clearDeviceConfiguration() {  copyOnWrite();
        instance.clearDeviceConfiguration();
        return this;
      }

      /**
       * <pre>
       * The state that should be used when building the tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
       */
      @java.lang.Override
      public boolean hasCurrentState() {
        return instance.hasCurrentState();
      }
      /**
       * <pre>
       * The state that should be used when building the tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.StateProto.State getCurrentState() {
        return instance.getCurrentState();
      }
      /**
       * <pre>
       * The state that should be used when building the tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
       */
      public Builder setCurrentState(androidx.wear.protolayout.proto.StateProto.State value) {
        copyOnWrite();
        instance.setCurrentState(value);
        return this;
        }
      /**
       * <pre>
       * The state that should be used when building the tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
       */
      public Builder setCurrentState(
          androidx.wear.protolayout.proto.StateProto.State.Builder builderForValue) {
        copyOnWrite();
        instance.setCurrentState(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * The state that should be used when building the tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
       */
      public Builder mergeCurrentState(androidx.wear.protolayout.proto.StateProto.State value) {
        copyOnWrite();
        instance.mergeCurrentState(value);
        return this;
      }
      /**
       * <pre>
       * The state that should be used when building the tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State current_state = 2;</code>
       */
      public Builder clearCurrentState() {  copyOnWrite();
        instance.clearCurrentState();
        return this;
      }

      /**
       * <pre>
       * The ID of the tile being requested.
       * </pre>
       *
       * <code>uint32 tile_id = 3;</code>
       * @return The tileId.
       */
      @java.lang.Override
      public int getTileId() {
        return instance.getTileId();
      }
      /**
       * <pre>
       * The ID of the tile being requested.
       * </pre>
       *
       * <code>uint32 tile_id = 3;</code>
       * @param value The tileId to set.
       * @return This builder for chaining.
       */
      public Builder setTileId(int value) {
        copyOnWrite();
        instance.setTileId(value);
        return this;
      }
      /**
       * <pre>
       * The ID of the tile being requested.
       * </pre>
       *
       * <code>uint32 tile_id = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearTileId() {
        copyOnWrite();
        instance.clearTileId();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.tiles.proto.TileRequest)
    }
    @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.tiles.proto.RequestProto.TileRequest();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "deviceConfiguration_",
              "currentState_",
              "tileId_",
            };
            java.lang.String info =
                "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\t\u0002\t\u0003" +
                "\u000b";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.tiles.proto.RequestProto.TileRequest> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.tiles.proto.RequestProto.TileRequest.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.tiles.proto.RequestProto.TileRequest>(
                        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.tiles.proto.TileRequest)
    private static final androidx.wear.tiles.proto.RequestProto.TileRequest DEFAULT_INSTANCE;
    static {
      TileRequest defaultInstance = new TileRequest();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        TileRequest.class, defaultInstance);
    }

    public static androidx.wear.tiles.proto.RequestProto.TileRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

  public interface ResourcesRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.tiles.proto.ResourcesRequest)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The version of the resources being fetched. This is the same as the
     * requested resource version, passed in Tile.
     * </pre>
     *
     * <code>string version = 1;</code>
     * @return The version.
     */
    java.lang.String getVersion();
    /**
     * <pre>
     * The version of the resources being fetched. This is the same as the
     * requested resource version, passed in Tile.
     * </pre>
     *
     * <code>string version = 1;</code>
     * @return The bytes for version.
     */
    com.google.protobuf.ByteString
        getVersionBytes();

    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @return A list containing the resourceIds.
     */
    java.util.List<java.lang.String>
        getResourceIdsList();
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @return The count of resourceIds.
     */
    int getResourceIdsCount();
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @param index The index of the element to return.
     * @return The resourceIds at the given index.
     */
    java.lang.String getResourceIds(int index);
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @param index The index of the element to return.
     * @return The resourceIds at the given index.
     */
    com.google.protobuf.ByteString
        getResourceIdsBytes(int index);

    /**
     * <pre>
     * Parameters describing the device requesting the resources.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
     * @return Whether the deviceConfiguration field is set.
     */
    boolean hasDeviceConfiguration();
    /**
     * <pre>
     * Parameters describing the device requesting the resources.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
     * @return The deviceConfiguration.
     */
    androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters getDeviceConfiguration();

    /**
     * <pre>
     * The ID of the tile for which resources are being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 4;</code>
     * @return The tileId.
     */
    int getTileId();
  }
  /**
   * <pre>
   * Parameters passed to a Tile Service when the renderer is requesting a
   * specific resource version.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.tiles.proto.ResourcesRequest}
   */
  public  static final class ResourcesRequest extends
      com.google.protobuf.GeneratedMessageLite<
          ResourcesRequest, ResourcesRequest.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.tiles.proto.ResourcesRequest)
      ResourcesRequestOrBuilder {
    private ResourcesRequest() {
      version_ = "";
      resourceIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
    }
    public static final int VERSION_FIELD_NUMBER = 1;
    private java.lang.String version_;
    /**
     * <pre>
     * The version of the resources being fetched. This is the same as the
     * requested resource version, passed in Tile.
     * </pre>
     *
     * <code>string version = 1;</code>
     * @return The version.
     */
    @java.lang.Override
    public java.lang.String getVersion() {
      return version_;
    }
    /**
     * <pre>
     * The version of the resources being fetched. This is the same as the
     * requested resource version, passed in Tile.
     * </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 the resources being fetched. This is the same as the
     * requested resource version, passed in Tile.
     * </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 the resources being fetched. This is the same as the
     * requested resource version, passed in Tile.
     * </pre>
     *
     * <code>string version = 1;</code>
     */
    private void clearVersion() {
      
      version_ = getDefaultInstance().getVersion();
    }
    /**
     * <pre>
     * The version of the resources being fetched. This is the same as the
     * requested resource version, passed in Tile.
     * </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 RESOURCE_IDS_FIELD_NUMBER = 2;
    private com.google.protobuf.Internal.ProtobufList<java.lang.String> resourceIds_;
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @return A list containing the resourceIds.
     */
    @java.lang.Override
    public java.util.List<java.lang.String> getResourceIdsList() {
      return resourceIds_;
    }
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @return The count of resourceIds.
     */
    @java.lang.Override
    public int getResourceIdsCount() {
      return resourceIds_.size();
    }
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @param index The index of the element to return.
     * @return The resourceIds at the given index.
     */
    @java.lang.Override
    public java.lang.String getResourceIds(int index) {
      return resourceIds_.get(index);
    }
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @param index The index of the value to return.
     * @return The bytes of the resourceIds at the given index.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getResourceIdsBytes(int index) {
      return com.google.protobuf.ByteString.copyFromUtf8(
          resourceIds_.get(index));
    }
    private void ensureResourceIdsIsMutable() {
      com.google.protobuf.Internal.ProtobufList<java.lang.String> tmp =
          resourceIds_;  if (!tmp.isModifiable()) {
        resourceIds_ =
            com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
       }
    }
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @param index The index to set the value at.
     * @param value The resourceIds to set.
     */
    private void setResourceIds(
        int index, java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  ensureResourceIdsIsMutable();
      resourceIds_.set(index, value);
    }
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @param value The resourceIds to add.
     */
    private void addResourceIds(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  ensureResourceIdsIsMutable();
      resourceIds_.add(value);
    }
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @param values The resourceIds to add.
     */
    private void addAllResourceIds(
        java.lang.Iterable<java.lang.String> values) {
      ensureResourceIdsIsMutable();
      com.google.protobuf.AbstractMessageLite.addAll(
          values, resourceIds_);
    }
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     */
    private void clearResourceIds() {
      resourceIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
    }
    /**
     * <pre>
     * Requested resource IDs. This specifies which tile resources should be
     * returned in the Resources response. If not specified, all resources for the
     * given version must be provided in the response.
     * Note that resource IDs here correspond to tile resources (i.e. keys that
     * would be used in Resources.idToImage), not Android resource names or
     * similar.
     * </pre>
     *
     * <code>repeated string resource_ids = 2;</code>
     * @param value The bytes of the resourceIds to add.
     */
    private void addResourceIdsBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      ensureResourceIdsIsMutable();
      resourceIds_.add(value.toStringUtf8());
    }

    public static final int DEVICE_CONFIGURATION_FIELD_NUMBER = 3;
    private androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters deviceConfiguration_;
    /**
     * <pre>
     * Parameters describing the device requesting the resources.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
     */
    @java.lang.Override
    public boolean hasDeviceConfiguration() {
      return deviceConfiguration_ != null;
    }
    /**
     * <pre>
     * Parameters describing the device requesting the resources.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters getDeviceConfiguration() {
      return deviceConfiguration_ == null ? androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters.getDefaultInstance() : deviceConfiguration_;
    }
    /**
     * <pre>
     * Parameters describing the device requesting the resources.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
     */
    private void setDeviceConfiguration(androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters value) {
      value.getClass();
  deviceConfiguration_ = value;
      
      }
    /**
     * <pre>
     * Parameters describing the device requesting the resources.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeDeviceConfiguration(androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters value) {
      value.getClass();
  if (deviceConfiguration_ != null &&
          deviceConfiguration_ != androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters.getDefaultInstance()) {
        deviceConfiguration_ =
          androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters.newBuilder(deviceConfiguration_).mergeFrom(value).buildPartial();
      } else {
        deviceConfiguration_ = value;
      }
      
    }
    /**
     * <pre>
     * Parameters describing the device requesting the resources.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
     */
    private void clearDeviceConfiguration() {  deviceConfiguration_ = null;
      
    }

    public static final int TILE_ID_FIELD_NUMBER = 4;
    private int tileId_;
    /**
     * <pre>
     * The ID of the tile for which resources are being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 4;</code>
     * @return The tileId.
     */
    @java.lang.Override
    public int getTileId() {
      return tileId_;
    }
    /**
     * <pre>
     * The ID of the tile for which resources are being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 4;</code>
     * @param value The tileId to set.
     */
    private void setTileId(int value) {
      
      tileId_ = value;
    }
    /**
     * <pre>
     * The ID of the tile for which resources are being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 4;</code>
     */
    private void clearTileId() {
      
      tileId_ = 0;
    }

    public static androidx.wear.tiles.proto.RequestProto.ResourcesRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.tiles.proto.RequestProto.ResourcesRequest 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.tiles.proto.RequestProto.ResourcesRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.tiles.proto.RequestProto.ResourcesRequest 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.tiles.proto.RequestProto.ResourcesRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.tiles.proto.RequestProto.ResourcesRequest 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.tiles.proto.RequestProto.ResourcesRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.tiles.proto.RequestProto.ResourcesRequest 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.tiles.proto.RequestProto.ResourcesRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.tiles.proto.RequestProto.ResourcesRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.tiles.proto.RequestProto.ResourcesRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.tiles.proto.RequestProto.ResourcesRequest 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.tiles.proto.RequestProto.ResourcesRequest prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * Parameters passed to a Tile Service when the renderer is requesting a
     * specific resource version.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.tiles.proto.ResourcesRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.tiles.proto.RequestProto.ResourcesRequest, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.tiles.proto.ResourcesRequest)
        androidx.wear.tiles.proto.RequestProto.ResourcesRequestOrBuilder {
      // Construct using androidx.wear.tiles.proto.RequestProto.ResourcesRequest.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The version of the resources being fetched. This is the same as the
       * requested resource version, passed in Tile.
       * </pre>
       *
       * <code>string version = 1;</code>
       * @return The version.
       */
      @java.lang.Override
      public java.lang.String getVersion() {
        return instance.getVersion();
      }
      /**
       * <pre>
       * The version of the resources being fetched. This is the same as the
       * requested resource version, passed in Tile.
       * </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 the resources being fetched. This is the same as the
       * requested resource version, passed in Tile.
       * </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 the resources being fetched. This is the same as the
       * requested resource version, passed in Tile.
       * </pre>
       *
       * <code>string version = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearVersion() {
        copyOnWrite();
        instance.clearVersion();
        return this;
      }
      /**
       * <pre>
       * The version of the resources being fetched. This is the same as the
       * requested resource version, passed in Tile.
       * </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;
      }

      /**
       * <pre>
       * Requested resource IDs. This specifies which tile resources should be
       * returned in the Resources response. If not specified, all resources for the
       * given version must be provided in the response.
       * Note that resource IDs here correspond to tile resources (i.e. keys that
       * would be used in Resources.idToImage), not Android resource names or
       * similar.
       * </pre>
       *
       * <code>repeated string resource_ids = 2;</code>
       * @return A list containing the resourceIds.
       */
      @java.lang.Override
      public java.util.List<java.lang.String>
          getResourceIdsList() {
        return java.util.Collections.unmodifiableList(
            instance.getResourceIdsList());
      }
      /**
       * <pre>
       * Requested resource IDs. This specifies which tile resources should be
       * returned in the Resources response. If not specified, all resources for the
       * given version must be provided in the response.
       * Note that resource IDs here correspond to tile resources (i.e. keys that
       * would be used in Resources.idToImage), not Android resource names or
       * similar.
       * </pre>
       *
       * <code>repeated string resource_ids = 2;</code>
       * @return The count of resourceIds.
       */
      @java.lang.Override
      public int getResourceIdsCount() {
        return instance.getResourceIdsCount();
      }
      /**
       * <pre>
       * Requested resource IDs. This specifies which tile resources should be
       * returned in the Resources response. If not specified, all resources for the
       * given version must be provided in the response.
       * Note that resource IDs here correspond to tile resources (i.e. keys that
       * would be used in Resources.idToImage), not Android resource names or
       * similar.
       * </pre>
       *
       * <code>repeated string resource_ids = 2;</code>
       * @param index The index of the element to return.
       * @return The resourceIds at the given index.
       */
      @java.lang.Override
      public java.lang.String getResourceIds(int index) {
        return instance.getResourceIds(index);
      }
      /**
       * <pre>
       * Requested resource IDs. This specifies which tile resources should be
       * returned in the Resources response. If not specified, all resources for the
       * given version must be provided in the response.
       * Note that resource IDs here correspond to tile resources (i.e. keys that
       * would be used in Resources.idToImage), not Android resource names or
       * similar.
       * </pre>
       *
       * <code>repeated string resource_ids = 2;</code>
       * @param index The index of the value to return.
       * @return The bytes of the resourceIds at the given index.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getResourceIdsBytes(int index) {
        return instance.getResourceIdsBytes(index);
      }
      /**
       * <pre>
       * Requested resource IDs. This specifies which tile resources should be
       * returned in the Resources response. If not specified, all resources for the
       * given version must be provided in the response.
       * Note that resource IDs here correspond to tile resources (i.e. keys that
       * would be used in Resources.idToImage), not Android resource names or
       * similar.
       * </pre>
       *
       * <code>repeated string resource_ids = 2;</code>
       * @param index The index to set the value at.
       * @param value The resourceIds to set.
       * @return This builder for chaining.
       */
      public Builder setResourceIds(
          int index, java.lang.String value) {
        copyOnWrite();
        instance.setResourceIds(index, value);
        return this;
      }
      /**
       * <pre>
       * Requested resource IDs. This specifies which tile resources should be
       * returned in the Resources response. If not specified, all resources for the
       * given version must be provided in the response.
       * Note that resource IDs here correspond to tile resources (i.e. keys that
       * would be used in Resources.idToImage), not Android resource names or
       * similar.
       * </pre>
       *
       * <code>repeated string resource_ids = 2;</code>
       * @param value The resourceIds to add.
       * @return This builder for chaining.
       */
      public Builder addResourceIds(
          java.lang.String value) {
        copyOnWrite();
        instance.addResourceIds(value);
        return this;
      }
      /**
       * <pre>
       * Requested resource IDs. This specifies which tile resources should be
       * returned in the Resources response. If not specified, all resources for the
       * given version must be provided in the response.
       * Note that resource IDs here correspond to tile resources (i.e. keys that
       * would be used in Resources.idToImage), not Android resource names or
       * similar.
       * </pre>
       *
       * <code>repeated string resource_ids = 2;</code>
       * @param values The resourceIds to add.
       * @return This builder for chaining.
       */
      public Builder addAllResourceIds(
          java.lang.Iterable<java.lang.String> values) {
        copyOnWrite();
        instance.addAllResourceIds(values);
        return this;
      }
      /**
       * <pre>
       * Requested resource IDs. This specifies which tile resources should be
       * returned in the Resources response. If not specified, all resources for the
       * given version must be provided in the response.
       * Note that resource IDs here correspond to tile resources (i.e. keys that
       * would be used in Resources.idToImage), not Android resource names or
       * similar.
       * </pre>
       *
       * <code>repeated string resource_ids = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearResourceIds() {
        copyOnWrite();
        instance.clearResourceIds();
        return this;
      }
      /**
       * <pre>
       * Requested resource IDs. This specifies which tile resources should be
       * returned in the Resources response. If not specified, all resources for the
       * given version must be provided in the response.
       * Note that resource IDs here correspond to tile resources (i.e. keys that
       * would be used in Resources.idToImage), not Android resource names or
       * similar.
       * </pre>
       *
       * <code>repeated string resource_ids = 2;</code>
       * @param value The bytes of the resourceIds to add.
       * @return This builder for chaining.
       */
      public Builder addResourceIdsBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.addResourceIdsBytes(value);
        return this;
      }

      /**
       * <pre>
       * Parameters describing the device requesting the resources.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
       */
      @java.lang.Override
      public boolean hasDeviceConfiguration() {
        return instance.hasDeviceConfiguration();
      }
      /**
       * <pre>
       * Parameters describing the device requesting the resources.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters getDeviceConfiguration() {
        return instance.getDeviceConfiguration();
      }
      /**
       * <pre>
       * Parameters describing the device requesting the resources.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
       */
      public Builder setDeviceConfiguration(androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters value) {
        copyOnWrite();
        instance.setDeviceConfiguration(value);
        return this;
        }
      /**
       * <pre>
       * Parameters describing the device requesting the resources.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
       */
      public Builder setDeviceConfiguration(
          androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters.Builder builderForValue) {
        copyOnWrite();
        instance.setDeviceConfiguration(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * Parameters describing the device requesting the resources.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
       */
      public Builder mergeDeviceConfiguration(androidx.wear.protolayout.proto.DeviceParametersProto.DeviceParameters value) {
        copyOnWrite();
        instance.mergeDeviceConfiguration(value);
        return this;
      }
      /**
       * <pre>
       * Parameters describing the device requesting the resources.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.DeviceParameters device_configuration = 3;</code>
       */
      public Builder clearDeviceConfiguration() {  copyOnWrite();
        instance.clearDeviceConfiguration();
        return this;
      }

      /**
       * <pre>
       * The ID of the tile for which resources are being requested.
       * </pre>
       *
       * <code>uint32 tile_id = 4;</code>
       * @return The tileId.
       */
      @java.lang.Override
      public int getTileId() {
        return instance.getTileId();
      }
      /**
       * <pre>
       * The ID of the tile for which resources are being requested.
       * </pre>
       *
       * <code>uint32 tile_id = 4;</code>
       * @param value The tileId to set.
       * @return This builder for chaining.
       */
      public Builder setTileId(int value) {
        copyOnWrite();
        instance.setTileId(value);
        return this;
      }
      /**
       * <pre>
       * The ID of the tile for which resources are being requested.
       * </pre>
       *
       * <code>uint32 tile_id = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearTileId() {
        copyOnWrite();
        instance.clearTileId();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.tiles.proto.ResourcesRequest)
    }
    @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.tiles.proto.RequestProto.ResourcesRequest();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "version_",
              "resourceIds_",
              "deviceConfiguration_",
              "tileId_",
            };
            java.lang.String info =
                "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0001\u0000\u0001\u0208\u0002\u021a" +
                "\u0003\t\u0004\u000b";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.tiles.proto.RequestProto.ResourcesRequest> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.tiles.proto.RequestProto.ResourcesRequest.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.tiles.proto.RequestProto.ResourcesRequest>(
                        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.tiles.proto.ResourcesRequest)
    private static final androidx.wear.tiles.proto.RequestProto.ResourcesRequest DEFAULT_INSTANCE;
    static {
      ResourcesRequest defaultInstance = new ResourcesRequest();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        ResourcesRequest.class, defaultInstance);
    }

    public static androidx.wear.tiles.proto.RequestProto.ResourcesRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

  public interface StateRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.tiles.proto.StateRequest)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The current state of the Tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
     * @return Whether the state field is set.
     */
    boolean hasState();
    /**
     * <pre>
     * The current state of the Tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
     * @return The state.
     */
    androidx.wear.protolayout.proto.StateProto.State getState();

    /**
     * <pre>
     * The ID of the tile for which state is being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 2;</code>
     * @return The tileId.
     */
    int getTileId();
  }
  /**
   * <pre>
   * Parameters passed to a Tile Service when the renderer is requesting a
   * new state bundle.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.tiles.proto.StateRequest}
   */
  public  static final class StateRequest extends
      com.google.protobuf.GeneratedMessageLite<
          StateRequest, StateRequest.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.tiles.proto.StateRequest)
      StateRequestOrBuilder {
    private StateRequest() {
    }
    public static final int STATE_FIELD_NUMBER = 1;
    private androidx.wear.protolayout.proto.StateProto.State state_;
    /**
     * <pre>
     * The current state of the Tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
     */
    @java.lang.Override
    public boolean hasState() {
      return state_ != null;
    }
    /**
     * <pre>
     * The current state of the Tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
     */
    @java.lang.Override
    public androidx.wear.protolayout.proto.StateProto.State getState() {
      return state_ == null ? androidx.wear.protolayout.proto.StateProto.State.getDefaultInstance() : state_;
    }
    /**
     * <pre>
     * The current state of the Tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
     */
    private void setState(androidx.wear.protolayout.proto.StateProto.State value) {
      value.getClass();
  state_ = value;
      
      }
    /**
     * <pre>
     * The current state of the Tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeState(androidx.wear.protolayout.proto.StateProto.State value) {
      value.getClass();
  if (state_ != null &&
          state_ != androidx.wear.protolayout.proto.StateProto.State.getDefaultInstance()) {
        state_ =
          androidx.wear.protolayout.proto.StateProto.State.newBuilder(state_).mergeFrom(value).buildPartial();
      } else {
        state_ = value;
      }
      
    }
    /**
     * <pre>
     * The current state of the Tile.
     * </pre>
     *
     * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
     */
    private void clearState() {  state_ = null;
      
    }

    public static final int TILE_ID_FIELD_NUMBER = 2;
    private int tileId_;
    /**
     * <pre>
     * The ID of the tile for which state is being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 2;</code>
     * @return The tileId.
     */
    @java.lang.Override
    public int getTileId() {
      return tileId_;
    }
    /**
     * <pre>
     * The ID of the tile for which state is being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 2;</code>
     * @param value The tileId to set.
     */
    private void setTileId(int value) {
      
      tileId_ = value;
    }
    /**
     * <pre>
     * The ID of the tile for which state is being requested.
     * </pre>
     *
     * <code>uint32 tile_id = 2;</code>
     */
    private void clearTileId() {
      
      tileId_ = 0;
    }

    public static androidx.wear.tiles.proto.RequestProto.StateRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.tiles.proto.RequestProto.StateRequest 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.tiles.proto.RequestProto.StateRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.tiles.proto.RequestProto.StateRequest 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.tiles.proto.RequestProto.StateRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.tiles.proto.RequestProto.StateRequest 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.tiles.proto.RequestProto.StateRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.tiles.proto.RequestProto.StateRequest 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.tiles.proto.RequestProto.StateRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.tiles.proto.RequestProto.StateRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static androidx.wear.tiles.proto.RequestProto.StateRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.tiles.proto.RequestProto.StateRequest 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.tiles.proto.RequestProto.StateRequest prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * Parameters passed to a Tile Service when the renderer is requesting a
     * new state bundle.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.tiles.proto.StateRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.tiles.proto.RequestProto.StateRequest, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.tiles.proto.StateRequest)
        androidx.wear.tiles.proto.RequestProto.StateRequestOrBuilder {
      // Construct using androidx.wear.tiles.proto.RequestProto.StateRequest.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The current state of the Tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
       */
      @java.lang.Override
      public boolean hasState() {
        return instance.hasState();
      }
      /**
       * <pre>
       * The current state of the Tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
       */
      @java.lang.Override
      public androidx.wear.protolayout.proto.StateProto.State getState() {
        return instance.getState();
      }
      /**
       * <pre>
       * The current state of the Tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
       */
      public Builder setState(androidx.wear.protolayout.proto.StateProto.State value) {
        copyOnWrite();
        instance.setState(value);
        return this;
        }
      /**
       * <pre>
       * The current state of the Tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
       */
      public Builder setState(
          androidx.wear.protolayout.proto.StateProto.State.Builder builderForValue) {
        copyOnWrite();
        instance.setState(builderForValue.build());
        return this;
      }
      /**
       * <pre>
       * The current state of the Tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
       */
      public Builder mergeState(androidx.wear.protolayout.proto.StateProto.State value) {
        copyOnWrite();
        instance.mergeState(value);
        return this;
      }
      /**
       * <pre>
       * The current state of the Tile.
       * </pre>
       *
       * <code>.androidx.wear.protolayout.proto.State state = 1;</code>
       */
      public Builder clearState() {  copyOnWrite();
        instance.clearState();
        return this;
      }

      /**
       * <pre>
       * The ID of the tile for which state is being requested.
       * </pre>
       *
       * <code>uint32 tile_id = 2;</code>
       * @return The tileId.
       */
      @java.lang.Override
      public int getTileId() {
        return instance.getTileId();
      }
      /**
       * <pre>
       * The ID of the tile for which state is being requested.
       * </pre>
       *
       * <code>uint32 tile_id = 2;</code>
       * @param value The tileId to set.
       * @return This builder for chaining.
       */
      public Builder setTileId(int value) {
        copyOnWrite();
        instance.setTileId(value);
        return this;
      }
      /**
       * <pre>
       * The ID of the tile for which state is being requested.
       * </pre>
       *
       * <code>uint32 tile_id = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearTileId() {
        copyOnWrite();
        instance.clearTileId();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.tiles.proto.StateRequest)
    }
    @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.tiles.proto.RequestProto.StateRequest();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "state_",
              "tileId_",
            };
            java.lang.String info =
                "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\u000b" +
                "";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.wear.tiles.proto.RequestProto.StateRequest> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.tiles.proto.RequestProto.StateRequest.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.tiles.proto.RequestProto.StateRequest>(
                        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.tiles.proto.StateRequest)
    private static final androidx.wear.tiles.proto.RequestProto.StateRequest DEFAULT_INSTANCE;
    static {
      StateRequest defaultInstance = new StateRequest();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        StateRequest.class, defaultInstance);
    }

    public static androidx.wear.tiles.proto.RequestProto.StateRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}