public static final class VolumeMount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder> implements VolumeMountOrBuilder
VolumeMount describes a mounting of a Volume within a container.Protobuf type
google.cloud.run.v2.VolumeMount| Modifier and Type | Method and Description |
|---|---|
VolumeMount.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VolumeMount |
build() |
VolumeMount |
buildPartial() |
VolumeMount.Builder |
clear() |
VolumeMount.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
VolumeMount.Builder |
clearMountPath()
Required.
|
VolumeMount.Builder |
clearName()
Required.
|
VolumeMount.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
VolumeMount.Builder |
clone() |
VolumeMount |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getMountPath()
Required.
|
com.google.protobuf.ByteString |
getMountPathBytes()
Required.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
VolumeMount.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
VolumeMount.Builder |
mergeFrom(com.google.protobuf.Message other) |
VolumeMount.Builder |
mergeFrom(VolumeMount other) |
VolumeMount.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VolumeMount.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VolumeMount.Builder |
setMountPath(String value)
Required.
|
VolumeMount.Builder |
setMountPathBytes(com.google.protobuf.ByteString value)
Required.
|
VolumeMount.Builder |
setName(String value)
Required.
|
VolumeMount.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
VolumeMount.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
VolumeMount.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public VolumeMount.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public VolumeMount getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic VolumeMount build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic VolumeMount buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic VolumeMount.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public VolumeMount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public VolumeMount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public VolumeMount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public VolumeMount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public VolumeMount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public VolumeMount.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VolumeMount.Builder>public VolumeMount.Builder mergeFrom(VolumeMount other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public VolumeMount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VolumeMount.Builder>IOExceptionpublic String getName()
Required. This must match the Name of a Volume.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getName in interface VolumeMountOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. This must match the Name of a Volume.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getNameBytes in interface VolumeMountOrBuilderpublic VolumeMount.Builder setName(String value)
Required. This must match the Name of a Volume.
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The name to set.public VolumeMount.Builder clearName()
Required. This must match the Name of a Volume.
string name = 1 [(.google.api.field_behavior) = REQUIRED];public VolumeMount.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. This must match the Name of a Volume.
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for name to set.public String getMountPath()
Required. Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be `/cloudsql`. All instances defined in the Volume will be available as `/cloudsql/[instance]`. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
string mount_path = 3 [(.google.api.field_behavior) = REQUIRED];getMountPath in interface VolumeMountOrBuilderpublic com.google.protobuf.ByteString getMountPathBytes()
Required. Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be `/cloudsql`. All instances defined in the Volume will be available as `/cloudsql/[instance]`. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
string mount_path = 3 [(.google.api.field_behavior) = REQUIRED];getMountPathBytes in interface VolumeMountOrBuilderpublic VolumeMount.Builder setMountPath(String value)
Required. Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be `/cloudsql`. All instances defined in the Volume will be available as `/cloudsql/[instance]`. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
string mount_path = 3 [(.google.api.field_behavior) = REQUIRED];value - The mountPath to set.public VolumeMount.Builder clearMountPath()
Required. Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be `/cloudsql`. All instances defined in the Volume will be available as `/cloudsql/[instance]`. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
string mount_path = 3 [(.google.api.field_behavior) = REQUIRED];public VolumeMount.Builder setMountPathBytes(com.google.protobuf.ByteString value)
Required. Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be `/cloudsql`. All instances defined in the Volume will be available as `/cloudsql/[instance]`. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
string mount_path = 3 [(.google.api.field_behavior) = REQUIRED];value - The bytes for mountPath to set.public final VolumeMount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>public final VolumeMount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>Copyright © 2025 Google LLC. All rights reserved.