Class Disk.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Disk.Builder>
com.google.dataflow.v1beta3.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.GeneratedMessage.Builder<Disk.Builder> implements DiskOrBuilder
 Describes the data disk used by a workflow job.
 
Protobuf type google.dataflow.v1beta3.Disk
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Disk storage type, as defined by Google Compute Engine.
    Directory in a VM where disk is mounted.
    Size of disk in GB.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Disk storage type, as defined by Google Compute Engine.
    com.google.protobuf.ByteString
    Disk storage type, as defined by Google Compute Engine.
    Directory in a VM where disk is mounted.
    com.google.protobuf.ByteString
    Directory in a VM where disk is mounted.
    int
    Size of disk in GB.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(Disk other)
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Disk storage type, as defined by Google Compute Engine.
    setDiskTypeBytes(com.google.protobuf.ByteString value)
    Disk storage type, as defined by Google Compute Engine.
    Directory in a VM where disk is mounted.
    setMountPointBytes(com.google.protobuf.ByteString value)
    Directory in a VM where disk is mounted.
    setSizeGb(int value)
    Size of disk in GB.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Disk.Builder mergeFrom(Disk other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.