/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.searchads360.v0.model;

/**
 * A unified call asset.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Search Ads 360 Reporting API. For a detailed
 * explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleAdsSearchads360V0CommonUnifiedCallAsset extends com.google.api.client.json.GenericJson {

  /**
   * List of non-overlapping schedules specifying all time intervals for which the asset may serve.
   * There can be a maximum of 6 schedules per day, 42 in total.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleAdsSearchads360V0CommonAdScheduleInfo> adScheduleTargets;

  static {
    // hack to force ProGuard to consider GoogleAdsSearchads360V0CommonAdScheduleInfo used, since otherwise it would be stripped out
    // see https://github.com/google/google-api-java-client/issues/543
    com.google.api.client.util.Data.nullOf(GoogleAdsSearchads360V0CommonAdScheduleInfo.class);
  }

  /**
   * The conversion action to attribute a call conversion to. If not set, the default conversion
   * action is used. This field only has effect if call_conversion_reporting_state is set to
   * USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String callConversionAction;

  /**
   * Output only. Indicates whether this CallAsset should use its own call conversion setting,
   * follow the account level setting, or disable call conversion.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String callConversionReportingState;

  /**
   * Whether the call only shows the phone number without a link to the website. Applies to
   * Microsoft Ads.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean callOnly;

  /**
   * Whether the call should be enabled on call tracking. Applies to Microsoft Ads.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean callTrackingEnabled;

  /**
   * Two-letter country code of the phone number. Examples: 'US', 'us'.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String countryCode;

  /**
   * Last date of when this asset is effective and still serving, in yyyy-MM-dd format.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String endDate;

  /**
   * The advertiser's raw phone number. Examples: '1234567890', '(123)456-7890'
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String phoneNumber;

  /**
   * Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String startDate;

  /**
   * Whether to show the call extension in search user's time zone. Applies to Microsoft Ads.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean useSearcherTimeZone;

  /**
   * List of non-overlapping schedules specifying all time intervals for which the asset may serve.
   * There can be a maximum of 6 schedules per day, 42 in total.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleAdsSearchads360V0CommonAdScheduleInfo> getAdScheduleTargets() {
    return adScheduleTargets;
  }

  /**
   * List of non-overlapping schedules specifying all time intervals for which the asset may serve.
   * There can be a maximum of 6 schedules per day, 42 in total.
   * @param adScheduleTargets adScheduleTargets or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset setAdScheduleTargets(java.util.List<GoogleAdsSearchads360V0CommonAdScheduleInfo> adScheduleTargets) {
    this.adScheduleTargets = adScheduleTargets;
    return this;
  }

  /**
   * The conversion action to attribute a call conversion to. If not set, the default conversion
   * action is used. This field only has effect if call_conversion_reporting_state is set to
   * USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION.
   * @return value or {@code null} for none
   */
  public java.lang.String getCallConversionAction() {
    return callConversionAction;
  }

  /**
   * The conversion action to attribute a call conversion to. If not set, the default conversion
   * action is used. This field only has effect if call_conversion_reporting_state is set to
   * USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION.
   * @param callConversionAction callConversionAction or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset setCallConversionAction(java.lang.String callConversionAction) {
    this.callConversionAction = callConversionAction;
    return this;
  }

  /**
   * Output only. Indicates whether this CallAsset should use its own call conversion setting,
   * follow the account level setting, or disable call conversion.
   * @return value or {@code null} for none
   */
  public java.lang.String getCallConversionReportingState() {
    return callConversionReportingState;
  }

  /**
   * Output only. Indicates whether this CallAsset should use its own call conversion setting,
   * follow the account level setting, or disable call conversion.
   * @param callConversionReportingState callConversionReportingState or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset setCallConversionReportingState(java.lang.String callConversionReportingState) {
    this.callConversionReportingState = callConversionReportingState;
    return this;
  }

  /**
   * Whether the call only shows the phone number without a link to the website. Applies to
   * Microsoft Ads.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getCallOnly() {
    return callOnly;
  }

  /**
   * Whether the call only shows the phone number without a link to the website. Applies to
   * Microsoft Ads.
   * @param callOnly callOnly or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset setCallOnly(java.lang.Boolean callOnly) {
    this.callOnly = callOnly;
    return this;
  }

  /**
   * Whether the call should be enabled on call tracking. Applies to Microsoft Ads.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getCallTrackingEnabled() {
    return callTrackingEnabled;
  }

  /**
   * Whether the call should be enabled on call tracking. Applies to Microsoft Ads.
   * @param callTrackingEnabled callTrackingEnabled or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset setCallTrackingEnabled(java.lang.Boolean callTrackingEnabled) {
    this.callTrackingEnabled = callTrackingEnabled;
    return this;
  }

  /**
   * Two-letter country code of the phone number. Examples: 'US', 'us'.
   * @return value or {@code null} for none
   */
  public java.lang.String getCountryCode() {
    return countryCode;
  }

  /**
   * Two-letter country code of the phone number. Examples: 'US', 'us'.
   * @param countryCode countryCode or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset setCountryCode(java.lang.String countryCode) {
    this.countryCode = countryCode;
    return this;
  }

  /**
   * Last date of when this asset is effective and still serving, in yyyy-MM-dd format.
   * @return value or {@code null} for none
   */
  public java.lang.String getEndDate() {
    return endDate;
  }

  /**
   * Last date of when this asset is effective and still serving, in yyyy-MM-dd format.
   * @param endDate endDate or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset setEndDate(java.lang.String endDate) {
    this.endDate = endDate;
    return this;
  }

  /**
   * The advertiser's raw phone number. Examples: '1234567890', '(123)456-7890'
   * @return value or {@code null} for none
   */
  public java.lang.String getPhoneNumber() {
    return phoneNumber;
  }

  /**
   * The advertiser's raw phone number. Examples: '1234567890', '(123)456-7890'
   * @param phoneNumber phoneNumber or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset setPhoneNumber(java.lang.String phoneNumber) {
    this.phoneNumber = phoneNumber;
    return this;
  }

  /**
   * Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.
   * @return value or {@code null} for none
   */
  public java.lang.String getStartDate() {
    return startDate;
  }

  /**
   * Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.
   * @param startDate startDate or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset setStartDate(java.lang.String startDate) {
    this.startDate = startDate;
    return this;
  }

  /**
   * Whether to show the call extension in search user's time zone. Applies to Microsoft Ads.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getUseSearcherTimeZone() {
    return useSearcherTimeZone;
  }

  /**
   * Whether to show the call extension in search user's time zone. Applies to Microsoft Ads.
   * @param useSearcherTimeZone useSearcherTimeZone or {@code null} for none
   */
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset setUseSearcherTimeZone(java.lang.Boolean useSearcherTimeZone) {
    this.useSearcherTimeZone = useSearcherTimeZone;
    return this;
  }

  @Override
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset set(String fieldName, Object value) {
    return (GoogleAdsSearchads360V0CommonUnifiedCallAsset) super.set(fieldName, value);
  }

  @Override
  public GoogleAdsSearchads360V0CommonUnifiedCallAsset clone() {
    return (GoogleAdsSearchads360V0CommonUnifiedCallAsset) super.clone();
  }

}
