Class SecretManagerSecret.Builder (3.49.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecretManagerSecret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecretManagerSecret.Builder
Overrides

build()

public SecretManagerSecret build()
Returns
Type Description
SecretManagerSecret

buildPartial()

public SecretManagerSecret buildPartial()
Returns
Type Description
SecretManagerSecret

clear()

public SecretManagerSecret.Builder clear()
Returns
Type Description
SecretManagerSecret.Builder
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
Type Description
SecretManagerSecret.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SecretManagerSecret.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SecretManagerSecret.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SecretManagerSecret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SecretManagerSecret.Builder
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
Type Description
SecretManagerSecret.Builder

This builder for chaining.

clone()

public SecretManagerSecret.Builder clone()
Returns
Type Description
SecretManagerSecret.Builder
Overrides

getDefaultInstanceForType()

public SecretManagerSecret getDefaultInstanceForType()
Returns
Type Description
SecretManagerSecret

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnv()

public String 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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecretManagerSecret other)

public SecretManagerSecret.Builder mergeFrom(SecretManagerSecret other)
Parameter
Name Description
other SecretManagerSecret
Returns
Type Description
SecretManagerSecret.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecretManagerSecret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecretManagerSecret.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SecretManagerSecret.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SecretManagerSecret.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecretManagerSecret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecretManagerSecret.Builder
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
Type Description
SecretManagerSecret.Builder

This builder for chaining.

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
Type Description
SecretManagerSecret.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SecretManagerSecret.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecretManagerSecret.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SecretManagerSecret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SecretManagerSecret.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SecretManagerSecret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecretManagerSecret.Builder
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
Type Description
SecretManagerSecret.Builder

This builder for chaining.

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
Type Description
SecretManagerSecret.Builder

This builder for chaining.