public final class

ChangeProto

extends java.lang.Object

 java.lang.Object

↳androidx.health.platform.client.proto.ChangeProto

Gradle dependencies

compile group: 'androidx.health.connect', name: 'connect-client-proto', version: '1.1.0-alpha08'

  • groupId: androidx.health.connect
  • artifactId: connect-client-proto
  • version: 1.1.0-alpha08

Artifact androidx.health.connect:connect-client-proto:1.1.0-alpha08 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: change.proto

package androidx.health.platform.client.proto;

public final class ChangeProto {
  private ChangeProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  public interface DataChangeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.health.platform.client.proto.DataChange)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
     * @return Whether the upsertDataPoint field is set.
     */
    boolean hasUpsertDataPoint();
    /**
     * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
     * @return The upsertDataPoint.
     */
    androidx.health.platform.client.proto.DataProto.DataPoint getUpsertDataPoint();

    /**
     * <code>string delete_uid = 2;</code>
     * @return Whether the deleteUid field is set.
     */
    boolean hasDeleteUid();
    /**
     * <code>string delete_uid = 2;</code>
     * @return The deleteUid.
     */
    java.lang.String getDeleteUid();
    /**
     * <code>string delete_uid = 2;</code>
     * @return The bytes for deleteUid.
     */
    com.google.protobuf.ByteString
        getDeleteUidBytes();

    public androidx.health.platform.client.proto.ChangeProto.DataChange.ChangeCase getChangeCase();
  }
  /**
   * Protobuf type {@code androidx.health.platform.client.proto.DataChange}
   */
  public  static final class DataChange extends
      com.google.protobuf.GeneratedMessageLite<
          DataChange, DataChange.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.health.platform.client.proto.DataChange)
      DataChangeOrBuilder {
    private DataChange() {
    }
    private int bitField0_;
    private int changeCase_ = 0;
    private java.lang.Object change_;
    public enum ChangeCase {
      UPSERT_DATA_POINT(1),
      DELETE_UID(2),
      CHANGE_NOT_SET(0);
      private final int value;
      private ChangeCase(int value) {
        this.value = value;
      }
      /**
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static ChangeCase valueOf(int value) {
        return forNumber(value);
      }

      public static ChangeCase forNumber(int value) {
        switch (value) {
          case 1: return UPSERT_DATA_POINT;
          case 2: return DELETE_UID;
          case 0: return CHANGE_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    @java.lang.Override
    public ChangeCase
    getChangeCase() {
      return ChangeCase.forNumber(
          changeCase_);
    }

    private void clearChange() {
      changeCase_ = 0;
      change_ = null;
    }

    public static final int UPSERT_DATA_POINT_FIELD_NUMBER = 1;
    /**
     * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
     */
    @java.lang.Override
    public boolean hasUpsertDataPoint() {
      return changeCase_ == 1;
    }
    /**
     * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
     */
    @java.lang.Override
    public androidx.health.platform.client.proto.DataProto.DataPoint getUpsertDataPoint() {
      if (changeCase_ == 1) {
         return (androidx.health.platform.client.proto.DataProto.DataPoint) change_;
      }
      return androidx.health.platform.client.proto.DataProto.DataPoint.getDefaultInstance();
    }
    /**
     * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
     */
    private void setUpsertDataPoint(androidx.health.platform.client.proto.DataProto.DataPoint value) {
      value.getClass();
  change_ = value;
      changeCase_ = 1;
    }
    /**
     * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
     */
    private void mergeUpsertDataPoint(androidx.health.platform.client.proto.DataProto.DataPoint value) {
      value.getClass();
  if (changeCase_ == 1 &&
          change_ != androidx.health.platform.client.proto.DataProto.DataPoint.getDefaultInstance()) {
        change_ = androidx.health.platform.client.proto.DataProto.DataPoint.newBuilder((androidx.health.platform.client.proto.DataProto.DataPoint) change_)
            .mergeFrom(value).buildPartial();
      } else {
        change_ = value;
      }
      changeCase_ = 1;
    }
    /**
     * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
     */
    private void clearUpsertDataPoint() {
      if (changeCase_ == 1) {
        changeCase_ = 0;
        change_ = null;
      }
    }

    public static final int DELETE_UID_FIELD_NUMBER = 2;
    /**
     * <code>string delete_uid = 2;</code>
     * @return Whether the deleteUid field is set.
     */
    @java.lang.Override
    public boolean hasDeleteUid() {
      return changeCase_ == 2;
    }
    /**
     * <code>string delete_uid = 2;</code>
     * @return The deleteUid.
     */
    @java.lang.Override
    public java.lang.String getDeleteUid() {
      java.lang.String ref = "";
      if (changeCase_ == 2) {
        ref = (java.lang.String) change_;
      }
      return ref;
    }
    /**
     * <code>string delete_uid = 2;</code>
     * @return The bytes for deleteUid.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDeleteUidBytes() {
      java.lang.String ref = "";
      if (changeCase_ == 2) {
        ref = (java.lang.String) change_;
      }
      return com.google.protobuf.ByteString.copyFromUtf8(ref);
    }
    /**
     * <code>string delete_uid = 2;</code>
     * @param value The deleteUid to set.
     */
    private void setDeleteUid(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  changeCase_ = 2;
      change_ = value;
    }
    /**
     * <code>string delete_uid = 2;</code>
     */
    private void clearDeleteUid() {
      if (changeCase_ == 2) {
        changeCase_ = 0;
        change_ = null;
      }
    }
    /**
     * <code>string delete_uid = 2;</code>
     * @param value The bytes for deleteUid to set.
     */
    private void setDeleteUidBytes(
        com.google.protobuf.ByteString value) {
      change_ = value.toStringUtf8();
      changeCase_ = 2;
    }

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

    /**
     * Protobuf type {@code androidx.health.platform.client.proto.DataChange}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.health.platform.client.proto.ChangeProto.DataChange, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.health.platform.client.proto.DataChange)
        androidx.health.platform.client.proto.ChangeProto.DataChangeOrBuilder {
      // Construct using androidx.health.platform.client.proto.ChangeProto.DataChange.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }

      @java.lang.Override
      public ChangeCase
          getChangeCase() {
        return instance.getChangeCase();
      }

      public Builder clearChange() {
        copyOnWrite();
        instance.clearChange();
        return this;
      }


      /**
       * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
       */
      @java.lang.Override
      public boolean hasUpsertDataPoint() {
        return instance.hasUpsertDataPoint();
      }
      /**
       * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
       */
      @java.lang.Override
      public androidx.health.platform.client.proto.DataProto.DataPoint getUpsertDataPoint() {
        return instance.getUpsertDataPoint();
      }
      /**
       * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
       */
      public Builder setUpsertDataPoint(androidx.health.platform.client.proto.DataProto.DataPoint value) {
        copyOnWrite();
        instance.setUpsertDataPoint(value);
        return this;
      }
      /**
       * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
       */
      public Builder setUpsertDataPoint(
          androidx.health.platform.client.proto.DataProto.DataPoint.Builder builderForValue) {
        copyOnWrite();
        instance.setUpsertDataPoint(builderForValue.build());
        return this;
      }
      /**
       * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
       */
      public Builder mergeUpsertDataPoint(androidx.health.platform.client.proto.DataProto.DataPoint value) {
        copyOnWrite();
        instance.mergeUpsertDataPoint(value);
        return this;
      }
      /**
       * <code>.androidx.health.platform.client.proto.DataPoint upsert_data_point = 1;</code>
       */
      public Builder clearUpsertDataPoint() {
        copyOnWrite();
        instance.clearUpsertDataPoint();
        return this;
      }

      /**
       * <code>string delete_uid = 2;</code>
       * @return Whether the deleteUid field is set.
       */
      @java.lang.Override
      public boolean hasDeleteUid() {
        return instance.hasDeleteUid();
      }
      /**
       * <code>string delete_uid = 2;</code>
       * @return The deleteUid.
       */
      @java.lang.Override
      public java.lang.String getDeleteUid() {
        return instance.getDeleteUid();
      }
      /**
       * <code>string delete_uid = 2;</code>
       * @return The bytes for deleteUid.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getDeleteUidBytes() {
        return instance.getDeleteUidBytes();
      }
      /**
       * <code>string delete_uid = 2;</code>
       * @param value The deleteUid to set.
       * @return This builder for chaining.
       */
      public Builder setDeleteUid(
          java.lang.String value) {
        copyOnWrite();
        instance.setDeleteUid(value);
        return this;
      }
      /**
       * <code>string delete_uid = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearDeleteUid() {
        copyOnWrite();
        instance.clearDeleteUid();
        return this;
      }
      /**
       * <code>string delete_uid = 2;</code>
       * @param value The bytes for deleteUid to set.
       * @return This builder for chaining.
       */
      public Builder setDeleteUidBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setDeleteUidBytes(value);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.health.platform.client.proto.DataChange)
    }
    @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.health.platform.client.proto.ChangeProto.DataChange();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "change_",
              "changeCase_",
              "bitField0_",
              androidx.health.platform.client.proto.DataProto.DataPoint.class,
            };
            java.lang.String info =
                "\u0001\u0002\u0001\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u103c\u0000\u0002" +
                "\u103b\u0000";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<androidx.health.platform.client.proto.ChangeProto.DataChange> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.health.platform.client.proto.ChangeProto.DataChange.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.health.platform.client.proto.ChangeProto.DataChange>(
                        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.health.platform.client.proto.DataChange)
    private static final androidx.health.platform.client.proto.ChangeProto.DataChange DEFAULT_INSTANCE;
    static {
      DataChange defaultInstance = new DataChange();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        DataChange.class, defaultInstance);
    }

    public static androidx.health.platform.client.proto.ChangeProto.DataChange getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

  public interface ChangesEventOrBuilder extends
      // @@protoc_insertion_point(interface_extends:androidx.health.platform.client.proto.ChangesEvent)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <code>optional string next_changes_token = 1;</code>
     * @return Whether the nextChangesToken field is set.
     */
    boolean hasNextChangesToken();
    /**
     * <code>optional string next_changes_token = 1;</code>
     * @return The nextChangesToken.
     */
    java.lang.String getNextChangesToken();
    /**
     * <code>optional string next_changes_token = 1;</code>
     * @return The bytes for nextChangesToken.
     */
    com.google.protobuf.ByteString
        getNextChangesTokenBytes();

    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    java.util.List<androidx.health.platform.client.proto.ChangeProto.DataChange> 
        getChangesList();
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    androidx.health.platform.client.proto.ChangeProto.DataChange getChanges(int index);
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    int getChangesCount();
  }
  /**
   * Protobuf type {@code androidx.health.platform.client.proto.ChangesEvent}
   */
  public  static final class ChangesEvent extends
      com.google.protobuf.GeneratedMessageLite<
          ChangesEvent, ChangesEvent.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.health.platform.client.proto.ChangesEvent)
      ChangesEventOrBuilder {
    private ChangesEvent() {
      nextChangesToken_ = "";
      changes_ = emptyProtobufList();
    }
    private int bitField0_;
    public static final int NEXT_CHANGES_TOKEN_FIELD_NUMBER = 1;
    private java.lang.String nextChangesToken_;
    /**
     * <code>optional string next_changes_token = 1;</code>
     * @return Whether the nextChangesToken field is set.
     */
    @java.lang.Override
    public boolean hasNextChangesToken() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional string next_changes_token = 1;</code>
     * @return The nextChangesToken.
     */
    @java.lang.Override
    public java.lang.String getNextChangesToken() {
      return nextChangesToken_;
    }
    /**
     * <code>optional string next_changes_token = 1;</code>
     * @return The bytes for nextChangesToken.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNextChangesTokenBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(nextChangesToken_);
    }
    /**
     * <code>optional string next_changes_token = 1;</code>
     * @param value The nextChangesToken to set.
     */
    private void setNextChangesToken(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  bitField0_ |= 0x00000001;
      nextChangesToken_ = value;
    }
    /**
     * <code>optional string next_changes_token = 1;</code>
     */
    private void clearNextChangesToken() {
      bitField0_ = (bitField0_ & ~0x00000001);
      nextChangesToken_ = getDefaultInstance().getNextChangesToken();
    }
    /**
     * <code>optional string next_changes_token = 1;</code>
     * @param value The bytes for nextChangesToken to set.
     */
    private void setNextChangesTokenBytes(
        com.google.protobuf.ByteString value) {
      nextChangesToken_ = value.toStringUtf8();
      bitField0_ |= 0x00000001;
    }

    public static final int CHANGES_FIELD_NUMBER = 2;
    private com.google.protobuf.Internal.ProtobufList<androidx.health.platform.client.proto.ChangeProto.DataChange> changes_;
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    @java.lang.Override
    public java.util.List<androidx.health.platform.client.proto.ChangeProto.DataChange> getChangesList() {
      return changes_;
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    public java.util.List<? extends androidx.health.platform.client.proto.ChangeProto.DataChangeOrBuilder> 
        getChangesOrBuilderList() {
      return changes_;
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    @java.lang.Override
    public int getChangesCount() {
      return changes_.size();
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    @java.lang.Override
    public androidx.health.platform.client.proto.ChangeProto.DataChange getChanges(int index) {
      return changes_.get(index);
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    public androidx.health.platform.client.proto.ChangeProto.DataChangeOrBuilder getChangesOrBuilder(
        int index) {
      return changes_.get(index);
    }
    private void ensureChangesIsMutable() {
      com.google.protobuf.Internal.ProtobufList<androidx.health.platform.client.proto.ChangeProto.DataChange> tmp = changes_;
      if (!tmp.isModifiable()) {
        changes_ =
            com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
       }
    }

    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    private void setChanges(
        int index, androidx.health.platform.client.proto.ChangeProto.DataChange value) {
      value.getClass();
  ensureChangesIsMutable();
      changes_.set(index, value);
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    private void addChanges(androidx.health.platform.client.proto.ChangeProto.DataChange value) {
      value.getClass();
  ensureChangesIsMutable();
      changes_.add(value);
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    private void addChanges(
        int index, androidx.health.platform.client.proto.ChangeProto.DataChange value) {
      value.getClass();
  ensureChangesIsMutable();
      changes_.add(index, value);
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    private void addAllChanges(
        java.lang.Iterable<? extends androidx.health.platform.client.proto.ChangeProto.DataChange> values) {
      ensureChangesIsMutable();
      com.google.protobuf.AbstractMessageLite.addAll(
          values, changes_);
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    private void clearChanges() {
      changes_ = emptyProtobufList();
    }
    /**
     * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
     */
    private void removeChanges(int index) {
      ensureChangesIsMutable();
      changes_.remove(index);
    }

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

    /**
     * Protobuf type {@code androidx.health.platform.client.proto.ChangesEvent}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          androidx.health.platform.client.proto.ChangeProto.ChangesEvent, Builder> implements
        // @@protoc_insertion_point(builder_implements:androidx.health.platform.client.proto.ChangesEvent)
        androidx.health.platform.client.proto.ChangeProto.ChangesEventOrBuilder {
      // Construct using androidx.health.platform.client.proto.ChangeProto.ChangesEvent.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <code>optional string next_changes_token = 1;</code>
       * @return Whether the nextChangesToken field is set.
       */
      @java.lang.Override
      public boolean hasNextChangesToken() {
        return instance.hasNextChangesToken();
      }
      /**
       * <code>optional string next_changes_token = 1;</code>
       * @return The nextChangesToken.
       */
      @java.lang.Override
      public java.lang.String getNextChangesToken() {
        return instance.getNextChangesToken();
      }
      /**
       * <code>optional string next_changes_token = 1;</code>
       * @return The bytes for nextChangesToken.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getNextChangesTokenBytes() {
        return instance.getNextChangesTokenBytes();
      }
      /**
       * <code>optional string next_changes_token = 1;</code>
       * @param value The nextChangesToken to set.
       * @return This builder for chaining.
       */
      public Builder setNextChangesToken(
          java.lang.String value) {
        copyOnWrite();
        instance.setNextChangesToken(value);
        return this;
      }
      /**
       * <code>optional string next_changes_token = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearNextChangesToken() {
        copyOnWrite();
        instance.clearNextChangesToken();
        return this;
      }
      /**
       * <code>optional string next_changes_token = 1;</code>
       * @param value The bytes for nextChangesToken to set.
       * @return This builder for chaining.
       */
      public Builder setNextChangesTokenBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setNextChangesTokenBytes(value);
        return this;
      }

      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      @java.lang.Override
      public java.util.List<androidx.health.platform.client.proto.ChangeProto.DataChange> getChangesList() {
        return java.util.Collections.unmodifiableList(
            instance.getChangesList());
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      @java.lang.Override
      public int getChangesCount() {
        return instance.getChangesCount();
      }/**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      @java.lang.Override
      public androidx.health.platform.client.proto.ChangeProto.DataChange getChanges(int index) {
        return instance.getChanges(index);
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      public Builder setChanges(
          int index, androidx.health.platform.client.proto.ChangeProto.DataChange value) {
        copyOnWrite();
        instance.setChanges(index, value);
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      public Builder setChanges(
          int index, androidx.health.platform.client.proto.ChangeProto.DataChange.Builder builderForValue) {
        copyOnWrite();
        instance.setChanges(index,
            builderForValue.build());
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      public Builder addChanges(androidx.health.platform.client.proto.ChangeProto.DataChange value) {
        copyOnWrite();
        instance.addChanges(value);
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      public Builder addChanges(
          int index, androidx.health.platform.client.proto.ChangeProto.DataChange value) {
        copyOnWrite();
        instance.addChanges(index, value);
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      public Builder addChanges(
          androidx.health.platform.client.proto.ChangeProto.DataChange.Builder builderForValue) {
        copyOnWrite();
        instance.addChanges(builderForValue.build());
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      public Builder addChanges(
          int index, androidx.health.platform.client.proto.ChangeProto.DataChange.Builder builderForValue) {
        copyOnWrite();
        instance.addChanges(index,
            builderForValue.build());
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      public Builder addAllChanges(
          java.lang.Iterable<? extends androidx.health.platform.client.proto.ChangeProto.DataChange> values) {
        copyOnWrite();
        instance.addAllChanges(values);
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      public Builder clearChanges() {
        copyOnWrite();
        instance.clearChanges();
        return this;
      }
      /**
       * <code>repeated .androidx.health.platform.client.proto.DataChange changes = 2;</code>
       */
      public Builder removeChanges(int index) {
        copyOnWrite();
        instance.removeChanges(index);
        return this;
      }

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

    public static androidx.health.platform.client.proto.ChangeProto.ChangesEvent getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}