public static final class SecretManagerSecret.Builder extends GeneratedMessageV3.Builder<SecretManagerSecret.Builder> implements SecretManagerSecretOrBuilder
Pairs a secret environment variable with a SecretVersion in Secret Manager.
Protobuf type google.devtools.cloudbuild.v1.SecretManagerSecret
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SecretManagerSecret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SecretManagerSecret build()
Returns
buildPartial()
public SecretManagerSecret buildPartial()
Returns
clear()
public SecretManagerSecret.Builder clear()
Returns
Overrides
clearEnv()
public SecretManagerSecret.Builder clearEnv()
Environment variable name to associate with the secret.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step.
string env = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public SecretManagerSecret.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SecretManagerSecret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearVersionName()
public SecretManagerSecret.Builder clearVersionName()
Resource name of the SecretVersion. In format:
projects/*/secrets/*/versions/*
string version_name = 1 [(.google.api.resource_reference) = { ... }
Returns
clone()
public SecretManagerSecret.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SecretManagerSecret getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEnv()
Environment variable name to associate with the secret.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step.
string env = 2;
Returns
getEnvBytes()
public ByteString getEnvBytes()
Environment variable name to associate with the secret.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step.
string env = 2;
Returns
getVersionName()
public String getVersionName()
Resource name of the SecretVersion. In format:
projects/*/secrets/*/versions/*
string version_name = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The versionName.
|
getVersionNameBytes()
public ByteString getVersionNameBytes()
Resource name of the SecretVersion. In format:
projects/*/secrets/*/versions/*
string version_name = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
ByteString | The bytes for versionName.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SecretManagerSecret other)
public SecretManagerSecret.Builder mergeFrom(SecretManagerSecret other)
Parameter
Returns
public SecretManagerSecret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SecretManagerSecret.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecretManagerSecret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setEnv(String value)
public SecretManagerSecret.Builder setEnv(String value)
Environment variable name to associate with the secret.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step.
string env = 2;
Parameter
Name | Description |
value | String
The env to set.
|
Returns
setEnvBytes(ByteString value)
public SecretManagerSecret.Builder setEnvBytes(ByteString value)
Environment variable name to associate with the secret.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step.
string env = 2;
Parameter
Name | Description |
value | ByteString
The bytes for env to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SecretManagerSecret.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SecretManagerSecret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SecretManagerSecret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setVersionName(String value)
public SecretManagerSecret.Builder setVersionName(String value)
Resource name of the SecretVersion. In format:
projects/*/secrets/*/versions/*
string version_name = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The versionName to set.
|
Returns
setVersionNameBytes(ByteString value)
public SecretManagerSecret.Builder setVersionNameBytes(ByteString value)
Resource name of the SecretVersion. In format:
projects/*/secrets/*/versions/*
string version_name = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for versionName to set.
|
Returns