public static final class Volume.Builder extends GeneratedMessage.Builder<Volume.Builder> implements VolumeOrBuilderVolume represents a named volume in a container.
Protobuf type google.cloud.run.v2.Volume
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Volume.BuilderImplements
VolumeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Volume build()| Returns | |
|---|---|
| Type | Description |
Volume |
|
buildPartial()
public Volume buildPartial()| Returns | |
|---|---|
| Type | Description |
Volume |
|
clear()
public Volume.Builder clear()| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearCloudSqlInstance()
public Volume.Builder clearCloudSqlInstance()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 |
Volume.Builder |
|
clearEmptyDir()
public Volume.Builder clearEmptyDir()Ephemeral storage used as a shared volume.
.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearGcs()
public Volume.Builder clearGcs()Persistent storage backed by a Google Cloud Storage bucket.
.google.cloud.run.v2.GCSVolumeSource gcs = 6;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearName()
public Volume.Builder clearName()Required. Volume's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
clearNfs()
public Volume.Builder clearNfs()For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearSecret()
public Volume.Builder clearSecret()Secret represents a secret that should populate this volume.
.google.cloud.run.v2.SecretVolumeSource secret = 2;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearVolumeType()
public Volume.Builder clearVolumeType()| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
getCloudSqlInstance()
public 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. |
getCloudSqlInstanceBuilder()
public CloudSqlInstance.Builder getCloudSqlInstanceBuilder()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.Builder |
|
getCloudSqlInstanceOrBuilder()
public 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 |
|
getDefaultInstanceForType()
public Volume getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Volume |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEmptyDir()
public EmptyDirVolumeSource getEmptyDir()Ephemeral storage used as a shared volume.
.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;
| Returns | |
|---|---|
| Type | Description |
EmptyDirVolumeSource |
The emptyDir. |
getEmptyDirBuilder()
public EmptyDirVolumeSource.Builder getEmptyDirBuilder()Ephemeral storage used as a shared volume.
.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;
| Returns | |
|---|---|
| Type | Description |
EmptyDirVolumeSource.Builder |
|
getEmptyDirOrBuilder()
public EmptyDirVolumeSourceOrBuilder getEmptyDirOrBuilder()Ephemeral storage used as a shared volume.
.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;
| Returns | |
|---|---|
| Type | Description |
EmptyDirVolumeSourceOrBuilder |
|
getGcs()
public GCSVolumeSource getGcs()Persistent storage backed by a Google Cloud Storage bucket.
.google.cloud.run.v2.GCSVolumeSource gcs = 6;
| Returns | |
|---|---|
| Type | Description |
GCSVolumeSource |
The gcs. |
getGcsBuilder()
public GCSVolumeSource.Builder getGcsBuilder()Persistent storage backed by a Google Cloud Storage bucket.
.google.cloud.run.v2.GCSVolumeSource gcs = 6;
| Returns | |
|---|---|
| Type | Description |
GCSVolumeSource.Builder |
|
getGcsOrBuilder()
public GCSVolumeSourceOrBuilder getGcsOrBuilder()Persistent storage backed by a Google Cloud Storage bucket.
.google.cloud.run.v2.GCSVolumeSource gcs = 6;
| Returns | |
|---|---|
| Type | Description |
GCSVolumeSourceOrBuilder |
|
getName()
public String getName()Required. Volume's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. Volume's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getNfs()
public 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. |
getNfsBuilder()
public NFSVolumeSource.Builder getNfsBuilder()For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5;
| Returns | |
|---|---|
| Type | Description |
NFSVolumeSource.Builder |
|
getNfsOrBuilder()
public 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 SecretVolumeSource getSecret()Secret represents a secret that should populate this volume.
.google.cloud.run.v2.SecretVolumeSource secret = 2;
| Returns | |
|---|---|
| Type | Description |
SecretVolumeSource |
The secret. |
getSecretBuilder()
public SecretVolumeSource.Builder getSecretBuilder()Secret represents a secret that should populate this volume.
.google.cloud.run.v2.SecretVolumeSource secret = 2;
| Returns | |
|---|---|
| Type | Description |
SecretVolumeSource.Builder |
|
getSecretOrBuilder()
public SecretVolumeSourceOrBuilder getSecretOrBuilder()Secret represents a secret that should populate this volume.
.google.cloud.run.v2.SecretVolumeSource secret = 2;
| Returns | |
|---|---|
| Type | Description |
SecretVolumeSourceOrBuilder |
|
getVolumeTypeCase()
public Volume.VolumeTypeCase getVolumeTypeCase()| Returns | |
|---|---|
| Type | Description |
Volume.VolumeTypeCase |
|
hasCloudSqlInstance()
public 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 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCloudSqlInstance(CloudSqlInstance value)
public Volume.Builder mergeCloudSqlInstance(CloudSqlInstance value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
CloudSqlInstance |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergeEmptyDir(EmptyDirVolumeSource value)
public Volume.Builder mergeEmptyDir(EmptyDirVolumeSource value)Ephemeral storage used as a shared volume.
.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
EmptyDirVolumeSource |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergeFrom(Volume other)
public Volume.Builder mergeFrom(Volume other)| Parameter | |
|---|---|
| Name | Description |
other |
Volume |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Volume.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Volume.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergeGcs(GCSVolumeSource value)
public Volume.Builder mergeGcs(GCSVolumeSource value)Persistent storage backed by a Google Cloud Storage bucket.
.google.cloud.run.v2.GCSVolumeSource gcs = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
GCSVolumeSource |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergeNfs(NFSVolumeSource value)
public Volume.Builder mergeNfs(NFSVolumeSource value)For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
NFSVolumeSource |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergeSecret(SecretVolumeSource value)
public Volume.Builder mergeSecret(SecretVolumeSource value)Secret represents a secret that should populate this volume.
.google.cloud.run.v2.SecretVolumeSource secret = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
SecretVolumeSource |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setCloudSqlInstance(CloudSqlInstance value)
public Volume.Builder setCloudSqlInstance(CloudSqlInstance value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
CloudSqlInstance |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setCloudSqlInstance(CloudSqlInstance.Builder builderForValue)
public Volume.Builder setCloudSqlInstance(CloudSqlInstance.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CloudSqlInstance.Builder |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setEmptyDir(EmptyDirVolumeSource value)
public Volume.Builder setEmptyDir(EmptyDirVolumeSource value)Ephemeral storage used as a shared volume.
.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
EmptyDirVolumeSource |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setEmptyDir(EmptyDirVolumeSource.Builder builderForValue)
public Volume.Builder setEmptyDir(EmptyDirVolumeSource.Builder builderForValue)Ephemeral storage used as a shared volume.
.google.cloud.run.v2.EmptyDirVolumeSource empty_dir = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EmptyDirVolumeSource.Builder |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setGcs(GCSVolumeSource value)
public Volume.Builder setGcs(GCSVolumeSource value)Persistent storage backed by a Google Cloud Storage bucket.
.google.cloud.run.v2.GCSVolumeSource gcs = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
GCSVolumeSource |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setGcs(GCSVolumeSource.Builder builderForValue)
public Volume.Builder setGcs(GCSVolumeSource.Builder builderForValue)Persistent storage backed by a Google Cloud Storage bucket.
.google.cloud.run.v2.GCSVolumeSource gcs = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GCSVolumeSource.Builder |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setName(String value)
public Volume.Builder setName(String value)Required. Volume's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Volume.Builder setNameBytes(ByteString value)Required. Volume's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setNfs(NFSVolumeSource value)
public Volume.Builder setNfs(NFSVolumeSource value)For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
NFSVolumeSource |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setNfs(NFSVolumeSource.Builder builderForValue)
public Volume.Builder setNfs(NFSVolumeSource.Builder builderForValue)For NFS Voumes, contains the path to the nfs Volume
.google.cloud.run.v2.NFSVolumeSource nfs = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
NFSVolumeSource.Builder |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setSecret(SecretVolumeSource value)
public Volume.Builder setSecret(SecretVolumeSource value)Secret represents a secret that should populate this volume.
.google.cloud.run.v2.SecretVolumeSource secret = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
SecretVolumeSource |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setSecret(SecretVolumeSource.Builder builderForValue)
public Volume.Builder setSecret(SecretVolumeSource.Builder builderForValue)Secret represents a secret that should populate this volume.
.google.cloud.run.v2.SecretVolumeSource secret = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SecretVolumeSource.Builder |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|