Class TopicConstant.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
- com.google.ads.googleads.v14.resources.TopicConstant.Builder
-
- All Implemented Interfaces:
TopicConstantOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- TopicConstant
public static final class TopicConstant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder> implements TopicConstantOrBuilder
Use topics to target or exclude placements in the Google Display Network based on the category into which the placement falls (for example, "Pets & Animals/Pets/Dogs").
Protobuf typegoogle.ads.googleads.v14.resources.TopicConstant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicConstant.BuilderaddAllPath(java.lang.Iterable<java.lang.String> values)Output only.TopicConstant.BuilderaddPath(java.lang.String value)Output only.TopicConstant.BuilderaddPathBytes(com.google.protobuf.ByteString value)Output only.TopicConstant.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TopicConstantbuild()TopicConstantbuildPartial()TopicConstant.Builderclear()TopicConstant.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TopicConstant.BuilderclearId()Output only.TopicConstant.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TopicConstant.BuilderclearPath()Output only.TopicConstant.BuilderclearResourceName()Output only.TopicConstant.BuilderclearTopicConstantParent()Output only.TopicConstant.Builderclone()TopicConstantgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetId()Output only.java.lang.StringgetPath(int index)Output only.com.google.protobuf.ByteStringgetPathBytes(int index)Output only.intgetPathCount()Output only.com.google.protobuf.ProtocolStringListgetPathList()Output only.java.lang.StringgetResourceName()Output only.com.google.protobuf.ByteStringgetResourceNameBytes()Output only.java.lang.StringgetTopicConstantParent()Output only.com.google.protobuf.ByteStringgetTopicConstantParentBytes()Output only.booleanhasId()Output only.booleanhasTopicConstantParent()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TopicConstant.BuildermergeFrom(TopicConstant other)TopicConstant.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TopicConstant.BuildermergeFrom(com.google.protobuf.Message other)TopicConstant.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TopicConstant.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TopicConstant.BuildersetId(long value)Output only.TopicConstant.BuildersetPath(int index, java.lang.String value)Output only.TopicConstant.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)TopicConstant.BuildersetResourceName(java.lang.String value)Output only.TopicConstant.BuildersetResourceNameBytes(com.google.protobuf.ByteString value)Output only.TopicConstant.BuildersetTopicConstantParent(java.lang.String value)Output only.TopicConstant.BuildersetTopicConstantParentBytes(com.google.protobuf.ByteString value)Output only.TopicConstant.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
clear
public TopicConstant.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
getDefaultInstanceForType
public TopicConstant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TopicConstant build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TopicConstant buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TopicConstant.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
setField
public TopicConstant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
clearField
public TopicConstant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
clearOneof
public TopicConstant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
setRepeatedField
public TopicConstant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
addRepeatedField
public TopicConstant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
mergeFrom
public TopicConstant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TopicConstant.Builder>
-
mergeFrom
public TopicConstant.Builder mergeFrom(TopicConstant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
mergeFrom
public TopicConstant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TopicConstant.Builder>- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Output only. The resource name of the topic constant. topic constant resource names have the form: `topicConstants/{topic_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceTopicConstantOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Output only. The resource name of the topic constant. topic constant resource names have the form: `topicConstants/{topic_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceTopicConstantOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
public TopicConstant.Builder setResourceName(java.lang.String value)
Output only. The resource name of the topic constant. topic constant resource names have the form: `topicConstants/{topic_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
public TopicConstant.Builder clearResourceName()
Output only. The resource name of the topic constant. topic constant resource names have the form: `topicConstants/{topic_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
public TopicConstant.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the topic constant. topic constant resource names have the form: `topicConstants/{topic_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
Output only. The ID of the topic.
optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIdin interfaceTopicConstantOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
Output only. The ID of the topic.
optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceTopicConstantOrBuilder- Returns:
- The id.
-
setId
public TopicConstant.Builder setId(long value)
Output only. The ID of the topic.
optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public TopicConstant.Builder clearId()
Output only. The ID of the topic.
optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasTopicConstantParent
public boolean hasTopicConstantParent()
Output only. Resource name of parent of the topic constant.
optional string topic_constant_parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
hasTopicConstantParentin interfaceTopicConstantOrBuilder- Returns:
- Whether the topicConstantParent field is set.
-
getTopicConstantParent
public java.lang.String getTopicConstantParent()
Output only. Resource name of parent of the topic constant.
optional string topic_constant_parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getTopicConstantParentin interfaceTopicConstantOrBuilder- Returns:
- The topicConstantParent.
-
getTopicConstantParentBytes
public com.google.protobuf.ByteString getTopicConstantParentBytes()
Output only. Resource name of parent of the topic constant.
optional string topic_constant_parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getTopicConstantParentBytesin interfaceTopicConstantOrBuilder- Returns:
- The bytes for topicConstantParent.
-
setTopicConstantParent
public TopicConstant.Builder setTopicConstantParent(java.lang.String value)
Output only. Resource name of parent of the topic constant.
optional string topic_constant_parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The topicConstantParent to set.- Returns:
- This builder for chaining.
-
clearTopicConstantParent
public TopicConstant.Builder clearTopicConstantParent()
Output only. Resource name of parent of the topic constant.
optional string topic_constant_parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTopicConstantParentBytes
public TopicConstant.Builder setTopicConstantParentBytes(com.google.protobuf.ByteString value)
Output only. Resource name of parent of the topic constant.
optional string topic_constant_parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for topicConstantParent to set.- Returns:
- This builder for chaining.
-
getPathList
public com.google.protobuf.ProtocolStringList getPathList()
Output only. The category to target or exclude. Each subsequent element in the array describes a more specific sub-category. For example, {"Pets & Animals", "Pets", "Dogs"} represents the "Pets & Animals/Pets/Dogs" category. List of available topic categories at https://developers.google.com/google-ads/api/reference/data/verticalsrepeated string path = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPathListin interfaceTopicConstantOrBuilder- Returns:
- A list containing the path.
-
getPathCount
public int getPathCount()
Output only. The category to target or exclude. Each subsequent element in the array describes a more specific sub-category. For example, {"Pets & Animals", "Pets", "Dogs"} represents the "Pets & Animals/Pets/Dogs" category. List of available topic categories at https://developers.google.com/google-ads/api/reference/data/verticalsrepeated string path = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPathCountin interfaceTopicConstantOrBuilder- Returns:
- The count of path.
-
getPath
public java.lang.String getPath(int index)
Output only. The category to target or exclude. Each subsequent element in the array describes a more specific sub-category. For example, {"Pets & Animals", "Pets", "Dogs"} represents the "Pets & Animals/Pets/Dogs" category. List of available topic categories at https://developers.google.com/google-ads/api/reference/data/verticalsrepeated string path = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPathin interfaceTopicConstantOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The path at the given index.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes(int index)
Output only. The category to target or exclude. Each subsequent element in the array describes a more specific sub-category. For example, {"Pets & Animals", "Pets", "Dogs"} represents the "Pets & Animals/Pets/Dogs" category. List of available topic categories at https://developers.google.com/google-ads/api/reference/data/verticalsrepeated string path = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPathBytesin interfaceTopicConstantOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the path at the given index.
-
setPath
public TopicConstant.Builder setPath(int index, java.lang.String value)
Output only. The category to target or exclude. Each subsequent element in the array describes a more specific sub-category. For example, {"Pets & Animals", "Pets", "Dogs"} represents the "Pets & Animals/Pets/Dogs" category. List of available topic categories at https://developers.google.com/google-ads/api/reference/data/verticalsrepeated string path = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index to set the value at.value- The path to set.- Returns:
- This builder for chaining.
-
addPath
public TopicConstant.Builder addPath(java.lang.String value)
Output only. The category to target or exclude. Each subsequent element in the array describes a more specific sub-category. For example, {"Pets & Animals", "Pets", "Dogs"} represents the "Pets & Animals/Pets/Dogs" category. List of available topic categories at https://developers.google.com/google-ads/api/reference/data/verticalsrepeated string path = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The path to add.- Returns:
- This builder for chaining.
-
addAllPath
public TopicConstant.Builder addAllPath(java.lang.Iterable<java.lang.String> values)
Output only. The category to target or exclude. Each subsequent element in the array describes a more specific sub-category. For example, {"Pets & Animals", "Pets", "Dogs"} represents the "Pets & Animals/Pets/Dogs" category. List of available topic categories at https://developers.google.com/google-ads/api/reference/data/verticalsrepeated string path = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
values- The path to add.- Returns:
- This builder for chaining.
-
clearPath
public TopicConstant.Builder clearPath()
Output only. The category to target or exclude. Each subsequent element in the array describes a more specific sub-category. For example, {"Pets & Animals", "Pets", "Dogs"} represents the "Pets & Animals/Pets/Dogs" category. List of available topic categories at https://developers.google.com/google-ads/api/reference/data/verticalsrepeated string path = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
addPathBytes
public TopicConstant.Builder addPathBytes(com.google.protobuf.ByteString value)
Output only. The category to target or exclude. Each subsequent element in the array describes a more specific sub-category. For example, {"Pets & Animals", "Pets", "Dogs"} represents the "Pets & Animals/Pets/Dogs" category. List of available topic categories at https://developers.google.com/google-ads/api/reference/data/verticalsrepeated string path = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes of the path to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TopicConstant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
mergeUnknownFields
public final TopicConstant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicConstant.Builder>
-
-