public static final class CreateAdSpotRequest.Builder extends GeneratedMessage.Builder<CreateAdSpotRequest.Builder> implements CreateAdSpotRequestOrBuilder Request object for CreateAdSpot method.
Protobuf type google.ads.admanager.v1.CreateAdSpotRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateAdSpotRequest.BuilderImplements
CreateAdSpotRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateAdSpotRequest build()| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest |
|
buildPartial()
public CreateAdSpotRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest |
|
clear()
public CreateAdSpotRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
|
clearAdSpot()
public CreateAdSpotRequest.Builder clearAdSpot() Required. The AdSpot to create.
.google.ads.admanager.v1.AdSpot ad_spot = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
|
clearParent()
public CreateAdSpotRequest.Builder clearParent() Required. The parent resource where this AdSpot will be created.
Format: networks/{network_code}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
This builder for chaining. |
getAdSpot()
public AdSpot getAdSpot() Required. The AdSpot to create.
.google.ads.admanager.v1.AdSpot ad_spot = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AdSpot |
The adSpot. |
getAdSpotBuilder()
public AdSpot.Builder getAdSpotBuilder() Required. The AdSpot to create.
.google.ads.admanager.v1.AdSpot ad_spot = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AdSpot.Builder |
|
getAdSpotOrBuilder()
public AdSpotOrBuilder getAdSpotOrBuilder() Required. The AdSpot to create.
.google.ads.admanager.v1.AdSpot ad_spot = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AdSpotOrBuilder |
|
getDefaultInstanceForType()
public CreateAdSpotRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent() Required. The parent resource where this AdSpot will be created.
Format: networks/{network_code}
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 AdSpot will be created.
Format: networks/{network_code}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
hasAdSpot()
public boolean hasAdSpot() Required. The AdSpot to create.
.google.ads.admanager.v1.AdSpot ad_spot = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the adSpot field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAdSpot(AdSpot value)
public CreateAdSpotRequest.Builder mergeAdSpot(AdSpot value) Required. The AdSpot to create.
.google.ads.admanager.v1.AdSpot ad_spot = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AdSpot |
| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
|
mergeFrom(CreateAdSpotRequest other)
public CreateAdSpotRequest.Builder mergeFrom(CreateAdSpotRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateAdSpotRequest |
| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateAdSpotRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateAdSpotRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
|
setAdSpot(AdSpot value)
public CreateAdSpotRequest.Builder setAdSpot(AdSpot value) Required. The AdSpot to create.
.google.ads.admanager.v1.AdSpot ad_spot = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
AdSpot |
| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
|
setAdSpot(AdSpot.Builder builderForValue)
public CreateAdSpotRequest.Builder setAdSpot(AdSpot.Builder builderForValue) Required. The AdSpot to create.
.google.ads.admanager.v1.AdSpot ad_spot = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AdSpot.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
|
setParent(String value)
public CreateAdSpotRequest.Builder setParent(String value) Required. The parent resource where this AdSpot will be created.
Format: networks/{network_code}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateAdSpotRequest.Builder setParentBytes(ByteString value) Required. The parent resource where this AdSpot will be created.
Format: networks/{network_code}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAdSpotRequest.Builder |
This builder for chaining. |