• 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/devtools/cloudbuild/v1/cloudbuild.proto
18 
19 package com.google.cloudbuild.v1;
20 
21 public interface SecretOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.Secret)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Cloud KMS key name to use to decrypt these envs.
31    * </pre>
32    *
33    * <code>string kms_key_name = 1;</code>
34    *
35    * @return The kmsKeyName.
36    */
getKmsKeyName()37   java.lang.String getKmsKeyName();
38   /**
39    *
40    *
41    * <pre>
42    * Cloud KMS key name to use to decrypt these envs.
43    * </pre>
44    *
45    * <code>string kms_key_name = 1;</code>
46    *
47    * @return The bytes for kmsKeyName.
48    */
getKmsKeyNameBytes()49   com.google.protobuf.ByteString getKmsKeyNameBytes();
50 
51   /**
52    *
53    *
54    * <pre>
55    * Map of environment variable name to its encrypted value.
56    * Secret environment variables must be unique across all of a build's
57    * secrets, and must be used by at least one build step. Values can be at most
58    * 64 KB in size. There can be at most 100 secret values across all of a
59    * build's secrets.
60    * </pre>
61    *
62    * <code>map&lt;string, bytes&gt; secret_env = 3;</code>
63    */
getSecretEnvCount()64   int getSecretEnvCount();
65   /**
66    *
67    *
68    * <pre>
69    * Map of environment variable name to its encrypted value.
70    * Secret environment variables must be unique across all of a build's
71    * secrets, and must be used by at least one build step. Values can be at most
72    * 64 KB in size. There can be at most 100 secret values across all of a
73    * build's secrets.
74    * </pre>
75    *
76    * <code>map&lt;string, bytes&gt; secret_env = 3;</code>
77    */
containsSecretEnv(java.lang.String key)78   boolean containsSecretEnv(java.lang.String key);
79   /** Use {@link #getSecretEnvMap()} instead. */
80   @java.lang.Deprecated
getSecretEnv()81   java.util.Map<java.lang.String, com.google.protobuf.ByteString> getSecretEnv();
82   /**
83    *
84    *
85    * <pre>
86    * Map of environment variable name to its encrypted value.
87    * Secret environment variables must be unique across all of a build's
88    * secrets, and must be used by at least one build step. Values can be at most
89    * 64 KB in size. There can be at most 100 secret values across all of a
90    * build's secrets.
91    * </pre>
92    *
93    * <code>map&lt;string, bytes&gt; secret_env = 3;</code>
94    */
getSecretEnvMap()95   java.util.Map<java.lang.String, com.google.protobuf.ByteString> getSecretEnvMap();
96   /**
97    *
98    *
99    * <pre>
100    * Map of environment variable name to its encrypted value.
101    * Secret environment variables must be unique across all of a build's
102    * secrets, and must be used by at least one build step. Values can be at most
103    * 64 KB in size. There can be at most 100 secret values across all of a
104    * build's secrets.
105    * </pre>
106    *
107    * <code>map&lt;string, bytes&gt; secret_env = 3;</code>
108    */
109   /* nullable */
getSecretEnvOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue)110   com.google.protobuf.ByteString getSecretEnvOrDefault(
111       java.lang.String key,
112       /* nullable */
113       com.google.protobuf.ByteString defaultValue);
114   /**
115    *
116    *
117    * <pre>
118    * Map of environment variable name to its encrypted value.
119    * Secret environment variables must be unique across all of a build's
120    * secrets, and must be used by at least one build step. Values can be at most
121    * 64 KB in size. There can be at most 100 secret values across all of a
122    * build's secrets.
123    * </pre>
124    *
125    * <code>map&lt;string, bytes&gt; secret_env = 3;</code>
126    */
getSecretEnvOrThrow(java.lang.String key)127   com.google.protobuf.ByteString getSecretEnvOrThrow(java.lang.String key);
128 }
129