Package com.google.cloud.run.v2
Class VolumeMount.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
- com.google.cloud.run.v2.VolumeMount.Builder
-
- All Implemented Interfaces:
VolumeMountOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VolumeMount
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 typegoogle.cloud.run.v2.VolumeMount
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeMount.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VolumeMountbuild()VolumeMountbuildPartial()VolumeMount.Builderclear()VolumeMount.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VolumeMount.BuilderclearMountPath()Required.VolumeMount.BuilderclearName()Required.VolumeMount.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VolumeMount.Builderclone()VolumeMountgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMountPath()Required.com.google.protobuf.ByteStringgetMountPathBytes()Required.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VolumeMount.BuildermergeFrom(VolumeMount other)VolumeMount.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VolumeMount.BuildermergeFrom(com.google.protobuf.Message other)VolumeMount.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VolumeMount.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VolumeMount.BuildersetMountPath(String value)Required.VolumeMount.BuildersetMountPathBytes(com.google.protobuf.ByteString value)Required.VolumeMount.BuildersetName(String value)Required.VolumeMount.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.VolumeMount.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VolumeMount.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
clear
public VolumeMount.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
getDefaultInstanceForType
public VolumeMount getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VolumeMount build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VolumeMount buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VolumeMount.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
setField
public VolumeMount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
clearField
public VolumeMount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
clearOneof
public VolumeMount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
setRepeatedField
public VolumeMount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
addRepeatedField
public VolumeMount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
mergeFrom
public VolumeMount.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VolumeMount.Builder>
-
mergeFrom
public VolumeMount.Builder mergeFrom(VolumeMount other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
mergeFrom
public VolumeMount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VolumeMount.Builder>- Throws:
IOException
-
getName
public String getName()
Required. This must match the Name of a Volume.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceVolumeMountOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. This must match the Name of a Volume.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceVolumeMountOrBuilder- Returns:
- The bytes for name.
-
setName
public VolumeMount.Builder setName(String value)
Required. This must match the Name of a Volume.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public VolumeMount.Builder clearName()
Required. This must match the Name of a Volume.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getMountPath
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];- Specified by:
getMountPathin interfaceVolumeMountOrBuilder- Returns:
- The mountPath.
-
getMountPathBytes
public 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];- Specified by:
getMountPathBytesin interfaceVolumeMountOrBuilder- Returns:
- The bytes for mountPath.
-
setMountPath
public 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];- Parameters:
value- The mountPath to set.- Returns:
- This builder for chaining.
-
clearMountPath
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];- Returns:
- This builder for chaining.
-
setMountPathBytes
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];- Parameters:
value- The bytes for mountPath to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final VolumeMount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
mergeUnknownFields
public final VolumeMount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
-
-