Class Secrets (3.22.0)

public final class Secrets extends GeneratedMessageV3 implements SecretsOrBuilder

Secrets and secret environment variables.

Protobuf type google.devtools.cloudbuild.v1.Secrets

Implements

SecretsOrBuilder

Static Fields

INLINE_FIELD_NUMBER

public static final int INLINE_FIELD_NUMBER
Field Value
TypeDescription
int

SECRET_MANAGER_FIELD_NUMBER

public static final int SECRET_MANAGER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Secrets getDefaultInstance()
Returns
TypeDescription
Secrets

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Secrets.Builder newBuilder()
Returns
TypeDescription
Secrets.Builder

newBuilder(Secrets prototype)

public static Secrets.Builder newBuilder(Secrets prototype)
Parameter
NameDescription
prototypeSecrets
Returns
TypeDescription
Secrets.Builder

parseDelimitedFrom(InputStream input)

public static Secrets parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Secrets parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Secrets parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Secrets parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Secrets parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Secrets parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Secrets parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Secrets parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Secrets parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Secrets parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Secrets parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Secrets parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Secrets
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Secrets> parser()
Returns
TypeDescription
Parser<Secrets>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Secrets getDefaultInstanceForType()
Returns
TypeDescription
Secrets

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

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>

getParserForType()

public Parser<Secrets> getParserForType()
Returns
TypeDescription
Parser<Secrets>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Secrets.Builder newBuilderForType()
Returns
TypeDescription
Secrets.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Secrets.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Secrets.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Secrets.Builder toBuilder()
Returns
TypeDescription
Secrets.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException