Package com.google.cloud.functions.v2
Class SecretEnvVar.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SecretEnvVar.Builder>
com.google.cloud.functions.v2.SecretEnvVar.Builder
- All Implemented Interfaces:
SecretEnvVarOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SecretEnvVar
public static final class SecretEnvVar.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SecretEnvVar.Builder>
implements SecretEnvVarOrBuilder
Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.Protobuf type
google.cloud.functions.v2.SecretEnvVar-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearKey()Name of the environment variable.Project identifier (preferably project number but can also be the project ID) of the project that contains the secret.Name of the secret in secret manager (not the full resource name).Version of the secret (version number or the string 'latest').static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()Name of the environment variable.com.google.protobuf.ByteStringName of the environment variable.Project identifier (preferably project number but can also be the project ID) of the project that contains the secret.com.google.protobuf.ByteStringProject identifier (preferably project number but can also be the project ID) of the project that contains the secret.Name of the secret in secret manager (not the full resource name).com.google.protobuf.ByteStringName of the secret in secret manager (not the full resource name).Version of the secret (version number or the string 'latest').com.google.protobuf.ByteStringVersion of the secret (version number or the string 'latest').protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SecretEnvVar other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Name of the environment variable.setKeyBytes(com.google.protobuf.ByteString value) Name of the environment variable.setProjectId(String value) Project identifier (preferably project number but can also be the project ID) of the project that contains the secret.setProjectIdBytes(com.google.protobuf.ByteString value) Project identifier (preferably project number but can also be the project ID) of the project that contains the secret.Name of the secret in secret manager (not the full resource name).setSecretBytes(com.google.protobuf.ByteString value) Name of the secret in secret manager (not the full resource name).setVersion(String value) Version of the secret (version number or the string 'latest').setVersionBytes(com.google.protobuf.ByteString value) Version of the secret (version number or the string 'latest').Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SecretEnvVar.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SecretEnvVar.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SecretEnvVar.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecretEnvVar.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SecretEnvVar.Builder>
-
mergeFrom
public SecretEnvVar.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecretEnvVar.Builder>- Throws:
IOException
-
getKey
Name of the environment variable.
string key = 1;- Specified by:
getKeyin interfaceSecretEnvVarOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()Name of the environment variable.
string key = 1;- Specified by:
getKeyBytesin interfaceSecretEnvVarOrBuilder- Returns:
- The bytes for key.
-
setKey
Name of the environment variable.
string key = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
Name of the environment variable.
string key = 1;- Returns:
- This builder for chaining.
-
setKeyBytes
Name of the environment variable.
string key = 1;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
getProjectId
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
string project_id = 2;- Specified by:
getProjectIdin interfaceSecretEnvVarOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
string project_id = 2;- Specified by:
getProjectIdBytesin interfaceSecretEnvVarOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
string project_id = 2;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
string project_id = 2;- Returns:
- This builder for chaining.
-
setProjectIdBytes
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
string project_id = 2;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getSecret
Name of the secret in secret manager (not the full resource name).
string secret = 3;- Specified by:
getSecretin interfaceSecretEnvVarOrBuilder- Returns:
- The secret.
-
getSecretBytes
public com.google.protobuf.ByteString getSecretBytes()Name of the secret in secret manager (not the full resource name).
string secret = 3;- Specified by:
getSecretBytesin interfaceSecretEnvVarOrBuilder- Returns:
- The bytes for secret.
-
setSecret
Name of the secret in secret manager (not the full resource name).
string secret = 3;- Parameters:
value- The secret to set.- Returns:
- This builder for chaining.
-
clearSecret
Name of the secret in secret manager (not the full resource name).
string secret = 3;- Returns:
- This builder for chaining.
-
setSecretBytes
Name of the secret in secret manager (not the full resource name).
string secret = 3;- Parameters:
value- The bytes for secret to set.- Returns:
- This builder for chaining.
-
getVersion
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
string version = 4;- Specified by:
getVersionin interfaceSecretEnvVarOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
string version = 4;- Specified by:
getVersionBytesin interfaceSecretEnvVarOrBuilder- Returns:
- The bytes for version.
-
setVersion
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
string version = 4;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
string version = 4;- Returns:
- This builder for chaining.
-
setVersionBytes
Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
string version = 4;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-