- 0.52.0 (latest)
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.5
- 0.2.1
- 0.1.2
public static final class Volume.Builder extends GeneratedMessageV3.Builder<Volume.Builder> implements VolumeOrBuilder
Volume represents a named volume in a container.
Protobuf type google.cloud.run.v2.Volume
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Volume.BuilderImplements
VolumeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Volume.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Volume.Builder |
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 |
clearField(Descriptors.FieldDescriptor field)
public Volume.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Volume.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
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 |
clone()
public Volume.Builder clone()
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 |
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. |
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. |
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 GeneratedMessageV3.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 |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Volume.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
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 |
setField(Descriptors.FieldDescriptor field, Object value)
public Volume.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
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 | String The 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 | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Volume.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Volume.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final Volume.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Volume.Builder |