Interface TimePeriodOrBuilder (0.3.0)

public interface TimePeriodOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDays(int index)

public abstract DayOfWeek getDays(int index)

Required. The days of the week that the time period is active.

repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
com.google.type.DayOfWeek

The days at the given index.

getDaysCount()

public abstract int getDaysCount()

Required. The days of the week that the time period is active.

repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of days.

getDaysList()

public abstract List<DayOfWeek> getDaysList()

Required. The days of the week that the time period is active.

repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<com.google.type.DayOfWeek>

A list containing the days.

getDaysValue(int index)

public abstract int getDaysValue(int index)

Required. The days of the week that the time period is active.

repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of days at the given index.

getDaysValueList()

public abstract List<Integer> getDaysValueList()

Required. The days of the week that the time period is active.

repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for days.

getEndTime()

public abstract TimeOfDay getEndTime()

Required. The end of the time period.

.google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDay

The endTime.

getEndTimeOrBuilder()

public abstract TimeOfDayOrBuilder getEndTimeOrBuilder()

Required. The end of the time period.

.google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

getStartTime()

public abstract TimeOfDay getStartTime()

Required. The start of the time period.

.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDay

The startTime.

getStartTimeOrBuilder()

public abstract TimeOfDayOrBuilder getStartTimeOrBuilder()

Required. The start of the time period.

.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

hasEndTime()

public abstract boolean hasEndTime()

Required. The end of the time period.

.google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public abstract boolean hasStartTime()

Required. The start of the time period.

.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startTime field is set.