Class CivilTimeInterval.Builder (0.2.0)

public static final class CivilTimeInterval.Builder extends GeneratedMessage.Builder<CivilTimeInterval.Builder> implements CivilTimeIntervalOrBuilder

Counterpart of google.type.Interval, but using CivilDateTime.

Protobuf type google.devicesandservices.health.v4.CivilTimeInterval

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CivilTimeInterval build()
Returns
Type Description
CivilTimeInterval

buildPartial()

public CivilTimeInterval buildPartial()
Returns
Type Description
CivilTimeInterval

clear()

public CivilTimeInterval.Builder clear()
Returns
Type Description
CivilTimeInterval.Builder
Overrides

clearEnd()

public CivilTimeInterval.Builder clearEnd()

Required. The exclusive end of the range.

.google.devicesandservices.health.v4.CivilDateTime end = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CivilTimeInterval.Builder

clearStart()

public CivilTimeInterval.Builder clearStart()

Required. The inclusive start of the range.

.google.devicesandservices.health.v4.CivilDateTime start = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CivilTimeInterval.Builder

getDefaultInstanceForType()

public CivilTimeInterval getDefaultInstanceForType()
Returns
Type Description
CivilTimeInterval

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnd()

public CivilDateTime getEnd()

Required. The exclusive end of the range.

.google.devicesandservices.health.v4.CivilDateTime end = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CivilDateTime

The end.

getEndBuilder()

public CivilDateTime.Builder getEndBuilder()

Required. The exclusive end of the range.

.google.devicesandservices.health.v4.CivilDateTime end = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CivilDateTime.Builder

getEndOrBuilder()

public CivilDateTimeOrBuilder getEndOrBuilder()

Required. The exclusive end of the range.

.google.devicesandservices.health.v4.CivilDateTime end = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CivilDateTimeOrBuilder

getStart()

public CivilDateTime getStart()

Required. The inclusive start of the range.

.google.devicesandservices.health.v4.CivilDateTime start = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CivilDateTime

The start.

getStartBuilder()

public CivilDateTime.Builder getStartBuilder()

Required. The inclusive start of the range.

.google.devicesandservices.health.v4.CivilDateTime start = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CivilDateTime.Builder

getStartOrBuilder()

public CivilDateTimeOrBuilder getStartOrBuilder()

Required. The inclusive start of the range.

.google.devicesandservices.health.v4.CivilDateTime start = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CivilDateTimeOrBuilder

hasEnd()

public boolean hasEnd()

Required. The exclusive end of the range.

.google.devicesandservices.health.v4.CivilDateTime end = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the end field is set.

hasStart()

public boolean hasStart()

Required. The inclusive start of the range.

.google.devicesandservices.health.v4.CivilDateTime start = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the start field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEnd(CivilDateTime value)

public CivilTimeInterval.Builder mergeEnd(CivilDateTime value)

Required. The exclusive end of the range.

.google.devicesandservices.health.v4.CivilDateTime end = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
CivilTimeInterval.Builder

mergeFrom(CivilTimeInterval other)

public CivilTimeInterval.Builder mergeFrom(CivilTimeInterval other)
Parameter
Name Description
other CivilTimeInterval
Returns
Type Description
CivilTimeInterval.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CivilTimeInterval.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CivilTimeInterval.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CivilTimeInterval.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CivilTimeInterval.Builder
Overrides

mergeStart(CivilDateTime value)

public CivilTimeInterval.Builder mergeStart(CivilDateTime value)

Required. The inclusive start of the range.

.google.devicesandservices.health.v4.CivilDateTime start = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
CivilTimeInterval.Builder

setEnd(CivilDateTime value)

public CivilTimeInterval.Builder setEnd(CivilDateTime value)

Required. The exclusive end of the range.

.google.devicesandservices.health.v4.CivilDateTime end = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
CivilTimeInterval.Builder

setEnd(CivilDateTime.Builder builderForValue)

public CivilTimeInterval.Builder setEnd(CivilDateTime.Builder builderForValue)

Required. The exclusive end of the range.

.google.devicesandservices.health.v4.CivilDateTime end = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CivilDateTime.Builder
Returns
Type Description
CivilTimeInterval.Builder

setStart(CivilDateTime value)

public CivilTimeInterval.Builder setStart(CivilDateTime value)

Required. The inclusive start of the range.

.google.devicesandservices.health.v4.CivilDateTime start = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
CivilTimeInterval.Builder

setStart(CivilDateTime.Builder builderForValue)

public CivilTimeInterval.Builder setStart(CivilDateTime.Builder builderForValue)

Required. The inclusive start of the range.

.google.devicesandservices.health.v4.CivilDateTime start = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CivilDateTime.Builder
Returns
Type Description
CivilTimeInterval.Builder