public final class

TimeProto.TimeSpec.Builder

extends <any>

implements TimeProto.TimeSpecOrBuilder

 java.lang.Object

↳<any>

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

Overview

Protobuf type androidx.health.platform.client.proto.TimeSpec

Summary

Methods
public TimeProto.TimeSpec.BuilderclearEndLocalDateTime()

optional string end_local_date_time = 4;

public TimeProto.TimeSpec.BuilderclearEndTimeEpochMs()

optional int64 end_time_epoch_ms = 2;

public TimeProto.TimeSpec.BuilderclearStartLocalDateTime()

optional string start_local_date_time = 3;

public TimeProto.TimeSpec.BuilderclearStartTimeEpochMs()

optional int64 start_time_epoch_ms = 1;

public java.lang.StringgetEndLocalDateTime()

optional string end_local_date_time = 4;

public com.google.protobuf.ByteStringgetEndLocalDateTimeBytes()

optional string end_local_date_time = 4;

public longgetEndTimeEpochMs()

optional int64 end_time_epoch_ms = 2;

public java.lang.StringgetStartLocalDateTime()

optional string start_local_date_time = 3;

public com.google.protobuf.ByteStringgetStartLocalDateTimeBytes()

optional string start_local_date_time = 3;

public longgetStartTimeEpochMs()

optional int64 start_time_epoch_ms = 1;

public booleanhasEndLocalDateTime()

optional string end_local_date_time = 4;

public booleanhasEndTimeEpochMs()

optional int64 end_time_epoch_ms = 2;

public booleanhasStartLocalDateTime()

optional string start_local_date_time = 3;

public booleanhasStartTimeEpochMs()

optional int64 start_time_epoch_ms = 1;

public TimeProto.TimeSpec.BuildersetEndLocalDateTime(java.lang.String value)

optional string end_local_date_time = 4;

public TimeProto.TimeSpec.BuildersetEndLocalDateTimeBytes(com.google.protobuf.ByteString value)

optional string end_local_date_time = 4;

public TimeProto.TimeSpec.BuildersetEndTimeEpochMs(long value)

optional int64 end_time_epoch_ms = 2;

public TimeProto.TimeSpec.BuildersetStartLocalDateTime(java.lang.String value)

optional string start_local_date_time = 3;

public TimeProto.TimeSpec.BuildersetStartLocalDateTimeBytes(com.google.protobuf.ByteString value)

optional string start_local_date_time = 3;

public TimeProto.TimeSpec.BuildersetStartTimeEpochMs(long value)

optional int64 start_time_epoch_ms = 1;

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public boolean hasStartTimeEpochMs()

optional int64 start_time_epoch_ms = 1;

Returns:

Whether the startTimeEpochMs field is set.

public long getStartTimeEpochMs()

optional int64 start_time_epoch_ms = 1;

Returns:

The startTimeEpochMs.

public TimeProto.TimeSpec.Builder setStartTimeEpochMs(long value)

optional int64 start_time_epoch_ms = 1;

Parameters:

value: The startTimeEpochMs to set.

Returns:

This builder for chaining.

public TimeProto.TimeSpec.Builder clearStartTimeEpochMs()

optional int64 start_time_epoch_ms = 1;

Returns:

This builder for chaining.

public boolean hasEndTimeEpochMs()

optional int64 end_time_epoch_ms = 2;

Returns:

Whether the endTimeEpochMs field is set.

public long getEndTimeEpochMs()

optional int64 end_time_epoch_ms = 2;

Returns:

The endTimeEpochMs.

public TimeProto.TimeSpec.Builder setEndTimeEpochMs(long value)

optional int64 end_time_epoch_ms = 2;

Parameters:

value: The endTimeEpochMs to set.

Returns:

This builder for chaining.

public TimeProto.TimeSpec.Builder clearEndTimeEpochMs()

optional int64 end_time_epoch_ms = 2;

Returns:

This builder for chaining.

public boolean hasStartLocalDateTime()

optional string start_local_date_time = 3;

Returns:

Whether the startLocalDateTime field is set.

public java.lang.String getStartLocalDateTime()

optional string start_local_date_time = 3;

Returns:

The startLocalDateTime.

public com.google.protobuf.ByteString getStartLocalDateTimeBytes()

optional string start_local_date_time = 3;

Returns:

The bytes for startLocalDateTime.

public TimeProto.TimeSpec.Builder setStartLocalDateTime(java.lang.String value)

optional string start_local_date_time = 3;

Parameters:

value: The startLocalDateTime to set.

Returns:

This builder for chaining.

public TimeProto.TimeSpec.Builder clearStartLocalDateTime()

optional string start_local_date_time = 3;

Returns:

This builder for chaining.

public TimeProto.TimeSpec.Builder setStartLocalDateTimeBytes(com.google.protobuf.ByteString value)

optional string start_local_date_time = 3;

Parameters:

value: The bytes for startLocalDateTime to set.

Returns:

This builder for chaining.

public boolean hasEndLocalDateTime()

optional string end_local_date_time = 4;

Returns:

Whether the endLocalDateTime field is set.

public java.lang.String getEndLocalDateTime()

optional string end_local_date_time = 4;

Returns:

The endLocalDateTime.

public com.google.protobuf.ByteString getEndLocalDateTimeBytes()

optional string end_local_date_time = 4;

Returns:

The bytes for endLocalDateTime.

public TimeProto.TimeSpec.Builder setEndLocalDateTime(java.lang.String value)

optional string end_local_date_time = 4;

Parameters:

value: The endLocalDateTime to set.

Returns:

This builder for chaining.

public TimeProto.TimeSpec.Builder clearEndLocalDateTime()

optional string end_local_date_time = 4;

Returns:

This builder for chaining.

public TimeProto.TimeSpec.Builder setEndLocalDateTimeBytes(com.google.protobuf.ByteString value)

optional string end_local_date_time = 4;

Parameters:

value: The bytes for endLocalDateTime to set.

Returns:

This builder for chaining.