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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Volume.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Volume buildPartial()
clear()
public Volume.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public Volume.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public Volume.Builder clearName()
Required. Volume's name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public Volume.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSecret()
public Volume.Builder clearSecret()
clearVolumeType()
public Volume.Builder clearVolumeType()
clone()
public Volume.Builder clone()
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;
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;
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;
getDefaultInstanceForType()
public Volume getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
getSecret()
public SecretVolumeSource getSecret()
getSecretBuilder()
public SecretVolumeSource.Builder getSecretBuilder()
getSecretOrBuilder()
public SecretVolumeSourceOrBuilder getSecretOrBuilder()
getVolumeTypeCase()
public Volume.VolumeTypeCase getVolumeTypeCase()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(Volume other)
public Volume.Builder mergeFrom(Volume other)
Parameter |
---|
Name | Description |
other | Volume
|
public Volume.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Volume.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeSecret(SecretVolumeSource value)
public Volume.Builder mergeSecret(SecretVolumeSource value)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Volume.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public Volume.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Volume.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSecret(SecretVolumeSource value)
public Volume.Builder setSecret(SecretVolumeSource value)
setSecret(SecretVolumeSource.Builder builderForValue)
public Volume.Builder setSecret(SecretVolumeSource.Builder builderForValue)
setUnknownFields(UnknownFieldSet unknownFields)
public final Volume.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides