Class TargetRestrictionOperation.Builder

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

public static final class TargetRestrictionOperation.Builder extends com.google.protobuf.GeneratedMessage.Builder<TargetRestrictionOperation.Builder> implements TargetRestrictionOperationOrBuilder
 Operation to be performed on a target restriction list in a mutate.
 
Protobuf type google.ads.googleads.v22.common.TargetRestrictionOperation
  • 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<TargetRestrictionOperation.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<TargetRestrictionOperation.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<TargetRestrictionOperation.Builder>
    • getDefaultInstanceForType

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

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

    • isInitialized

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

      public TargetRestrictionOperation.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<TargetRestrictionOperation.Builder>
      Throws:
      IOException
    • getOperatorValue

      public int getOperatorValue()
       Type of list operation to perform.
       
      .google.ads.googleads.v22.common.TargetRestrictionOperation.Operator operator = 1;
      Specified by:
      getOperatorValue in interface TargetRestrictionOperationOrBuilder
      Returns:
      The enum numeric value on the wire for operator.
    • setOperatorValue

      public TargetRestrictionOperation.Builder setOperatorValue(int value)
       Type of list operation to perform.
       
      .google.ads.googleads.v22.common.TargetRestrictionOperation.Operator operator = 1;
      Parameters:
      value - The enum numeric value on the wire for operator to set.
      Returns:
      This builder for chaining.
    • getOperator

       Type of list operation to perform.
       
      .google.ads.googleads.v22.common.TargetRestrictionOperation.Operator operator = 1;
      Specified by:
      getOperator in interface TargetRestrictionOperationOrBuilder
      Returns:
      The operator.
    • setOperator

       Type of list operation to perform.
       
      .google.ads.googleads.v22.common.TargetRestrictionOperation.Operator operator = 1;
      Parameters:
      value - The operator to set.
      Returns:
      This builder for chaining.
    • clearOperator

      public TargetRestrictionOperation.Builder clearOperator()
       Type of list operation to perform.
       
      .google.ads.googleads.v22.common.TargetRestrictionOperation.Operator operator = 1;
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       The target restriction being added to or removed from the list.
       
      .google.ads.googleads.v22.common.TargetRestriction value = 2;
      Specified by:
      hasValue in interface TargetRestrictionOperationOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public TargetRestriction getValue()
       The target restriction being added to or removed from the list.
       
      .google.ads.googleads.v22.common.TargetRestriction value = 2;
      Specified by:
      getValue in interface TargetRestrictionOperationOrBuilder
      Returns:
      The value.
    • setValue

       The target restriction being added to or removed from the list.
       
      .google.ads.googleads.v22.common.TargetRestriction value = 2;
    • setValue

       The target restriction being added to or removed from the list.
       
      .google.ads.googleads.v22.common.TargetRestriction value = 2;
    • mergeValue

       The target restriction being added to or removed from the list.
       
      .google.ads.googleads.v22.common.TargetRestriction value = 2;
    • clearValue

       The target restriction being added to or removed from the list.
       
      .google.ads.googleads.v22.common.TargetRestriction value = 2;
    • getValueBuilder

      public TargetRestriction.Builder getValueBuilder()
       The target restriction being added to or removed from the list.
       
      .google.ads.googleads.v22.common.TargetRestriction value = 2;
    • getValueOrBuilder

      public TargetRestrictionOrBuilder getValueOrBuilder()
       The target restriction being added to or removed from the list.
       
      .google.ads.googleads.v22.common.TargetRestriction value = 2;
      Specified by:
      getValueOrBuilder in interface TargetRestrictionOperationOrBuilder