Class Secrets.Builder (3.51.0)

public static final class Secrets.Builder extends GeneratedMessageV3.Builder<Secrets.Builder> implements SecretsOrBuilder

Secrets and secret environment variables.

Protobuf type google.devtools.cloudbuild.v1.Secrets

Implements

SecretsOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllInline(Iterable<? extends InlineSecret> values)

public Secrets.Builder addAllInline(Iterable<? extends InlineSecret> values)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloudbuild.v1.InlineSecret>
Returns
Type Description
Secrets.Builder

addAllSecretManager(Iterable<? extends SecretManagerSecret> values)

public Secrets.Builder addAllSecretManager(Iterable<? extends SecretManagerSecret> values)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloudbuild.v1.SecretManagerSecret>
Returns
Type Description
Secrets.Builder

addInline(InlineSecret value)

public Secrets.Builder addInline(InlineSecret value)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameter
Name Description
value InlineSecret
Returns
Type Description
Secrets.Builder

addInline(InlineSecret.Builder builderForValue)

public Secrets.Builder addInline(InlineSecret.Builder builderForValue)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameter
Name Description
builderForValue InlineSecret.Builder
Returns
Type Description
Secrets.Builder

addInline(int index, InlineSecret value)

public Secrets.Builder addInline(int index, InlineSecret value)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameters
Name Description
index int
value InlineSecret
Returns
Type Description
Secrets.Builder

addInline(int index, InlineSecret.Builder builderForValue)

public Secrets.Builder addInline(int index, InlineSecret.Builder builderForValue)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameters
Name Description
index int
builderForValue InlineSecret.Builder
Returns
Type Description
Secrets.Builder

addInlineBuilder()

public InlineSecret.Builder addInlineBuilder()

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Returns
Type Description
InlineSecret.Builder

addInlineBuilder(int index)

public InlineSecret.Builder addInlineBuilder(int index)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameter
Name Description
index int
Returns
Type Description
InlineSecret.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSecretManager(SecretManagerSecret value)

public Secrets.Builder addSecretManager(SecretManagerSecret value)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameter
Name Description
value SecretManagerSecret
Returns
Type Description
Secrets.Builder

addSecretManager(SecretManagerSecret.Builder builderForValue)

public Secrets.Builder addSecretManager(SecretManagerSecret.Builder builderForValue)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameter
Name Description
builderForValue SecretManagerSecret.Builder
Returns
Type Description
Secrets.Builder

addSecretManager(int index, SecretManagerSecret value)

public Secrets.Builder addSecretManager(int index, SecretManagerSecret value)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameters
Name Description
index int
value SecretManagerSecret
Returns
Type Description
Secrets.Builder

addSecretManager(int index, SecretManagerSecret.Builder builderForValue)

public Secrets.Builder addSecretManager(int index, SecretManagerSecret.Builder builderForValue)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameters
Name Description
index int
builderForValue SecretManagerSecret.Builder
Returns
Type Description
Secrets.Builder

addSecretManagerBuilder()

public SecretManagerSecret.Builder addSecretManagerBuilder()

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Returns
Type Description
SecretManagerSecret.Builder

addSecretManagerBuilder(int index)

public SecretManagerSecret.Builder addSecretManagerBuilder(int index)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameter
Name Description
index int
Returns
Type Description
SecretManagerSecret.Builder

build()

public Secrets build()
Returns
Type Description
Secrets

buildPartial()

public Secrets buildPartial()
Returns
Type Description
Secrets

clear()

public Secrets.Builder clear()
Returns
Type Description
Secrets.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearInline()

public Secrets.Builder clearInline()

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Returns
Type Description
Secrets.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Secrets.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Secrets.Builder
Overrides

clearSecretManager()

public Secrets.Builder clearSecretManager()

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Returns
Type Description
Secrets.Builder

clone()

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

getDefaultInstanceForType()

public Secrets getDefaultInstanceForType()
Returns
Type Description
Secrets

getDescriptorForType()

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

getInline(int index)

public InlineSecret getInline(int index)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameter
Name Description
index int
Returns
Type Description
InlineSecret

getInlineBuilder(int index)

public InlineSecret.Builder getInlineBuilder(int index)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameter
Name Description
index int
Returns
Type Description
InlineSecret.Builder

getInlineBuilderList()

public List<InlineSecret.Builder> getInlineBuilderList()

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Returns
Type Description
List<Builder>

getInlineCount()

public int getInlineCount()

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Returns
Type Description
int

getInlineList()

public List<InlineSecret> getInlineList()

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Returns
Type Description
List<InlineSecret>

getInlineOrBuilder(int index)

public InlineSecretOrBuilder getInlineOrBuilder(int index)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameter
Name Description
index int
Returns
Type Description
InlineSecretOrBuilder

getInlineOrBuilderList()

public List<? extends InlineSecretOrBuilder> getInlineOrBuilderList()

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Returns
Type Description
List<? extends com.google.cloudbuild.v1.InlineSecretOrBuilder>

getSecretManager(int index)

public SecretManagerSecret getSecretManager(int index)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameter
Name Description
index int
Returns
Type Description
SecretManagerSecret

getSecretManagerBuilder(int index)

public SecretManagerSecret.Builder getSecretManagerBuilder(int index)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameter
Name Description
index int
Returns
Type Description
SecretManagerSecret.Builder

getSecretManagerBuilderList()

public List<SecretManagerSecret.Builder> getSecretManagerBuilderList()

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Returns
Type Description
List<Builder>

getSecretManagerCount()

public int getSecretManagerCount()

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Returns
Type Description
int

getSecretManagerList()

public List<SecretManagerSecret> getSecretManagerList()

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Returns
Type Description
List<SecretManagerSecret>

getSecretManagerOrBuilder(int index)

public SecretManagerSecretOrBuilder getSecretManagerOrBuilder(int index)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameter
Name Description
index int
Returns
Type Description
SecretManagerSecretOrBuilder

getSecretManagerOrBuilderList()

public List<? extends SecretManagerSecretOrBuilder> getSecretManagerOrBuilderList()

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Returns
Type Description
List<? extends com.google.cloudbuild.v1.SecretManagerSecretOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Secrets other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Secrets.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Secrets.Builder
Overrides

removeInline(int index)

public Secrets.Builder removeInline(int index)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameter
Name Description
index int
Returns
Type Description
Secrets.Builder

removeSecretManager(int index)

public Secrets.Builder removeSecretManager(int index)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameter
Name Description
index int
Returns
Type Description
Secrets.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInline(int index, InlineSecret value)

public Secrets.Builder setInline(int index, InlineSecret value)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameters
Name Description
index int
value InlineSecret
Returns
Type Description
Secrets.Builder

setInline(int index, InlineSecret.Builder builderForValue)

public Secrets.Builder setInline(int index, InlineSecret.Builder builderForValue)

Secrets encrypted with KMS key and the associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2;

Parameters
Name Description
index int
builderForValue InlineSecret.Builder
Returns
Type Description
Secrets.Builder

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

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

setSecretManager(int index, SecretManagerSecret value)

public Secrets.Builder setSecretManager(int index, SecretManagerSecret value)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameters
Name Description
index int
value SecretManagerSecret
Returns
Type Description
Secrets.Builder

setSecretManager(int index, SecretManagerSecret.Builder builderForValue)

public Secrets.Builder setSecretManager(int index, SecretManagerSecret.Builder builderForValue)

Secrets in Secret Manager and associated secret environment variable.

repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1;

Parameters
Name Description
index int
builderForValue SecretManagerSecret.Builder
Returns
Type Description
Secrets.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Secrets.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Secrets.Builder
Overrides