public static final class ProgrammaticBuyer.Builder extends GeneratedMessageV3.Builder<ProgrammaticBuyer.Builder> implements ProgrammaticBuyerOrBuilderRepresents a programmatic buyer.
 Protobuf type google.ads.admanager.v1.ProgrammaticBuyer
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProgrammaticBuyer.BuilderImplements
ProgrammaticBuyerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProgrammaticBuyer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
build()
public ProgrammaticBuyer build()| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer | |
buildPartial()
public ProgrammaticBuyer buildPartial()| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer | |
clear()
public ProgrammaticBuyer.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
clearAgency()
public ProgrammaticBuyer.Builder clearAgency()Output only. Whether the buyer is an advertising agency.
 optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
clearBuyerAccountId()
public ProgrammaticBuyer.Builder clearBuyerAccountId()Output only. The buyer account ID of the buyer.
 optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
clearDisplayName()
public ProgrammaticBuyer.Builder clearDisplayName()Output only. The display name of the buyer.
 optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
clearField(Descriptors.FieldDescriptor field)
public ProgrammaticBuyer.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
clearName()
public ProgrammaticBuyer.Builder clearName() Identifier. The resource name of the ProgrammaticBuyer.
 Format:
 networks/{network_code}/programmaticBuyers/{buyer_account_id}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
clearOneof(Descriptors.OneofDescriptor oneof)
public ProgrammaticBuyer.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
clearParentAccountId()
public ProgrammaticBuyer.Builder clearParentAccountId()Output only. The ID of the programmatic buyer's sponsor. If the buyer has no sponsor, this field will be -1.
 optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
clearPartnerClientId()
public ProgrammaticBuyer.Builder clearPartnerClientId()Output only. ID of the Display & Video 360 client buyer partner ID (if Display & Video 360) or Authorized Buyers client buyer account ID.
 optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
clearPreferredDealsEnabled()
public ProgrammaticBuyer.Builder clearPreferredDealsEnabled()Output only. Whether the buyer is enabled for preferred deals.
 
 optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
clearProgrammaticGuaranteedEnabled()
public ProgrammaticBuyer.Builder clearProgrammaticGuaranteedEnabled()Output only. Whether the buyer is enabled for programmatic guaranteed deals.
 
 optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
clone()
public ProgrammaticBuyer.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
getAgency()
public boolean getAgency()Output only. Whether the buyer is an advertising agency.
 optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| boolean | The agency. | 
getBuyerAccountId()
public long getBuyerAccountId()Output only. The buyer account ID of the buyer.
 optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| long | The buyerAccountId. | 
getDefaultInstanceForType()
public ProgrammaticBuyer getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getDisplayName()
public String getDisplayName()Output only. The display name of the buyer.
 optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| String | The displayName. | 
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Output only. The display name of the buyer.
 optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for displayName. | 
