Class ActiveMinutes

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.ActiveMinutes
All Implemented Interfaces:
ActiveMinutesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ActiveMinutes extends com.google.protobuf.GeneratedMessage implements ActiveMinutesOrBuilder
 Record of active minutes in a given time interval.
 
Protobuf type google.devicesandservices.health.v4.ActiveMinutes
See Also:
  • Field Details

    • INTERVAL_FIELD_NUMBER

      public static final int INTERVAL_FIELD_NUMBER
      See Also:
    • ACTIVE_MINUTES_BY_ACTIVITY_LEVEL_FIELD_NUMBER

      public static final int ACTIVE_MINUTES_BY_ACTIVITY_LEVEL_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasInterval

      public boolean hasInterval()
       Required. Observed interval.
       
      .google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInterval in interface ActiveMinutesOrBuilder
      Returns:
      Whether the interval field is set.
    • getInterval

      public ObservationTimeInterval getInterval()
       Required. Observed interval.
       
      .google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInterval in interface ActiveMinutesOrBuilder
      Returns:
      The interval.
    • getIntervalOrBuilder

      public ObservationTimeIntervalOrBuilder getIntervalOrBuilder()
       Required. Observed interval.
       
      .google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntervalOrBuilder in interface ActiveMinutesOrBuilder
    • getActiveMinutesByActivityLevelList

      public List<ActiveMinutes.ActiveMinutesByActivityLevel> getActiveMinutesByActivityLevelList()
       Required. Active minutes by activity level. At most one record per activity
       level is allowed.
       
      repeated .google.devicesandservices.health.v4.ActiveMinutes.ActiveMinutesByActivityLevel active_minutes_by_activity_level = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActiveMinutesByActivityLevelList in interface ActiveMinutesOrBuilder
    • getActiveMinutesByActivityLevelOrBuilderList

      public List<? extends ActiveMinutes.ActiveMinutesByActivityLevelOrBuilder> getActiveMinutesByActivityLevelOrBuilderList()
       Required. Active minutes by activity level. At most one record per activity
       level is allowed.
       
      repeated .google.devicesandservices.health.v4.ActiveMinutes.ActiveMinutesByActivityLevel active_minutes_by_activity_level = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActiveMinutesByActivityLevelOrBuilderList in interface ActiveMinutesOrBuilder
    • getActiveMinutesByActivityLevelCount

      public int getActiveMinutesByActivityLevelCount()
       Required. Active minutes by activity level. At most one record per activity
       level is allowed.
       
      repeated .google.devicesandservices.health.v4.ActiveMinutes.ActiveMinutesByActivityLevel active_minutes_by_activity_level = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActiveMinutesByActivityLevelCount in interface ActiveMinutesOrBuilder
    • getActiveMinutesByActivityLevel

      public ActiveMinutes.ActiveMinutesByActivityLevel getActiveMinutesByActivityLevel(int index)
       Required. Active minutes by activity level. At most one record per activity
       level is allowed.
       
      repeated .google.devicesandservices.health.v4.ActiveMinutes.ActiveMinutesByActivityLevel active_minutes_by_activity_level = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActiveMinutesByActivityLevel in interface ActiveMinutesOrBuilder
    • getActiveMinutesByActivityLevelOrBuilder

      public ActiveMinutes.ActiveMinutesByActivityLevelOrBuilder getActiveMinutesByActivityLevelOrBuilder(int index)
       Required. Active minutes by activity level. At most one record per activity
       level is allowed.
       
      repeated .google.devicesandservices.health.v4.ActiveMinutes.ActiveMinutesByActivityLevel active_minutes_by_activity_level = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActiveMinutesByActivityLevelOrBuilder in interface ActiveMinutesOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ActiveMinutes parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActiveMinutes parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActiveMinutes parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActiveMinutes parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActiveMinutes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActiveMinutes parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ActiveMinutes parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ActiveMinutes parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ActiveMinutes parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ActiveMinutes parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ActiveMinutes parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ActiveMinutes parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ActiveMinutes.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ActiveMinutes.Builder newBuilder()
    • newBuilder

      public static ActiveMinutes.Builder newBuilder(ActiveMinutes prototype)
    • toBuilder

      public ActiveMinutes.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ActiveMinutes.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ActiveMinutes getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ActiveMinutes> parser()
    • getParserForType

      public com.google.protobuf.Parser<ActiveMinutes> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ActiveMinutes getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder