Class UserListDateRuleItemInfo.Builder

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

public static final class UserListDateRuleItemInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<UserListDateRuleItemInfo.Builder> implements UserListDateRuleItemInfoOrBuilder
 A rule item composed of a date operation.
 
Protobuf type google.ads.googleads.v23.common.UserListDateRuleItemInfo
  • 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<UserListDateRuleItemInfo.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<UserListDateRuleItemInfo.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<UserListDateRuleItemInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public int getOperatorValue()
       Date comparison operator.
       This field is required and must be populated when creating new date
       rule item.
       
      .google.ads.googleads.v23.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1;
      Specified by:
      getOperatorValue in interface UserListDateRuleItemInfoOrBuilder
      Returns:
      The enum numeric value on the wire for operator.
    • setOperatorValue

      public UserListDateRuleItemInfo.Builder setOperatorValue(int value)
       Date comparison operator.
       This field is required and must be populated when creating new date
       rule item.
       
      .google.ads.googleads.v23.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1;
      Parameters:
      value - The enum numeric value on the wire for operator to set.
      Returns:
      This builder for chaining.
    • getOperator

       Date comparison operator.
       This field is required and must be populated when creating new date
       rule item.
       
      .google.ads.googleads.v23.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1;
      Specified by:
      getOperator in interface UserListDateRuleItemInfoOrBuilder
      Returns:
      The operator.
    • setOperator

       Date comparison operator.
       This field is required and must be populated when creating new date
       rule item.
       
      .google.ads.googleads.v23.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1;
      Parameters:
      value - The operator to set.
      Returns:
      This builder for chaining.
    • clearOperator

      public UserListDateRuleItemInfo.Builder clearOperator()
       Date comparison operator.
       This field is required and must be populated when creating new date
       rule item.
       
      .google.ads.googleads.v23.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1;
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       String representing date value to be compared with the rule variable.
       Supported date format is YYYY-MM-DD.
       Times are reported in the customer's time zone.
       
      optional string value = 4;
      Specified by:
      hasValue in interface UserListDateRuleItemInfoOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public String getValue()
       String representing date value to be compared with the rule variable.
       Supported date format is YYYY-MM-DD.
       Times are reported in the customer's time zone.
       
      optional string value = 4;
      Specified by:
      getValue in interface UserListDateRuleItemInfoOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       String representing date value to be compared with the rule variable.
       Supported date format is YYYY-MM-DD.
       Times are reported in the customer's time zone.
       
      optional string value = 4;
      Specified by:
      getValueBytes in interface UserListDateRuleItemInfoOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public UserListDateRuleItemInfo.Builder setValue(String value)
       String representing date value to be compared with the rule variable.
       Supported date format is YYYY-MM-DD.
       Times are reported in the customer's time zone.
       
      optional string value = 4;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public UserListDateRuleItemInfo.Builder clearValue()
       String representing date value to be compared with the rule variable.
       Supported date format is YYYY-MM-DD.
       Times are reported in the customer's time zone.
       
      optional string value = 4;
      Returns:
      This builder for chaining.
    • setValueBytes

      public UserListDateRuleItemInfo.Builder setValueBytes(com.google.protobuf.ByteString value)
       String representing date value to be compared with the rule variable.
       Supported date format is YYYY-MM-DD.
       Times are reported in the customer's time zone.
       
      optional string value = 4;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • hasOffsetInDays

      public boolean hasOffsetInDays()
       The relative date value of the right hand side denoted by number of days
       offset from now. The value field will override this field when both are
       present.
       
      optional int64 offset_in_days = 5;
      Specified by:
      hasOffsetInDays in interface UserListDateRuleItemInfoOrBuilder
      Returns:
      Whether the offsetInDays field is set.
    • getOffsetInDays

      public long getOffsetInDays()
       The relative date value of the right hand side denoted by number of days
       offset from now. The value field will override this field when both are
       present.
       
      optional int64 offset_in_days = 5;
      Specified by:
      getOffsetInDays in interface UserListDateRuleItemInfoOrBuilder
      Returns:
      The offsetInDays.
    • setOffsetInDays

      public UserListDateRuleItemInfo.Builder setOffsetInDays(long value)
       The relative date value of the right hand side denoted by number of days
       offset from now. The value field will override this field when both are
       present.
       
      optional int64 offset_in_days = 5;
      Parameters:
      value - The offsetInDays to set.
      Returns:
      This builder for chaining.
    • clearOffsetInDays

      public UserListDateRuleItemInfo.Builder clearOffsetInDays()
       The relative date value of the right hand side denoted by number of days
       offset from now. The value field will override this field when both are
       present.
       
      optional int64 offset_in_days = 5;
      Returns:
      This builder for chaining.