Class DaiSession.CreationContext.LinearInfo.Builder (0.58.0)

public static final class DaiSession.CreationContext.LinearInfo.Builder extends GeneratedMessage.Builder<DaiSession.CreationContext.LinearInfo.Builder> implements DaiSession.CreationContext.LinearInfoOrBuilder

The LiveStream resource in the stream request that creates the DAI session.

Protobuf type google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo

Static Methods

getDescriptor()

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

Methods

build()

public DaiSession.CreationContext.LinearInfo build()
Returns
Type Description
DaiSession.CreationContext.LinearInfo

buildPartial()

public DaiSession.CreationContext.LinearInfo buildPartial()
Returns
Type Description
DaiSession.CreationContext.LinearInfo

clear()

public DaiSession.CreationContext.LinearInfo.Builder clear()
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder
Overrides

clearAssetKey()

public DaiSession.CreationContext.LinearInfo.Builder clearAssetKey()

Output only. The LiveStream.asset_key field. Google Ad Manager only generates this field for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.LINEAR value.

optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

clearCustomAssetKey()

public DaiSession.CreationContext.LinearInfo.Builder clearCustomAssetKey()

Output only. The LiveStream.custom_asset_key field. This field is only populated for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.POD_SERVING_MANIFEST value or DynamicAdInsertionType.POD_SERVING_REDIRECT value.

optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

clearEventEndTime()

public DaiSession.CreationContext.LinearInfo.Builder clearEventEndTime()

Output only. The LiveStream.end_time field.

.google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

clearEventStartTime()

public DaiSession.CreationContext.LinearInfo.Builder clearEventStartTime()

The LiveStream.start_time field.

.google.protobuf.Timestamp event_start_time = 6;

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

clearLiveStream()

public DaiSession.CreationContext.LinearInfo.Builder clearLiveStream()

Output only. The name field of the LiveStream resource.

optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

clearPodTrimTolerance()

public DaiSession.CreationContext.LinearInfo.Builder clearPodTrimTolerance()

Optional. The maximum duration allowed to be trimmed from an ad pod before whole ads are dropped. This field is only populated when pod trimming is enabled.

optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

clearPodTrimmingEnabled()

public DaiSession.CreationContext.LinearInfo.Builder clearPodTrimmingEnabled()

Output only. Whether ad pod trimming is enabled for the DAI session.

optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

clearPrefetchEnabled()

public DaiSession.CreationContext.LinearInfo.Builder clearPrefetchEnabled()

Output only. Whether the LiveStream.prefetch_enabled field is set to true.

optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

getAssetKey()

public String getAssetKey()

Output only. The LiveStream.asset_key field. Google Ad Manager only generates this field for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.LINEAR value.

optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The assetKey.

getAssetKeyBytes()

public ByteString getAssetKeyBytes()

Output only. The LiveStream.asset_key field. Google Ad Manager only generates this field for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.LINEAR value.

optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for assetKey.

getCustomAssetKey()

public String getCustomAssetKey()

Output only. The LiveStream.custom_asset_key field. This field is only populated for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.POD_SERVING_MANIFEST value or DynamicAdInsertionType.POD_SERVING_REDIRECT value.

optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The customAssetKey.

getCustomAssetKeyBytes()

public ByteString getCustomAssetKeyBytes()

Output only. The LiveStream.custom_asset_key field. This field is only populated for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.POD_SERVING_MANIFEST value or DynamicAdInsertionType.POD_SERVING_REDIRECT value.

optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for customAssetKey.

getDefaultInstanceForType()

public DaiSession.CreationContext.LinearInfo getDefaultInstanceForType()
Returns
Type Description
DaiSession.CreationContext.LinearInfo

getDescriptorForType()

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

getEventEndTime()

public Timestamp getEventEndTime()

Output only. The LiveStream.end_time field.

.google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The eventEndTime.

getEventEndTimeBuilder()

public Timestamp.Builder getEventEndTimeBuilder()

Output only. The LiveStream.end_time field.

.google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEventEndTimeOrBuilder()

public TimestampOrBuilder getEventEndTimeOrBuilder()

Output only. The LiveStream.end_time field.

.google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getEventStartTime()

public Timestamp getEventStartTime()

The LiveStream.start_time field.

