All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.resources.AdGroupBidModifier Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/resources/ad_group_bid_modifier.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;

/**
 * 
 * Represents an ad group bid modifier.
 * 
* * Protobuf type {@code google.ads.googleads.v17.resources.AdGroupBidModifier} */ public final class AdGroupBidModifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.AdGroupBidModifier) AdGroupBidModifierOrBuilder { private static final long serialVersionUID = 0L; // Use AdGroupBidModifier.newBuilder() to construct. private AdGroupBidModifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AdGroupBidModifier() { resourceName_ = ""; adGroup_ = ""; baseAdGroup_ = ""; bidModifierSource_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AdGroupBidModifier(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.AdGroupBidModifierProto.internal_static_google_ads_googleads_v17_resources_AdGroupBidModifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.AdGroupBidModifierProto.internal_static_google_ads_googleads_v17_resources_AdGroupBidModifier_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.AdGroupBidModifier.class, com.google.ads.googleads.v17.resources.AdGroupBidModifier.Builder.class); } private int bitField0_; private int criterionCase_ = 0; @SuppressWarnings("serial") private java.lang.Object criterion_; public enum CriterionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { HOTEL_DATE_SELECTION_TYPE(5), HOTEL_ADVANCE_BOOKING_WINDOW(6), HOTEL_LENGTH_OF_STAY(7), HOTEL_CHECK_IN_DAY(8), DEVICE(11), HOTEL_CHECK_IN_DATE_RANGE(17), CRITERION_NOT_SET(0); private final int value; private CriterionCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CriterionCase valueOf(int value) { return forNumber(value); } public static CriterionCase forNumber(int value) { switch (value) { case 5: return HOTEL_DATE_SELECTION_TYPE; case 6: return HOTEL_ADVANCE_BOOKING_WINDOW; case 7: return HOTEL_LENGTH_OF_STAY; case 8: return HOTEL_CHECK_IN_DAY; case 11: return DEVICE; case 17: return HOTEL_CHECK_IN_DATE_RANGE; case 0: return CRITERION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public CriterionCase getCriterionCase() { return CriterionCase.forNumber( criterionCase_); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** *
   * Immutable. The resource name of the ad group bid modifier.
   * Ad group bid modifier resource names have the form:
   *
   * `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The resourceName. */ @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** *
   * Immutable. The resource name of the ad group bid modifier.
   * Ad group bid modifier resource names have the form:
   *
   * `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AD_GROUP_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object adGroup_ = ""; /** *
   * Immutable. The ad group to which this criterion belongs.
   * 
* * optional string ad_group = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return Whether the adGroup field is set. */ @java.lang.Override public boolean hasAdGroup() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Immutable. The ad group to which this criterion belongs.
   * 
* * optional string ad_group = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The adGroup. */ @java.lang.Override public java.lang.String getAdGroup() { java.lang.Object ref = adGroup_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); adGroup_ = s; return s; } } /** *
   * Immutable. The ad group to which this criterion belongs.
   * 
* * optional string ad_group = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for adGroup. */ @java.lang.Override public com.google.protobuf.ByteString getAdGroupBytes() { java.lang.Object ref = adGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); adGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CRITERION_ID_FIELD_NUMBER = 14; private long criterionId_ = 0L; /** *
   * Output only. The ID of the criterion to bid modify.
   *
   * This field is ignored for mutates.
   * 
* * optional int64 criterion_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the criterionId field is set. */ @java.lang.Override public boolean hasCriterionId() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Output only. The ID of the criterion to bid modify.
   *
   * This field is ignored for mutates.
   * 
* * optional int64 criterion_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The criterionId. */ @java.lang.Override public long getCriterionId() { return criterionId_; } public static final int BID_MODIFIER_FIELD_NUMBER = 15; private double bidModifier_ = 0D; /** *
   * The modifier for the bid when the criterion matches. The modifier must be
   * in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent.
   * Use 0 to opt out of a Device type.
   * 
* * optional double bid_modifier = 15; * @return Whether the bidModifier field is set. */ @java.lang.Override public boolean hasBidModifier() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The modifier for the bid when the criterion matches. The modifier must be
   * in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent.
   * Use 0 to opt out of a Device type.
   * 
* * optional double bid_modifier = 15; * @return The bidModifier. */ @java.lang.Override public double getBidModifier() { return bidModifier_; } public static final int BASE_AD_GROUP_FIELD_NUMBER = 16; @SuppressWarnings("serial") private volatile java.lang.Object baseAdGroup_ = ""; /** *
   * Output only. The base ad group from which this draft/trial adgroup bid
   * modifier was created. If ad_group is a base ad group then this field will
   * be equal to ad_group. If the ad group was created in the draft or trial and
   * has no corresponding base ad group, then this field will be null. This
   * field is readonly.
   * 
* * optional string base_ad_group = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the baseAdGroup field is set. */ @java.lang.Override public boolean hasBaseAdGroup() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Output only. The base ad group from which this draft/trial adgroup bid
   * modifier was created. If ad_group is a base ad group then this field will
   * be equal to ad_group. If the ad group was created in the draft or trial and
   * has no corresponding base ad group, then this field will be null. This
   * field is readonly.
   * 
