Class AdCategory.Builder (0.62.0)

public static final class AdCategory.Builder extends GeneratedMessage.Builder<AdCategory.Builder> implements AdCategoryOrBuilder

An AdCategory is a read-only classification defined canonically by Google.

Protobuf type google.ads.admanager.v1.AdCategory

Implements

AdCategoryOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public AdCategory build()
Returns
Type Description
AdCategory

buildPartial()

public AdCategory buildPartial()
Returns
Type Description
AdCategory

clear()

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

clearName()

public AdCategory.Builder clearName()

Identifier. The resource name of the AdCategory. Format: networks/{network_code}/adCategories/{ad_category_id}

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

Returns
Type Description
AdCategory.Builder

This builder for chaining.

getDefaultInstanceForType()

public AdCategory getDefaultInstanceForType()
Returns
Type Description
AdCategory

getDescriptorForType()

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

getName()

public String getName()

Identifier. The resource name of the AdCategory. Format: networks/{network_code}/adCategories/{ad_category_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 AdCategory. Format: networks/{network_code}/adCategories/{ad_category_id}

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdCategory other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public AdCategory.Builder setName(String value)

Identifier. The resource name of the AdCategory. Format: networks/{network_code}/adCategories/{ad_category_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AdCategory.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AdCategory.Builder setNameBytes(ByteString value)

Identifier. The resource name of the AdCategory. Format: networks/{network_code}/adCategories/{ad_category_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AdCategory.Builder

This builder for chaining.