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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Volume.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Volume buildPartial()
Returns
clear()
public Volume.Builder clear()
Returns
Overrides
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
clearField(Descriptors.FieldDescriptor field)
public Volume.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public Volume.Builder clearName()
Required. Volume's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Volume.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSecret()
public Volume.Builder clearSecret()
Returns
clearVolumeType()
public Volume.Builder clearVolumeType()
Returns
clone()
public Volume.Builder clone()
Returns
Overrides
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
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
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
getDefaultInstanceForType()
public Volume getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
getSecret()
public SecretVolumeSource getSecret()
Returns
getSecretBuilder()
public SecretVolumeSource.Builder getSecretBuilder()
Returns
getSecretOrBuilder()
public SecretVolumeSourceOrBuilder getSecretOrBuilder()
Returns
getVolumeTypeCase()
public Volume.VolumeTypeCase getVolumeTypeCase()
Returns
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.
|
hasSecret()
public boolean hasSecret()
Returns
Type | Description |
boolean | Whether the secret field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
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
Returns
mergeFrom(Volume other)
public Volume.Builder mergeFrom(Volume other)
Parameter
Returns
public Volume.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Volume.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeSecret(SecretVolumeSource value)
public Volume.Builder mergeSecret(SecretVolumeSource value)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Volume.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Volume.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Volume.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSecret(SecretVolumeSource value)
public Volume.Builder setSecret(SecretVolumeSource value)
Parameter
Returns
setSecret(SecretVolumeSource.Builder builderForValue)
public Volume.Builder setSecret(SecretVolumeSource.Builder builderForValue)
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Volume.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides