public final class

TimeProto

extends java.lang.Object

 java.lang.Object

↳androidx.health.platform.client.proto.TimeProto

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

package androidx.health.platform.client.proto;

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

    /**
     * <code>optional int64 start_time_epoch_ms = 1;</code>
     * @return Whether the startTimeEpochMs field is set.
     */
    boolean hasStartTimeEpochMs();
    /**
     * <code>optional int64 start_time_epoch_ms = 1;</code>
     * @return The startTimeEpochMs.
     */
    long getStartTimeEpochMs();

    /**
     * <code>optional int64 end_time_epoch_ms = 2;</code>
     * @return Whether the endTimeEpochMs field is set.
     */
    boolean hasEndTimeEpochMs();
    /**
     * <code>optional int64 end_time_epoch_ms = 2;</code>
     * @return The endTimeEpochMs.
     */
    long getEndTimeEpochMs();

    /**
     * <code>optional string start_local_date_time = 3;</code>
     * @return Whether the startLocalDateTime field is set.
     */
    boolean hasStartLocalDateTime();
    /**
     * <code>optional string start_local_date_time = 3;</code>
     * @return The startLocalDateTime.
     */
    java.lang.String getStartLocalDateTime();
    /**
     * <code>optional string start_local_date_time = 3;</code>
     * @return The bytes for startLocalDateTime.
     */
    com.google.protobuf.ByteString
        getStartLocalDateTimeBytes();

    /**
     * <code>optional string end_local_date_time = 4;</code>
     * @return Whether the endLocalDateTime field is set.
     */
    boolean hasEndLocalDateTime();
    /**
     * <code>optional string end_local_date_time = 4;</code>
     * @return The endLocalDateTime.
     */
    java.lang.String getEndLocalDateTime();
    /**
     * <code>optional string end_local_date_time = 4;</code>
     * @return The bytes for endLocalDateTime.
     */
    com.google.protobuf.ByteString
        getEndLocalDateTimeBytes();
  }
  /**
   * Protobuf type {@code androidx.health.platform.client.proto.TimeSpec}
   */
  public  static final class TimeSpec extends
      com.google.protobuf.GeneratedMessageLite<
          TimeSpec, TimeSpec.Builder> implements
      // @@protoc_insertion_point(message_implements:androidx.health.platform.client.proto.TimeSpec)
      TimeSpecOrBuilder {
    private TimeSpec() {
      startLocalDateTime_ = "";
      endLocalDateTime_ = "";
    }
    private int bitField0_;
    public static final int START_TIME_EPOCH_MS_FIELD_NUMBER = 1;
    private long startTimeEpochMs_;
    /**
     * <code>optional int64 start_time_epoch_ms = 1;</code>
     * @return Whether the startTimeEpochMs field is set.
     */
    @java.lang.Override
    public boolean hasStartTimeEpochMs() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional int64 start_time_epoch_ms = 1;</code>
     * @return The startTimeEpochMs.
     */
    @java.lang.Override
    public long getStartTimeEpochMs() {
      return startTimeEpochMs_;
    }
    /**
     * <code>optional int64 start_time_epoch_ms = 1;</code>
     * @param value The startTimeEpochMs to set.
     */
    private void setStartTimeEpochMs(long value) {
      bitField0_ |= 0x00000001;
      startTimeEpochMs_ = value;
    }
    /**
     * <code>optional int64 start_time_epoch_ms = 1;</code>
     */
    private void clearStartTimeEpochMs() {
      bitField0_ = (bitField0_ & ~0x00000001);
      startTimeEpochMs_ = 0L;
    }

    public static final int END_TIME_EPOCH_MS_FIELD_NUMBER = 2;
    private long endTimeEpochMs_;
    /**
     * <code>optional int64 end_time_epoch_ms = 2;</code>
     * @return Whether the endTimeEpochMs field is set.
     */
    @java.lang.Override
    public boolean hasEndTimeEpochMs() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional int64 end_time_epoch_ms = 2;</code>
     * @return The endTimeEpochMs.
     */
    @java.lang.Override
    public long getEndTimeEpochMs() {
      return endTimeEpochMs_;
    }
    /**
     * <code>optional int64 end_time_epoch_ms = 2;</code>
     * @param value The endTimeEpochMs to set.
     */
    private void setEndTimeEpochMs(long value) {
      bitField0_ |= 0x00000002;
      endTimeEpochMs_ = value;
    }
    /**
     * <code>optional int64 end_time_epoch_ms = 2;</code>
     */
    private void clearEndTimeEpochMs() {
      bitField0_ = (bitField0_ & ~0x00000002);
      endTimeEpochMs_ = 0L;
    }

    public static final int START_LOCAL_DATE_TIME_FIELD_NUMBER = 3;
    private java.lang.String startLocalDateTime_;
    /**
     * <code>optional string start_local_date_time = 3;</code>
     * @return Whether the startLocalDateTime field is set.
     */
    @java.lang.Override
    public boolean hasStartLocalDateTime() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional string start_local_date_time = 3;</code>
     * @return The startLocalDateTime.
     */
    @java.lang.Override
    public java.lang.String getStartLocalDateTime() {
      return startLocalDateTime_;
    }
    /**
     * <code>optional string start_local_date_time = 3;</code>
     * @return The bytes for startLocalDateTime.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getStartLocalDateTimeBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(startLocalDateTime_);
    }
    /**
     * <code>optional string start_local_date_time = 3;</code>
     * @param value The startLocalDateTime to set.
     */
    private void setStartLocalDateTime(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  bitField0_ |= 0x00000004;
      startLocalDateTime_ = value;
    }
    /**
     * <code>optional string start_local_date_time = 3;</code>
     */
    private void clearStartLocalDateTime() {
      bitField0_ = (bitField0_ & ~0x00000004);
      startLocalDateTime_ = getDefaultInstance().getStartLocalDateTime();
    }
    /**
     * <code>optional string start_local_date_time = 3;</code>
     * @param value The bytes for startLocalDateTime to set.
     */
    private void setStartLocalDateTimeBytes(
        com.google.protobuf.ByteString value) {
      startLocalDateTime_ = value.toStringUtf8();
      bitField0_ |= 0x00000004;
    }

    public static final int END_LOCAL_DATE_TIME_FIELD_NUMBER = 4;
    private java.lang.String endLocalDateTime_;
    /**
     * <code>optional string end_local_date_time = 4;</code>
     * @return Whether the endLocalDateTime field is set.
     */
    @java.lang.Override
    public boolean hasEndLocalDateTime() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <code>optional string end_local_date_time = 4;</code>
     * @return The endLocalDateTime.
     */
    @java.lang.Override
    public java.lang.String getEndLocalDateTime() {
      return endLocalDateTime_;
    }
    /**
     * <code>optional string end_local_date_time = 4;</code>
     * @return The bytes for endLocalDateTime.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getEndLocalDateTimeBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(endLocalDateTime_);
    }
    /**
     * <code>optional string end_local_date_time = 4;</code>
     * @param value The endLocalDateTime to set.
     */
    private void setEndLocalDateTime(
        java.lang.String value) {
      java.lang.Class<?> valueClass = value.getClass();
  bitField0_ |= 0x00000008;
      endLocalDateTime_ = value;
    }
    /**
     * <code>optional string end_local_date_time = 4;</code>
     */
    private void clearEndLocalDateTime() {
      bitField0_ = (bitField0_ & ~0x00000008);
      endLocalDateTime_ = getDefaultInstance().getEndLocalDateTime();
    }
    /**
     * <code>optional string end_local_date_time = 4;</code>
     * @param value The bytes for endLocalDateTime to set.
     */
    private void setEndLocalDateTimeBytes(
        com.google.protobuf.ByteString value) {
      endLocalDateTime_ = value.toStringUtf8();
      bitField0_ |= 0x00000008;
    }

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

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


      /**
       * <code>optional int64 start_time_epoch_ms = 1;</code>
       * @return Whether the startTimeEpochMs field is set.
       */
      @java.lang.Override
      public boolean hasStartTimeEpochMs() {
        return instance.hasStartTimeEpochMs();
      }
      /**
       * <code>optional int64 start_time_epoch_ms = 1;</code>
       * @return The startTimeEpochMs.
       */
      @java.lang.Override
      public long getStartTimeEpochMs() {
        return instance.getStartTimeEpochMs();
      }
      /**
       * <code>optional int64 start_time_epoch_ms = 1;</code>
       * @param value The startTimeEpochMs to set.
       * @return This builder for chaining.
       */
      public Builder setStartTimeEpochMs(long value) {
        copyOnWrite();
        instance.setStartTimeEpochMs(value);
        return this;
      }
      /**
       * <code>optional int64 start_time_epoch_ms = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearStartTimeEpochMs() {
        copyOnWrite();
        instance.clearStartTimeEpochMs();
        return this;
      }

      /**
       * <code>optional int64 end_time_epoch_ms = 2;</code>
       * @return Whether the endTimeEpochMs field is set.
       */
      @java.lang.Override
      public boolean hasEndTimeEpochMs() {
        return instance.hasEndTimeEpochMs();
      }
      /**
       * <code>optional int64 end_time_epoch_ms = 2;</code>
       * @return The endTimeEpochMs.
       */
      @java.lang.Override
      public long getEndTimeEpochMs() {
        return instance.getEndTimeEpochMs();
      }
      /**
       * <code>optional int64 end_time_epoch_ms = 2;</code>
       * @param value The endTimeEpochMs to set.
       * @return This builder for chaining.
       */
      public Builder setEndTimeEpochMs(long value) {
        copyOnWrite();
        instance.setEndTimeEpochMs(value);
        return this;
      }
      /**
       * <code>optional int64 end_time_epoch_ms = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearEndTimeEpochMs() {
        copyOnWrite();
        instance.clearEndTimeEpochMs();
        return this;
      }

      /**
       * <code>optional string start_local_date_time = 3;</code>
       * @return Whether the startLocalDateTime field is set.
       */
      @java.lang.Override
      public boolean hasStartLocalDateTime() {
        return instance.hasStartLocalDateTime();
      }
      /**
       * <code>optional string start_local_date_time = 3;</code>
       * @return The startLocalDateTime.
       */
      @java.lang.Override
      public java.lang.String getStartLocalDateTime() {
        return instance.getStartLocalDateTime();
      }
      /**
       * <code>optional string start_local_date_time = 3;</code>
       * @return The bytes for startLocalDateTime.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getStartLocalDateTimeBytes() {
        return instance.getStartLocalDateTimeBytes();
      }
      /**
       * <code>optional string start_local_date_time = 3;</code>
       * @param value The startLocalDateTime to set.
       * @return This builder for chaining.
       */
      public Builder setStartLocalDateTime(
          java.lang.String value) {
        copyOnWrite();
        instance.setStartLocalDateTime(value);
        return this;
      }
      /**
       * <code>optional string start_local_date_time = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearStartLocalDateTime() {
        copyOnWrite();
        instance.clearStartLocalDateTime();
        return this;
      }
      /**
       * <code>optional string start_local_date_time = 3;</code>
       * @param value The bytes for startLocalDateTime to set.
       * @return This builder for chaining.
       */
      public Builder setStartLocalDateTimeBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setStartLocalDateTimeBytes(value);
        return this;
      }

      /**
       * <code>optional string end_local_date_time = 4;</code>
       * @return Whether the endLocalDateTime field is set.
       */
      @java.lang.Override
      public boolean hasEndLocalDateTime() {
        return instance.hasEndLocalDateTime();
      }
      /**
       * <code>optional string end_local_date_time = 4;</code>
       * @return The endLocalDateTime.
       */
      @java.lang.Override
      public java.lang.String getEndLocalDateTime() {
        return instance.getEndLocalDateTime();
      }
      /**
       * <code>optional string end_local_date_time = 4;</code>
       * @return The bytes for endLocalDateTime.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getEndLocalDateTimeBytes() {
        return instance.getEndLocalDateTimeBytes();
      }
      /**
       * <code>optional string end_local_date_time = 4;</code>
       * @param value The endLocalDateTime to set.
       * @return This builder for chaining.
       */
      public Builder setEndLocalDateTime(
          java.lang.String value) {
        copyOnWrite();
        instance.setEndLocalDateTime(value);
        return this;
      }
      /**
       * <code>optional string end_local_date_time = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearEndLocalDateTime() {
        copyOnWrite();
        instance.clearEndLocalDateTime();
        return this;
      }
      /**
       * <code>optional string end_local_date_time = 4;</code>
       * @param value The bytes for endLocalDateTime to set.
       * @return This builder for chaining.
       */
      public Builder setEndLocalDateTimeBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setEndLocalDateTimeBytes(value);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:androidx.health.platform.client.proto.TimeSpec)
    }
    @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.TimeProto.TimeSpec();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "bitField0_",
              "startTimeEpochMs_",
              "endTimeEpochMs_",
              "startLocalDateTime_",
              "endLocalDateTime_",
            };
            java.lang.String info =
                "\u0001\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u1002\u0000\u0002" +
                "\u1002\u0001\u0003\u1008\u0002\u0004\u1008\u0003";
            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.TimeProto.TimeSpec> parser = PARSER;
          if (parser == null) {
            synchronized (androidx.health.platform.client.proto.TimeProto.TimeSpec.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<androidx.health.platform.client.proto.TimeProto.TimeSpec>(
                        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.TimeSpec)
    private static final androidx.health.platform.client.proto.TimeProto.TimeSpec DEFAULT_INSTANCE;
    static {
      TimeSpec defaultInstance = new TimeSpec();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        TimeSpec.class, defaultInstance);
    }

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

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

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


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}