/*
 * 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.contentwarehouse.v1.model;

/**
 * A document schema used to define document structure.
 *
 * <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 Document AI Warehouse 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 GoogleCloudContentwarehouseV1DocumentSchema extends com.google.api.client.json.GenericJson {

  /**
   * Output only. The time when the document schema is created.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String createTime;

  /**
   * Schema description.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String description;

  /**
   * Required. Name of the schema given by the user. Must be unique per project.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String displayName;

  /**
   * Document Type, true refers the document is a folder, otherwise it is a typical document.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean documentIsFolder;

  /**
   * The resource name of the document schema. Format:
   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name
   * is ignored when creating a document schema.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Document details.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudContentwarehouseV1PropertyDefinition> propertyDefinitions;

  /**
   * Output only. The time when the document schema is last updated.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String updateTime;

  /**
   * Output only. The time when the document schema is created.
   * @return value or {@code null} for none
   */
  public String getCreateTime() {
    return createTime;
  }

  /**
   * Output only. The time when the document schema is created.
   * @param createTime createTime or {@code null} for none
   */
  public GoogleCloudContentwarehouseV1DocumentSchema setCreateTime(String createTime) {
    this.createTime = createTime;
    return this;
  }

  /**
   * Schema description.
   * @return value or {@code null} for none
   */
  public java.lang.String getDescription() {
    return description;
  }

  /**
   * Schema description.
   * @param description description or {@code null} for none
   */
  public GoogleCloudContentwarehouseV1DocumentSchema setDescription(java.lang.String description) {
    this.description = description;
    return this;
  }

  /**
   * Required. Name of the schema given by the user. Must be unique per project.
   * @return value or {@code null} for none
   */
  public java.lang.String getDisplayName() {
    return displayName;
  }

  /**
   * Required. Name of the schema given by the user. Must be unique per project.
   * @param displayName displayName or {@code null} for none
   */
  public GoogleCloudContentwarehouseV1DocumentSchema setDisplayName(java.lang.String displayName) {
    this.displayName = displayName;
    return this;
  }

  /**
   * Document Type, true refers the document is a folder, otherwise it is a typical document.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getDocumentIsFolder() {
    return documentIsFolder;
  }

  /**
   * Document Type, true refers the document is a folder, otherwise it is a typical document.
   * @param documentIsFolder documentIsFolder or {@code null} for none
   */
  public GoogleCloudContentwarehouseV1DocumentSchema setDocumentIsFolder(java.lang.Boolean documentIsFolder) {
    this.documentIsFolder = documentIsFolder;
    return this;
  }

  /**
   * The resource name of the document schema. Format:
   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name
   * is ignored when creating a document schema.
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * The resource name of the document schema. Format:
   * projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name
   * is ignored when creating a document schema.
   * @param name name or {@code null} for none
   */
  public GoogleCloudContentwarehouseV1DocumentSchema setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Document details.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudContentwarehouseV1PropertyDefinition> getPropertyDefinitions() {
    return propertyDefinitions;
  }

  /**
   * Document details.
   * @param propertyDefinitions propertyDefinitions or {@code null} for none
   */
  public GoogleCloudContentwarehouseV1DocumentSchema setPropertyDefinitions(java.util.List<GoogleCloudContentwarehouseV1PropertyDefinition> propertyDefinitions) {
    this.propertyDefinitions = propertyDefinitions;
    return this;
  }

  /**
   * Output only. The time when the document schema is last updated.
   * @return value or {@code null} for none
   */
  public String getUpdateTime() {
    return updateTime;
  }

  /**
   * Output only. The time when the document schema is last updated.
   * @param updateTime updateTime or {@code null} for none
   */
  public GoogleCloudContentwarehouseV1DocumentSchema setUpdateTime(String updateTime) {
    this.updateTime = updateTime;
    return this;
  }

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

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

}
