Class Partner.Builder (0.58.0)

public static final class Partner.Builder extends GeneratedMessage.Builder<Partner.Builder> implements PartnerOrBuilder

The Partner resource.

Represents a publishing partner with established agreements to share inventory and revenue based on assignments.

For more information, see Add publishing partner assignments.

Protobuf type google.ads.admanager.v1.Partner

Implements

PartnerOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAppliedLabels(Iterable<? extends AppliedLabel> values)

public Partner.Builder addAllAppliedLabels(Iterable<? extends AppliedLabel> values)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.AppliedLabel>
Returns
Type Description
Partner.Builder

addAllAppliedTeams(Iterable<String> values)

public Partner.Builder addAllAppliedTeams(Iterable<String> values)

Optional. The resource names of Teams that are directly associated with the Partner. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The appliedTeams to add.

Returns
Type Description
Partner.Builder

This builder for chaining.

addAppliedLabels(AppliedLabel value)

public Partner.Builder addAppliedLabels(AppliedLabel value)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AppliedLabel
Returns
Type Description
Partner.Builder

addAppliedLabels(AppliedLabel.Builder builderForValue)

public Partner.Builder addAppliedLabels(AppliedLabel.Builder builderForValue)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AppliedLabel.Builder
Returns
Type Description
Partner.Builder

addAppliedLabels(int index, AppliedLabel value)

public Partner.Builder addAppliedLabels(int index, AppliedLabel value)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AppliedLabel
Returns
Type Description
Partner.Builder

addAppliedLabels(int index, AppliedLabel.Builder builderForValue)

public Partner.Builder addAppliedLabels(int index, AppliedLabel.Builder builderForValue)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AppliedLabel.Builder
Returns
Type Description
Partner.Builder

addAppliedLabelsBuilder()

public AppliedLabel.Builder addAppliedLabelsBuilder()

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AppliedLabel.Builder

addAppliedLabelsBuilder(int index)

public AppliedLabel.Builder addAppliedLabelsBuilder(int index)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AppliedLabel.Builder

addAppliedTeams(String value)

public Partner.Builder addAppliedTeams(String value)

Optional. The resource names of Teams that are directly associated with the Partner. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The appliedTeams to add.

Returns
Type Description
Partner.Builder

This builder for chaining.

addAppliedTeamsBytes(ByteString value)

public Partner.Builder addAppliedTeamsBytes(ByteString value)

Optional. The resource names of Teams that are directly associated with the Partner. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the appliedTeams to add.

Returns
Type Description
Partner.Builder

This builder for chaining.

build()

public Partner build()
Returns
Type Description
Partner

buildPartial()

public Partner buildPartial()
Returns
Type Description
Partner

clear()

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

clearAddress()

public Partner.Builder clearAddress()

Optional. The address for the Partner.

This value has a maximum length of 1024 characters.

optional string address = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Partner.Builder

This builder for chaining.

clearAppliedLabels()

public Partner.Builder clearAppliedLabels()

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Partner.Builder

clearAppliedTeams()

public Partner.Builder clearAppliedTeams()

Optional. The resource names of Teams that are directly associated with the Partner. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
Partner.Builder

This builder for chaining.

clearComment()

public Partner.Builder clearComment()

Optional. Comments about the Partner.

This value has a maximum length of 1024 characters.

optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Partner.Builder

This builder for chaining.

clearCreditStatus()

public Partner.Builder clearCreditStatus()

Optional. The credit status of the Partner.

This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance settings are enabled.

optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Partner.Builder

This builder for chaining.

clearDisplayName()

public Partner.Builder clearDisplayName()

Required. The display name of the Partner.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Partner.Builder

This builder for chaining.

clearEmail()

public Partner.Builder clearEmail()

Optional. The email for the Partner.

This value has a maximum length of 128 characters.

optional string email = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Partner.Builder

This builder for chaining.

clearExternalId()

public Partner.Builder clearExternalId()

Optional. The external ID for the Partner.

This value has a maximum length of 255 characters.

