Class ProposalCompanyAssociation.Builder (0.62.0)

public static final class ProposalCompanyAssociation.Builder extends GeneratedMessage.Builder<ProposalCompanyAssociation.Builder> implements ProposalCompanyAssociationOrBuilder

A ProposalCompanyAssociation represents a Company associated with the Proposal and a set of Contacts belonging to the company.

Protobuf type google.ads.admanager.v1.ProposalCompanyAssociation

Static Methods

getDescriptor()

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

Methods

addAllSellerContacts(Iterable<String> values)

public ProposalCompanyAssociation.Builder addAllSellerContacts(Iterable<String> values)

Optional. The resource names of the Contacts associated with the Company. Format: networks/{network_code}/contacts/{contact_id}

repeated string seller_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The sellerContacts to add.

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.

addSellerContacts(String value)

public ProposalCompanyAssociation.Builder addSellerContacts(String value)

Optional. The resource names of the Contacts associated with the Company. Format: networks/{network_code}/contacts/{contact_id}

repeated string seller_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The sellerContacts to add.

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.

addSellerContactsBytes(ByteString value)

public ProposalCompanyAssociation.Builder addSellerContactsBytes(ByteString value)

Optional. The resource names of the Contacts associated with the Company. Format: networks/{network_code}/contacts/{contact_id}

repeated string seller_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the sellerContacts to add.

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.

build()

public ProposalCompanyAssociation build()
Returns
Type Description
ProposalCompanyAssociation

buildPartial()

public ProposalCompanyAssociation buildPartial()
Returns
Type Description
ProposalCompanyAssociation

clear()

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

clearCompany()

public ProposalCompanyAssociation.Builder clearCompany()

Required. The resource name of the Company associated with the Proposal. Format: networks/{network_code}/companies/{company_id}

optional string company = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.

clearSellerContacts()

public ProposalCompanyAssociation.Builder clearSellerContacts()

Optional. The resource names of the Contacts associated with the Company. Format: networks/{network_code}/contacts/{contact_id}

repeated string seller_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.

clearType()

public ProposalCompanyAssociation.Builder clearType()

Required. The association type between the Company and the Proposal.

optional .google.ads.admanager.v1.ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.

getCompany()

public String getCompany()

Required. The resource name of the Company associated with the Proposal. Format: networks/{network_code}/companies/{company_id}

optional string company = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The company.

getCompanyBytes()

public ByteString getCompanyBytes()

Required. The resource name of the Company associated with the Proposal. Format: networks/{network_code}/companies/{company_id}

optional string company = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for company.

getDefaultInstanceForType()

public ProposalCompanyAssociation getDefaultInstanceForType()
Returns
Type Description
ProposalCompanyAssociation

getDescriptorForType()

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

getSellerContacts(int index)

public String getSellerContacts(int index)

Optional. The resource names of the Contacts associated with the Company. Format: networks/{network_code}/contacts/{contact_id}

repeated string seller_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The sellerContacts at the given index.

getSellerContactsBytes(int index)

public ByteString getSellerContactsBytes(int index)

Optional. The resource names of the Contacts associated with the Company. Format: networks/{network_code}/contacts/{contact_id}

repeated string seller_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the sellerContacts at the given index.

getSellerContactsCount()

public int getSellerContactsCount()

Optional. The resource names of the Contacts associated with the Company. Format: networks/{network_code}/contacts/{contact_id}

repeated string seller_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of sellerContacts.

getSellerContactsList()

public ProtocolStringList getSellerContactsList()

Optional. The resource names of the Contacts associated with the Company. Format: networks/{network_code}/contacts/{contact_id}

repeated string seller_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the sellerContacts.

getType()

public ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType getType()

Required. The association type between the Company and the Proposal.

optional .google.ads.admanager.v1.ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType

The type.

getTypeValue()

public int getTypeValue()

Required. The association type between the Company and the Proposal.

optional .google.ads.admanager.v1.ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasCompany()

public boolean hasCompany()

Required. The resource name of the Company associated with the Proposal. Format: networks/{network_code}/companies/{company_id}

optional string company = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the company field is set.

hasType()

public boolean hasType()

Required. The association type between the Company and the Proposal.

optional .google.ads.admanager.v1.ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProposalCompanyAssociation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCompany(String value)

public ProposalCompanyAssociation.Builder setCompany(String value)

Required. The resource name of the Company associated with the Proposal. Format: networks/{network_code}/companies/{company_id}

optional string company = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The company to set.

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.

setCompanyBytes(ByteString value)

public ProposalCompanyAssociation.Builder setCompanyBytes(ByteString value)

Required. The resource name of the Company associated with the Proposal. Format: networks/{network_code}/companies/{company_id}

optional string company = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for company to set.

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.

setSellerContacts(int index, String value)

public ProposalCompanyAssociation.Builder setSellerContacts(int index, String value)

Optional. The resource names of the Contacts associated with the Company. Format: networks/{network_code}/contacts/{contact_id}

repeated string seller_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The sellerContacts to set.

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.

setType(ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType value)

public ProposalCompanyAssociation.Builder setType(ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType value)

Required. The association type between the Company and the Proposal.

optional .google.ads.admanager.v1.ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType

The type to set.

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.

setTypeValue(int value)

public ProposalCompanyAssociation.Builder setTypeValue(int value)

Required. The association type between the Company and the Proposal.

optional .google.ads.admanager.v1.ProposalCompanyAssociationTypeEnum.ProposalCompanyAssociationType type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
ProposalCompanyAssociation.Builder

This builder for chaining.