Class 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 type google.cloud.run.v2.VolumeMount
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
      • clear

        public VolumeMount.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
      • getDefaultInstanceForType

        public VolumeMount getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public VolumeMount build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public VolumeMount buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public VolumeMount.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
      • setField

        public VolumeMount.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
      • clearField

        public VolumeMount.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
      • clearOneof

        public VolumeMount.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
      • setRepeatedField

        public VolumeMount.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
      • addRepeatedField

        public VolumeMount.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
      • mergeFrom

        public VolumeMount.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VolumeMount.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getName in interface VolumeMountOrBuilder
        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:
        getNameBytes in interface VolumeMountOrBuilder
        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:
        getMountPath in interface VolumeMountOrBuilder
        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:
        getMountPathBytes in interface VolumeMountOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>
      • mergeUnknownFields

        public final VolumeMount.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VolumeMount.Builder>