Interface VolumeOrBuilder (0.43.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
Type Description
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
Type Description
CloudSqlInstanceOrBuilder

getEmptyDir()

public abstract EmptyDirVolumeSource getEmptyDir()

Ephemeral storage used as a shared volume.

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

Returns
Type Description
EmptyDirVolumeSource

The emptyDir.

getEmptyDirOrBuilder()

public abstract EmptyDirVolumeSourceOrBuilder getEmptyDirOrBuilder()

Ephemeral storage used as a shared volume.

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

Returns
Type Description
EmptyDirVolumeSourceOrBuilder

getGcs()

public abstract GCSVolumeSource getGcs()

Persistent storage backed by a Google Cloud Storage bucket.

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

Returns
Type Description
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
Type Description
GCSVolumeSourceOrBuilder

getName()

public abstract String getName()

Required. Volume's name.

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

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Required. Volume's name.

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

Returns
Type Description
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
Type Description
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
Type Description
NFSVolumeSourceOrBuilder

getSecret()

public abstract SecretVolumeSource getSecret()

Secret represents a secret that should populate this volume.

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

Returns
Type Description
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
Type Description
SecretVolumeSourceOrBuilder

getVolumeTypeCase()

public abstract Volume.VolumeTypeCase getVolumeTypeCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the secret field is set.