Class CreateProposalRequest.Builder (0.62.0)

public static final class CreateProposalRequest.Builder extends GeneratedMessage.Builder<CreateProposalRequest.Builder> implements CreateProposalRequestOrBuilder

Request object for CreateProposal method.

Protobuf type google.ads.admanager.v1.CreateProposalRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateProposalRequest build()
Returns
Type Description
CreateProposalRequest

buildPartial()

public CreateProposalRequest buildPartial()
Returns
Type Description
CreateProposalRequest

clear()

public CreateProposalRequest.Builder clear()
Returns
Type Description
CreateProposalRequest.Builder
Overrides

clearParent()

public CreateProposalRequest.Builder clearParent()

Required. The parent resource where this Proposal will be created. Format: networks/{network_code}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateProposalRequest.Builder

This builder for chaining.

clearProposal()

public CreateProposalRequest.Builder clearProposal()

Required. The Proposal to create.

.google.ads.admanager.v1.Proposal proposal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateProposalRequest.Builder

getDefaultInstanceForType()

public CreateProposalRequest getDefaultInstanceForType()
Returns
Type Description
CreateProposalRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where this Proposal 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 Proposal 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.

getProposal()

public Proposal getProposal()

Required. The Proposal to create.

.google.ads.admanager.v1.Proposal proposal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Proposal

The proposal.

getProposalBuilder()

public Proposal.Builder getProposalBuilder()

Required. The Proposal to create.

.google.ads.admanager.v1.Proposal proposal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Proposal.Builder

getProposalOrBuilder()

public ProposalOrBuilder getProposalOrBuilder()

Required. The Proposal to create.

.google.ads.admanager.v1.Proposal proposal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProposalOrBuilder

hasProposal()

public boolean hasProposal()

Required. The Proposal to create.

.google.ads.admanager.v1.Proposal proposal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the proposal field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateProposalRequest other)

public CreateProposalRequest.Builder mergeFrom(CreateProposalRequest other)
Parameter
Name Description
other CreateProposalRequest
Returns
Type Description
CreateProposalRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateProposalRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateProposalRequest.Builder
Overrides

mergeProposal(Proposal value)

public CreateProposalRequest.Builder mergeProposal(Proposal value)

Required. The Proposal to create.

.google.ads.admanager.v1.Proposal proposal = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Proposal
Returns
Type Description
CreateProposalRequest.Builder

setParent(String value)

public CreateProposalRequest.Builder setParent(String value)

Required. The parent resource where this Proposal will be created. Format: networks/{network_code}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateProposalRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateProposalRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this Proposal will be created. Format: networks/{network_code}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateProposalRequest.Builder

This builder for chaining.

setProposal(Proposal value)

public CreateProposalRequest.Builder setProposal(Proposal value)

Required. The Proposal to create.

.google.ads.admanager.v1.Proposal proposal = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Proposal
Returns
Type Description
CreateProposalRequest.Builder

setProposal(Proposal.Builder builderForValue)

public CreateProposalRequest.Builder setProposal(Proposal.Builder builderForValue)

Required. The Proposal to create.

.google.ads.admanager.v1.Proposal proposal = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Proposal.Builder
Returns
Type Description
CreateProposalRequest.Builder