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

/**
 * A piece of data in a Dataset. Could be an image, a video, a document or plain text.
 *
 * <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 Vertex AI 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 GoogleCloudAiplatformV1DataItem extends com.google.api.client.json.GenericJson {

  /**
   * Output only. Timestamp when this DataItem was created.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String createTime;

  /**
   * Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite"
   * update happens.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String etag;

  /**
   * Optional. The labels with user-defined metadata to organize your DataItems. Label keys and
   * values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase
   * letters, numeric characters, underscores and dashes. International characters are allowed. No
   * more than 64 user labels can be associated with one DataItem(System labels are excluded). See
   * https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys
   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.Map<String, java.lang.String> labels;

  /**
   * Output only. The resource name of the DataItem.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Required. The data that the DataItem represents (for example, an image or a text snippet). The
   * schema of the payload is stored in the parent Dataset's metadata schema's dataItemSchemaUri
   * field.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Object payload;

  /**
   * Output only. Timestamp when this DataItem was last updated.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String updateTime;

  /**
   * Output only. Timestamp when this DataItem was created.
   * @return value or {@code null} for none
   */
  public String getCreateTime() {
    return createTime;
  }

  /**
   * Output only. Timestamp when this DataItem was created.
   * @param createTime createTime or {@code null} for none
   */
  public GoogleCloudAiplatformV1DataItem setCreateTime(String createTime) {
    this.createTime = createTime;
    return this;
  }

  /**
   * Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite"
   * update happens.
   * @return value or {@code null} for none
   */
  public java.lang.String getEtag() {
    return etag;
  }

  /**
   * Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite"
   * update happens.
   * @param etag etag or {@code null} for none
   */
  public GoogleCloudAiplatformV1DataItem setEtag(java.lang.String etag) {
    this.etag = etag;
    return this;
  }

  /**
   * Optional. The labels with user-defined metadata to organize your DataItems. Label keys and
   * values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase
   * letters, numeric characters, underscores and dashes. International characters are allowed. No
   * more than 64 user labels can be associated with one DataItem(System labels are excluded). See
   * https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys
   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
   * @return value or {@code null} for none
   */
  public java.util.Map<String, java.lang.String> getLabels() {
    return labels;
  }

  /**
   * Optional. The labels with user-defined metadata to organize your DataItems. Label keys and
   * values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase
   * letters, numeric characters, underscores and dashes. International characters are allowed. No
   * more than 64 user labels can be associated with one DataItem(System labels are excluded). See
   * https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys
   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
   * @param labels labels or {@code null} for none
   */
  public GoogleCloudAiplatformV1DataItem setLabels(java.util.Map<String, java.lang.String> labels) {
    this.labels = labels;
    return this;
  }

  /**
   * Output only. The resource name of the DataItem.
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Output only. The resource name of the DataItem.
   * @param name name or {@code null} for none
   */
  public GoogleCloudAiplatformV1DataItem setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Required. The data that the DataItem represents (for example, an image or a text snippet). The
   * schema of the payload is stored in the parent Dataset's metadata schema's dataItemSchemaUri
   * field.
   * @return value or {@code null} for none
   */
  public java.lang.Object getPayload() {
    return payload;
  }

  /**
   * Required. The data that the DataItem represents (for example, an image or a text snippet). The
   * schema of the payload is stored in the parent Dataset's metadata schema's dataItemSchemaUri
   * field.
   * @param payload payload or {@code null} for none
   */
  public GoogleCloudAiplatformV1DataItem setPayload(java.lang.Object payload) {
    this.payload = payload;
    return this;
  }

  /**
   * Output only. Timestamp when this DataItem was last updated.
   * @return value or {@code null} for none
   */
  public String getUpdateTime() {
    return updateTime;
  }

  /**
   * Output only. Timestamp when this DataItem was last updated.
   * @param updateTime updateTime or {@code null} for none
   */
  public GoogleCloudAiplatformV1DataItem setUpdateTime(String updateTime) {
    this.updateTime = updateTime;
    return this;
  }

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

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

}
