Class PolicyTopicEvidence.TextList.Builder

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

public static final class PolicyTopicEvidence.TextList.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PolicyTopicEvidence.TextList.Builder> implements PolicyTopicEvidence.TextListOrBuilder
 A list of fragments of text that violated a policy.
 
Protobuf type google.ads.googleads.v18.common.PolicyTopicEvidence.TextList
  • 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<PolicyTopicEvidence.TextList.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<PolicyTopicEvidence.TextList.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<PolicyTopicEvidence.TextList.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PolicyTopicEvidence.TextList buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<PolicyTopicEvidence.TextList.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public PolicyTopicEvidence.TextList.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<PolicyTopicEvidence.TextList.Builder>
      Throws:
      IOException
    • getTextsList

      public com.google.protobuf.ProtocolStringList getTextsList()
       The fragments of text from the resource that caused the policy finding.
       
      repeated string texts = 2;
      Specified by:
      getTextsList in interface PolicyTopicEvidence.TextListOrBuilder
      Returns:
      A list containing the texts.
    • getTextsCount

      public int getTextsCount()
       The fragments of text from the resource that caused the policy finding.
       
      repeated string texts = 2;
      Specified by:
      getTextsCount in interface PolicyTopicEvidence.TextListOrBuilder
      Returns:
      The count of texts.
    • getTexts

      public String getTexts(int index)
       The fragments of text from the resource that caused the policy finding.
       
      repeated string texts = 2;
      Specified by:
      getTexts in interface PolicyTopicEvidence.TextListOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The texts at the given index.
    • getTextsBytes

      public com.google.protobuf.ByteString getTextsBytes(int index)
       The fragments of text from the resource that caused the policy finding.
       
      repeated string texts = 2;
      Specified by:
      getTextsBytes in interface PolicyTopicEvidence.TextListOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the texts at the given index.
    • setTexts

      public PolicyTopicEvidence.TextList.Builder setTexts(int index, String value)
       The fragments of text from the resource that caused the policy finding.
       
      repeated string texts = 2;
      Parameters:
      index - The index to set the value at.
      value - The texts to set.
      Returns:
      This builder for chaining.
    • addTexts

       The fragments of text from the resource that caused the policy finding.
       
      repeated string texts = 2;
      Parameters:
      value - The texts to add.
      Returns:
      This builder for chaining.
    • addAllTexts

       The fragments of text from the resource that caused the policy finding.
       
      repeated string texts = 2;
      Parameters:
      values - The texts to add.
      Returns:
      This builder for chaining.
    • clearTexts

       The fragments of text from the resource that caused the policy finding.
       
      repeated string texts = 2;
      Returns:
      This builder for chaining.
    • addTextsBytes

      public PolicyTopicEvidence.TextList.Builder addTextsBytes(com.google.protobuf.ByteString value)
       The fragments of text from the resource that caused the policy finding.
       
      repeated string texts = 2;
      Parameters:
      value - The bytes of the texts to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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