/*
 * 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/dataproc/v1/workflow_templates.proto

package com.google.cloud.dataproc.v1;

public interface ClusterSelectorOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterSelector)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Optional. The zone where workflow process executes. This parameter does not
   * affect the selection of the cluster.
   * If unspecified, the zone of the first cluster matching the selector
   * is used.
   * </pre>
   *
   * <code>string zone = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The zone.
   */
  java.lang.String getZone();
  /**
   *
   *
   * <pre>
   * Optional. The zone where workflow process executes. This parameter does not
   * affect the selection of the cluster.
   * If unspecified, the zone of the first cluster matching the selector
   * is used.
   * </pre>
   *
   * <code>string zone = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @return The bytes for zone.
   */
  com.google.protobuf.ByteString getZoneBytes();

  /**
   *
   *
   * <pre>
   * Required. The cluster labels. Cluster must have all labels
   * to match.
   * </pre>
   *
   * <code>map&lt;string, string&gt; cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  int getClusterLabelsCount();
  /**
   *
   *
   * <pre>
   * Required. The cluster labels. Cluster must have all labels
   * to match.
   * </pre>
   *
   * <code>map&lt;string, string&gt; cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  boolean containsClusterLabels(java.lang.String key);
  /** Use {@link #getClusterLabelsMap()} instead. */
  @java.lang.Deprecated
  java.util.Map<java.lang.String, java.lang.String> getClusterLabels();
  /**
   *
   *
   * <pre>
   * Required. The cluster labels. Cluster must have all labels
   * to match.
   * </pre>
   *
   * <code>map&lt;string, string&gt; cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  java.util.Map<java.lang.String, java.lang.String> getClusterLabelsMap();
  /**
   *
   *
   * <pre>
   * Required. The cluster labels. Cluster must have all labels
   * to match.
   * </pre>
   *
   * <code>map&lt;string, string&gt; cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  /* nullable */
  java.lang.String getClusterLabelsOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue);
  /**
   *
   *
   * <pre>
   * Required. The cluster labels. Cluster must have all labels
   * to match.
   * </pre>
   *
   * <code>map&lt;string, string&gt; cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
   * </code>
   */
  java.lang.String getClusterLabelsOrThrow(java.lang.String key);
}
