Class AdPartner.Builder (0.5.0)

public static final class AdPartner.Builder extends GeneratedMessageV3.Builder<AdPartner.Builder> implements AdPartnerOrBuilder

The AdPartner resource.

Protobuf type google.ads.admanager.v1.AdPartner

Implements

AdPartnerOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AdPartner.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdPartner.Builder
Overrides

build()

public AdPartner build()
Returns
Type Description
AdPartner

buildPartial()

public AdPartner buildPartial()
Returns
Type Description
AdPartner

clear()

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

clearField(Descriptors.FieldDescriptor field)

public AdPartner.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AdPartner.Builder
Overrides

clearName()

public AdPartner.Builder clearName()

Identifier. The resource name of the AdPartner. Format: networks/{network_code}/adPartners/{ad_partner_id}

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

Returns
Type Description
AdPartner.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AdPartner.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AdPartner.Builder
Overrides

clone()

public AdPartner.Builder clone()
Returns
Type Description
AdPartner.Builder
Overrides

getDefaultInstanceForType()

public AdPartner getDefaultInstanceForType()
Returns
Type Description
AdPartner

getDescriptorForType()

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

getName()

public String getName()

Identifier. The resource name of the AdPartner. Format: networks/{network_code}/adPartners/{ad_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 AdPartner. Format: networks/{network_code}/adPartners/{ad_partner_id}

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdPartner other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdPartner.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdPartner.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AdPartner.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdPartner.Builder
Overrides

setName(String value)

public AdPartner.Builder setName(String value)

Identifier. The resource name of the AdPartner. Format: networks/{network_code}/adPartners/{ad_partner_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AdPartner.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AdPartner.Builder setNameBytes(ByteString value)

Identifier. The resource name of the AdPartner. Format: networks/{network_code}/adPartners/{ad_partner_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AdPartner.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AdPartner.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AdPartner.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AdPartner.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdPartner.Builder
Overrides