Class CreateAdBreakRequest.Builder (0.31.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 0.31.0keyboard_arrow_down
public static final class CreateAdBreakRequest . Builder extends GeneratedMessageV3 . Builder<CreateAdBreakRequest . Builder > implements CreateAdBreakRequestOrBuilder
Request object for CreateAdBreak
method.
Protobuf type google.ads.admanager.v1.CreateAdBreakRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAdBreakRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public CreateAdBreakRequest build ()
buildPartial()
public CreateAdBreakRequest buildPartial ()
clear()
public CreateAdBreakRequest . Builder clear ()
Overrides
clearAdBreak()
public CreateAdBreakRequest . Builder clearAdBreak ()
Required. The AdBreak
to create.
.google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public CreateAdBreakRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAdBreakRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearParent()
public CreateAdBreakRequest . Builder clearParent ()
Required. The parent resource where this AdBreak
will be created
identified by an asset key or custom asset key.
Formats:
networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}
networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clone()
public CreateAdBreakRequest . Builder clone ()
Overrides
getAdBreak()
public AdBreak getAdBreak ()
Required. The AdBreak
to create.
.google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
AdBreak
The adBreak.
getAdBreakBuilder()
public AdBreak . Builder getAdBreakBuilder ()
Required. The AdBreak
to create.
.google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED];
getAdBreakOrBuilder()
public AdBreakOrBuilder getAdBreakOrBuilder ()
Required. The AdBreak
to create.
.google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public CreateAdBreakRequest getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getParent()
public String getParent ()
Required. The parent resource where this AdBreak
will be created
identified by an asset key or custom asset key.
Formats:
networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}
networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type
Description
String
The parent.
getParentBytes()
public ByteString getParentBytes ()
Required. The parent resource where this AdBreak
will be created
identified by an asset key or custom asset key.
Formats:
networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}
networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type
Description
ByteString
The bytes for parent.
hasAdBreak()
public boolean hasAdBreak ()
Required. The AdBreak
to create.
.google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the adBreak field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeAdBreak(AdBreak value)
public CreateAdBreakRequest . Builder mergeAdBreak ( AdBreak value )
Required. The AdBreak
to create.
.google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
AdBreak
mergeFrom(CreateAdBreakRequest other)
public CreateAdBreakRequest . Builder mergeFrom ( CreateAdBreakRequest other )
public CreateAdBreakRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public CreateAdBreakRequest . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAdBreakRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setAdBreak(AdBreak value)
public CreateAdBreakRequest . Builder setAdBreak ( AdBreak value )
Required. The AdBreak
to create.
.google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
AdBreak
setAdBreak(AdBreak.Builder builderForValue)
public CreateAdBreakRequest . Builder setAdBreak ( AdBreak . Builder builderForValue )
Required. The AdBreak
to create.
.google.ads.admanager.v1.AdBreak ad_break = 2 [(.google.api.field_behavior) = REQUIRED];
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAdBreakRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setParent(String value)
public CreateAdBreakRequest . Builder setParent ( String value )
Required. The parent resource where this AdBreak
will be created
identified by an asset key or custom asset key.
Formats:
networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}
networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
String
The parent to set.
setParentBytes(ByteString value)
public CreateAdBreakRequest . Builder setParentBytes ( ByteString value )
Required. The parent resource where this AdBreak
will be created
identified by an asset key or custom asset key.
Formats:
networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}
networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
ByteString
The bytes for parent to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateAdBreakRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAdBreakRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,[]]