.google.protobuf.Timestamp event_start_time = 6;

Returns
Type Description
Timestamp

The eventStartTime.

getEventStartTimeBuilder()

public Timestamp.Builder getEventStartTimeBuilder()

The LiveStream.start_time field.

.google.protobuf.Timestamp event_start_time = 6;

Returns
Type Description
Builder

getEventStartTimeOrBuilder()

public TimestampOrBuilder getEventStartTimeOrBuilder()

The LiveStream.start_time field.

.google.protobuf.Timestamp event_start_time = 6;

Returns
Type Description
TimestampOrBuilder

getLiveStream()

public String getLiveStream()

Output only. The name field of the LiveStream resource.

optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The liveStream.

getLiveStreamBytes()

public ByteString getLiveStreamBytes()

Output only. The name field of the LiveStream resource.

optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for liveStream.

getPodTrimTolerance()

public Duration getPodTrimTolerance()

Optional. The maximum duration allowed to be trimmed from an ad pod before whole ads are dropped. This field is only populated when pod trimming is enabled.

optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The podTrimTolerance.

getPodTrimToleranceBuilder()

public Duration.Builder getPodTrimToleranceBuilder()

Optional. The maximum duration allowed to be trimmed from an ad pod before whole ads are dropped. This field is only populated when pod trimming is enabled.

optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getPodTrimToleranceOrBuilder()

public DurationOrBuilder getPodTrimToleranceOrBuilder()

Optional. The maximum duration allowed to be trimmed from an ad pod before whole ads are dropped. This field is only populated when pod trimming is enabled.

optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getPodTrimmingEnabled()

public boolean getPodTrimmingEnabled()

Output only. Whether ad pod trimming is enabled for the DAI session.

optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The podTrimmingEnabled.

getPrefetchEnabled()

public boolean getPrefetchEnabled()

Output only. Whether the LiveStream.prefetch_enabled field is set to true.

optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The prefetchEnabled.

hasAssetKey()

public boolean hasAssetKey()

Output only. The LiveStream.asset_key field. Google Ad Manager only generates this field for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.LINEAR value.

optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the assetKey field is set.

hasCustomAssetKey()

public boolean hasCustomAssetKey()

Output only. The LiveStream.custom_asset_key field. This field is only populated for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.POD_SERVING_MANIFEST value or DynamicAdInsertionType.POD_SERVING_REDIRECT value.

optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the customAssetKey field is set.

hasEventEndTime()

public boolean hasEventEndTime()

Output only. The LiveStream.end_time field.

.google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the eventEndTime field is set.

hasEventStartTime()

public boolean hasEventStartTime()

The LiveStream.start_time field.

.google.protobuf.Timestamp event_start_time = 6;

Returns
Type Description
boolean

Whether the eventStartTime field is set.

hasLiveStream()

public boolean hasLiveStream()

Output only. The name field of the LiveStream resource.

optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the liveStream field is set.

hasPodTrimTolerance()

public boolean hasPodTrimTolerance()

Optional. The maximum duration allowed to be trimmed from an ad pod before whole ads are dropped. This field is only populated when pod trimming is enabled.

optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the podTrimTolerance field is set.

hasPodTrimmingEnabled()

public boolean hasPodTrimmingEnabled()

Output only. Whether ad pod trimming is enabled for the DAI session.

optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the podTrimmingEnabled field is set.

hasPrefetchEnabled()

public boolean hasPrefetchEnabled()

Output only. Whether the LiveStream.prefetch_enabled field is set to true.

optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the prefetchEnabled field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEventEndTime(Timestamp value)

public DaiSession.CreationContext.LinearInfo.Builder mergeEventEndTime(Timestamp value)

Output only. The LiveStream.end_time field.

.google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

mergeEventStartTime(Timestamp value)

public DaiSession.CreationContext.LinearInfo.Builder mergeEventStartTime(Timestamp value)

The LiveStream.start_time field.

.google.protobuf.Timestamp event_start_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

mergeFrom(DaiSession.CreationContext.LinearInfo other)

public DaiSession.CreationContext.LinearInfo.Builder mergeFrom(DaiSession.CreationContext.LinearInfo other)
Parameter
Name Description
other DaiSession.CreationContext.LinearInfo
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DaiSession.CreationContext.LinearInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder
Overrides

