- 2.57.0 (latest)
- 2.56.0
- 2.55.0
- 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.v1.SecretEnvVar
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SecretEnvVar.BuilderImplements
SecretEnvVarOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SecretEnvVar.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SecretEnvVar.Builder |
build()
public SecretEnvVar build()
Type | Description |
SecretEnvVar |
buildPartial()
public SecretEnvVar buildPartial()
Type | Description |
SecretEnvVar |
clear()
public SecretEnvVar.Builder clear()
Type | Description |
SecretEnvVar.Builder |
clearField(Descriptors.FieldDescriptor field)
public SecretEnvVar.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SecretEnvVar.Builder |
clearKey()
public SecretEnvVar.Builder clearKey()
Name of the environment variable.
string key = 1;
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SecretEnvVar.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SecretEnvVar.Builder |
clearProjectId()
public SecretEnvVar.Builder clearProjectId()
Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
string project_id = 2;
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;
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;
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
clone()
public SecretEnvVar.Builder clone()
Type | Description |
SecretEnvVar.Builder |
getDefaultInstanceForType()
public SecretEnvVar getDefaultInstanceForType()
Type | Description |
SecretEnvVar |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getKey()
public String getKey()
Name of the environment variable.
string key = 1;
Type | Description |
String | The key. |
getKeyBytes()
public ByteString getKeyBytes()
Name of the environment variable.
string key = 1;
Type | Description |
ByteString | The bytes for key. |
getProjectId()
public String getProjectId()
Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
string project_id = 2;
Type | Description |
String | The projectId. |
getProjectIdBytes()
public ByteString getProjectIdBytes()
Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
string project_id = 2;
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;
Type | Description |
String | The secret. |
getSecretBytes()
public ByteString getSecretBytes()
Name of the secret in secret manager (not the full resource name).
string secret = 3;
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;
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;
Type | Description |
ByteString | The bytes for version. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(SecretEnvVar other)
public SecretEnvVar.Builder mergeFrom(SecretEnvVar other)
Name | Description |
other | SecretEnvVar |
Type | Description |
SecretEnvVar.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SecretEnvVar.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SecretEnvVar.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SecretEnvVar.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SecretEnvVar.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecretEnvVar.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SecretEnvVar.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SecretEnvVar.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SecretEnvVar.Builder |
setKey(String value)
public SecretEnvVar.Builder setKey(String value)
Name of the environment variable.
string key = 1;
Name | Description |
value | String The key to set. |
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;
Name | Description |
value | ByteString The bytes for key to set. |
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setProjectId(String value)
public SecretEnvVar.Builder setProjectId(String value)
Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
string project_id = 2;
Name | Description |
value | String The projectId to set. |
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setProjectIdBytes(ByteString value)
public SecretEnvVar.Builder setProjectIdBytes(ByteString value)
Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
string project_id = 2;
Name | Description |
value | ByteString The bytes for projectId to set. |
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SecretEnvVar.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
SecretEnvVar.Builder |
setSecret(String value)
public SecretEnvVar.Builder setSecret(String value)
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Name | Description |
value | String The secret to set. |
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;
Name | Description |
value | ByteString The bytes for secret to set. |
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SecretEnvVar.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
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;
Name | Description |
value | String The version to set. |
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;
Name | Description |
value | ByteString The bytes for version to set. |
Type | Description |
SecretEnvVar.Builder | This builder for chaining. |