Interface VolumeOrBuilder (0.41.0)

public interface VolumeOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCloudSqlInstance()

public abstract CloudSqlInstance getCloudSqlInstance()

For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.

.google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;

Returns
TypeDescription
CloudSqlInstance

The cloudSqlInstance.

getCloudSqlInstanceOrBuilder()

public abstract CloudSqlInstanceOrBuilder getCloudSqlInstanceOrBuilder()

For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.

.google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;

Returns
TypeDescription
CloudSqlInstanceOrBuilder

getEmptyDir()

public abstract EmptyDirVolumeSource getEmptyDir()

Ephemeral storage used as a shared volume.

.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;

Returns
TypeDescription
EmptyDirVolumeSource

The emptyDir.

getEmptyDirOrBuilder()

public abstract EmptyDirVolumeSourceOrBuilder getEmptyDirOrBuilder()

Ephemeral storage used as a shared volume.

.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;

Returns
TypeDescription
EmptyDirVolumeSourceOrBuilder

getGcs()

public abstract GCSVolumeSource getGcs()

Persistent storage backed by a Google Cloud Storage bucket.

.google.cloud.run.v2.GCSVolumeSource gcs = 6;

Returns
TypeDescription
GCSVolumeSource

The gcs.

getGcsOrBuilder()

public abstract GCSVolumeSourceOrBuilder getGcsOrBuilder()

Persistent storage backed by a Google Cloud Storage bucket.

.google.cloud.run.v2.GCSVolumeSource gcs = 6;

Returns
TypeDescription
GCSVolumeSourceOrBuilder

getName()

public abstract String getName()

Required. Volume's name.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Required. Volume's name.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getNfs()

public abstract NFSVolumeSource getNfs()

For NFS Voumes, contains the path to the nfs Volume

.google.cloud.run.v2.NFSVolumeSource nfs = 5;

Returns
TypeDescription
NFSVolumeSource

The nfs.

getNfsOrBuilder()

public abstract NFSVolumeSourceOrBuilder getNfsOrBuilder()

For NFS Voumes, contains the path to the nfs Volume

.google.cloud.run.v2.NFSVolumeSource nfs = 5;

Returns
TypeDescription
NFSVolumeSourceOrBuilder

getSecret()

public abstract SecretVolumeSource getSecret()

Secret represents a secret that should populate this volume.

.google.cloud.run.v2.SecretVolumeSource secret = 2;

Returns
TypeDescription
SecretVolumeSource

The secret.

getSecretOrBuilder()

public abstract SecretVolumeSourceOrBuilder getSecretOrBuilder()

Secret represents a secret that should populate this volume.

.google.cloud.run.v2.SecretVolumeSource secret = 2;

Returns
TypeDescription
SecretVolumeSourceOrBuilder

getVolumeTypeCase()

public abstract Volume.VolumeTypeCase getVolumeTypeCase()
Returns
TypeDescription
Volume.VolumeTypeCase

hasCloudSqlInstance()

public abstract boolean hasCloudSqlInstance()

For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.

.google.cloud.run.v2.CloudSqlInstance cloud_sql_instance = 3;

Returns
TypeDescription
boolean

Whether the cloudSqlInstance field is set.

hasEmptyDir()

public abstract boolean hasEmptyDir()

Ephemeral storage used as a shared volume.

.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;

Returns
TypeDescription
boolean

Whether the emptyDir field is set.

hasGcs()

public abstract boolean hasGcs()

Persistent storage backed by a Google Cloud Storage bucket.

.google.cloud.run.v2.GCSVolumeSource gcs = 6;

Returns
TypeDescription
boolean

Whether the gcs field is set.

hasNfs()

public abstract boolean hasNfs()

For NFS Voumes, contains the path to the nfs Volume

.google.cloud.run.v2.NFSVolumeSource nfs = 5;

Returns
TypeDescription
boolean

Whether the nfs field is set.

hasSecret()

public abstract boolean hasSecret()

Secret represents a secret that should populate this volume.

.google.cloud.run.v2.SecretVolumeSource secret = 2;

Returns
TypeDescription
boolean

Whether the secret field is set.