Class PolicyTopicEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PolicyTopicEntry.Builder>
com.google.ads.googleads.v18.common.PolicyTopicEntry.Builder
All Implemented Interfaces:
PolicyTopicEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PolicyTopicEntry

public static final class PolicyTopicEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PolicyTopicEntry.Builder> implements PolicyTopicEntryOrBuilder
 Policy finding attached to a resource (for example, alcohol policy associated
 with a site that sells alcohol).

 Each PolicyTopicEntry has a topic that indicates the specific ads policy
 the entry is about and a type to indicate the effect that the entry will have
 on serving. It may optionally have one or more evidences that indicate the
 reason for the finding. It may also optionally have one or more constraints
 that provide details about how serving may be restricted.
 
Protobuf type google.ads.googleads.v18.common.PolicyTopicEntry
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PolicyTopicEntry.Builder>
    • clear

      public PolicyTopicEntry.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<PolicyTopicEntry.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.GeneratedMessageV3.Builder<PolicyTopicEntry.Builder>
    • getDefaultInstanceForType

      public PolicyTopicEntry getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public PolicyTopicEntry.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<PolicyTopicEntry.Builder>
    • setField

      public PolicyTopicEntry.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<PolicyTopicEntry.Builder>
    • clearField

      public PolicyTopicEntry.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<PolicyTopicEntry.Builder>
    • clearOneof

      public PolicyTopicEntry.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<PolicyTopicEntry.Builder>
    • setRepeatedField

      public PolicyTopicEntry.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<PolicyTopicEntry.Builder>
    • addRepeatedField

      public PolicyTopicEntry.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<PolicyTopicEntry.Builder>
    • mergeFrom

      public PolicyTopicEntry.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<PolicyTopicEntry.Builder>
    • mergeFrom

      public PolicyTopicEntry.Builder mergeFrom(PolicyTopicEntry other)
    • isInitialized

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

      public PolicyTopicEntry.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<PolicyTopicEntry.Builder>
      Throws:
      IOException
    • hasTopic

      public boolean hasTopic()
       Policy topic this finding refers to. For example, "ALCOHOL",
       "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
       policy topics is not fixed for a particular API version and may change
       at any time.
       
      optional string topic = 5;
      Specified by:
      hasTopic in interface PolicyTopicEntryOrBuilder
      Returns:
      Whether the topic field is set.
    • getTopic

      public String getTopic()
       Policy topic this finding refers to. For example, "ALCOHOL",
       "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
       policy topics is not fixed for a particular API version and may change
       at any time.
       
      optional string topic = 5;
      Specified by:
      getTopic in interface PolicyTopicEntryOrBuilder
      Returns:
      The topic.
    • getTopicBytes

      public com.google.protobuf.ByteString getTopicBytes()
       Policy topic this finding refers to. For example, "ALCOHOL",
       "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
       policy topics is not fixed for a particular API version and may change
       at any time.
       
      optional string topic = 5;
      Specified by:
      getTopicBytes in interface PolicyTopicEntryOrBuilder
      Returns:
      The bytes for topic.
    • setTopic

      public PolicyTopicEntry.Builder setTopic(String value)
       Policy topic this finding refers to. For example, "ALCOHOL",
       "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
       policy topics is not fixed for a particular API version and may change
       at any time.
       
      optional string topic = 5;
      Parameters:
      value - The topic to set.
      Returns:
      This builder for chaining.
    • clearTopic

      public PolicyTopicEntry.Builder clearTopic()
       Policy topic this finding refers to. For example, "ALCOHOL",
       "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
       policy topics is not fixed for a particular API version and may change
       at any time.
       
      optional string topic = 5;
      Returns:
      This builder for chaining.
    • setTopicBytes

      public PolicyTopicEntry.Builder setTopicBytes(com.google.protobuf.ByteString value)
       Policy topic this finding refers to. For example, "ALCOHOL",
       "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
       policy topics is not fixed for a particular API version and may change
       at any time.
       
      optional string topic = 5;
      Parameters:
      value - The bytes for topic to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Describes the negative or positive effect this policy will have on serving.
       
      .google.ads.googleads.v18.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2;
      Specified by:
      getTypeValue in interface PolicyTopicEntryOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public PolicyTopicEntry.Builder setTypeValue(int value)
       Describes the negative or positive effect this policy will have on serving.
       
      .google.ads.googleads.v18.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       Describes the negative or positive effect this policy will have on serving.
       
      .google.ads.googleads.v18.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2;
      Specified by:
      getType in interface PolicyTopicEntryOrBuilder
      Returns:
      The type.
    • setType

       Describes the negative or positive effect this policy will have on serving.
       
      .google.ads.googleads.v18.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public PolicyTopicEntry.Builder clearType()
       Describes the negative or positive effect this policy will have on serving.
       
      .google.ads.googleads.v18.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2;
      Returns:
      This builder for chaining.
    • getEvidencesList

      public List<PolicyTopicEvidence> getEvidencesList()
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
      Specified by:
      getEvidencesList in interface PolicyTopicEntryOrBuilder
    • getEvidencesCount

      public int getEvidencesCount()
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
      Specified by:
      getEvidencesCount in interface PolicyTopicEntryOrBuilder
    • getEvidences

      public PolicyTopicEvidence getEvidences(int index)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
      Specified by:
      getEvidences in interface PolicyTopicEntryOrBuilder
    • setEvidences

      public PolicyTopicEntry.Builder setEvidences(int index, PolicyTopicEvidence value)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • setEvidences

      public PolicyTopicEntry.Builder setEvidences(int index, PolicyTopicEvidence.Builder builderForValue)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • addEvidences

      public PolicyTopicEntry.Builder addEvidences(PolicyTopicEvidence value)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • addEvidences

      public PolicyTopicEntry.Builder addEvidences(int index, PolicyTopicEvidence value)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • addEvidences

      public PolicyTopicEntry.Builder addEvidences(PolicyTopicEvidence.Builder builderForValue)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • addEvidences

      public PolicyTopicEntry.Builder addEvidences(int index, PolicyTopicEvidence.Builder builderForValue)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • addAllEvidences

      public PolicyTopicEntry.Builder addAllEvidences(Iterable<? extends PolicyTopicEvidence> values)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • clearEvidences

      public PolicyTopicEntry.Builder clearEvidences()
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • removeEvidences

      public PolicyTopicEntry.Builder removeEvidences(int index)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • getEvidencesBuilder

      public PolicyTopicEvidence.Builder getEvidencesBuilder(int index)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • getEvidencesOrBuilder

      public PolicyTopicEvidenceOrBuilder getEvidencesOrBuilder(int index)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
      Specified by:
      getEvidencesOrBuilder in interface PolicyTopicEntryOrBuilder
    • getEvidencesOrBuilderList

      public List<? extends PolicyTopicEvidenceOrBuilder> getEvidencesOrBuilderList()
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
      Specified by:
      getEvidencesOrBuilderList in interface PolicyTopicEntryOrBuilder
    • addEvidencesBuilder

      public PolicyTopicEvidence.Builder addEvidencesBuilder()
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • addEvidencesBuilder

      public PolicyTopicEvidence.Builder addEvidencesBuilder(int index)
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • getEvidencesBuilderList

      public List<PolicyTopicEvidence.Builder> getEvidencesBuilderList()
       Additional information that explains policy finding
       (for example, the brand name for a trademark finding).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicEvidence evidences = 3;
    • getConstraintsList

      public List<PolicyTopicConstraint> getConstraintsList()
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
      Specified by:
      getConstraintsList in interface PolicyTopicEntryOrBuilder
    • getConstraintsCount

      public int getConstraintsCount()
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
      Specified by:
      getConstraintsCount in interface PolicyTopicEntryOrBuilder
    • getConstraints

      public PolicyTopicConstraint getConstraints(int index)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
      Specified by:
      getConstraints in interface PolicyTopicEntryOrBuilder
    • setConstraints

      public PolicyTopicEntry.Builder setConstraints(int index, PolicyTopicConstraint value)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • setConstraints

      public PolicyTopicEntry.Builder setConstraints(int index, PolicyTopicConstraint.Builder builderForValue)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • addConstraints

      public PolicyTopicEntry.Builder addConstraints(PolicyTopicConstraint value)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • addConstraints

      public PolicyTopicEntry.Builder addConstraints(int index, PolicyTopicConstraint value)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • addConstraints

      public PolicyTopicEntry.Builder addConstraints(PolicyTopicConstraint.Builder builderForValue)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • addConstraints

      public PolicyTopicEntry.Builder addConstraints(int index, PolicyTopicConstraint.Builder builderForValue)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • addAllConstraints

      public PolicyTopicEntry.Builder addAllConstraints(Iterable<? extends PolicyTopicConstraint> values)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • clearConstraints

      public PolicyTopicEntry.Builder clearConstraints()
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • removeConstraints

      public PolicyTopicEntry.Builder removeConstraints(int index)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • getConstraintsBuilder

      public PolicyTopicConstraint.Builder getConstraintsBuilder(int index)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • getConstraintsOrBuilder

      public PolicyTopicConstraintOrBuilder getConstraintsOrBuilder(int index)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
      Specified by:
      getConstraintsOrBuilder in interface PolicyTopicEntryOrBuilder
    • getConstraintsOrBuilderList

      public List<? extends PolicyTopicConstraintOrBuilder> getConstraintsOrBuilderList()
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
      Specified by:
      getConstraintsOrBuilderList in interface PolicyTopicEntryOrBuilder
    • addConstraintsBuilder

      public PolicyTopicConstraint.Builder addConstraintsBuilder()
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • addConstraintsBuilder

      public PolicyTopicConstraint.Builder addConstraintsBuilder(int index)
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • getConstraintsBuilderList

      public List<PolicyTopicConstraint.Builder> getConstraintsBuilderList()
       Indicates how serving of this resource may be affected (for example, not
       serving in a country).
       
      repeated .google.ads.googleads.v18.common.PolicyTopicConstraint constraints = 4;
    • setUnknownFields

      public final PolicyTopicEntry.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<PolicyTopicEntry.Builder>
    • mergeUnknownFields

      public final PolicyTopicEntry.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<PolicyTopicEntry.Builder>