Class Disk.Builder

  • All Implemented Interfaces:
    DiskOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Disk

    public static final class Disk.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Disk.Builder>
    implements DiskOrBuilder
     Describes the data disk used by a workflow job.
     
    Protobuf type google.dataflow.v1beta3.Disk
    • 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<Disk.Builder>
      • clear

        public Disk.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<Disk.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<Disk.Builder>
      • getDefaultInstanceForType

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

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

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

        public Disk.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<Disk.Builder>
      • setField

        public Disk.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<Disk.Builder>
      • clearField

        public Disk.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<Disk.Builder>
      • clearOneof

        public Disk.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<Disk.Builder>
      • setRepeatedField

        public Disk.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<Disk.Builder>
      • addRepeatedField

        public Disk.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<Disk.Builder>
      • mergeFrom

        public Disk.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<Disk.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Disk.Builder>
      • mergeFrom

        public Disk.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<Disk.Builder>
        Throws:
        IOException
      • getSizeGb

        public int getSizeGb()
         Size of disk in GB.  If zero or unspecified, the service will
         attempt to choose a reasonable default.
         
        int32 size_gb = 1;
        Specified by:
        getSizeGb in interface DiskOrBuilder
        Returns:
        The sizeGb.
      • setSizeGb

        public Disk.Builder setSizeGb​(int value)
         Size of disk in GB.  If zero or unspecified, the service will
         attempt to choose a reasonable default.
         
        int32 size_gb = 1;
        Parameters:
        value - The sizeGb to set.
        Returns:
        This builder for chaining.
      • clearSizeGb

        public Disk.Builder clearSizeGb()
         Size of disk in GB.  If zero or unspecified, the service will
         attempt to choose a reasonable default.
         
        int32 size_gb = 1;
        Returns:
        This builder for chaining.
      • getDiskType

        public String getDiskType()
         Disk storage type, as defined by Google Compute Engine.  This
         must be a disk type appropriate to the project and zone in which
         the workers will run.  If unknown or unspecified, the service
         will attempt to choose a reasonable default.
        
         For example, the standard persistent disk type is a resource name
         typically ending in "pd-standard".  If SSD persistent disks are
         available, the resource name typically ends with "pd-ssd".  The
         actual valid values are defined the Google Compute Engine API,
         not by the Cloud Dataflow API; consult the Google Compute Engine
         documentation for more information about determining the set of
         available disk types for a particular project and zone.
        
         Google Compute Engine Disk types are local to a particular
         project in a particular zone, and so the resource name will
         typically look something like this:
        
         compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
         
        string disk_type = 2;
        Specified by:
        getDiskType in interface DiskOrBuilder
        Returns:
        The diskType.
      • getDiskTypeBytes

        public com.google.protobuf.ByteString getDiskTypeBytes()
         Disk storage type, as defined by Google Compute Engine.  This
         must be a disk type appropriate to the project and zone in which
         the workers will run.  If unknown or unspecified, the service
         will attempt to choose a reasonable default.
        
         For example, the standard persistent disk type is a resource name
         typically ending in "pd-standard".  If SSD persistent disks are
         available, the resource name typically ends with "pd-ssd".  The
         actual valid values are defined the Google Compute Engine API,
         not by the Cloud Dataflow API; consult the Google Compute Engine
         documentation for more information about determining the set of
         available disk types for a particular project and zone.
        
         Google Compute Engine Disk types are local to a particular
         project in a particular zone, and so the resource name will
         typically look something like this:
        
         compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
         
        string disk_type = 2;
        Specified by:
        getDiskTypeBytes in interface DiskOrBuilder
        Returns:
        The bytes for diskType.
      • setDiskType

        public Disk.Builder setDiskType​(String value)
         Disk storage type, as defined by Google Compute Engine.  This
         must be a disk type appropriate to the project and zone in which
         the workers will run.  If unknown or unspecified, the service
         will attempt to choose a reasonable default.
        
         For example, the standard persistent disk type is a resource name
         typically ending in "pd-standard".  If SSD persistent disks are
         available, the resource name typically ends with "pd-ssd".  The
         actual valid values are defined the Google Compute Engine API,
         not by the Cloud Dataflow API; consult the Google Compute Engine
         documentation for more information about determining the set of
         available disk types for a particular project and zone.
        
         Google Compute Engine Disk types are local to a particular
         project in a particular zone, and so the resource name will
         typically look something like this:
        
         compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
         
        string disk_type = 2;
        Parameters:
        value - The diskType to set.
        Returns:
        This builder for chaining.
      • clearDiskType

        public Disk.Builder clearDiskType()
         Disk storage type, as defined by Google Compute Engine.  This
         must be a disk type appropriate to the project and zone in which
         the workers will run.  If unknown or unspecified, the service
         will attempt to choose a reasonable default.
        
         For example, the standard persistent disk type is a resource name
         typically ending in "pd-standard".  If SSD persistent disks are
         available, the resource name typically ends with "pd-ssd".  The
         actual valid values are defined the Google Compute Engine API,
         not by the Cloud Dataflow API; consult the Google Compute Engine
         documentation for more information about determining the set of
         available disk types for a particular project and zone.
        
         Google Compute Engine Disk types are local to a particular
         project in a particular zone, and so the resource name will
         typically look something like this:
        
         compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
         
        string disk_type = 2;
        Returns:
        This builder for chaining.
      • setDiskTypeBytes

        public Disk.Builder setDiskTypeBytes​(com.google.protobuf.ByteString value)
         Disk storage type, as defined by Google Compute Engine.  This
         must be a disk type appropriate to the project and zone in which
         the workers will run.  If unknown or unspecified, the service
         will attempt to choose a reasonable default.
        
         For example, the standard persistent disk type is a resource name
         typically ending in "pd-standard".  If SSD persistent disks are
         available, the resource name typically ends with "pd-ssd".  The
         actual valid values are defined the Google Compute Engine API,
         not by the Cloud Dataflow API; consult the Google Compute Engine
         documentation for more information about determining the set of
         available disk types for a particular project and zone.
        
         Google Compute Engine Disk types are local to a particular
         project in a particular zone, and so the resource name will
         typically look something like this:
        
         compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
         
        string disk_type = 2;
        Parameters:
        value - The bytes for diskType to set.
        Returns:
        This builder for chaining.
      • getMountPoint

        public String getMountPoint()
         Directory in a VM where disk is mounted.
         
        string mount_point = 3;
        Specified by:
        getMountPoint in interface DiskOrBuilder
        Returns:
        The mountPoint.
      • getMountPointBytes

        public com.google.protobuf.ByteString getMountPointBytes()
         Directory in a VM where disk is mounted.
         
        string mount_point = 3;
        Specified by:
        getMountPointBytes in interface DiskOrBuilder
        Returns:
        The bytes for mountPoint.
      • setMountPoint

        public Disk.Builder setMountPoint​(String value)
         Directory in a VM where disk is mounted.
         
        string mount_point = 3;
        Parameters:
        value - The mountPoint to set.
        Returns:
        This builder for chaining.
      • clearMountPoint

        public Disk.Builder clearMountPoint()
         Directory in a VM where disk is mounted.
         
        string mount_point = 3;
        Returns:
        This builder for chaining.
      • setMountPointBytes

        public Disk.Builder setMountPointBytes​(com.google.protobuf.ByteString value)
         Directory in a VM where disk is mounted.
         
        string mount_point = 3;
        Parameters:
        value - The bytes for mountPoint to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Disk.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<Disk.Builder>
      • mergeUnknownFields

        public final Disk.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<Disk.Builder>