Class TaxonomyCategory.Builder (0.13.0)

public static final class TaxonomyCategory.Builder extends GeneratedMessageV3.Builder<TaxonomyCategory.Builder> implements TaxonomyCategoryOrBuilder

The TaxonomyCategory resource.

Protobuf type google.ads.admanager.v1.TaxonomyCategory

Static Methods

getDescriptor()

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

Methods

addAllAncestorNames(Iterable<String> values)

public TaxonomyCategory.Builder addAllAncestorNames(Iterable<String> values)

Output only. The list of names of the ancestors of this TaxonomyCategory.

repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The ancestorNames to add.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

addAllAncestorTaxonomyCategoryIds(Iterable<? extends Long> values)

public TaxonomyCategory.Builder addAllAncestorTaxonomyCategoryIds(Iterable<? extends Long> values)

Output only. The list of IDs of the ancestors of this TaxonomyCategory.

repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends java.lang.Long>

The ancestorTaxonomyCategoryIds to add.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

addAncestorNames(String value)

public TaxonomyCategory.Builder addAncestorNames(String value)

Output only. The list of names of the ancestors of this TaxonomyCategory.

repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The ancestorNames to add.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

addAncestorNamesBytes(ByteString value)

public TaxonomyCategory.Builder addAncestorNamesBytes(ByteString value)

Output only. The list of names of the ancestors of this TaxonomyCategory.

repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the ancestorNames to add.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

addAncestorTaxonomyCategoryIds(long value)

public TaxonomyCategory.Builder addAncestorTaxonomyCategoryIds(long value)

Output only. The list of IDs of the ancestors of this TaxonomyCategory.

repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The ancestorTaxonomyCategoryIds to add.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TaxonomyCategory build()
Returns
Type Description
TaxonomyCategory

buildPartial()

public TaxonomyCategory buildPartial()
Returns
Type Description
TaxonomyCategory

clear()

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

clearAncestorNames()

public TaxonomyCategory.Builder clearAncestorNames()

Output only. The list of names of the ancestors of this TaxonomyCategory.

repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

clearAncestorTaxonomyCategoryIds()

public TaxonomyCategory.Builder clearAncestorTaxonomyCategoryIds()

Output only. The list of IDs of the ancestors of this TaxonomyCategory.

repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

clearDisplayName()

public TaxonomyCategory.Builder clearDisplayName()

Output only. Display name of the TaxonomyCategory.

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

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGroupingOnly()

public TaxonomyCategory.Builder clearGroupingOnly()

Output only. Whether this TaxonomyCategory only serves to group its children.

bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

clearName()

public TaxonomyCategory.Builder clearName()

Identifier. The resource name of the TaxonomyCategory. Format: networks/{network_code}/taxonomyCategories/{taxonomy_category_id}

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

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParentTaxonomyCategoryId()

public TaxonomyCategory.Builder clearParentTaxonomyCategoryId()

Output only. The ID of the parent category this TaxonomyCategory descends from.

int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

clearTaxonomyCategoryId()

public TaxonomyCategory.Builder clearTaxonomyCategoryId()

Output only. TaxonomyCategory ID.

int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

clearTaxonomyType()

public TaxonomyCategory.Builder clearTaxonomyType()

Output only. The taxonomy that this TaxonomyCategory belongs to.

.google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

clone()

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

getAncestorNames(int index)

public String getAncestorNames(int index)

Output only. The list of names of the ancestors of this TaxonomyCategory.

repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ancestorNames at the given index.

getAncestorNamesBytes(int index)

public ByteString getAncestorNamesBytes(int index)

Output only. The list of names of the ancestors of this TaxonomyCategory.

repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ancestorNames at the given index.

getAncestorNamesCount()

public int getAncestorNamesCount()

Output only. The list of names of the ancestors of this TaxonomyCategory.

repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of ancestorNames.

getAncestorNamesList()

public ProtocolStringList getAncestorNamesList()

Output only. The list of names of the ancestors of this TaxonomyCategory.

repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the ancestorNames.

getAncestorTaxonomyCategoryIds(int index)

public long getAncestorTaxonomyCategoryIds(int index)

Output only. The list of IDs of the ancestors of this TaxonomyCategory.

repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The ancestorTaxonomyCategoryIds at the given index.

getAncestorTaxonomyCategoryIdsCount()

public int getAncestorTaxonomyCategoryIdsCount()

Output only. The list of IDs of the ancestors of this TaxonomyCategory.

repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of ancestorTaxonomyCategoryIds.

getAncestorTaxonomyCategoryIdsList()

public List<Long> getAncestorTaxonomyCategoryIdsList()

Output only. The list of IDs of the ancestors of this TaxonomyCategory.

repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Long>

A list containing the ancestorTaxonomyCategoryIds.

getDefaultInstanceForType()

public TaxonomyCategory getDefaultInstanceForType()
Returns
Type Description
TaxonomyCategory

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. Display name of the TaxonomyCategory.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. Display name of the TaxonomyCategory.

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

Returns
Type Description
ByteString

The bytes for displayName.

getGroupingOnly()

public boolean getGroupingOnly()

Output only. Whether this TaxonomyCategory only serves to group its children.

bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The groupingOnly.

getName()

public String getName()

Identifier. The resource name of the TaxonomyCategory. Format: networks/{network_code}/taxonomyCategories/{taxonomy_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 TaxonomyCategory. Format: networks/{network_code}/taxonomyCategories/{taxonomy_category_id}

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

Returns
Type Description
ByteString

The bytes for name.

getParentTaxonomyCategoryId()

public long getParentTaxonomyCategoryId()

Output only. The ID of the parent category this TaxonomyCategory descends from.

int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The parentTaxonomyCategoryId.

getTaxonomyCategoryId()

public long getTaxonomyCategoryId()

Output only. TaxonomyCategory ID.

int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The taxonomyCategoryId.

getTaxonomyType()

public TaxonomyTypeEnum.TaxonomyType getTaxonomyType()

Output only. The taxonomy that this TaxonomyCategory belongs to.

.google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaxonomyTypeEnum.TaxonomyType

The taxonomyType.

getTaxonomyTypeValue()

public int getTaxonomyTypeValue()

Output only. The taxonomy that this TaxonomyCategory belongs to.

.google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for taxonomyType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TaxonomyCategory other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAncestorNames(int index, String value)

public TaxonomyCategory.Builder setAncestorNames(int index, String value)

Output only. The list of names of the ancestors of this TaxonomyCategory.

repeated string ancestor_names = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The ancestorNames to set.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

setAncestorTaxonomyCategoryIds(int index, long value)

public TaxonomyCategory.Builder setAncestorTaxonomyCategoryIds(int index, long value)

Output only. The list of IDs of the ancestors of this TaxonomyCategory.

repeated int64 ancestor_taxonomy_category_ids = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value long

The ancestorTaxonomyCategoryIds to set.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

setDisplayName(String value)

public TaxonomyCategory.Builder setDisplayName(String value)

Output only. Display name of the TaxonomyCategory.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public TaxonomyCategory.Builder setDisplayNameBytes(ByteString value)

Output only. Display name of the TaxonomyCategory.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGroupingOnly(boolean value)

public TaxonomyCategory.Builder setGroupingOnly(boolean value)

Output only. Whether this TaxonomyCategory only serves to group its children.

bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The groupingOnly to set.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

setName(String value)

public TaxonomyCategory.Builder setName(String value)

Identifier. The resource name of the TaxonomyCategory. Format: networks/{network_code}/taxonomyCategories/{taxonomy_category_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TaxonomyCategory.Builder setNameBytes(ByteString value)

Identifier. The resource name of the TaxonomyCategory. Format: networks/{network_code}/taxonomyCategories/{taxonomy_category_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

setParentTaxonomyCategoryId(long value)

public TaxonomyCategory.Builder setParentTaxonomyCategoryId(long value)

Output only. The ID of the parent category this TaxonomyCategory descends from.

int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The parentTaxonomyCategoryId to set.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

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

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

setTaxonomyCategoryId(long value)

public TaxonomyCategory.Builder setTaxonomyCategoryId(long value)

Output only. TaxonomyCategory ID.

int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The taxonomyCategoryId to set.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

setTaxonomyType(TaxonomyTypeEnum.TaxonomyType value)

public TaxonomyCategory.Builder setTaxonomyType(TaxonomyTypeEnum.TaxonomyType value)

Output only. The taxonomy that this TaxonomyCategory belongs to.

.google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TaxonomyTypeEnum.TaxonomyType

The taxonomyType to set.

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

setTaxonomyTypeValue(int value)

public TaxonomyCategory.Builder setTaxonomyTypeValue(int value)

Output only. The taxonomy that this TaxonomyCategory belongs to.

.google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
TaxonomyCategory.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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