Class TopicInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
com.google.ads.googleads.v18.common.TopicInfo.Builder
- All Implemented Interfaces:
TopicInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TopicInfo
public static final class TopicInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
implements TopicInfoOrBuilder
A topic criterion. 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 type
google.ads.googleads.v18.common.TopicInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllPath(Iterable<String> values) The category to target or exclude.The category to target or exclude.addPathBytes(com.google.protobuf.ByteString value) The category to target or exclude.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The category to target or exclude.The Topic Constant resource name.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPath(int index) The category to target or exclude.com.google.protobuf.ByteStringgetPathBytes(int index) The category to target or exclude.intThe category to target or exclude.com.google.protobuf.ProtocolStringListThe category to target or exclude.The Topic Constant resource name.com.google.protobuf.ByteStringThe Topic Constant resource name.booleanThe Topic Constant resource name.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final TopicInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The category to target or exclude.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTopicConstant(String value) The Topic Constant resource name.setTopicConstantBytes(com.google.protobuf.ByteString value) The Topic Constant resource name.final TopicInfo.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<TopicInfo.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<TopicInfo.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<TopicInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<TopicInfo.Builder>
-
setField
public TopicInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
-
setRepeatedField
public TopicInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
-
addRepeatedField
public TopicInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TopicInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
-
mergeFrom
public TopicInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TopicInfo.Builder>- Throws:
IOException
-
hasTopicConstant
public boolean hasTopicConstant()The Topic Constant resource name.
optional string topic_constant = 3 [(.google.api.resource_reference) = { ... }- Specified by:
hasTopicConstantin interfaceTopicInfoOrBuilder- Returns:
- Whether the topicConstant field is set.
-
getTopicConstant
The Topic Constant resource name.
optional string topic_constant = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getTopicConstantin interfaceTopicInfoOrBuilder- Returns:
- The topicConstant.
-
getTopicConstantBytes
public com.google.protobuf.ByteString getTopicConstantBytes()The Topic Constant resource name.
optional string topic_constant = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getTopicConstantBytesin interfaceTopicInfoOrBuilder- Returns:
- The bytes for topicConstant.
-
setTopicConstant
The Topic Constant resource name.
optional string topic_constant = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The topicConstant to set.- Returns:
- This builder for chaining.
-
clearTopicConstant
The Topic Constant resource name.
optional string topic_constant = 3 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTopicConstantBytes
The Topic Constant resource name.
optional string topic_constant = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for topicConstant to set.- Returns:
- This builder for chaining.
-
getPathList
public com.google.protobuf.ProtocolStringList getPathList()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.
repeated string path = 4;- Specified by:
getPathListin interfaceTopicInfoOrBuilder- Returns:
- A list containing the path.
-
getPathCount
public int getPathCount()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.
repeated string path = 4;- Specified by:
getPathCountin interfaceTopicInfoOrBuilder- Returns:
- The count of path.
-
getPath
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.
repeated string path = 4;- Specified by:
getPathin interfaceTopicInfoOrBuilder- 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) 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.
repeated string path = 4;- Specified by:
getPathBytesin interfaceTopicInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the path at the given index.
-
setPath
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.
repeated string path = 4;- Parameters:
index- The index to set the value at.value- The path to set.- Returns:
- This builder for chaining.
-
addPath
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.
repeated string path = 4;- Parameters:
value- The path to add.- Returns:
- This builder for chaining.
-
addAllPath
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.
repeated string path = 4;- Parameters:
values- The path to add.- Returns:
- This builder for chaining.
-
clearPath
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.
repeated string path = 4;- Returns:
- This builder for chaining.
-
addPathBytes
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.
repeated string path = 4;- Parameters:
value- The bytes of the path to add.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
-
mergeUnknownFields
public final TopicInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
-