optional string external_id = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Partner.Builder

This builder for chaining.

clearFax()

public Partner.Builder clearFax()

Optional. The fax number for the Partner.

This value has a maximum length of 63 characters.

optional string fax = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Partner.Builder

This builder for chaining.

clearName()

public Partner.Builder clearName()

Identifier. The resource name of the Partner. Format: networks/{network_code}/partners/{partner_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Partner.Builder

This builder for chaining.

clearPhone()

public Partner.Builder clearPhone()

Optional. The phone number for the Partner.

This value has a maximum length of 63 characters.

optional string phone = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Partner.Builder

This builder for chaining.

clearPrimaryContact()

public Partner.Builder clearPrimaryContact()

Optional. The resource names of primary Contact of the Partner. Format: "networks/{network_code}/contacts/{contact_id}"

optional string primary_contact = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
Partner.Builder

This builder for chaining.

clearUpdateTime()

public Partner.Builder clearUpdateTime()

Output only. The time the Partner was last updated.

.google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Partner.Builder

getAddress()

public String getAddress()

Optional. The address for the Partner.

This value has a maximum length of 1024 characters.

optional string address = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The address.

getAddressBytes()

public ByteString getAddressBytes()

Optional. The address for the Partner.

This value has a maximum length of 1024 characters.

optional string address = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for address.

getAppliedLabels(int index)

public AppliedLabel getAppliedLabels(int index)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AppliedLabel

getAppliedLabelsBuilder(int index)

public AppliedLabel.Builder getAppliedLabelsBuilder(int index)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AppliedLabel.Builder

getAppliedLabelsBuilderList()

public List<AppliedLabel.Builder> getAppliedLabelsBuilderList()

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAppliedLabelsCount()

public int getAppliedLabelsCount()

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAppliedLabelsList()

public List<AppliedLabel> getAppliedLabelsList()

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AppliedLabel>

getAppliedLabelsOrBuilder(int index)

public AppliedLabelOrBuilder getAppliedLabelsOrBuilder(int index)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AppliedLabelOrBuilder

getAppliedLabelsOrBuilderList()

public List<? extends AppliedLabelOrBuilder> getAppliedLabelsOrBuilderList()

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.AppliedLabelOrBuilder>

getAppliedTeams(int index)

public String getAppliedTeams(int index)

Optional. The resource names of Teams that are directly associated with the Partner. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 13 [(.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 appliedTeams at the given index.

getAppliedTeamsBytes(int index)

public ByteString getAppliedTeamsBytes(int index)

Optional. The resource names of Teams that are directly associated with the Partner. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 13 [(.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 appliedTeams at the given index.

getAppliedTeamsCount()

public int getAppliedTeamsCount()

Optional. The resource names of Teams that are directly associated with the Partner. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of appliedTeams.

getAppliedTeamsList()

public ProtocolStringList getAppliedTeamsList()

Optional. The resource names of Teams that are directly associated with the Partner. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the appliedTeams.

getComment()

public String getComment()

Optional. Comments about the Partner.

This value has a maximum length of 1024 characters.

optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

Optional. Comments about the Partner.

This value has a maximum length of 1024 characters.

optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for comment.

getCreditStatus()

public CompanyCreditStatusEnum.CompanyCreditStatus getCreditStatus()

Optional. The credit status of the Partner.

This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance settings are enabled.

optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CompanyCreditStatusEnum.CompanyCreditStatus

The creditStatus.

getCreditStatusValue()

public int getCreditStatusValue()

Optional. The credit status of the Partner.

This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance settings are enabled.

optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for creditStatus.

getDefaultInstanceForType()

public Partner getDefaultInstanceForType()
Returns
Type Description
Partner

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. The display name of the Partner.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the Partner.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getEmail()

public String getEmail()

Optional. The email for the Partner.

This value has a maximum length of 128 characters.

optional string email = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

Optional. The email for the Partner.

This value has a maximum length of 128 characters.

optional string email = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for email.

getExternalId()

public String getExternalId()

Optional. The external ID for the Partner.

This value has a maximum length of 255 characters.

optional string external_id = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The externalId.

getExternalIdBytes()

public ByteString getExternalIdBytes()

Optional. The external ID for the Partner.

This value has a maximum length of 255 characters.

optional string external_id = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for externalId.

getFax()

public String getFax()

Optional. The fax number for the Partner.

This value has a maximum length of 63 characters.

optional string fax = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The fax.

getFaxBytes()

public ByteString getFaxBytes()

Optional. The fax number for the Partner.

This value has a maximum length of 63 characters.

optional string fax = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for fax.

getName()

public String getName()

Identifier. The resource name of the Partner. Format: networks/{network_code}/partners/{partner_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the Partner. Format: networks/{network_code}/partners/{partner_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getPhone()

public String getPhone()

Optional. The phone number for the Partner.

This value has a maximum length of 63 characters.

optional string phone = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The phone.

getPhoneBytes()

public ByteString getPhoneBytes()

Optional. The phone number for the Partner.

This value has a maximum length of 63 characters.

optional string phone = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for phone.

getPrimaryContact()

public String getPrimaryContact()

Optional. The resource names of primary Contact of the Partner. Format: "networks/{network_code}/contacts/{contact_id}"

optional string primary_contact = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The primaryContact.

getPrimaryContactBytes()

public ByteString getPrimaryContactBytes()

Optional. The resource names of primary Contact of the Partner. Format: "networks/{network_code}/contacts/{contact_id}"

optional string primary_contact = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for primaryContact.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time the Partner was last updated.

.google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time the Partner was last updated.

.google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time the Partner was last updated.

.google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasAddress()

public boolean hasAddress()

Optional. The address for the Partner.

This value has a maximum length of 1024 characters.

optional string address = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the address field is set.

hasComment()

public boolean hasComment()

Optional. Comments about the Partner.

This value has a maximum length of 1024 characters.

optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the comment field is set.

hasCreditStatus()

public boolean hasCreditStatus()

Optional. The credit status of the Partner.

This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance settings are enabled.

optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the creditStatus field is set.

hasDisplayName()

public boolean hasDisplayName()

Required. The display name of the Partner.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the displayName field is set.

hasEmail()

public boolean hasEmail()

Optional. The email for the Partner.

This value has a maximum length of 128 characters.

optional string email = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the email field is set.

hasExternalId()

public boolean hasExternalId()

Optional. The external ID for the Partner.

This value has a maximum length of 255 characters.

optional string external_id = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the externalId field is set.

hasFax()

public boolean hasFax()

Optional. The fax number for the Partner.

This value has a maximum length of 63 characters.

optional string fax = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the fax field is set.

hasPhone()

public boolean hasPhone()

Optional. The phone number for the Partner.

This value has a maximum length of 63 characters.

optional string phone = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the phone field is set.

hasPrimaryContact()

public boolean hasPrimaryContact()

Optional. The resource names of primary Contact of the Partner. Format: "networks/{network_code}/contacts/{contact_id}"

optional string primary_contact = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the primaryContact field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time the Partner was last updated.

.google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Partner other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public Partner.Builder mergeUpdateTime(Timestamp value)

Output only. The time the Partner was last updated.

.google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Partner.Builder

removeAppliedLabels(int index)

public Partner.Builder removeAppliedLabels(int index)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Partner.Builder

setAddress(String value)

public Partner.Builder setAddress(String value)

Optional. The address for the Partner.

This value has a maximum length of 1024 characters.

optional string address = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The address to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setAddressBytes(ByteString value)

public Partner.Builder setAddressBytes(ByteString value)

Optional. The address for the Partner.

This value has a maximum length of 1024 characters.

optional string address = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for address to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setAppliedLabels(int index, AppliedLabel value)

public Partner.Builder setAppliedLabels(int index, AppliedLabel value)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value AppliedLabel
Returns
Type Description
Partner.Builder

setAppliedLabels(int index, AppliedLabel.Builder builderForValue)

public Partner.Builder setAppliedLabels(int index, AppliedLabel.Builder builderForValue)

Optional. The labels that are directly applied to the Partner.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue AppliedLabel.Builder
Returns
Type Description
Partner.Builder

setAppliedTeams(int index, String value)

public Partner.Builder setAppliedTeams(int index, String value)

Optional. The resource names of Teams that are directly associated with the Partner. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The appliedTeams to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setComment(String value)

public Partner.Builder setComment(String value)

Optional. Comments about the Partner.

This value has a maximum length of 1024 characters.

optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The comment to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setCommentBytes(ByteString value)

public Partner.Builder setCommentBytes(ByteString value)

Optional. Comments about the Partner.

This value has a maximum length of 1024 characters.

optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for comment to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setCreditStatus(CompanyCreditStatusEnum.CompanyCreditStatus value)

public Partner.Builder setCreditStatus(CompanyCreditStatusEnum.CompanyCreditStatus value)

Optional. The credit status of the Partner.

This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance settings are enabled.

optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CompanyCreditStatusEnum.CompanyCreditStatus

The creditStatus to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setCreditStatusValue(int value)

public Partner.Builder setCreditStatusValue(int value)

Optional. The credit status of the Partner.

This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance settings are enabled.

optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
Partner.Builder

This builder for chaining.

setDisplayName(String value)

public Partner.Builder setDisplayName(String value)

Required. The display name of the Partner.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Partner.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the Partner.

optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setEmail(String value)

public Partner.Builder setEmail(String value)

Optional. The email for the Partner.

This value has a maximum length of 128 characters.

optional string email = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The email to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setEmailBytes(ByteString value)

public Partner.Builder setEmailBytes(ByteString value)

Optional. The email for the Partner.

This value has a maximum length of 128 characters.

optional string email = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for email to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setExternalId(String value)

public Partner.Builder setExternalId(String value)

Optional. The external ID for the Partner.

This value has a maximum length of 255 characters.

optional string external_id = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The externalId to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setExternalIdBytes(ByteString value)

public Partner.Builder setExternalIdBytes(ByteString value)

Optional. The external ID for the Partner.

This value has a maximum length of 255 characters.

optional string external_id = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for externalId to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setFax(String value)

public Partner.Builder setFax(String value)

Optional. The fax number for the Partner.

This value has a maximum length of 63 characters.

optional string fax = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The fax to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setFaxBytes(ByteString value)

public Partner.Builder setFaxBytes(ByteString value)

Optional. The fax number for the Partner.

This value has a maximum length of 63 characters.

optional string fax = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for fax to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setName(String value)

public Partner.Builder setName(String value)

Identifier. The resource name of the Partner. Format: networks/{network_code}/partners/{partner_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Partner.Builder setNameBytes(ByteString value)

Identifier. The resource name of the Partner. Format: networks/{network_code}/partners/{partner_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setPhone(String value)

public Partner.Builder setPhone(String value)

Optional. The phone number for the Partner.

This value has a maximum length of 63 characters.

optional string phone = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The phone to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setPhoneBytes(ByteString value)

public Partner.Builder setPhoneBytes(ByteString value)

Optional. The phone number for the Partner.

This value has a maximum length of 63 characters.

optional string phone = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for phone to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setPrimaryContact(String value)

public Partner.Builder setPrimaryContact(String value)

Optional. The resource names of primary Contact of the Partner. Format: "networks/{network_code}/contacts/{contact_id}"

optional string primary_contact = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The primaryContact to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setPrimaryContactBytes(ByteString value)

public Partner.Builder setPrimaryContactBytes(ByteString value)

Optional. The resource names of primary Contact of the Partner. Format: "networks/{network_code}/contacts/{contact_id}"

optional string primary_contact = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for primaryContact to set.

Returns
Type Description
Partner.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public Partner.Builder setUpdateTime(Timestamp value)

Output only. The time the Partner was last updated.

.google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Partner.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Partner.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time the Partner was last updated.

.google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Partner.Builder