getName()
public String getName() Identifier. The resource name of the ProgrammaticBuyer.
 Format:
 networks/{network_code}/programmaticBuyers/{buyer_account_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 ProgrammaticBuyer.
 Format:
 networks/{network_code}/programmaticBuyers/{buyer_account_id}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for name. | 
getParentAccountId()
public long getParentAccountId()Output only. The ID of the programmatic buyer's sponsor. If the buyer has no sponsor, this field will be -1.
 optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| long | The parentAccountId. | 
getPartnerClientId()
public String getPartnerClientId()Output only. ID of the Display & Video 360 client buyer partner ID (if Display & Video 360) or Authorized Buyers client buyer account ID.
 optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| String | The partnerClientId. | 
getPartnerClientIdBytes()
public ByteString getPartnerClientIdBytes()Output only. ID of the Display & Video 360 client buyer partner ID (if Display & Video 360) or Authorized Buyers client buyer account ID.
 optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for partnerClientId. | 
getPreferredDealsEnabled()
public boolean getPreferredDealsEnabled()Output only. Whether the buyer is enabled for preferred deals.
 
 optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | The preferredDealsEnabled. | 
getProgrammaticGuaranteedEnabled()
public boolean getProgrammaticGuaranteedEnabled()Output only. Whether the buyer is enabled for programmatic guaranteed deals.
 
 optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | The programmaticGuaranteedEnabled. | 
hasAgency()
public boolean hasAgency()Output only. Whether the buyer is an advertising agency.
 optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the agency field is set. | 
hasBuyerAccountId()
public boolean hasBuyerAccountId()Output only. The buyer account ID of the buyer.
 optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the buyerAccountId field is set. | 
hasDisplayName()
public boolean hasDisplayName()Output only. The display name of the buyer.
 optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the displayName field is set. | 
hasParentAccountId()
public boolean hasParentAccountId()Output only. The ID of the programmatic buyer's sponsor. If the buyer has no sponsor, this field will be -1.
 optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the parentAccountId field is set. | 
hasPartnerClientId()
public boolean hasPartnerClientId()Output only. ID of the Display & Video 360 client buyer partner ID (if Display & Video 360) or Authorized Buyers client buyer account ID.
 optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the partnerClientId field is set. | 
hasPreferredDealsEnabled()
public boolean hasPreferredDealsEnabled()Output only. Whether the buyer is enabled for preferred deals.
 
 optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the preferredDealsEnabled field is set. | 
hasProgrammaticGuaranteedEnabled()
public boolean hasProgrammaticGuaranteedEnabled()Output only. Whether the buyer is enabled for programmatic guaranteed deals.
 
 optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the programmaticGuaranteedEnabled field is set. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeFrom(ProgrammaticBuyer other)
public ProgrammaticBuyer.Builder mergeFrom(ProgrammaticBuyer other)| Parameter | |
|---|---|
| Name | Description | 
| other | ProgrammaticBuyer | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProgrammaticBuyer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public ProgrammaticBuyer.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProgrammaticBuyer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
setAgency(boolean value)
public ProgrammaticBuyer.Builder setAgency(boolean value)Output only. Whether the buyer is an advertising agency.
 optional bool agency = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description | 
| value | booleanThe agency to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setBuyerAccountId(long value)
public ProgrammaticBuyer.Builder setBuyerAccountId(long value)Output only. The buyer account ID of the buyer.
 optional int64 buyer_account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | longThe buyerAccountId to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setDisplayName(String value)
public ProgrammaticBuyer.Builder setDisplayName(String value)Output only. The display name of the buyer.
 optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe displayName to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setDisplayNameBytes(ByteString value)
public ProgrammaticBuyer.Builder setDisplayNameBytes(ByteString value)Output only. The display name of the buyer.
 optional string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for displayName to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setField(Descriptors.FieldDescriptor field, Object value)
public ProgrammaticBuyer.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
setName(String value)
public ProgrammaticBuyer.Builder setName(String value) Identifier. The resource name of the ProgrammaticBuyer.
 Format:
 networks/{network_code}/programmaticBuyers/{buyer_account_id}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe name to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setNameBytes(ByteString value)
public ProgrammaticBuyer.Builder setNameBytes(ByteString value) Identifier. The resource name of the ProgrammaticBuyer.
 Format:
 networks/{network_code}/programmaticBuyers/{buyer_account_id}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for name to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setParentAccountId(long value)
public ProgrammaticBuyer.Builder setParentAccountId(long value)Output only. The ID of the programmatic buyer's sponsor. If the buyer has no sponsor, this field will be -1.
 optional int64 parent_account_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | longThe parentAccountId to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setPartnerClientId(String value)
public ProgrammaticBuyer.Builder setPartnerClientId(String value)Output only. ID of the Display & Video 360 client buyer partner ID (if Display & Video 360) or Authorized Buyers client buyer account ID.
 optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe partnerClientId to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setPartnerClientIdBytes(ByteString value)
public ProgrammaticBuyer.Builder setPartnerClientIdBytes(ByteString value)Output only. ID of the Display & Video 360 client buyer partner ID (if Display & Video 360) or Authorized Buyers client buyer account ID.
 optional string partner_client_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for partnerClientId to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setPreferredDealsEnabled(boolean value)
public ProgrammaticBuyer.Builder setPreferredDealsEnabled(boolean value)Output only. Whether the buyer is enabled for preferred deals.
 
 optional bool preferred_deals_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | booleanThe preferredDealsEnabled to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setProgrammaticGuaranteedEnabled(boolean value)
public ProgrammaticBuyer.Builder setProgrammaticGuaranteedEnabled(boolean value)Output only. Whether the buyer is enabled for programmatic guaranteed deals.
 
 optional bool programmatic_guaranteed_enabled = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | booleanThe programmaticGuaranteedEnabled to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | This builder for chaining. | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProgrammaticBuyer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |
setUnknownFields(UnknownFieldSet unknownFields)
public final ProgrammaticBuyer.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| ProgrammaticBuyer.Builder | |