mergePodTrimTolerance(Duration value)

public DaiSession.CreationContext.LinearInfo.Builder mergePodTrimTolerance(Duration value)

Optional. The maximum duration allowed to be trimmed from an ad pod before whole ads are dropped. This field is only populated when pod trimming is enabled.

optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

setAssetKey(String value)

public DaiSession.CreationContext.LinearInfo.Builder setAssetKey(String value)

Output only. The LiveStream.asset_key field. Google Ad Manager only generates this field for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.LINEAR value.

optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The assetKey to set.

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

setAssetKeyBytes(ByteString value)

public DaiSession.CreationContext.LinearInfo.Builder setAssetKeyBytes(ByteString value)

Output only. The LiveStream.asset_key field. Google Ad Manager only generates this field for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.LINEAR value.

optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for assetKey to set.

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

setCustomAssetKey(String value)

public DaiSession.CreationContext.LinearInfo.Builder setCustomAssetKey(String value)

Output only. The LiveStream.custom_asset_key field. This field is only populated for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.POD_SERVING_MANIFEST value or DynamicAdInsertionType.POD_SERVING_REDIRECT value.

optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The customAssetKey to set.

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

setCustomAssetKeyBytes(ByteString value)

public DaiSession.CreationContext.LinearInfo.Builder setCustomAssetKeyBytes(ByteString value)

Output only. The LiveStream.custom_asset_key field. This field is only populated for livestreams with the dynamic_ad_insertion_type field set to DynamicAdInsertionType.POD_SERVING_MANIFEST value or DynamicAdInsertionType.POD_SERVING_REDIRECT value.

optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for customAssetKey to set.

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

setEventEndTime(Timestamp value)

public DaiSession.CreationContext.LinearInfo.Builder setEventEndTime(Timestamp value)

Output only. The LiveStream.end_time field.

.google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

setEventEndTime(Timestamp.Builder builderForValue)

public DaiSession.CreationContext.LinearInfo.Builder setEventEndTime(Timestamp.Builder builderForValue)

Output only. The LiveStream.end_time field.

.google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

setEventStartTime(Timestamp value)

public DaiSession.CreationContext.LinearInfo.Builder setEventStartTime(Timestamp value)

The LiveStream.start_time field.

.google.protobuf.Timestamp event_start_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

setEventStartTime(Timestamp.Builder builderForValue)

public DaiSession.CreationContext.LinearInfo.Builder setEventStartTime(Timestamp.Builder builderForValue)

The LiveStream.start_time field.

.google.protobuf.Timestamp event_start_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

setLiveStream(String value)

public DaiSession.CreationContext.LinearInfo.Builder setLiveStream(String value)

Output only. The name field of the LiveStream resource.

optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The liveStream to set.

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

setLiveStreamBytes(ByteString value)

public DaiSession.CreationContext.LinearInfo.Builder setLiveStreamBytes(ByteString value)

Output only. The name field of the LiveStream resource.

optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for liveStream to set.

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

setPodTrimTolerance(Duration value)

public DaiSession.CreationContext.LinearInfo.Builder setPodTrimTolerance(Duration value)

Optional. The maximum duration allowed to be trimmed from an ad pod before whole ads are dropped. This field is only populated when pod trimming is enabled.

optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

setPodTrimTolerance(Duration.Builder builderForValue)

public DaiSession.CreationContext.LinearInfo.Builder setPodTrimTolerance(Duration.Builder builderForValue)

Optional. The maximum duration allowed to be trimmed from an ad pod before whole ads are dropped. This field is only populated when pod trimming is enabled.

optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

setPodTrimmingEnabled(boolean value)

public DaiSession.CreationContext.LinearInfo.Builder setPodTrimmingEnabled(boolean value)

Output only. Whether ad pod trimming is enabled for the DAI session.

optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The podTrimmingEnabled to set.

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.

setPrefetchEnabled(boolean value)

public DaiSession.CreationContext.LinearInfo.Builder setPrefetchEnabled(boolean value)

Output only. Whether the LiveStream.prefetch_enabled field is set to true.

optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The prefetchEnabled to set.

Returns
Type Description
DaiSession.CreationContext.LinearInfo.Builder

This builder for chaining.