• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/dataproc/v1/workflow_templates.proto
18 
19 package com.google.cloud.dataproc.v1;
20 
21 public interface ClusterSelectorOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterSelector)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Optional. The zone where workflow process executes. This parameter does not
31    * affect the selection of the cluster.
32    * If unspecified, the zone of the first cluster matching the selector
33    * is used.
34    * </pre>
35    *
36    * <code>string zone = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
37    *
38    * @return The zone.
39    */
getZone()40   java.lang.String getZone();
41   /**
42    *
43    *
44    * <pre>
45    * Optional. The zone where workflow process executes. This parameter does not
46    * affect the selection of the cluster.
47    * If unspecified, the zone of the first cluster matching the selector
48    * is used.
49    * </pre>
50    *
51    * <code>string zone = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
52    *
53    * @return The bytes for zone.
54    */
getZoneBytes()55   com.google.protobuf.ByteString getZoneBytes();
56 
57   /**
58    *
59    *
60    * <pre>
61    * Required. The cluster labels. Cluster must have all labels
62    * to match.
63    * </pre>
64    *
65    * <code>map&lt;string, string&gt; cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
66    * </code>
67    */
getClusterLabelsCount()68   int getClusterLabelsCount();
69   /**
70    *
71    *
72    * <pre>
73    * Required. The cluster labels. Cluster must have all labels
74    * to match.
75    * </pre>
76    *
77    * <code>map&lt;string, string&gt; cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
78    * </code>
79    */
containsClusterLabels(java.lang.String key)80   boolean containsClusterLabels(java.lang.String key);
81   /** Use {@link #getClusterLabelsMap()} instead. */
82   @java.lang.Deprecated
getClusterLabels()83   java.util.Map<java.lang.String, java.lang.String> getClusterLabels();
84   /**
85    *
86    *
87    * <pre>
88    * Required. The cluster labels. Cluster must have all labels
89    * to match.
90    * </pre>
91    *
92    * <code>map&lt;string, string&gt; cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
93    * </code>
94    */
getClusterLabelsMap()95   java.util.Map<java.lang.String, java.lang.String> getClusterLabelsMap();
96   /**
97    *
98    *
99    * <pre>
100    * Required. The cluster labels. Cluster must have all labels
101    * to match.
102    * </pre>
103    *
104    * <code>map&lt;string, string&gt; cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
105    * </code>
106    */
107   /* nullable */
getClusterLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)108   java.lang.String getClusterLabelsOrDefault(
109       java.lang.String key,
110       /* nullable */
111       java.lang.String defaultValue);
112   /**
113    *
114    *
115    * <pre>
116    * Required. The cluster labels. Cluster must have all labels
117    * to match.
118    * </pre>
119    *
120    * <code>map&lt;string, string&gt; cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
121    * </code>
122    */
getClusterLabelsOrThrow(java.lang.String key)123   java.lang.String getClusterLabelsOrThrow(java.lang.String key);
124 }
125