Class ProposalCompanyAssociation (0.62.0)

public final class ProposalCompanyAssociation extends GeneratedMessage 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 Fields

COMPANY_FIELD_NUMBER

public static final int COMPANY_FIELD_NUMBER
Field Value
Type Description
int

SELLER_CONTACTS_FIELD_NUMBER

public static final int SELLER_CONTACTS_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProposalCompanyAssociation getDefaultInstance()
Returns
Type Description
ProposalCompanyAssociation

getDescriptor()

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

newBuilder()

public static ProposalCompanyAssociation.Builder newBuilder()
Returns
Type Description
ProposalCompanyAssociation.Builder

newBuilder(ProposalCompanyAssociation prototype)

public static ProposalCompanyAssociation.Builder newBuilder(ProposalCompanyAssociation prototype)
Parameter
Name Description
prototype ProposalCompanyAssociation
Returns
Type Description
ProposalCompanyAssociation.Builder

parseDelimitedFrom(InputStream input)

public static ProposalCompanyAssociation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProposalCompanyAssociation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProposalCompanyAssociation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProposalCompanyAssociation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProposalCompanyAssociation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProposalCompanyAssociation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProposalCompanyAssociation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProposalCompanyAssociation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProposalCompanyAssociation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProposalCompanyAssociation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProposalCompanyAssociation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProposalCompanyAssociation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProposalCompanyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProposalCompanyAssociation> parser()
Returns
Type Description
Parser<ProposalCompanyAssociation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<ProposalCompanyAssociation> getParserForType()
Returns
Type Description
Parser<ProposalCompanyAssociation>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProposalCompanyAssociation.Builder newBuilderForType()
Returns
Type Description
ProposalCompanyAssociation.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ProposalCompanyAssociation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProposalCompanyAssociation.Builder
Overrides

toBuilder()

public ProposalCompanyAssociation.Builder toBuilder()
Returns
Type Description
ProposalCompanyAssociation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException