Class TopicInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
com.google.ads.googleads.v21.common.TopicInfo.Builder
All Implemented Interfaces:
TopicInfoOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, 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.v21.common.TopicInfo
  • Method Summary

    Modifier and Type
    Method
    Description
    The category to target or exclude.
    addPath(String value)
    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)
     
     
     
     
    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.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getPath(int index)
    The category to target or exclude.
    com.google.protobuf.ByteString
    getPathBytes(int index)
    The category to target or exclude.
    int
    The category to target or exclude.
    com.google.protobuf.ProtocolStringList
    The category to target or exclude.
    The Topic Constant resource name.
    com.google.protobuf.ByteString
    The Topic Constant resource name.
    boolean
    The Topic Constant resource name.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setPath(int index, String value)
    The category to target or exclude.
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    The Topic Constant resource name.
    setTopicConstantBytes(com.google.protobuf.ByteString value)
    The Topic Constant resource name.
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

    getParentForChildren

    Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder

    addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension, setExtension, setExtension

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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

    Methods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder

    getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtension

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
    • clear

      public TopicInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TopicInfo.Builder>
    • getDefaultInstanceForType

      public TopicInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TopicInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TopicInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public TopicInfo.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
    • setField

      public TopicInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
    • clearField

      public TopicInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
    • clearOneof

      public TopicInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
    • setRepeatedField

      public TopicInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
    • addRepeatedField

      public TopicInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
    • mergeFrom

      public TopicInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TopicInfo.Builder>
    • mergeFrom

      public TopicInfo.Builder mergeFrom(TopicInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,TopicInfo.Builder>
    • mergeFrom

      public TopicInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasTopicConstant in interface TopicInfoOrBuilder
      Returns:
      Whether the topicConstant field is set.
    • getTopicConstant

      public String getTopicConstant()
       The Topic Constant resource name.
       
      optional string topic_constant = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getTopicConstant in interface TopicInfoOrBuilder
      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:
      getTopicConstantBytes in interface TopicInfoOrBuilder
      Returns:
      The bytes for topicConstant.
    • setTopicConstant

      public TopicInfo.Builder setTopicConstant(String value)
       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

      public TopicInfo.Builder clearTopicConstant()
       The Topic Constant resource name.
       
      optional string topic_constant = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setTopicConstantBytes

      public TopicInfo.Builder setTopicConstantBytes(com.google.protobuf.ByteString value)
       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:
      getPathList in interface TopicInfoOrBuilder
      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:
      getPathCount in interface TopicInfoOrBuilder
      Returns:
      The count of path.
    • getPath

      public String getPath(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:
      getPath in interface TopicInfoOrBuilder
      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:
      getPathBytes in interface TopicInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the path at the given index.
    • setPath

      public TopicInfo.Builder setPath(int index, String value)
       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

      public TopicInfo.Builder addPath(String value)
       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

      public TopicInfo.Builder addAllPath(Iterable<String> values)
       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

      public TopicInfo.Builder 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

      public TopicInfo.Builder addPathBytes(com.google.protobuf.ByteString value)
       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

      public final TopicInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>
    • mergeUnknownFields

      public final TopicInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TopicInfo.Builder>