/*
 * 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.firebaseappcheck.v1beta.model;

/**
 * Request message for the UpdateService method as well as an individual update message for the
 * BatchUpdateServices method.
 *
 * <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 Firebase App Check 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 GoogleFirebaseAppcheckV1betaUpdateServiceRequest extends com.google.api.client.json.GenericJson {

  /**
   * Required. The Service to update. The Service's `name` field is used to identify the Service to
   * be updated, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that
   * the `service_id` element must be a supported service ID. Currently, the following service IDs
   * are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) *
   * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com`
   * (Cloud Firestore)
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleFirebaseAppcheckV1betaService service;

  /**
   * Required. A comma-separated list of names of fields in the Service to update. Example:
   * `enforcement_mode`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String updateMask;

  /**
   * Required. The Service to update. The Service's `name` field is used to identify the Service to
   * be updated, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that
   * the `service_id` element must be a supported service ID. Currently, the following service IDs
   * are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) *
   * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com`
   * (Cloud Firestore)
   * @return value or {@code null} for none
   */
  public GoogleFirebaseAppcheckV1betaService getService() {
    return service;
  }

  /**
   * Required. The Service to update. The Service's `name` field is used to identify the Service to
   * be updated, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that
   * the `service_id` element must be a supported service ID. Currently, the following service IDs
   * are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) *
   * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com`
   * (Cloud Firestore)
   * @param service service or {@code null} for none
   */
  public GoogleFirebaseAppcheckV1betaUpdateServiceRequest setService(GoogleFirebaseAppcheckV1betaService service) {
    this.service = service;
    return this;
  }

  /**
   * Required. A comma-separated list of names of fields in the Service to update. Example:
   * `enforcement_mode`.
   * @return value or {@code null} for none
   */
  public String getUpdateMask() {
    return updateMask;
  }

  /**
   * Required. A comma-separated list of names of fields in the Service to update. Example:
   * `enforcement_mode`.
   * @param updateMask updateMask or {@code null} for none
   */
  public GoogleFirebaseAppcheckV1betaUpdateServiceRequest setUpdateMask(String updateMask) {
    this.updateMask = updateMask;
    return this;
  }

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

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

}
