/*
 * Copyright 2020 Google LLC
 *
 * 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
 *
 *     https://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.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dataplex/v1/logs.proto

package com.google.cloud.dataplex.v1;

public interface SessionEventOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.SessionEvent)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * The log message.
   * </pre>
   *
   * <code>string message = 1;</code>
   *
   * @return The message.
   */
  java.lang.String getMessage();
  /**
   *
   *
   * <pre>
   * The log message.
   * </pre>
   *
   * <code>string message = 1;</code>
   *
   * @return The bytes for message.
   */
  com.google.protobuf.ByteString getMessageBytes();

  /**
   *
   *
   * <pre>
   * The information about the user that created the session. It will be the
   * email address of the user.
   * </pre>
   *
   * <code>string user_id = 2;</code>
   *
   * @return The userId.
   */
  java.lang.String getUserId();
  /**
   *
   *
   * <pre>
   * The information about the user that created the session. It will be the
   * email address of the user.
   * </pre>
   *
   * <code>string user_id = 2;</code>
   *
   * @return The bytes for userId.
   */
  com.google.protobuf.ByteString getUserIdBytes();

  /**
   *
   *
   * <pre>
   * Unique identifier for the session.
   * </pre>
   *
   * <code>string session_id = 3;</code>
   *
   * @return The sessionId.
   */
  java.lang.String getSessionId();
  /**
   *
   *
   * <pre>
   * Unique identifier for the session.
   * </pre>
   *
   * <code>string session_id = 3;</code>
   *
   * @return The bytes for sessionId.
   */
  com.google.protobuf.ByteString getSessionIdBytes();

  /**
   *
   *
   * <pre>
   * The type of the event.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;</code>
   *
   * @return The enum numeric value on the wire for type.
   */
  int getTypeValue();
  /**
   *
   *
   * <pre>
   * The type of the event.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.SessionEvent.EventType type = 4;</code>
   *
   * @return The type.
   */
  com.google.cloud.dataplex.v1.SessionEvent.EventType getType();

  /**
   *
   *
   * <pre>
   * The execution details of the query.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;</code>
   *
   * @return Whether the query field is set.
   */
  boolean hasQuery();
  /**
   *
   *
   * <pre>
   * The execution details of the query.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;</code>
   *
   * @return The query.
   */
  com.google.cloud.dataplex.v1.SessionEvent.QueryDetail getQuery();
  /**
   *
   *
   * <pre>
   * The execution details of the query.
   * </pre>
   *
   * <code>.google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5;</code>
   */
  com.google.cloud.dataplex.v1.SessionEvent.QueryDetailOrBuilder getQueryOrBuilder();

  /**
   *
   *
   * <pre>
   * The status of the event.
   * </pre>
   *
   * <code>bool event_succeeded = 6;</code>
   *
   * @return The eventSucceeded.
   */
  boolean getEventSucceeded();

  /**
   *
   *
   * <pre>
   * If the session is associated with an environment with fast startup enabled,
   * and was created before being assigned to a user.
   * </pre>
   *
   * <code>bool fast_startup_enabled = 7;</code>
   *
   * @return The fastStartupEnabled.
   */
  boolean getFastStartupEnabled();

  /**
   *
   *
   * <pre>
   * The idle duration of a warm pooled session before it is assigned to user.
   * </pre>
   *
   * <code>.google.protobuf.Duration unassigned_duration = 8;</code>
   *
   * @return Whether the unassignedDuration field is set.
   */
  boolean hasUnassignedDuration();
  /**
   *
   *
   * <pre>
   * The idle duration of a warm pooled session before it is assigned to user.
   * </pre>
   *
   * <code>.google.protobuf.Duration unassigned_duration = 8;</code>
   *
   * @return The unassignedDuration.
   */
  com.google.protobuf.Duration getUnassignedDuration();
  /**
   *
   *
   * <pre>
   * The idle duration of a warm pooled session before it is assigned to user.
   * </pre>
   *
   * <code>.google.protobuf.Duration unassigned_duration = 8;</code>
   */
  com.google.protobuf.DurationOrBuilder getUnassignedDurationOrBuilder();

  public com.google.cloud.dataplex.v1.SessionEvent.DetailCase getDetailCase();
}
