public static final class PrerollSettings.Builder extends GeneratedMessage.Builder<PrerollSettings.Builder> implements PrerollSettingsOrBuilderSettings for ad breaks on a livestream that are specific to preroll.
Protobuf type google.ads.admanager.v1.PrerollSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PrerollSettings.BuilderImplements
PrerollSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PrerollSettings build()| Returns | |
|---|---|
| Type | Description |
PrerollSettings |
|
buildPartial()
public PrerollSettings buildPartial()| Returns | |
|---|---|
| Type | Description |
PrerollSettings |
|
clear()
public PrerollSettings.Builder clear()| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
|
clearAdTag()
public PrerollSettings.Builder clearAdTag()Required. The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that is associated with this live stream.
optional string ad_tag = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
This builder for chaining. |
clearMaxAdPodDuration()
public PrerollSettings.Builder clearMaxAdPodDuration()Required. The maximum duration for an ad break.
optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
|
getAdTag()
public String getAdTag()Required. The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that is associated with this live stream.
optional string ad_tag = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The adTag. |
getAdTagBytes()
public ByteString getAdTagBytes()Required. The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that is associated with this live stream.
optional string ad_tag = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for adTag. |
getDefaultInstanceForType()
public PrerollSettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PrerollSettings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMaxAdPodDuration()
public Duration getMaxAdPodDuration()Required. The maximum duration for an ad break.
optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Duration |
The maxAdPodDuration. |
getMaxAdPodDurationBuilder()
public Duration.Builder getMaxAdPodDurationBuilder()Required. The maximum duration for an ad break.
optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMaxAdPodDurationOrBuilder()
public DurationOrBuilder getMaxAdPodDurationOrBuilder()Required. The maximum duration for an ad break.
optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
hasAdTag()
public boolean hasAdTag()Required. The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that is associated with this live stream.
optional string ad_tag = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the adTag field is set. |
hasMaxAdPodDuration()
public boolean hasMaxAdPodDuration()Required. The maximum duration for an ad break.
optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maxAdPodDuration field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PrerollSettings other)
public PrerollSettings.Builder mergeFrom(PrerollSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
PrerollSettings |
| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PrerollSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PrerollSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
|
mergeMaxAdPodDuration(Duration value)
public PrerollSettings.Builder mergeMaxAdPodDuration(Duration value)Required. The maximum duration for an ad break.
optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
|
setAdTag(String value)
public PrerollSettings.Builder setAdTag(String value)Required. The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that is associated with this live stream.
optional string ad_tag = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe adTag to set. |
| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
This builder for chaining. |
setAdTagBytes(ByteString value)
public PrerollSettings.Builder setAdTagBytes(ByteString value)Required. The Ad Manager ad tag URL generated by the Ad Manager trafficking workflow that is associated with this live stream.
optional string ad_tag = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for adTag to set. |
| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
This builder for chaining. |
setMaxAdPodDuration(Duration value)
public PrerollSettings.Builder setMaxAdPodDuration(Duration value)Required. The maximum duration for an ad break.
optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
|
setMaxAdPodDuration(Duration.Builder builderForValue)
public PrerollSettings.Builder setMaxAdPodDuration(Duration.Builder builderForValue)Required. The maximum duration for an ad break.
optional .google.protobuf.Duration max_ad_pod_duration = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PrerollSettings.Builder |
|