Class SecretManagerSecret (3.36.0)

public final class SecretManagerSecret extends GeneratedMessageV3 implements SecretManagerSecretOrBuilder

Pairs a secret environment variable with a SecretVersion in Secret Manager.

Protobuf type google.devtools.cloudbuild.v1.SecretManagerSecret

Static Fields

ENV_FIELD_NUMBER

public static final int ENV_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_NAME_FIELD_NUMBER

public static final int VERSION_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SecretManagerSecret getDefaultInstance()
Returns
TypeDescription
SecretManagerSecret

getDescriptor()

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

newBuilder()

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

newBuilder(SecretManagerSecret prototype)

public static SecretManagerSecret.Builder newBuilder(SecretManagerSecret prototype)
Parameter
NameDescription
prototypeSecretManagerSecret
Returns
TypeDescription
SecretManagerSecret.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SecretManagerSecret getDefaultInstanceForType()
Returns
TypeDescription
SecretManagerSecret

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
TypeDescription
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
TypeDescription
ByteString

The bytes for env.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getVersionName()

public String getVersionName()

Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*

string version_name = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for versionName.

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 SecretManagerSecret.Builder newBuilderForType()
Returns
TypeDescription
SecretManagerSecret.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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