Class Secrets.Builder (3.29.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloudbuild.v1.InlineSecret>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloudbuild.v1.SecretManagerSecret>
Returns
TypeDescription
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
NameDescription
valueInlineSecret
Returns
TypeDescription
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
NameDescription
builderForValueInlineSecret.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInlineSecret
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInlineSecret.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InlineSecret.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Secrets.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSecretManagerSecret
Returns
TypeDescription
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
NameDescription
builderForValueSecretManagerSecret.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSecretManagerSecret
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSecretManagerSecret.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SecretManagerSecret.Builder

build()

public Secrets build()
Returns
TypeDescription
Secrets

buildPartial()

public Secrets buildPartial()
Returns
TypeDescription
Secrets

clear()

public Secrets.Builder clear()
Returns
TypeDescription
Secrets.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Secrets.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Secrets.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Secrets.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Secrets.Builder

clone()

public Secrets.Builder clone()
Returns
TypeDescription
Secrets.Builder
Overrides

getDefaultInstanceForType()

public Secrets getDefaultInstanceForType()
Returns
TypeDescription
Secrets

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloudbuild.v1.SecretManagerSecretOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Secrets other)

public Secrets.Builder mergeFrom(Secrets other)
Parameter
NameDescription
otherSecrets
Returns
TypeDescription
Secrets.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Secrets.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Secrets.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Secrets.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Secrets.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Secrets.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Secrets.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Secrets.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueInlineSecret
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInlineSecret.Builder
Returns
TypeDescription
Secrets.Builder

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

public Secrets.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSecretManagerSecret
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSecretManagerSecret.Builder
Returns
TypeDescription
Secrets.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Secrets.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Secrets.Builder
Overrides