public static final class TaxonomyCategory.Builder extends GeneratedMessageV3.Builder<TaxonomyCategory.Builder> implements TaxonomyCategoryOrBuilder The TaxonomyCategory resource.
Protobuf type google.ads.admanager.v1.TaxonomyCategory
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TaxonomyCategory.BuilderImplements
TaxonomyCategoryOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
longThe 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 |
|
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 |
|
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.
optional 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 |
|
clearGroupingOnly()
public TaxonomyCategory.Builder clearGroupingOnly() Output only. Whether this TaxonomyCategory only serves to group its
children.
optional 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 |
|
clearParentTaxonomyCategoryId()
public TaxonomyCategory.Builder clearParentTaxonomyCategoryId() Output only. The ID of the parent category this TaxonomyCategory descends
from.
optional 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.
optional 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.
optional .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 |
|
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 |
intThe 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 |
intThe 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 |
intThe 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 |
|
getDisplayName()
public String getDisplayName() Output only. Display name of the TaxonomyCategory.
optional 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.
optional 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.
optional 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.
optional 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.
optional 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.
optional .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.
optional .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. |
hasDisplayName()
public boolean hasDisplayName() Output only. Display name of the TaxonomyCategory.
optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the displayName field is set. |
hasGroupingOnly()
public boolean hasGroupingOnly() Output only. Whether this TaxonomyCategory only serves to group its
children.
optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the groupingOnly field is set. |
hasParentTaxonomyCategoryId()
public boolean hasParentTaxonomyCategoryId() Output only. The ID of the parent category this TaxonomyCategory descends
from.
optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the parentTaxonomyCategoryId field is set. |
hasTaxonomyCategoryId()
public boolean hasTaxonomyCategoryId() Output only. TaxonomyCategory ID.
optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the taxonomyCategoryId field is set. |
hasTaxonomyType()
public boolean hasTaxonomyType() Output only. The taxonomy that this TaxonomyCategory belongs to.
optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the taxonomyType field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TaxonomyCategory.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TaxonomyCategory.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TaxonomyCategory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
TaxonomyCategory.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe 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 |
intThe index to set the value at. |
value |
longThe 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.
optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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.
optional string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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 |
|
setGroupingOnly(boolean value)
public TaxonomyCategory.Builder setGroupingOnly(boolean value) Output only. Whether this TaxonomyCategory only serves to group its
children.
optional bool grouping_only = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe 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 |
StringThe 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 |
ByteStringThe 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.
optional int64 parent_taxonomy_category_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe 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 |
|
setTaxonomyCategoryId(long value)
public TaxonomyCategory.Builder setTaxonomyCategoryId(long value) Output only. TaxonomyCategory ID.
optional int64 taxonomy_category_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe 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.
optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
TaxonomyTypeEnum.TaxonomyTypeThe 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.
optional .google.ads.admanager.v1.TaxonomyTypeEnum.TaxonomyType taxonomy_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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 |
|