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