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

/**
 * An edge describing the relationship between an Artifact and an Execution in a lineage graph.
 *
 * <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 GoogleCloudAiplatformV1beta1Event extends com.google.api.client.json.GenericJson {

  /**
   * Required. The relative resource name of the Artifact in the Event.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String artifact;

  /**
   * Output only. Time the Event occurred.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String eventTime;

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

  /**
   * The labels with user-defined metadata to annotate Events. 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 Event (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;

  /**
   * Required. The type of the Event.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String type;

  /**
   * Required. The relative resource name of the Artifact in the Event.
   * @return value or {@code null} for none
   */
  public java.lang.String getArtifact() {
    return artifact;
  }

  /**
   * Required. The relative resource name of the Artifact in the Event.
   * @param artifact artifact or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1Event setArtifact(java.lang.String artifact) {
    this.artifact = artifact;
    return this;
  }

  /**
   * Output only. Time the Event occurred.
   * @return value or {@code null} for none
   */
  public String getEventTime() {
    return eventTime;
  }

  /**
   * Output only. Time the Event occurred.
   * @param eventTime eventTime or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1Event setEventTime(String eventTime) {
    this.eventTime = eventTime;
    return this;
  }

  /**
   * Output only. The relative resource name of the Execution in the Event.
   * @return value or {@code null} for none
   */
  public java.lang.String getExecution() {
    return execution;
  }

  /**
   * Output only. The relative resource name of the Execution in the Event.
   * @param execution execution or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1Event setExecution(java.lang.String execution) {
    this.execution = execution;
    return this;
  }

  /**
   * The labels with user-defined metadata to annotate Events. 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 Event (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;
  }

  /**
   * The labels with user-defined metadata to annotate Events. 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 Event (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 GoogleCloudAiplatformV1beta1Event setLabels(java.util.Map<String, java.lang.String> labels) {
    this.labels = labels;
    return this;
  }

  /**
   * Required. The type of the Event.
   * @return value or {@code null} for none
   */
  public java.lang.String getType() {
    return type;
  }

  /**
   * Required. The type of the Event.
   * @param type type or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1Event setType(java.lang.String type) {
    this.type = type;
    return this;
  }

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

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

}
