- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.4
- 2.4.3
- 2.3.6
public static final class SecretEnvVar.Builder extends GeneratedMessageV3.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.v2alpha.SecretEnvVar
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SecretEnvVar.BuilderImplements
SecretEnvVarOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
build()
public SecretEnvVar build()
Returns | |
---|---|
Type | Description |
SecretEnvVar |
buildPartial()
public SecretEnvVar buildPartial()
Returns | |
---|---|
Type | Description |
SecretEnvVar |
clear()
public SecretEnvVar.Builder clear()
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder |
clearKey()
public SecretEnvVar.Builder clearKey()
Name of the environment variable.
string key = 1;
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
clearProjectId()
public SecretEnvVar.Builder 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 | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
clearSecret()
public SecretEnvVar.Builder clearSecret()
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
clearVersion()
public SecretEnvVar.Builder 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 | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
getDefaultInstanceForType()
public SecretEnvVar getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SecretEnvVar |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getKey()
public String getKey()
Name of the environment variable.
string key = 1;
Returns | |
---|---|
Type | Description |
String | The key. |
getKeyBytes()
public ByteString getKeyBytes()
Name of the environment variable.
string key = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for key. |
getProjectId()
public String 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;
Returns | |
---|---|
Type | Description |
String | The projectId. |
getProjectIdBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for projectId. |
getSecret()
public String getSecret()
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Returns | |
---|---|
Type | Description |
String | The secret. |
getSecretBytes()
public ByteString getSecretBytes()
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for secret. |
getVersion()
public String 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;
Returns | |
---|---|
Type | Description |
String | The version. |
getVersionBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for version. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(SecretEnvVar other)
public SecretEnvVar.Builder mergeFrom(SecretEnvVar other)
Parameter | |
---|---|
Name | Description |
other | SecretEnvVar |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SecretEnvVar.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SecretEnvVar.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecretEnvVar.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder |
setKey(String value)
public SecretEnvVar.Builder setKey(String value)
Name of the environment variable.
string key = 1;
Parameter | |
---|---|
Name | Description |
value | String The key to set. |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setKeyBytes(ByteString value)
public SecretEnvVar.Builder setKeyBytes(ByteString value)
Name of the environment variable.
string key = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for key to set. |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setProjectId(String value)
public SecretEnvVar.Builder setProjectId(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The projectId to set. |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setProjectIdBytes(ByteString value)
public SecretEnvVar.Builder setProjectIdBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for projectId to set. |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setSecret(String value)
public SecretEnvVar.Builder setSecret(String value)
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Parameter | |
---|---|
Name | Description |
value | String The secret to set. |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setSecretBytes(ByteString value)
public SecretEnvVar.Builder setSecretBytes(ByteString value)
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for secret to set. |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SecretEnvVar.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder |
setVersion(String value)
public SecretEnvVar.Builder setVersion(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The version to set. |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setVersionBytes(ByteString value)
public SecretEnvVar.Builder setVersionBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for version to set. |
Returns | |
---|---|
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |