Class SecretVolume.SecretVersion (2.13.0)

public static final class SecretVolume.SecretVersion extends GeneratedMessageV3 implements SecretVolume.SecretVersionOrBuilder

Configuration for a single version.

Protobuf type google.cloud.functions.v2.SecretVolume.SecretVersion

Static Fields

PATH_FIELD_NUMBER

public static final int PATH_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SecretVolume.SecretVersion getDefaultInstance()
Returns
TypeDescription
SecretVolume.SecretVersion

getDescriptor()

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

newBuilder()

public static SecretVolume.SecretVersion.Builder newBuilder()
Returns
TypeDescription
SecretVolume.SecretVersion.Builder

newBuilder(SecretVolume.SecretVersion prototype)

public static SecretVolume.SecretVersion.Builder newBuilder(SecretVolume.SecretVersion prototype)
Parameter
NameDescription
prototypeSecretVolume.SecretVersion
Returns
TypeDescription
SecretVolume.SecretVersion.Builder

parseDelimitedFrom(InputStream input)

public static SecretVolume.SecretVersion parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SecretVolume.SecretVersion
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SecretVolume.SecretVersion parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SecretVolume.SecretVersion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SecretVolume.SecretVersion parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SecretVolume.SecretVersion
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SecretVolume.SecretVersion parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SecretVolume.SecretVersion
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SecretVolume.SecretVersion parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SecretVolume.SecretVersion
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SecretVolume.SecretVersion> parser()
Returns
TypeDescription
Parser<SecretVersion>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SecretVolume.SecretVersion getDefaultInstanceForType()
Returns
TypeDescription
SecretVolume.SecretVersion

getParserForType()

public Parser<SecretVolume.SecretVersion> getParserForType()
Returns
TypeDescription
Parser<SecretVersion>
Overrides

getPath()

public String getPath()

Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.

string path = 2;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.

string path = 2;

Returns
TypeDescription
ByteString

The bytes for path.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVersion()

public String getVersion()

Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.

string version = 1;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.

string version = 1;

Returns
TypeDescription
ByteString

The bytes for version.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public SecretVolume.SecretVersion.Builder toBuilder()
Returns
TypeDescription
SecretVolume.SecretVersion.Builder

writeTo(CodedOutputStream output)

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