public final class

StateProto

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.proto.StateProto

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: state.proto

package androidx.wear.protolayout.proto;

public final class StateProto {
  private StateProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  public interface StateOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.wear.protolayout.proto.State)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <pre>
     * The ID of the clickable that was last clicked.
     * </pre>
     *
     * <code>string last_clickable_id = 1;</code>
     * @return The lastClickableId.
     */
    java.lang.String getLastClickableId();
    /**
     * <pre>
     * The ID of the clickable that was last clicked.
     * </pre>
     *
     * <code>string last_clickable_id = 1;</code>
     * @return The bytes for lastClickableId.
     */
    com.google.protobuf.ByteString
        getLastClickableIdBytes();

    /**
     * <pre>
     * Any shared state between the provider and renderer.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
     */
    int getIdToValueCount();
    /**
     * <pre>
     * Any shared state between the provider and renderer.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
     */
    boolean containsIdToValue(
        java.lang.String key);
    /**
     * Use {@link #getIdToValueMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue>
    getIdToValue();
    /**
     * <pre>
     * Any shared state between the provider and renderer.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
     */
    java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue>
    getIdToValueMap();
    /**
     * <pre>
     * Any shared state between the provider and renderer.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
     */

    /* nullable */
androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue getIdToValueOrDefault(
        java.lang.String key,
        /* nullable */
androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue defaultValue);
    /**
     * <pre>
     * Any shared state between the provider and renderer.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
     */

    androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue getIdToValueOrThrow(
        java.lang.String key);
  }
  /**
   * <pre>
   * State information.
   * </pre>
   *
   * Protobuf type {@code androidx.wear.protolayout.proto.State}
   */
  public  static final class State extends
      com.google.protobuf.GeneratedMessageLite<
          State, State.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.wear.protolayout.proto.State)
      StateOrBuilder {
    private State() {
      lastClickableId_ = "";
    }
    public static final int LAST_CLICKABLE_ID_FIELD_NUMBER = 1;
    private java.lang.String lastClickableId_;
    /**
     * <pre>
     * The ID of the clickable that was last clicked.
     * </pre>
     *
     * <code>string last_clickable_id = 1;</code>
     * @return The lastClickableId.
     */
    @java.lang.Override
    public java.lang.String getLastClickableId() {
      return lastClickableId_;
    }
    /**
     * <pre>
     * The ID of the clickable that was last clicked.
     * </pre>
     *
     * <code>string last_clickable_id = 1;</code>
     * @return The bytes for lastClickableId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getLastClickableIdBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(lastClickableId_);
    }
    /**
     * <pre>
     * The ID of the clickable that was last clicked.
     * </pre>
     *
     * <code>string last_clickable_id = 1;</code>
     * @param value The lastClickableId to set.
     */
    private void setLastClickableId(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  
      lastClickableId_ = value;
    }
    /**
     * <pre>
     * The ID of the clickable that was last clicked.
     * </pre>
     *
     * <code>string last_clickable_id = 1;</code>
     */
    private void clearLastClickableId() {

      lastClickableId_ = getDefaultInstance().getLastClickableId();
    }
    /**
     * <pre>
     * The ID of the clickable that was last clicked.
     * </pre>
     *
     * <code>string last_clickable_id = 1;</code>
     * @param value The bytes for lastClickableId to set.
     */
    private void setLastClickableIdBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      lastClickableId_ = value.toStringUtf8();

    }

    public static final int ID_TO_VALUE_FIELD_NUMBER = 2;
    private static final class IdToValueDefaultEntryHolder {
      static final com.google.protobuf.MapEntryLite<
          java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> defaultEntry =
              com.google.protobuf.MapEntryLite
              .<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue>newDefaultInstance(
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "",
                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
                  androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue.getDefaultInstance());
    }
    private com.google.protobuf.MapFieldLite<
        java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> idToValue_ =
            com.google.protobuf.MapFieldLite.emptyMapField();
    private com.google.protobuf.MapFieldLite<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue>
    internalGetIdToValue() {
      return idToValue_;
    }
    private com.google.protobuf.MapFieldLite<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue>
    internalGetMutableIdToValue() {
      if (!idToValue_.isMutable()) {
        idToValue_ = idToValue_.mutableCopy();
      }
      return idToValue_;
    }
    @java.lang.Override

    public int getIdToValueCount() {
      return internalGetIdToValue().size();
    }
    /**
     * <pre>
     * Any shared state between the provider and renderer.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
     */
    @java.lang.Override

    public boolean containsIdToValue(
        java.lang.String key) {
      java.lang.Class<?> keyClass = key.getClass();
      return internalGetIdToValue().containsKey(key);
    }
    /**
     * Use {@link #getIdToValueMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> getIdToValue() {
      return getIdToValueMap();
    }
    /**
     * <pre>
     * Any shared state between the provider and renderer.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> getIdToValueMap() {
      return java.util.Collections.unmodifiableMap(
          internalGetIdToValue());
    }
    /**
     * <pre>
     * Any shared state between the provider and renderer.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
     */
    @java.lang.Override

    public /* nullable */
androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue getIdToValueOrDefault(
        java.lang.String key,
        /* nullable */
androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue defaultValue) {
      java.lang.Class<?> keyClass = key.getClass();
      java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> map =
          internalGetIdToValue();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * Any shared state between the provider and renderer.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
     */
    @java.lang.Override

    public androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue getIdToValueOrThrow(
        java.lang.String key) {
      java.lang.Class<?> keyClass = key.getClass();
      java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> map =
          internalGetIdToValue();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }
    /**
     * <pre>
     * Any shared state between the provider and renderer.
     * </pre>
     *
     * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
     */
    private java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue>
    getMutableIdToValueMap() {
      return internalGetMutableIdToValue();
    }

    public static androidx.wear.protolayout.proto.StateProto.State 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.StateProto.State 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.StateProto.State 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.StateProto.State 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.StateProto.State parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static androidx.wear.protolayout.proto.StateProto.State 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.StateProto.State parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.StateProto.State 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.StateProto.State parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static androidx.wear.protolayout.proto.StateProto.State 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.StateProto.State 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.StateProto.State 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.StateProto.State prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * <pre>
     * State information.
     * </pre>
     *
     * Protobuf type {@code androidx.wear.protolayout.proto.State}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.wear.protolayout.proto.StateProto.State, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.wear.protolayout.proto.State)
        androidx.wear.protolayout.proto.StateProto.StateOrBuilder {
      // Construct using androidx.wear.protolayout.proto.StateProto.State.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <pre>
       * The ID of the clickable that was last clicked.
       * </pre>
       *
       * <code>string last_clickable_id = 1;</code>
       * @return The lastClickableId.
       */
      @java.lang.Override
      public java.lang.String getLastClickableId() {
        return instance.getLastClickableId();
      }
      /**
       * <pre>
       * The ID of the clickable that was last clicked.
       * </pre>
       *
       * <code>string last_clickable_id = 1;</code>
       * @return The bytes for lastClickableId.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getLastClickableIdBytes() {
        return instance.getLastClickableIdBytes();
      }
      /**
       * <pre>
       * The ID of the clickable that was last clicked.
       * </pre>
       *
       * <code>string last_clickable_id = 1;</code>
       * @param value The lastClickableId to set.
       * @return This builder for chaining.
       */
      public Builder setLastClickableId(
          java.lang.String value) {
        copyOnWrite();
        instance.setLastClickableId(value);
        return this;
      }
      /**
       * <pre>
       * The ID of the clickable that was last clicked.
       * </pre>
       *
       * <code>string last_clickable_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearLastClickableId() {
        copyOnWrite();
        instance.clearLastClickableId();
        return this;
      }
      /**
       * <pre>
       * The ID of the clickable that was last clicked.
       * </pre>
       *
       * <code>string last_clickable_id = 1;</code>
       * @param value The bytes for lastClickableId to set.
       * @return This builder for chaining.
       */
      public Builder setLastClickableIdBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setLastClickableIdBytes(value);
        return this;
      }

      @java.lang.Override

      public int getIdToValueCount() {
        return instance.getIdToValueMap().size();
      }
      /**
       * <pre>
       * Any shared state between the provider and renderer.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
       */
      @java.lang.Override

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

      public Builder clearIdToValue() {
        copyOnWrite();
        instance.getMutableIdToValueMap().clear();
        return this;
      }
      /**
       * <pre>
       * Any shared state between the provider and renderer.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
       */

      public Builder removeIdToValue(
          java.lang.String key) {
        java.lang.Class<?> keyClass = key.getClass();
        copyOnWrite();
        instance.getMutableIdToValueMap().remove(key);
        return this;
      }
      /**
       * Use {@link #getIdToValueMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> getIdToValue() {
        return getIdToValueMap();
      }
      /**
       * <pre>
       * Any shared state between the provider and renderer.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
       */
      @java.lang.Override
      public java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> getIdToValueMap() {
        return java.util.Collections.unmodifiableMap(
            instance.getIdToValueMap());
      }
      /**
       * <pre>
       * Any shared state between the provider and renderer.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
       */
      @java.lang.Override

      public /* nullable */
androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue getIdToValueOrDefault(
          java.lang.String key,
          /* nullable */
androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue defaultValue) {
        java.lang.Class<?> keyClass = key.getClass();
        java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> map =
            instance.getIdToValueMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <pre>
       * Any shared state between the provider and renderer.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
       */
      @java.lang.Override

      public androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue getIdToValueOrThrow(
          java.lang.String key) {
        java.lang.Class<?> keyClass = key.getClass();
        java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> map =
            instance.getIdToValueMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }
      /**
       * <pre>
       * Any shared state between the provider and renderer.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
       */
      public Builder putIdToValue(
          java.lang.String key,
          androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue value) {
        java.lang.Class<?> keyClass = key.getClass();
        java.lang.Class<?> valueClass = value.getClass();
        copyOnWrite();
        instance.getMutableIdToValueMap().put(key, value);
        return this;
      }
      /**
       * <pre>
       * Any shared state between the provider and renderer.
       * </pre>
       *
       * <code>map&lt;string, .androidx.wear.protolayout.expression.proto.DynamicDataValue&gt; id_to_value = 2;</code>
       */
      public Builder putAllIdToValue(
          java.util.Map<java.lang.String, androidx.wear.protolayout.expression.proto.DynamicDataProto.DynamicDataValue> values) {
        copyOnWrite();
        instance.getMutableIdToValueMap().putAll(values);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.wear.protolayout.proto.State)
    }
    @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.StateProto.State();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "lastClickableId_",
              "idToValue_",
              IdToValueDefaultEntryHolder.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.StateProto.State> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.wear.protolayout.proto.StateProto.State.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.wear.protolayout.proto.StateProto.State>(
                        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.State)
    private static final androidx.wear.protolayout.proto.StateProto.State DEFAULT_INSTANCE;
    static {
      State defaultInstance = new State();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        State.class, defaultInstance);
    }

    public static androidx.wear.protolayout.proto.StateProto.State getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}