public static final class DayPart.Builder extends GeneratedMessage.Builder<DayPart.Builder> implements DayPartOrBuilderA day of the week and time interval within the day.
Protobuf type google.ads.admanager.v1.DayPart
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DayPart.BuilderImplements
DayPartOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DayPart build()| Returns | |
|---|---|
| Type | Description |
DayPart |
|
buildPartial()
public DayPart buildPartial()| Returns | |
|---|---|
| Type | Description |
DayPart |
|
clear()
public DayPart.Builder clear()| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
clearDayOfWeek()
public DayPart.Builder clearDayOfWeek()Required. The day of the week.
optional .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
This builder for chaining. |
clearEndTime()
public DayPart.Builder clearEndTime()Required. The end time of the day part.
optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
clearStartTime()
public DayPart.Builder clearStartTime()Required. The start time of the day part.
optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
getDayOfWeek()
public DayOfWeek getDayOfWeek()Required. The day of the week.
optional .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DayOfWeek |
The dayOfWeek. |
getDayOfWeekValue()
public int getDayOfWeekValue()Required. The day of the week.
optional .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for dayOfWeek. |
getDefaultInstanceForType()
public DayPart getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DayPart |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndTime()
public TimeOfDay getEndTime()Required. The end time of the day part.
optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDay |
The endTime. |
getEndTimeBuilder()
public TimeOfDay.Builder getEndTimeBuilder()Required. The end time of the day part.
optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDay.Builder |
|
getEndTimeOrBuilder()
public TimeOfDayOrBuilder getEndTimeOrBuilder()Required. The end time of the day part.
optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDayOrBuilder |
|
getStartTime()
public TimeOfDay getStartTime()Required. The start time of the day part.
optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDay |
The startTime. |
getStartTimeBuilder()
public TimeOfDay.Builder getStartTimeBuilder()Required. The start time of the day part.
optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDay.Builder |
|
getStartTimeOrBuilder()
public TimeOfDayOrBuilder getStartTimeOrBuilder()Required. The start time of the day part.
optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.TimeOfDayOrBuilder |
|
hasDayOfWeek()
public boolean hasDayOfWeek()Required. The day of the week.
optional .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the dayOfWeek field is set. |
hasEndTime()
public boolean hasEndTime()Required. The end time of the day part.
optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the endTime field is set. |
hasStartTime()
public boolean hasStartTime()Required. The start time of the day part.
optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the startTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEndTime(TimeOfDay value)
public DayPart.Builder mergeEndTime(TimeOfDay value)Required. The end time of the day part.
optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.TimeOfDay |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
mergeFrom(DayPart other)
public DayPart.Builder mergeFrom(DayPart other)| Parameter | |
|---|---|
| Name | Description |
other |
DayPart |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DayPart.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DayPart.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
mergeStartTime(TimeOfDay value)
public DayPart.Builder mergeStartTime(TimeOfDay value)Required. The start time of the day part.
optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.TimeOfDay |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
setDayOfWeek(DayOfWeek value)
public DayPart.Builder setDayOfWeek(DayOfWeek value)Required. The day of the week.
optional .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.DayOfWeekThe dayOfWeek to set. |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
This builder for chaining. |
setDayOfWeekValue(int value)
public DayPart.Builder setDayOfWeekValue(int value)Required. The day of the week.
optional .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for dayOfWeek to set. |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
This builder for chaining. |
setEndTime(TimeOfDay value)
public DayPart.Builder setEndTime(TimeOfDay value)Required. The end time of the day part.
optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.TimeOfDay |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
setEndTime(TimeOfDay.Builder builderForValue)
public DayPart.Builder setEndTime(TimeOfDay.Builder builderForValue)Required. The end time of the day part.
optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.TimeOfDay.Builder |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
setStartTime(TimeOfDay value)
public DayPart.Builder setStartTime(TimeOfDay value)Required. The start time of the day part.
optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.TimeOfDay |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
setStartTime(TimeOfDay.Builder builderForValue)
public DayPart.Builder setStartTime(TimeOfDay.Builder builderForValue)Required. The start time of the day part.
optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.TimeOfDay.Builder |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|