public static final class DayPartTargeting.Builder extends GeneratedMessage.Builder<DayPartTargeting.Builder> implements DayPartTargetingOrBuilderDay Part Targeting
Protobuf type google.ads.admanager.v1.DayPartTargeting
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DayPartTargeting.BuilderImplements
DayPartTargetingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllTargetedDayParts(Iterable<? extends DayPart> values)
public DayPartTargeting.Builder addAllTargetedDayParts(Iterable<? extends DayPart> values)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.ads.admanager.v1.DayPart> |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
addTargetedDayParts(DayPart value)
public DayPartTargeting.Builder addTargetedDayParts(DayPart value)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
DayPart |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
addTargetedDayParts(DayPart.Builder builderForValue)
public DayPartTargeting.Builder addTargetedDayParts(DayPart.Builder builderForValue)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DayPart.Builder |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
addTargetedDayParts(int index, DayPart value)
public DayPartTargeting.Builder addTargetedDayParts(int index, DayPart value)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DayPart |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
addTargetedDayParts(int index, DayPart.Builder builderForValue)
public DayPartTargeting.Builder addTargetedDayParts(int index, DayPart.Builder builderForValue)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DayPart.Builder |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
addTargetedDayPartsBuilder()
public DayPart.Builder addTargetedDayPartsBuilder()Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
addTargetedDayPartsBuilder(int index)
public DayPart.Builder addTargetedDayPartsBuilder(int index)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
build()
public DayPartTargeting build()| Returns | |
|---|---|
| Type | Description |
DayPartTargeting |
|
buildPartial()
public DayPartTargeting buildPartial()| Returns | |
|---|---|
| Type | Description |
DayPartTargeting |
|
clear()
public DayPartTargeting.Builder clear()| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
clearDaypartingTimeZone()
public DayPartTargeting.Builder clearDaypartingTimeZone()Required. The time zone to use for the day parts.
optional .google.ads.admanager.v1.DaypartingTimeZoneEnum.DaypartingTimeZone dayparting_time_zone = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
This builder for chaining. |
clearTargetedDayParts()
public DayPartTargeting.Builder clearTargetedDayParts()Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
getDaypartingTimeZone()
public DaypartingTimeZoneEnum.DaypartingTimeZone getDaypartingTimeZone()Required. The time zone to use for the day parts.
optional .google.ads.admanager.v1.DaypartingTimeZoneEnum.DaypartingTimeZone dayparting_time_zone = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DaypartingTimeZoneEnum.DaypartingTimeZone |
The daypartingTimeZone. |
getDaypartingTimeZoneValue()
public int getDaypartingTimeZoneValue()Required. The time zone to use for the day parts.
optional .google.ads.admanager.v1.DaypartingTimeZoneEnum.DaypartingTimeZone dayparting_time_zone = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for daypartingTimeZone. |
getDefaultInstanceForType()
public DayPartTargeting getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DayPartTargeting |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getTargetedDayParts(int index)
public DayPart getTargetedDayParts(int index)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DayPart |
|
getTargetedDayPartsBuilder(int index)
public DayPart.Builder getTargetedDayPartsBuilder(int index)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DayPart.Builder |
|
getTargetedDayPartsBuilderList()
public List<DayPart.Builder> getTargetedDayPartsBuilderList()Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getTargetedDayPartsCount()
public int getTargetedDayPartsCount()Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getTargetedDayPartsList()
public List<DayPart> getTargetedDayPartsList()Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<DayPart> |
|
getTargetedDayPartsOrBuilder(int index)
public DayPartOrBuilder getTargetedDayPartsOrBuilder(int index)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DayPartOrBuilder |
|
getTargetedDayPartsOrBuilderList()
public List<? extends DayPartOrBuilder> getTargetedDayPartsOrBuilderList()Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.admanager.v1.DayPartOrBuilder> |
|
hasDaypartingTimeZone()
public boolean hasDaypartingTimeZone()Required. The time zone to use for the day parts.
optional .google.ads.admanager.v1.DaypartingTimeZoneEnum.DaypartingTimeZone dayparting_time_zone = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the daypartingTimeZone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DayPartTargeting other)
public DayPartTargeting.Builder mergeFrom(DayPartTargeting other)| Parameter | |
|---|---|
| Name | Description |
other |
DayPartTargeting |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DayPartTargeting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DayPartTargeting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
removeTargetedDayParts(int index)
public DayPartTargeting.Builder removeTargetedDayParts(int index)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
setDaypartingTimeZone(DaypartingTimeZoneEnum.DaypartingTimeZone value)
public DayPartTargeting.Builder setDaypartingTimeZone(DaypartingTimeZoneEnum.DaypartingTimeZone value)Required. The time zone to use for the day parts.
optional .google.ads.admanager.v1.DaypartingTimeZoneEnum.DaypartingTimeZone dayparting_time_zone = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
DaypartingTimeZoneEnum.DaypartingTimeZoneThe daypartingTimeZone to set. |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
This builder for chaining. |
setDaypartingTimeZoneValue(int value)
public DayPartTargeting.Builder setDaypartingTimeZoneValue(int value)Required. The time zone to use for the day parts.
optional .google.ads.admanager.v1.DaypartingTimeZoneEnum.DaypartingTimeZone dayparting_time_zone = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for daypartingTimeZone to set. |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
This builder for chaining. |
setTargetedDayParts(int index, DayPart value)
public DayPartTargeting.Builder setTargetedDayParts(int index, DayPart value)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DayPart |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|
setTargetedDayParts(int index, DayPart.Builder builderForValue)
public DayPartTargeting.Builder setTargetedDayParts(int index, DayPart.Builder builderForValue)Optional. The targeted day parts.
repeated .google.ads.admanager.v1.DayPart targeted_day_parts = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DayPart.Builder |
| Returns | |
|---|---|
| Type | Description |
DayPartTargeting.Builder |
|