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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SecretManagerSecret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SecretManagerSecret build()
buildPartial()
public SecretManagerSecret buildPartial()
clear()
public SecretManagerSecret.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public SecretManagerSecret.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SecretManagerSecret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearVersionName()
public SecretManagerSecret.Builder clearVersionName()
Resource name of the SecretVersion. In format:
projects/*/secrets/*/versions/*
string version_name = 1 [(.google.api.resource_reference) = { ... }
clone()
public SecretManagerSecret.Builder clone()
Overrides
getDefaultInstanceForType()
public SecretManagerSecret getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Type |
Description |
String |
The env.
|
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 |
Type |
Description |
ByteString |
The bytes for env.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SecretManagerSecret other)
public SecretManagerSecret.Builder mergeFrom(SecretManagerSecret other)
public SecretManagerSecret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SecretManagerSecret.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecretManagerSecret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SecretManagerSecret.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SecretManagerSecret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SecretManagerSecret.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|