Class LiveConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LiveConfig.Builder>
com.google.cloud.video.stitcher.v1.LiveConfig.Builder
- All Implemented Interfaces:
LiveConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LiveConfig
public static final class LiveConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LiveConfig.Builder>
implements LiveConfigOrBuilder
Metadata for used to register live configs.Protobuf type
google.cloud.video.stitcher.v1.LiveConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The default ad tag associated with this live stream config.Required.This must refer to a slate in the same project.Additional metadata used to register a live stream with Google Ad Manager (GAM)Output only.The configuration for prefetching ads.Options for fetching source manifests and segments.Required.Output only.Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries.The default ad tag associated with this live stream config.com.google.protobuf.ByteStringThe default ad tag associated with this live stream config.Required.intRequired.This must refer to a slate in the same project.com.google.protobuf.ByteStringThis must refer to a slate in the same project.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAdditional metadata used to register a live stream with Google Ad Manager (GAM)Additional metadata used to register a live stream with Google Ad Manager (GAM)Additional metadata used to register a live stream with Google Ad Manager (GAM)getName()Output only.com.google.protobuf.ByteStringOutput only.The configuration for prefetching ads.The configuration for prefetching ads.The configuration for prefetching ads.Options for fetching source manifests and segments.Options for fetching source manifests and segments.Options for fetching source manifests and segments.Required.com.google.protobuf.ByteStringRequired.getState()Output only.intOutput only.Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries.intDefines the stitcher behavior in case an ad does not align exactly with the ad break boundaries.booleanAdditional metadata used to register a live stream with Google Ad Manager (GAM)booleanThe configuration for prefetching ads.booleanOptions for fetching source manifests and segments.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(LiveConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGamLiveConfig(GamLiveConfig value) Additional metadata used to register a live stream with Google Ad Manager (GAM)The configuration for prefetching ads.Options for fetching source manifests and segments.setAdTagUri(String value) The default ad tag associated with this live stream config.setAdTagUriBytes(com.google.protobuf.ByteString value) The default ad tag associated with this live stream config.setAdTracking(AdTracking value) Required.setAdTrackingValue(int value) Required.setDefaultSlate(String value) This must refer to a slate in the same project.setDefaultSlateBytes(com.google.protobuf.ByteString value) This must refer to a slate in the same project.setGamLiveConfig(GamLiveConfig value) Additional metadata used to register a live stream with Google Ad Manager (GAM)setGamLiveConfig(GamLiveConfig.Builder builderForValue) Additional metadata used to register a live stream with Google Ad Manager (GAM)Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setPrefetchConfig(PrefetchConfig value) The configuration for prefetching ads.setPrefetchConfig(PrefetchConfig.Builder builderForValue) The configuration for prefetching ads.Options for fetching source manifests and segments.setSourceFetchOptions(FetchOptions.Builder builderForValue) Options for fetching source manifests and segments.setSourceUri(String value) Required.setSourceUriBytes(com.google.protobuf.ByteString value) Required.setState(LiveConfig.State value) Output only.setStateValue(int value) Output only.Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries.setStitchingPolicyValue(int value) Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LiveConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LiveConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LiveConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LiveConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LiveConfig.Builder>
-
mergeFrom
public LiveConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LiveConfig.Builder>- Throws:
IOException
-
getName
Output only. The resource name of the live config, in the form of `projects/{project}/locations/{location}/liveConfigs/{id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceLiveConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The resource name of the live config, in the form of `projects/{project}/locations/{location}/liveConfigs/{id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceLiveConfigOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The resource name of the live config, in the form of `projects/{project}/locations/{location}/liveConfigs/{id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The resource name of the live config, in the form of `projects/{project}/locations/{location}/liveConfigs/{id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The resource name of the live config, in the form of `projects/{project}/locations/{location}/liveConfigs/{id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getSourceUri
Required. Source URI for the live stream manifest.
string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceUriin interfaceLiveConfigOrBuilder- Returns:
- The sourceUri.
-
getSourceUriBytes
public com.google.protobuf.ByteString getSourceUriBytes()Required. Source URI for the live stream manifest.
string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceUriBytesin interfaceLiveConfigOrBuilder- Returns:
- The bytes for sourceUri.
-
setSourceUri
Required. Source URI for the live stream manifest.
string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The sourceUri to set.- Returns:
- This builder for chaining.
-
clearSourceUri
Required. Source URI for the live stream manifest.
string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSourceUriBytes
Required. Source URI for the live stream manifest.
string source_uri = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for sourceUri to set.- Returns:
- This builder for chaining.
-
getAdTagUri
The default ad tag associated with this live stream config.
string ad_tag_uri = 3;- Specified by:
getAdTagUriin interfaceLiveConfigOrBuilder- Returns:
- The adTagUri.
-
getAdTagUriBytes
public com.google.protobuf.ByteString getAdTagUriBytes()The default ad tag associated with this live stream config.
string ad_tag_uri = 3;- Specified by:
getAdTagUriBytesin interfaceLiveConfigOrBuilder- Returns:
- The bytes for adTagUri.
-
setAdTagUri
The default ad tag associated with this live stream config.
string ad_tag_uri = 3;- Parameters:
value- The adTagUri to set.- Returns:
- This builder for chaining.
-
clearAdTagUri
The default ad tag associated with this live stream config.
string ad_tag_uri = 3;- Returns:
- This builder for chaining.
-
setAdTagUriBytes
The default ad tag associated with this live stream config.
string ad_tag_uri = 3;- Parameters:
value- The bytes for adTagUri to set.- Returns:
- This builder for chaining.
-
hasGamLiveConfig
public boolean hasGamLiveConfig()Additional metadata used to register a live stream with Google Ad Manager (GAM)
.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;- Specified by:
hasGamLiveConfigin interfaceLiveConfigOrBuilder- Returns:
- Whether the gamLiveConfig field is set.
-
getGamLiveConfig
Additional metadata used to register a live stream with Google Ad Manager (GAM)
.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;- Specified by:
getGamLiveConfigin interfaceLiveConfigOrBuilder- Returns:
- The gamLiveConfig.
-
setGamLiveConfig
Additional metadata used to register a live stream with Google Ad Manager (GAM)
.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4; -
setGamLiveConfig
Additional metadata used to register a live stream with Google Ad Manager (GAM)
.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4; -
mergeGamLiveConfig
Additional metadata used to register a live stream with Google Ad Manager (GAM)
.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4; -
clearGamLiveConfig
Additional metadata used to register a live stream with Google Ad Manager (GAM)
.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4; -
getGamLiveConfigBuilder
Additional metadata used to register a live stream with Google Ad Manager (GAM)
.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4; -
getGamLiveConfigOrBuilder
Additional metadata used to register a live stream with Google Ad Manager (GAM)
.google.cloud.video.stitcher.v1.GamLiveConfig gam_live_config = 4;- Specified by:
getGamLiveConfigOrBuilderin interfaceLiveConfigOrBuilder
-
getStateValue
public int getStateValue()Output only. State of the live config.
.google.cloud.video.stitcher.v1.LiveConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceLiveConfigOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. State of the live config.
.google.cloud.video.stitcher.v1.LiveConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. State of the live config.
.google.cloud.video.stitcher.v1.LiveConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceLiveConfigOrBuilder- Returns:
- The state.
-
setState
Output only. State of the live config.
.google.cloud.video.stitcher.v1.LiveConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. State of the live config.
.google.cloud.video.stitcher.v1.LiveConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getAdTrackingValue
public int getAdTrackingValue()Required. Determines how the ads are tracked.
.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAdTrackingValuein interfaceLiveConfigOrBuilder- Returns:
- The enum numeric value on the wire for adTracking.
-
setAdTrackingValue
Required. Determines how the ads are tracked.
.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 6 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for adTracking to set.- Returns:
- This builder for chaining.
-
getAdTracking
Required. Determines how the ads are tracked.
.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAdTrackingin interfaceLiveConfigOrBuilder- Returns:
- The adTracking.
-
setAdTracking
Required. Determines how the ads are tracked.
.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 6 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The adTracking to set.- Returns:
- This builder for chaining.
-
clearAdTracking
Required. Determines how the ads are tracked.
.google.cloud.video.stitcher.v1.AdTracking ad_tracking = 6 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getDefaultSlate
This must refer to a slate in the same project. If Google Ad Manager (GAM) is used for ads, this string sets the value of `slateCreativeId` in https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId
string default_slate = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getDefaultSlatein interfaceLiveConfigOrBuilder- Returns:
- The defaultSlate.
-
getDefaultSlateBytes
public com.google.protobuf.ByteString getDefaultSlateBytes()This must refer to a slate in the same project. If Google Ad Manager (GAM) is used for ads, this string sets the value of `slateCreativeId` in https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId
string default_slate = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getDefaultSlateBytesin interfaceLiveConfigOrBuilder- Returns:
- The bytes for defaultSlate.
-
setDefaultSlate
This must refer to a slate in the same project. If Google Ad Manager (GAM) is used for ads, this string sets the value of `slateCreativeId` in https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId
string default_slate = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The defaultSlate to set.- Returns:
- This builder for chaining.
-
clearDefaultSlate
This must refer to a slate in the same project. If Google Ad Manager (GAM) is used for ads, this string sets the value of `slateCreativeId` in https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId
string default_slate = 7 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setDefaultSlateBytes
This must refer to a slate in the same project. If Google Ad Manager (GAM) is used for ads, this string sets the value of `slateCreativeId` in https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId
string default_slate = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for defaultSlate to set.- Returns:
- This builder for chaining.
-
getStitchingPolicyValue
public int getStitchingPolicyValue()Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is `CUT_CURRENT`.
.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy stitching_policy = 8;- Specified by:
getStitchingPolicyValuein interfaceLiveConfigOrBuilder- Returns:
- The enum numeric value on the wire for stitchingPolicy.
-
setStitchingPolicyValue
Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is `CUT_CURRENT`.
.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy stitching_policy = 8;- Parameters:
value- The enum numeric value on the wire for stitchingPolicy to set.- Returns:
- This builder for chaining.
-
getStitchingPolicy
Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is `CUT_CURRENT`.
.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy stitching_policy = 8;- Specified by:
getStitchingPolicyin interfaceLiveConfigOrBuilder- Returns:
- The stitchingPolicy.
-
setStitchingPolicy
Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is `CUT_CURRENT`.
.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy stitching_policy = 8;- Parameters:
value- The stitchingPolicy to set.- Returns:
- This builder for chaining.
-
clearStitchingPolicy
Defines the stitcher behavior in case an ad does not align exactly with the ad break boundaries. If not specified, the default is `CUT_CURRENT`.
.google.cloud.video.stitcher.v1.LiveConfig.StitchingPolicy stitching_policy = 8;- Returns:
- This builder for chaining.
-
hasPrefetchConfig
public boolean hasPrefetchConfig()The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;- Specified by:
hasPrefetchConfigin interfaceLiveConfigOrBuilder- Returns:
- Whether the prefetchConfig field is set.
-
getPrefetchConfig
The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;- Specified by:
getPrefetchConfigin interfaceLiveConfigOrBuilder- Returns:
- The prefetchConfig.
-
setPrefetchConfig
The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10; -
setPrefetchConfig
The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10; -
mergePrefetchConfig
The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10; -
clearPrefetchConfig
The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10; -
getPrefetchConfigBuilder
The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10; -
getPrefetchConfigOrBuilder
The configuration for prefetching ads.
.google.cloud.video.stitcher.v1.PrefetchConfig prefetch_config = 10;- Specified by:
getPrefetchConfigOrBuilderin interfaceLiveConfigOrBuilder
-
hasSourceFetchOptions
public boolean hasSourceFetchOptions()Options for fetching source manifests and segments.
.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;- Specified by:
hasSourceFetchOptionsin interfaceLiveConfigOrBuilder- Returns:
- Whether the sourceFetchOptions field is set.
-
getSourceFetchOptions
Options for fetching source manifests and segments.
.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;- Specified by:
getSourceFetchOptionsin interfaceLiveConfigOrBuilder- Returns:
- The sourceFetchOptions.
-
setSourceFetchOptions
Options for fetching source manifests and segments.
.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; -
setSourceFetchOptions
Options for fetching source manifests and segments.
.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; -
mergeSourceFetchOptions
Options for fetching source manifests and segments.
.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; -
clearSourceFetchOptions
Options for fetching source manifests and segments.
.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; -
getSourceFetchOptionsBuilder
Options for fetching source manifests and segments.
.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16; -
getSourceFetchOptionsOrBuilder
Options for fetching source manifests and segments.
.google.cloud.video.stitcher.v1.FetchOptions source_fetch_options = 16;- Specified by:
getSourceFetchOptionsOrBuilderin interfaceLiveConfigOrBuilder
-