* * optional string base_ad_group = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The baseAdGroup. */ @java.lang.Override public java.lang.String getBaseAdGroup() { java.lang.Object ref = baseAdGroup_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseAdGroup_ = s; return s; } } /** *
   * Output only. The base ad group from which this draft/trial adgroup bid
   * modifier was created. If ad_group is a base ad group then this field will
   * be equal to ad_group. If the ad group was created in the draft or trial and
   * has no corresponding base ad group, then this field will be null. This
   * field is readonly.
   * 
* * optional string base_ad_group = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for baseAdGroup. */ @java.lang.Override public com.google.protobuf.ByteString getBaseAdGroupBytes() { java.lang.Object ref = baseAdGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); baseAdGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BID_MODIFIER_SOURCE_FIELD_NUMBER = 10; private int bidModifierSource_ = 0; /** *
   * Output only. Bid modifier source.
   * 
* * .google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for bidModifierSource. */ @java.lang.Override public int getBidModifierSourceValue() { return bidModifierSource_; } /** *
   * Output only. Bid modifier source.
   * 
* * .google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bidModifierSource. */ @java.lang.Override public com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource getBidModifierSource() { com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource result = com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource.forNumber(bidModifierSource_); return result == null ? com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource.UNRECOGNIZED : result; } public static final int HOTEL_DATE_SELECTION_TYPE_FIELD_NUMBER = 5; /** *
   * Immutable. Criterion for hotel date selection (default dates versus user
   * selected).
   * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelDateSelectionType field is set. */ @java.lang.Override public boolean hasHotelDateSelectionType() { return criterionCase_ == 5; } /** *
   * Immutable. Criterion for hotel date selection (default dates versus user
   * selected).
   * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelDateSelectionType. */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo getHotelDateSelectionType() { if (criterionCase_ == 5) { return (com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.getDefaultInstance(); } /** *
   * Immutable. Criterion for hotel date selection (default dates versus user
   * selected).
   * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfoOrBuilder getHotelDateSelectionTypeOrBuilder() { if (criterionCase_ == 5) { return (com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.getDefaultInstance(); } public static final int HOTEL_ADVANCE_BOOKING_WINDOW_FIELD_NUMBER = 6; /** *
   * Immutable. Criterion for number of days prior to the stay the booking is
   * being made.
   * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelAdvanceBookingWindow field is set. */ @java.lang.Override public boolean hasHotelAdvanceBookingWindow() { return criterionCase_ == 6; } /** *
   * Immutable. Criterion for number of days prior to the stay the booking is
   * being made.
   * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelAdvanceBookingWindow. */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo getHotelAdvanceBookingWindow() { if (criterionCase_ == 6) { return (com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.getDefaultInstance(); } /** *
   * Immutable. Criterion for number of days prior to the stay the booking is
   * being made.
   * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfoOrBuilder getHotelAdvanceBookingWindowOrBuilder() { if (criterionCase_ == 6) { return (com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.getDefaultInstance(); } public static final int HOTEL_LENGTH_OF_STAY_FIELD_NUMBER = 7; /** *
   * Immutable. Criterion for length of hotel stay in nights.
   * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelLengthOfStay field is set. */ @java.lang.Override public boolean hasHotelLengthOfStay() { return criterionCase_ == 7; } /** *
   * Immutable. Criterion for length of hotel stay in nights.
   * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelLengthOfStay. */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelLengthOfStayInfo getHotelLengthOfStay() { if (criterionCase_ == 7) { return (com.google.ads.googleads.v17.common.HotelLengthOfStayInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.getDefaultInstance(); } /** *
   * Immutable. Criterion for length of hotel stay in nights.
   * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelLengthOfStayInfoOrBuilder getHotelLengthOfStayOrBuilder() { if (criterionCase_ == 7) { return (com.google.ads.googleads.v17.common.HotelLengthOfStayInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.getDefaultInstance(); } public static final int HOTEL_CHECK_IN_DAY_FIELD_NUMBER = 8; /** *
   * Immutable. Criterion for day of the week the booking is for.
   * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelCheckInDay field is set. */ @java.lang.Override public boolean hasHotelCheckInDay() { return criterionCase_ == 8; } /** *
   * Immutable. Criterion for day of the week the booking is for.
   * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelCheckInDay. */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelCheckInDayInfo getHotelCheckInDay() { if (criterionCase_ == 8) { return (com.google.ads.googleads.v17.common.HotelCheckInDayInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelCheckInDayInfo.getDefaultInstance(); } /** *
   * Immutable. Criterion for day of the week the booking is for.
   * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelCheckInDayInfoOrBuilder getHotelCheckInDayOrBuilder() { if (criterionCase_ == 8) { return (com.google.ads.googleads.v17.common.HotelCheckInDayInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelCheckInDayInfo.getDefaultInstance(); } public static final int DEVICE_FIELD_NUMBER = 11; /** *
   * Immutable. A device criterion.
   * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the device field is set. */ @java.lang.Override public boolean hasDevice() { return criterionCase_ == 11; } /** *
   * Immutable. A device criterion.
   * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return The device. */ @java.lang.Override public com.google.ads.googleads.v17.common.DeviceInfo getDevice() { if (criterionCase_ == 11) { return (com.google.ads.googleads.v17.common.DeviceInfo) criterion_; } return com.google.ads.googleads.v17.common.DeviceInfo.getDefaultInstance(); } /** *
   * Immutable. A device criterion.
   * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.DeviceInfoOrBuilder getDeviceOrBuilder() { if (criterionCase_ == 11) { return (com.google.ads.googleads.v17.common.DeviceInfo) criterion_; } return com.google.ads.googleads.v17.common.DeviceInfo.getDefaultInstance(); } public static final int HOTEL_CHECK_IN_DATE_RANGE_FIELD_NUMBER = 17; /** *
   * Immutable. Criterion for a hotel check-in date range.
   * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelCheckInDateRange field is set. */ @java.lang.Override public boolean hasHotelCheckInDateRange() { return criterionCase_ == 17; } /** *
   * Immutable. Criterion for a hotel check-in date range.
   * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelCheckInDateRange. */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo getHotelCheckInDateRange() { if (criterionCase_ == 17) { return (com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.getDefaultInstance(); } /** *
   * Immutable. Criterion for a hotel check-in date range.
   * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfoOrBuilder getHotelCheckInDateRangeOrBuilder() { if (criterionCase_ == 17) { return (com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (criterionCase_ == 5) { output.writeMessage(5, (com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo) criterion_); } if (criterionCase_ == 6) { output.writeMessage(6, (com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo) criterion_); } if (criterionCase_ == 7) { output.writeMessage(7, (com.google.ads.googleads.v17.common.HotelLengthOfStayInfo) criterion_); } if (criterionCase_ == 8) { output.writeMessage(8, (com.google.ads.googleads.v17.common.HotelCheckInDayInfo) criterion_); } if (bidModifierSource_ != com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource.UNSPECIFIED.getNumber()) { output.writeEnum(10, bidModifierSource_); } if (criterionCase_ == 11) { output.writeMessage(11, (com.google.ads.googleads.v17.common.DeviceInfo) criterion_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, adGroup_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(14, criterionId_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeDouble(15, bidModifier_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, baseAdGroup_); } if (criterionCase_ == 17) { output.writeMessage(17, (com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo) criterion_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); } if (criterionCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo) criterion_); } if (criterionCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo) criterion_); } if (criterionCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.google.ads.googleads.v17.common.HotelLengthOfStayInfo) criterion_); } if (criterionCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.google.ads.googleads.v17.common.HotelCheckInDayInfo) criterion_); } if (bidModifierSource_ != com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, bidModifierSource_); } if (criterionCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.google.ads.googleads.v17.common.DeviceInfo) criterion_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, adGroup_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, criterionId_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(15, bidModifier_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, baseAdGroup_); } if (criterionCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo) criterion_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.resources.AdGroupBidModifier)) { return super.equals(obj); } com.google.ads.googleads.v17.resources.AdGroupBidModifier other = (com.google.ads.googleads.v17.resources.AdGroupBidModifier) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (hasAdGroup() != other.hasAdGroup()) return false; if (hasAdGroup()) { if (!getAdGroup() .equals(other.getAdGroup())) return false; } if (hasCriterionId() != other.hasCriterionId()) return false; if (hasCriterionId()) { if (getCriterionId() != other.getCriterionId()) return false; } if (hasBidModifier() != other.hasBidModifier()) return false; if (hasBidModifier()) { if (java.lang.Double.doubleToLongBits(getBidModifier()) != java.lang.Double.doubleToLongBits( other.getBidModifier())) return false; } if (hasBaseAdGroup() != other.hasBaseAdGroup()) return false; if (hasBaseAdGroup()) { if (!getBaseAdGroup() .equals(other.getBaseAdGroup())) return false; } if (bidModifierSource_ != other.bidModifierSource_) return false; if (!getCriterionCase().equals(other.getCriterionCase())) return false; switch (criterionCase_) { case 5: if (!getHotelDateSelectionType() .equals(other.getHotelDateSelectionType())) return false; break; case 6: if (!getHotelAdvanceBookingWindow() .equals(other.getHotelAdvanceBookingWindow())) return false; break; case 7: if (!getHotelLengthOfStay() .equals(other.getHotelLengthOfStay())) return false; break; case 8: if (!getHotelCheckInDay() .equals(other.getHotelCheckInDay())) return false; break; case 11: if (!getDevice() .equals(other.getDevice())) return false; break; case 17: if (!getHotelCheckInDateRange() .equals(other.getHotelCheckInDateRange())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); if (hasAdGroup()) { hash = (37 * hash) + AD_GROUP_FIELD_NUMBER; hash = (53 * hash) + getAdGroup().hashCode(); } if (hasCriterionId()) { hash = (37 * hash) + CRITERION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCriterionId()); } if (hasBidModifier()) { hash = (37 * hash) + BID_MODIFIER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getBidModifier())); } if (hasBaseAdGroup()) { hash = (37 * hash) + BASE_AD_GROUP_FIELD_NUMBER; hash = (53 * hash) + getBaseAdGroup().hashCode(); } hash = (37 * hash) + BID_MODIFIER_SOURCE_FIELD_NUMBER; hash = (53 * hash) + bidModifierSource_; switch (criterionCase_) { case 5: hash = (37 * hash) + HOTEL_DATE_SELECTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + getHotelDateSelectionType().hashCode(); break; case 6: hash = (37 * hash) + HOTEL_ADVANCE_BOOKING_WINDOW_FIELD_NUMBER; hash = (53 * hash) + getHotelAdvanceBookingWindow().hashCode(); break; case 7: hash = (37 * hash) + HOTEL_LENGTH_OF_STAY_FIELD_NUMBER; hash = (53 * hash) + getHotelLengthOfStay().hashCode(); break; case 8: hash = (37 * hash) + HOTEL_CHECK_IN_DAY_FIELD_NUMBER; hash = (53 * hash) + getHotelCheckInDay().hashCode(); break; case 11: hash = (37 * hash) + DEVICE_FIELD_NUMBER; hash = (53 * hash) + getDevice().hashCode(); break; case 17: hash = (37 * hash) + HOTEL_CHECK_IN_DATE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getHotelCheckInDateRange().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v17.resources.AdGroupBidModifier prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Represents an ad group bid modifier.
   * 
* * Protobuf type {@code google.ads.googleads.v17.resources.AdGroupBidModifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.AdGroupBidModifier) com.google.ads.googleads.v17.resources.AdGroupBidModifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.resources.AdGroupBidModifierProto.internal_static_google_ads_googleads_v17_resources_AdGroupBidModifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.resources.AdGroupBidModifierProto.internal_static_google_ads_googleads_v17_resources_AdGroupBidModifier_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.resources.AdGroupBidModifier.class, com.google.ads.googleads.v17.resources.AdGroupBidModifier.Builder.class); } // Construct using com.google.ads.googleads.v17.resources.AdGroupBidModifier.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; resourceName_ = ""; adGroup_ = ""; criterionId_ = 0L; bidModifier_ = 0D; baseAdGroup_ = ""; bidModifierSource_ = 0; if (hotelDateSelectionTypeBuilder_ != null) { hotelDateSelectionTypeBuilder_.clear(); } if (hotelAdvanceBookingWindowBuilder_ != null) { hotelAdvanceBookingWindowBuilder_.clear(); } if (hotelLengthOfStayBuilder_ != null) { hotelLengthOfStayBuilder_.clear(); } if (hotelCheckInDayBuilder_ != null) { hotelCheckInDayBuilder_.clear(); } if (deviceBuilder_ != null) { deviceBuilder_.clear(); } if (hotelCheckInDateRangeBuilder_ != null) { hotelCheckInDateRangeBuilder_.clear(); } criterionCase_ = 0; criterion_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.resources.AdGroupBidModifierProto.internal_static_google_ads_googleads_v17_resources_AdGroupBidModifier_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.resources.AdGroupBidModifier getDefaultInstanceForType() { return com.google.ads.googleads.v17.resources.AdGroupBidModifier.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.resources.AdGroupBidModifier build() { com.google.ads.googleads.v17.resources.AdGroupBidModifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.resources.AdGroupBidModifier buildPartial() { com.google.ads.googleads.v17.resources.AdGroupBidModifier result = new com.google.ads.googleads.v17.resources.AdGroupBidModifier(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.resources.AdGroupBidModifier result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resourceName_ = resourceName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.adGroup_ = adGroup_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.criterionId_ = criterionId_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.bidModifier_ = bidModifier_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.baseAdGroup_ = baseAdGroup_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.bidModifierSource_ = bidModifierSource_; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.ads.googleads.v17.resources.AdGroupBidModifier result) { result.criterionCase_ = criterionCase_; result.criterion_ = this.criterion_; if (criterionCase_ == 5 && hotelDateSelectionTypeBuilder_ != null) { result.criterion_ = hotelDateSelectionTypeBuilder_.build(); } if (criterionCase_ == 6 && hotelAdvanceBookingWindowBuilder_ != null) { result.criterion_ = hotelAdvanceBookingWindowBuilder_.build(); } if (criterionCase_ == 7 && hotelLengthOfStayBuilder_ != null) { result.criterion_ = hotelLengthOfStayBuilder_.build(); } if (criterionCase_ == 8 && hotelCheckInDayBuilder_ != null) { result.criterion_ = hotelCheckInDayBuilder_.build(); } if (criterionCase_ == 11 && deviceBuilder_ != null) { result.criterion_ = deviceBuilder_.build(); } if (criterionCase_ == 17 && hotelCheckInDateRangeBuilder_ != null) { result.criterion_ = hotelCheckInDateRangeBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v17.resources.AdGroupBidModifier) { return mergeFrom((com.google.ads.googleads.v17.resources.AdGroupBidModifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.resources.AdGroupBidModifier other) { if (other == com.google.ads.googleads.v17.resources.AdGroupBidModifier.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasAdGroup()) { adGroup_ = other.adGroup_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasCriterionId()) { setCriterionId(other.getCriterionId()); } if (other.hasBidModifier()) { setBidModifier(other.getBidModifier()); } if (other.hasBaseAdGroup()) { baseAdGroup_ = other.baseAdGroup_; bitField0_ |= 0x00000010; onChanged(); } if (other.bidModifierSource_ != 0) { setBidModifierSourceValue(other.getBidModifierSourceValue()); } switch (other.getCriterionCase()) { case HOTEL_DATE_SELECTION_TYPE: { mergeHotelDateSelectionType(other.getHotelDateSelectionType()); break; } case HOTEL_ADVANCE_BOOKING_WINDOW: { mergeHotelAdvanceBookingWindow(other.getHotelAdvanceBookingWindow()); break; } case HOTEL_LENGTH_OF_STAY: { mergeHotelLengthOfStay(other.getHotelLengthOfStay()); break; } case HOTEL_CHECK_IN_DAY: { mergeHotelCheckInDay(other.getHotelCheckInDay()); break; } case DEVICE: { mergeDevice(other.getDevice()); break; } case HOTEL_CHECK_IN_DATE_RANGE: { mergeHotelCheckInDateRange(other.getHotelCheckInDateRange()); break; } case CRITERION_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { resourceName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 42: { input.readMessage( getHotelDateSelectionTypeFieldBuilder().getBuilder(), extensionRegistry); criterionCase_ = 5; break; } // case 42 case 50: { input.readMessage( getHotelAdvanceBookingWindowFieldBuilder().getBuilder(), extensionRegistry); criterionCase_ = 6; break; } // case 50 case 58: { input.readMessage( getHotelLengthOfStayFieldBuilder().getBuilder(), extensionRegistry); criterionCase_ = 7; break; } // case 58 case 66: { input.readMessage( getHotelCheckInDayFieldBuilder().getBuilder(), extensionRegistry); criterionCase_ = 8; break; } // case 66 case 80: { bidModifierSource_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 80 case 90: { input.readMessage( getDeviceFieldBuilder().getBuilder(), extensionRegistry); criterionCase_ = 11; break; } // case 90 case 106: { adGroup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 106 case 112: { criterionId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 112 case 121: { bidModifier_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 121 case 130: { baseAdGroup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 130 case 138: { input.readMessage( getHotelCheckInDateRangeFieldBuilder().getBuilder(), extensionRegistry); criterionCase_ = 17; break; } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int criterionCase_ = 0; private java.lang.Object criterion_; public CriterionCase getCriterionCase() { return CriterionCase.forNumber( criterionCase_); } public Builder clearCriterion() { criterionCase_ = 0; criterion_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object resourceName_ = ""; /** *
     * Immutable. The resource name of the ad group bid modifier.
     * Ad group bid modifier resource names have the form:
     *
     * `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Immutable. The resource name of the ad group bid modifier.
     * Ad group bid modifier resource names have the form:
     *
     * `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Immutable. The resource name of the ad group bid modifier.
     * Ad group bid modifier resource names have the form:
     *
     * `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The resourceName to set. * @return This builder for chaining. */ public Builder setResourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Immutable. The resource name of the ad group bid modifier.
     * Ad group bid modifier resource names have the form:
     *
     * `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Immutable. The resource name of the ad group bid modifier.
     * Ad group bid modifier resource names have the form:
     *
     * `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for resourceName to set. * @return This builder for chaining. */ public Builder setResourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object adGroup_ = ""; /** *
     * Immutable. The ad group to which this criterion belongs.
     * 
* * optional string ad_group = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return Whether the adGroup field is set. */ public boolean hasAdGroup() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Immutable. The ad group to which this criterion belongs.
     * 
* * optional string ad_group = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The adGroup. */ public java.lang.String getAdGroup() { java.lang.Object ref = adGroup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); adGroup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Immutable. The ad group to which this criterion belongs.
     * 
* * optional string ad_group = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for adGroup. */ public com.google.protobuf.ByteString getAdGroupBytes() { java.lang.Object ref = adGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); adGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Immutable. The ad group to which this criterion belongs.
     * 
* * optional string ad_group = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The adGroup to set. * @return This builder for chaining. */ public Builder setAdGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } adGroup_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Immutable. The ad group to which this criterion belongs.
     * 
* * optional string ad_group = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearAdGroup() { adGroup_ = getDefaultInstance().getAdGroup(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Immutable. The ad group to which this criterion belongs.
     * 
* * optional string ad_group = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for adGroup to set. * @return This builder for chaining. */ public Builder setAdGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); adGroup_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long criterionId_ ; /** *
     * Output only. The ID of the criterion to bid modify.
     *
     * This field is ignored for mutates.
     * 
* * optional int64 criterion_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the criterionId field is set. */ @java.lang.Override public boolean hasCriterionId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Output only. The ID of the criterion to bid modify.
     *
     * This field is ignored for mutates.
     * 
* * optional int64 criterion_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The criterionId. */ @java.lang.Override public long getCriterionId() { return criterionId_; } /** *
     * Output only. The ID of the criterion to bid modify.
     *
     * This field is ignored for mutates.
     * 
* * optional int64 criterion_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The criterionId to set. * @return This builder for chaining. */ public Builder setCriterionId(long value) { criterionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Output only. The ID of the criterion to bid modify.
     *
     * This field is ignored for mutates.
     * 
* * optional int64 criterion_id = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCriterionId() { bitField0_ = (bitField0_ & ~0x00000004); criterionId_ = 0L; onChanged(); return this; } private double bidModifier_ ; /** *
     * The modifier for the bid when the criterion matches. The modifier must be
     * in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent.
     * Use 0 to opt out of a Device type.
     * 
* * optional double bid_modifier = 15; * @return Whether the bidModifier field is set. */ @java.lang.Override public boolean hasBidModifier() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The modifier for the bid when the criterion matches. The modifier must be
     * in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent.
     * Use 0 to opt out of a Device type.
     * 
* * optional double bid_modifier = 15; * @return The bidModifier. */ @java.lang.Override public double getBidModifier() { return bidModifier_; } /** *
     * The modifier for the bid when the criterion matches. The modifier must be
     * in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent.
     * Use 0 to opt out of a Device type.
     * 
* * optional double bid_modifier = 15; * @param value The bidModifier to set. * @return This builder for chaining. */ public Builder setBidModifier(double value) { bidModifier_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The modifier for the bid when the criterion matches. The modifier must be
     * in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent.
     * Use 0 to opt out of a Device type.
     * 
* * optional double bid_modifier = 15; * @return This builder for chaining. */ public Builder clearBidModifier() { bitField0_ = (bitField0_ & ~0x00000008); bidModifier_ = 0D; onChanged(); return this; } private java.lang.Object baseAdGroup_ = ""; /** *
     * Output only. The base ad group from which this draft/trial adgroup bid
     * modifier was created. If ad_group is a base ad group then this field will
     * be equal to ad_group. If the ad group was created in the draft or trial and
     * has no corresponding base ad group, then this field will be null. This
     * field is readonly.
     * 
* * optional string base_ad_group = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return Whether the baseAdGroup field is set. */ public boolean hasBaseAdGroup() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Output only. The base ad group from which this draft/trial adgroup bid
     * modifier was created. If ad_group is a base ad group then this field will
     * be equal to ad_group. If the ad group was created in the draft or trial and
     * has no corresponding base ad group, then this field will be null. This
     * field is readonly.
     * 
* * optional string base_ad_group = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The baseAdGroup. */ public java.lang.String getBaseAdGroup() { java.lang.Object ref = baseAdGroup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseAdGroup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The base ad group from which this draft/trial adgroup bid
     * modifier was created. If ad_group is a base ad group then this field will
     * be equal to ad_group. If the ad group was created in the draft or trial and
     * has no corresponding base ad group, then this field will be null. This
     * field is readonly.
     * 
* * optional string base_ad_group = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for baseAdGroup. */ public com.google.protobuf.ByteString getBaseAdGroupBytes() { java.lang.Object ref = baseAdGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); baseAdGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The base ad group from which this draft/trial adgroup bid
     * modifier was created. If ad_group is a base ad group then this field will
     * be equal to ad_group. If the ad group was created in the draft or trial and
     * has no corresponding base ad group, then this field will be null. This
     * field is readonly.
     * 
* * optional string base_ad_group = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The baseAdGroup to set. * @return This builder for chaining. */ public Builder setBaseAdGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } baseAdGroup_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Output only. The base ad group from which this draft/trial adgroup bid
     * modifier was created. If ad_group is a base ad group then this field will
     * be equal to ad_group. If the ad group was created in the draft or trial and
     * has no corresponding base ad group, then this field will be null. This
     * field is readonly.
     * 
* * optional string base_ad_group = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBaseAdGroup() { baseAdGroup_ = getDefaultInstance().getBaseAdGroup(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Output only. The base ad group from which this draft/trial adgroup bid
     * modifier was created. If ad_group is a base ad group then this field will
     * be equal to ad_group. If the ad group was created in the draft or trial and
     * has no corresponding base ad group, then this field will be null. This
     * field is readonly.
     * 
* * optional string base_ad_group = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for baseAdGroup to set. * @return This builder for chaining. */ public Builder setBaseAdGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); baseAdGroup_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private int bidModifierSource_ = 0; /** *
     * Output only. Bid modifier source.
     * 
* * .google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for bidModifierSource. */ @java.lang.Override public int getBidModifierSourceValue() { return bidModifierSource_; } /** *
     * Output only. Bid modifier source.
     * 
* * .google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for bidModifierSource to set. * @return This builder for chaining. */ public Builder setBidModifierSourceValue(int value) { bidModifierSource_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Output only. Bid modifier source.
     * 
* * .google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bidModifierSource. */ @java.lang.Override public com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource getBidModifierSource() { com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource result = com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource.forNumber(bidModifierSource_); return result == null ? com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource.UNRECOGNIZED : result; } /** *
     * Output only. Bid modifier source.
     * 
* * .google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bidModifierSource to set. * @return This builder for chaining. */ public Builder setBidModifierSource(com.google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; bidModifierSource_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. Bid modifier source.
     * 
* * .google.ads.googleads.v17.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearBidModifierSource() { bitField0_ = (bitField0_ & ~0x00000020); bidModifierSource_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo, com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.Builder, com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfoOrBuilder> hotelDateSelectionTypeBuilder_; /** *
     * Immutable. Criterion for hotel date selection (default dates versus user
     * selected).
     * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelDateSelectionType field is set. */ @java.lang.Override public boolean hasHotelDateSelectionType() { return criterionCase_ == 5; } /** *
     * Immutable. Criterion for hotel date selection (default dates versus user
     * selected).
     * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelDateSelectionType. */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo getHotelDateSelectionType() { if (hotelDateSelectionTypeBuilder_ == null) { if (criterionCase_ == 5) { return (com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.getDefaultInstance(); } else { if (criterionCase_ == 5) { return hotelDateSelectionTypeBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.getDefaultInstance(); } } /** *
     * Immutable. Criterion for hotel date selection (default dates versus user
     * selected).
     * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelDateSelectionType(com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo value) { if (hotelDateSelectionTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } criterion_ = value; onChanged(); } else { hotelDateSelectionTypeBuilder_.setMessage(value); } criterionCase_ = 5; return this; } /** *
     * Immutable. Criterion for hotel date selection (default dates versus user
     * selected).
     * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelDateSelectionType( com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.Builder builderForValue) { if (hotelDateSelectionTypeBuilder_ == null) { criterion_ = builderForValue.build(); onChanged(); } else { hotelDateSelectionTypeBuilder_.setMessage(builderForValue.build()); } criterionCase_ = 5; return this; } /** *
     * Immutable. Criterion for hotel date selection (default dates versus user
     * selected).
     * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeHotelDateSelectionType(com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo value) { if (hotelDateSelectionTypeBuilder_ == null) { if (criterionCase_ == 5 && criterion_ != com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.getDefaultInstance()) { criterion_ = com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.newBuilder((com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo) criterion_) .mergeFrom(value).buildPartial(); } else { criterion_ = value; } onChanged(); } else { if (criterionCase_ == 5) { hotelDateSelectionTypeBuilder_.mergeFrom(value); } else { hotelDateSelectionTypeBuilder_.setMessage(value); } } criterionCase_ = 5; return this; } /** *
     * Immutable. Criterion for hotel date selection (default dates versus user
     * selected).
     * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearHotelDateSelectionType() { if (hotelDateSelectionTypeBuilder_ == null) { if (criterionCase_ == 5) { criterionCase_ = 0; criterion_ = null; onChanged(); } } else { if (criterionCase_ == 5) { criterionCase_ = 0; criterion_ = null; } hotelDateSelectionTypeBuilder_.clear(); } return this; } /** *
     * Immutable. Criterion for hotel date selection (default dates versus user
     * selected).
     * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.Builder getHotelDateSelectionTypeBuilder() { return getHotelDateSelectionTypeFieldBuilder().getBuilder(); } /** *
     * Immutable. Criterion for hotel date selection (default dates versus user
     * selected).
     * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfoOrBuilder getHotelDateSelectionTypeOrBuilder() { if ((criterionCase_ == 5) && (hotelDateSelectionTypeBuilder_ != null)) { return hotelDateSelectionTypeBuilder_.getMessageOrBuilder(); } else { if (criterionCase_ == 5) { return (com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.getDefaultInstance(); } } /** *
     * Immutable. Criterion for hotel date selection (default dates versus user
     * selected).
     * 
* * .google.ads.googleads.v17.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo, com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.Builder, com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfoOrBuilder> getHotelDateSelectionTypeFieldBuilder() { if (hotelDateSelectionTypeBuilder_ == null) { if (!(criterionCase_ == 5)) { criterion_ = com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.getDefaultInstance(); } hotelDateSelectionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo, com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo.Builder, com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfoOrBuilder>( (com.google.ads.googleads.v17.common.HotelDateSelectionTypeInfo) criterion_, getParentForChildren(), isClean()); criterion_ = null; } criterionCase_ = 5; onChanged(); return hotelDateSelectionTypeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo, com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.Builder, com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfoOrBuilder> hotelAdvanceBookingWindowBuilder_; /** *
     * Immutable. Criterion for number of days prior to the stay the booking is
     * being made.
     * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelAdvanceBookingWindow field is set. */ @java.lang.Override public boolean hasHotelAdvanceBookingWindow() { return criterionCase_ == 6; } /** *
     * Immutable. Criterion for number of days prior to the stay the booking is
     * being made.
     * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelAdvanceBookingWindow. */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo getHotelAdvanceBookingWindow() { if (hotelAdvanceBookingWindowBuilder_ == null) { if (criterionCase_ == 6) { return (com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.getDefaultInstance(); } else { if (criterionCase_ == 6) { return hotelAdvanceBookingWindowBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.getDefaultInstance(); } } /** *
     * Immutable. Criterion for number of days prior to the stay the booking is
     * being made.
     * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelAdvanceBookingWindow(com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo value) { if (hotelAdvanceBookingWindowBuilder_ == null) { if (value == null) { throw new NullPointerException(); } criterion_ = value; onChanged(); } else { hotelAdvanceBookingWindowBuilder_.setMessage(value); } criterionCase_ = 6; return this; } /** *
     * Immutable. Criterion for number of days prior to the stay the booking is
     * being made.
     * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelAdvanceBookingWindow( com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.Builder builderForValue) { if (hotelAdvanceBookingWindowBuilder_ == null) { criterion_ = builderForValue.build(); onChanged(); } else { hotelAdvanceBookingWindowBuilder_.setMessage(builderForValue.build()); } criterionCase_ = 6; return this; } /** *
     * Immutable. Criterion for number of days prior to the stay the booking is
     * being made.
     * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeHotelAdvanceBookingWindow(com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo value) { if (hotelAdvanceBookingWindowBuilder_ == null) { if (criterionCase_ == 6 && criterion_ != com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.getDefaultInstance()) { criterion_ = com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.newBuilder((com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo) criterion_) .mergeFrom(value).buildPartial(); } else { criterion_ = value; } onChanged(); } else { if (criterionCase_ == 6) { hotelAdvanceBookingWindowBuilder_.mergeFrom(value); } else { hotelAdvanceBookingWindowBuilder_.setMessage(value); } } criterionCase_ = 6; return this; } /** *
     * Immutable. Criterion for number of days prior to the stay the booking is
     * being made.
     * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearHotelAdvanceBookingWindow() { if (hotelAdvanceBookingWindowBuilder_ == null) { if (criterionCase_ == 6) { criterionCase_ = 0; criterion_ = null; onChanged(); } } else { if (criterionCase_ == 6) { criterionCase_ = 0; criterion_ = null; } hotelAdvanceBookingWindowBuilder_.clear(); } return this; } /** *
     * Immutable. Criterion for number of days prior to the stay the booking is
     * being made.
     * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.Builder getHotelAdvanceBookingWindowBuilder() { return getHotelAdvanceBookingWindowFieldBuilder().getBuilder(); } /** *
     * Immutable. Criterion for number of days prior to the stay the booking is
     * being made.
     * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfoOrBuilder getHotelAdvanceBookingWindowOrBuilder() { if ((criterionCase_ == 6) && (hotelAdvanceBookingWindowBuilder_ != null)) { return hotelAdvanceBookingWindowBuilder_.getMessageOrBuilder(); } else { if (criterionCase_ == 6) { return (com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.getDefaultInstance(); } } /** *
     * Immutable. Criterion for number of days prior to the stay the booking is
     * being made.
     * 
* * .google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo, com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.Builder, com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfoOrBuilder> getHotelAdvanceBookingWindowFieldBuilder() { if (hotelAdvanceBookingWindowBuilder_ == null) { if (!(criterionCase_ == 6)) { criterion_ = com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.getDefaultInstance(); } hotelAdvanceBookingWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo, com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo.Builder, com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfoOrBuilder>( (com.google.ads.googleads.v17.common.HotelAdvanceBookingWindowInfo) criterion_, getParentForChildren(), isClean()); criterion_ = null; } criterionCase_ = 6; onChanged(); return hotelAdvanceBookingWindowBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelLengthOfStayInfo, com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.Builder, com.google.ads.googleads.v17.common.HotelLengthOfStayInfoOrBuilder> hotelLengthOfStayBuilder_; /** *
     * Immutable. Criterion for length of hotel stay in nights.
     * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelLengthOfStay field is set. */ @java.lang.Override public boolean hasHotelLengthOfStay() { return criterionCase_ == 7; } /** *
     * Immutable. Criterion for length of hotel stay in nights.
     * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelLengthOfStay. */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelLengthOfStayInfo getHotelLengthOfStay() { if (hotelLengthOfStayBuilder_ == null) { if (criterionCase_ == 7) { return (com.google.ads.googleads.v17.common.HotelLengthOfStayInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.getDefaultInstance(); } else { if (criterionCase_ == 7) { return hotelLengthOfStayBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.getDefaultInstance(); } } /** *
     * Immutable. Criterion for length of hotel stay in nights.
     * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelLengthOfStay(com.google.ads.googleads.v17.common.HotelLengthOfStayInfo value) { if (hotelLengthOfStayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } criterion_ = value; onChanged(); } else { hotelLengthOfStayBuilder_.setMessage(value); } criterionCase_ = 7; return this; } /** *
     * Immutable. Criterion for length of hotel stay in nights.
     * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelLengthOfStay( com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.Builder builderForValue) { if (hotelLengthOfStayBuilder_ == null) { criterion_ = builderForValue.build(); onChanged(); } else { hotelLengthOfStayBuilder_.setMessage(builderForValue.build()); } criterionCase_ = 7; return this; } /** *
     * Immutable. Criterion for length of hotel stay in nights.
     * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeHotelLengthOfStay(com.google.ads.googleads.v17.common.HotelLengthOfStayInfo value) { if (hotelLengthOfStayBuilder_ == null) { if (criterionCase_ == 7 && criterion_ != com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.getDefaultInstance()) { criterion_ = com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.newBuilder((com.google.ads.googleads.v17.common.HotelLengthOfStayInfo) criterion_) .mergeFrom(value).buildPartial(); } else { criterion_ = value; } onChanged(); } else { if (criterionCase_ == 7) { hotelLengthOfStayBuilder_.mergeFrom(value); } else { hotelLengthOfStayBuilder_.setMessage(value); } } criterionCase_ = 7; return this; } /** *
     * Immutable. Criterion for length of hotel stay in nights.
     * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearHotelLengthOfStay() { if (hotelLengthOfStayBuilder_ == null) { if (criterionCase_ == 7) { criterionCase_ = 0; criterion_ = null; onChanged(); } } else { if (criterionCase_ == 7) { criterionCase_ = 0; criterion_ = null; } hotelLengthOfStayBuilder_.clear(); } return this; } /** *
     * Immutable. Criterion for length of hotel stay in nights.
     * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.Builder getHotelLengthOfStayBuilder() { return getHotelLengthOfStayFieldBuilder().getBuilder(); } /** *
     * Immutable. Criterion for length of hotel stay in nights.
     * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelLengthOfStayInfoOrBuilder getHotelLengthOfStayOrBuilder() { if ((criterionCase_ == 7) && (hotelLengthOfStayBuilder_ != null)) { return hotelLengthOfStayBuilder_.getMessageOrBuilder(); } else { if (criterionCase_ == 7) { return (com.google.ads.googleads.v17.common.HotelLengthOfStayInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.getDefaultInstance(); } } /** *
     * Immutable. Criterion for length of hotel stay in nights.
     * 
* * .google.ads.googleads.v17.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelLengthOfStayInfo, com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.Builder, com.google.ads.googleads.v17.common.HotelLengthOfStayInfoOrBuilder> getHotelLengthOfStayFieldBuilder() { if (hotelLengthOfStayBuilder_ == null) { if (!(criterionCase_ == 7)) { criterion_ = com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.getDefaultInstance(); } hotelLengthOfStayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelLengthOfStayInfo, com.google.ads.googleads.v17.common.HotelLengthOfStayInfo.Builder, com.google.ads.googleads.v17.common.HotelLengthOfStayInfoOrBuilder>( (com.google.ads.googleads.v17.common.HotelLengthOfStayInfo) criterion_, getParentForChildren(), isClean()); criterion_ = null; } criterionCase_ = 7; onChanged(); return hotelLengthOfStayBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelCheckInDayInfo, com.google.ads.googleads.v17.common.HotelCheckInDayInfo.Builder, com.google.ads.googleads.v17.common.HotelCheckInDayInfoOrBuilder> hotelCheckInDayBuilder_; /** *
     * Immutable. Criterion for day of the week the booking is for.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelCheckInDay field is set. */ @java.lang.Override public boolean hasHotelCheckInDay() { return criterionCase_ == 8; } /** *
     * Immutable. Criterion for day of the week the booking is for.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelCheckInDay. */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelCheckInDayInfo getHotelCheckInDay() { if (hotelCheckInDayBuilder_ == null) { if (criterionCase_ == 8) { return (com.google.ads.googleads.v17.common.HotelCheckInDayInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelCheckInDayInfo.getDefaultInstance(); } else { if (criterionCase_ == 8) { return hotelCheckInDayBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.HotelCheckInDayInfo.getDefaultInstance(); } } /** *
     * Immutable. Criterion for day of the week the booking is for.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelCheckInDay(com.google.ads.googleads.v17.common.HotelCheckInDayInfo value) { if (hotelCheckInDayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } criterion_ = value; onChanged(); } else { hotelCheckInDayBuilder_.setMessage(value); } criterionCase_ = 8; return this; } /** *
     * Immutable. Criterion for day of the week the booking is for.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelCheckInDay( com.google.ads.googleads.v17.common.HotelCheckInDayInfo.Builder builderForValue) { if (hotelCheckInDayBuilder_ == null) { criterion_ = builderForValue.build(); onChanged(); } else { hotelCheckInDayBuilder_.setMessage(builderForValue.build()); } criterionCase_ = 8; return this; } /** *
     * Immutable. Criterion for day of the week the booking is for.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeHotelCheckInDay(com.google.ads.googleads.v17.common.HotelCheckInDayInfo value) { if (hotelCheckInDayBuilder_ == null) { if (criterionCase_ == 8 && criterion_ != com.google.ads.googleads.v17.common.HotelCheckInDayInfo.getDefaultInstance()) { criterion_ = com.google.ads.googleads.v17.common.HotelCheckInDayInfo.newBuilder((com.google.ads.googleads.v17.common.HotelCheckInDayInfo) criterion_) .mergeFrom(value).buildPartial(); } else { criterion_ = value; } onChanged(); } else { if (criterionCase_ == 8) { hotelCheckInDayBuilder_.mergeFrom(value); } else { hotelCheckInDayBuilder_.setMessage(value); } } criterionCase_ = 8; return this; } /** *
     * Immutable. Criterion for day of the week the booking is for.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearHotelCheckInDay() { if (hotelCheckInDayBuilder_ == null) { if (criterionCase_ == 8) { criterionCase_ = 0; criterion_ = null; onChanged(); } } else { if (criterionCase_ == 8) { criterionCase_ = 0; criterion_ = null; } hotelCheckInDayBuilder_.clear(); } return this; } /** *
     * Immutable. Criterion for day of the week the booking is for.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v17.common.HotelCheckInDayInfo.Builder getHotelCheckInDayBuilder() { return getHotelCheckInDayFieldBuilder().getBuilder(); } /** *
     * Immutable. Criterion for day of the week the booking is for.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelCheckInDayInfoOrBuilder getHotelCheckInDayOrBuilder() { if ((criterionCase_ == 8) && (hotelCheckInDayBuilder_ != null)) { return hotelCheckInDayBuilder_.getMessageOrBuilder(); } else { if (criterionCase_ == 8) { return (com.google.ads.googleads.v17.common.HotelCheckInDayInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelCheckInDayInfo.getDefaultInstance(); } } /** *
     * Immutable. Criterion for day of the week the booking is for.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelCheckInDayInfo, com.google.ads.googleads.v17.common.HotelCheckInDayInfo.Builder, com.google.ads.googleads.v17.common.HotelCheckInDayInfoOrBuilder> getHotelCheckInDayFieldBuilder() { if (hotelCheckInDayBuilder_ == null) { if (!(criterionCase_ == 8)) { criterion_ = com.google.ads.googleads.v17.common.HotelCheckInDayInfo.getDefaultInstance(); } hotelCheckInDayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelCheckInDayInfo, com.google.ads.googleads.v17.common.HotelCheckInDayInfo.Builder, com.google.ads.googleads.v17.common.HotelCheckInDayInfoOrBuilder>( (com.google.ads.googleads.v17.common.HotelCheckInDayInfo) criterion_, getParentForChildren(), isClean()); criterion_ = null; } criterionCase_ = 8; onChanged(); return hotelCheckInDayBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.DeviceInfo, com.google.ads.googleads.v17.common.DeviceInfo.Builder, com.google.ads.googleads.v17.common.DeviceInfoOrBuilder> deviceBuilder_; /** *
     * Immutable. A device criterion.
     * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the device field is set. */ @java.lang.Override public boolean hasDevice() { return criterionCase_ == 11; } /** *
     * Immutable. A device criterion.
     * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; * @return The device. */ @java.lang.Override public com.google.ads.googleads.v17.common.DeviceInfo getDevice() { if (deviceBuilder_ == null) { if (criterionCase_ == 11) { return (com.google.ads.googleads.v17.common.DeviceInfo) criterion_; } return com.google.ads.googleads.v17.common.DeviceInfo.getDefaultInstance(); } else { if (criterionCase_ == 11) { return deviceBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.DeviceInfo.getDefaultInstance(); } } /** *
     * Immutable. A device criterion.
     * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setDevice(com.google.ads.googleads.v17.common.DeviceInfo value) { if (deviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } criterion_ = value; onChanged(); } else { deviceBuilder_.setMessage(value); } criterionCase_ = 11; return this; } /** *
     * Immutable. A device criterion.
     * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setDevice( com.google.ads.googleads.v17.common.DeviceInfo.Builder builderForValue) { if (deviceBuilder_ == null) { criterion_ = builderForValue.build(); onChanged(); } else { deviceBuilder_.setMessage(builderForValue.build()); } criterionCase_ = 11; return this; } /** *
     * Immutable. A device criterion.
     * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeDevice(com.google.ads.googleads.v17.common.DeviceInfo value) { if (deviceBuilder_ == null) { if (criterionCase_ == 11 && criterion_ != com.google.ads.googleads.v17.common.DeviceInfo.getDefaultInstance()) { criterion_ = com.google.ads.googleads.v17.common.DeviceInfo.newBuilder((com.google.ads.googleads.v17.common.DeviceInfo) criterion_) .mergeFrom(value).buildPartial(); } else { criterion_ = value; } onChanged(); } else { if (criterionCase_ == 11) { deviceBuilder_.mergeFrom(value); } else { deviceBuilder_.setMessage(value); } } criterionCase_ = 11; return this; } /** *
     * Immutable. A device criterion.
     * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearDevice() { if (deviceBuilder_ == null) { if (criterionCase_ == 11) { criterionCase_ = 0; criterion_ = null; onChanged(); } } else { if (criterionCase_ == 11) { criterionCase_ = 0; criterion_ = null; } deviceBuilder_.clear(); } return this; } /** *
     * Immutable. A device criterion.
     * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v17.common.DeviceInfo.Builder getDeviceBuilder() { return getDeviceFieldBuilder().getBuilder(); } /** *
     * Immutable. A device criterion.
     * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.DeviceInfoOrBuilder getDeviceOrBuilder() { if ((criterionCase_ == 11) && (deviceBuilder_ != null)) { return deviceBuilder_.getMessageOrBuilder(); } else { if (criterionCase_ == 11) { return (com.google.ads.googleads.v17.common.DeviceInfo) criterion_; } return com.google.ads.googleads.v17.common.DeviceInfo.getDefaultInstance(); } } /** *
     * Immutable. A device criterion.
     * 
* * .google.ads.googleads.v17.common.DeviceInfo device = 11 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.DeviceInfo, com.google.ads.googleads.v17.common.DeviceInfo.Builder, com.google.ads.googleads.v17.common.DeviceInfoOrBuilder> getDeviceFieldBuilder() { if (deviceBuilder_ == null) { if (!(criterionCase_ == 11)) { criterion_ = com.google.ads.googleads.v17.common.DeviceInfo.getDefaultInstance(); } deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.DeviceInfo, com.google.ads.googleads.v17.common.DeviceInfo.Builder, com.google.ads.googleads.v17.common.DeviceInfoOrBuilder>( (com.google.ads.googleads.v17.common.DeviceInfo) criterion_, getParentForChildren(), isClean()); criterion_ = null; } criterionCase_ = 11; onChanged(); return deviceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo, com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.Builder, com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfoOrBuilder> hotelCheckInDateRangeBuilder_; /** *
     * Immutable. Criterion for a hotel check-in date range.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the hotelCheckInDateRange field is set. */ @java.lang.Override public boolean hasHotelCheckInDateRange() { return criterionCase_ == 17; } /** *
     * Immutable. Criterion for a hotel check-in date range.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return The hotelCheckInDateRange. */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo getHotelCheckInDateRange() { if (hotelCheckInDateRangeBuilder_ == null) { if (criterionCase_ == 17) { return (com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.getDefaultInstance(); } else { if (criterionCase_ == 17) { return hotelCheckInDateRangeBuilder_.getMessage(); } return com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.getDefaultInstance(); } } /** *
     * Immutable. Criterion for a hotel check-in date range.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelCheckInDateRange(com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo value) { if (hotelCheckInDateRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } criterion_ = value; onChanged(); } else { hotelCheckInDateRangeBuilder_.setMessage(value); } criterionCase_ = 17; return this; } /** *
     * Immutable. Criterion for a hotel check-in date range.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setHotelCheckInDateRange( com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.Builder builderForValue) { if (hotelCheckInDateRangeBuilder_ == null) { criterion_ = builderForValue.build(); onChanged(); } else { hotelCheckInDateRangeBuilder_.setMessage(builderForValue.build()); } criterionCase_ = 17; return this; } /** *
     * Immutable. Criterion for a hotel check-in date range.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder mergeHotelCheckInDateRange(com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo value) { if (hotelCheckInDateRangeBuilder_ == null) { if (criterionCase_ == 17 && criterion_ != com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.getDefaultInstance()) { criterion_ = com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.newBuilder((com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo) criterion_) .mergeFrom(value).buildPartial(); } else { criterion_ = value; } onChanged(); } else { if (criterionCase_ == 17) { hotelCheckInDateRangeBuilder_.mergeFrom(value); } else { hotelCheckInDateRangeBuilder_.setMessage(value); } } criterionCase_ = 17; return this; } /** *
     * Immutable. Criterion for a hotel check-in date range.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearHotelCheckInDateRange() { if (hotelCheckInDateRangeBuilder_ == null) { if (criterionCase_ == 17) { criterionCase_ = 0; criterion_ = null; onChanged(); } } else { if (criterionCase_ == 17) { criterionCase_ = 0; criterion_ = null; } hotelCheckInDateRangeBuilder_.clear(); } return this; } /** *
     * Immutable. Criterion for a hotel check-in date range.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.Builder getHotelCheckInDateRangeBuilder() { return getHotelCheckInDateRangeFieldBuilder().getBuilder(); } /** *
     * Immutable. Criterion for a hotel check-in date range.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override public com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfoOrBuilder getHotelCheckInDateRangeOrBuilder() { if ((criterionCase_ == 17) && (hotelCheckInDateRangeBuilder_ != null)) { return hotelCheckInDateRangeBuilder_.getMessageOrBuilder(); } else { if (criterionCase_ == 17) { return (com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo) criterion_; } return com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.getDefaultInstance(); } } /** *
     * Immutable. Criterion for a hotel check-in date range.
     * 
* * .google.ads.googleads.v17.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo, com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.Builder, com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfoOrBuilder> getHotelCheckInDateRangeFieldBuilder() { if (hotelCheckInDateRangeBuilder_ == null) { if (!(criterionCase_ == 17)) { criterion_ = com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.getDefaultInstance(); } hotelCheckInDateRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo, com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo.Builder, com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfoOrBuilder>( (com.google.ads.googleads.v17.common.HotelCheckInDateRangeInfo) criterion_, getParentForChildren(), isClean()); criterion_ = null; } criterionCase_ = 17; onChanged(); return hotelCheckInDateRangeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.AdGroupBidModifier) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.AdGroupBidModifier) private static final com.google.ads.googleads.v17.resources.AdGroupBidModifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.AdGroupBidModifier(); } public static com.google.ads.googleads.v17.resources.AdGroupBidModifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AdGroupBidModifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.resources.AdGroupBidModifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy