Class IpBlockInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IpBlockInfo.Builder>
com.google.ads.googleads.v23.common.IpBlockInfo.Builder
All Implemented Interfaces:
IpBlockInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IpBlockInfo

public static final class IpBlockInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<IpBlockInfo.Builder> implements IpBlockInfoOrBuilder
 An IpBlock criterion used for excluding IP addresses.

 We support excluding individual IP addresses or CIDR blocks. Create one
 IpBlockInfo criterion for each individual IP address or CIDR block you want
 to exclude. You can exclude up to 500 IP addresses per campaign. For more
 details, see
 [Exclude IP addresses](//support.google.com/google-ads/answer/2456098).

 IPv4 examples:

 * Individual address: 192.168.0.1

 * Individual address as CIDR block: 192.168.0.1/32

 * CIDR block: 192.168.0.0/24

 IPv6 examples:

 * Individual address: 2001:db8:a0b:12f0::1

 * Individual address as CIDR block: 2001:db8:a0b:12f0::1/128

 * CIDR block: 2001:db8::/48
 
Protobuf type google.ads.googleads.v23.common.IpBlockInfo
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The IP address or the CIDR block to be excluded.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The IP address or the CIDR block to be excluded.
    com.google.protobuf.ByteString
    The IP address or the CIDR block to be excluded.
    boolean
    The IP address or the CIDR block to be excluded.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The IP address or the CIDR block to be excluded.
    setIpAddressBytes(com.google.protobuf.ByteString value)
    The IP address or the CIDR block to be excluded.

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

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<IpBlockInfo.Builder>
    • clear

      public IpBlockInfo.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.GeneratedMessage.Builder<IpBlockInfo.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<IpBlockInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public IpBlockInfo.Builder mergeFrom(IpBlockInfo other)
    • isInitialized

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

      public IpBlockInfo.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<IpBlockInfo.Builder>
      Throws:
      IOException
    • hasIpAddress

      public boolean hasIpAddress()
       The IP address or the CIDR block to be excluded.
       
      optional string ip_address = 2;
      Specified by:
      hasIpAddress in interface IpBlockInfoOrBuilder
      Returns:
      Whether the ipAddress field is set.
    • getIpAddress

      public String getIpAddress()
       The IP address or the CIDR block to be excluded.
       
      optional string ip_address = 2;
      Specified by:
      getIpAddress in interface IpBlockInfoOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       The IP address or the CIDR block to be excluded.
       
      optional string ip_address = 2;
      Specified by:
      getIpAddressBytes in interface IpBlockInfoOrBuilder
      Returns:
      The bytes for ipAddress.
    • setIpAddress

      public IpBlockInfo.Builder setIpAddress(String value)
       The IP address or the CIDR block to be excluded.
       
      optional string ip_address = 2;
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

      public IpBlockInfo.Builder clearIpAddress()
       The IP address or the CIDR block to be excluded.
       
      optional string ip_address = 2;
      Returns:
      This builder for chaining.
    • setIpAddressBytes

      public IpBlockInfo.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
       The IP address or the CIDR block to be excluded.
       
      optional string ip_address = 2;
      Parameters:
      value - The bytes for ipAddress to set.
      Returns:
      This builder for chaining.