Class Disk.Builder (0.28.0)

public static final class Disk.Builder extends GeneratedMessageV3.Builder<Disk.Builder> implements DiskOrBuilder

Describes the data disk used by a workflow job.

Protobuf type google.dataflow.v1beta3.Disk

Implements

DiskOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Disk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Disk.Builder
Overrides

build()

public Disk build()
Returns
TypeDescription
Disk

buildPartial()

public Disk buildPartial()
Returns
TypeDescription
Disk

clear()

public Disk.Builder clear()
Returns
TypeDescription
Disk.Builder
Overrides

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
TypeDescription
Disk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Disk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Disk.Builder
Overrides

clearMountPoint()

public Disk.Builder clearMountPoint()

Directory in a VM where disk is mounted.

string mount_point = 3;

Returns
TypeDescription
Disk.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Disk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Disk.Builder
Overrides

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
TypeDescription
Disk.Builder

This builder for chaining.

clone()

public Disk.Builder clone()
Returns
TypeDescription
Disk.Builder
Overrides

getDefaultInstanceForType()

public Disk getDefaultInstanceForType()
Returns
TypeDescription
Disk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The diskType.

getDiskTypeBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for diskType.

getMountPoint()

public String getMountPoint()

Directory in a VM where disk is mounted.

string mount_point = 3;

Returns
TypeDescription
String

The mountPoint.

getMountPointBytes()

public ByteString getMountPointBytes()

Directory in a VM where disk is mounted.

string mount_point = 3;

Returns
TypeDescription
ByteString

The bytes for mountPoint.

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;

Returns
TypeDescription
int

The sizeGb.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Disk other)

public Disk.Builder mergeFrom(Disk other)
Parameter
NameDescription
otherDisk
Returns
TypeDescription
Disk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Disk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Disk.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Disk.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Disk.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Disk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Disk.Builder
Overrides

setDiskType(String value)

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;

Parameter
NameDescription
valueString

The diskType to set.

Returns
TypeDescription
Disk.Builder

This builder for chaining.

setDiskTypeBytes(ByteString value)

public Disk.Builder setDiskTypeBytes(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;

Parameter
NameDescription
valueByteString

The bytes for diskType to set.

Returns
TypeDescription
Disk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Disk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Disk.Builder
Overrides

setMountPoint(String value)

public Disk.Builder setMountPoint(String value)

Directory in a VM where disk is mounted.

string mount_point = 3;

Parameter
NameDescription
valueString

The mountPoint to set.

Returns
TypeDescription
Disk.Builder

This builder for chaining.

setMountPointBytes(ByteString value)

public Disk.Builder setMountPointBytes(ByteString value)

Directory in a VM where disk is mounted.

string mount_point = 3;

Parameter
NameDescription
valueByteString

The bytes for mountPoint to set.

Returns
TypeDescription
Disk.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Disk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Disk.Builder
Overrides

setSizeGb(int value)

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;

Parameter
NameDescription
valueint

The sizeGb to set.

Returns
TypeDescription
Disk.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Disk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Disk.Builder
Overrides