public static final class AttachedDiskConfig.Builder extends GeneratedMessage.Builder<AttachedDiskConfig.Builder> implements AttachedDiskConfigOrBuilderSpecifies the config of attached disk options for single VM instance.
Protobuf type google.cloud.dataproc.v1.AttachedDiskConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AttachedDiskConfig.BuilderImplements
AttachedDiskConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AttachedDiskConfig build()| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig |
|
buildPartial()
public AttachedDiskConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig |
|
clear()
public AttachedDiskConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
|
clearDiskSizeGb()
public AttachedDiskConfig.Builder clearDiskSizeGb()Optional. Disk size in GB.
int32 disk_size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
This builder for chaining. |
clearDiskType()
public AttachedDiskConfig.Builder clearDiskType()Optional. Disk type.
.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
This builder for chaining. |
clearProvisionedIops()
public AttachedDiskConfig.Builder clearProvisionedIops()Optional. Indicates how many IOPS to provision for the attached disk. This sets the number of I/O operations per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
This builder for chaining. |
clearProvisionedThroughput()
public AttachedDiskConfig.Builder clearProvisionedThroughput()Optional. Indicates how much throughput to provision for the attached disk. This sets the number of throughput mb per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AttachedDiskConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDiskSizeGb()
public int getDiskSizeGb()Optional. Disk size in GB.
int32 disk_size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The diskSizeGb. |
getDiskType()
public AttachedDiskConfig.DiskType getDiskType()Optional. Disk type.
.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.DiskType |
The diskType. |
getDiskTypeValue()
public int getDiskTypeValue()Optional. Disk type.
.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for diskType. |
getProvisionedIops()
public long getProvisionedIops()Optional. Indicates how many IOPS to provision for the attached disk. This sets the number of I/O operations per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The provisionedIops. |
getProvisionedThroughput()
public long getProvisionedThroughput()Optional. Indicates how much throughput to provision for the attached disk. This sets the number of throughput mb per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The provisionedThroughput. |
hasProvisionedIops()
public boolean hasProvisionedIops()Optional. Indicates how many IOPS to provision for the attached disk. This sets the number of I/O operations per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the provisionedIops field is set. |
hasProvisionedThroughput()
public boolean hasProvisionedThroughput()Optional. Indicates how much throughput to provision for the attached disk. This sets the number of throughput mb per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the provisionedThroughput field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AttachedDiskConfig other)
public AttachedDiskConfig.Builder mergeFrom(AttachedDiskConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
AttachedDiskConfig |
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AttachedDiskConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AttachedDiskConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
|
setDiskSizeGb(int value)
public AttachedDiskConfig.Builder setDiskSizeGb(int value)Optional. Disk size in GB.
int32 disk_size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe diskSizeGb to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
This builder for chaining. |
setDiskType(AttachedDiskConfig.DiskType value)
public AttachedDiskConfig.Builder setDiskType(AttachedDiskConfig.DiskType value)Optional. Disk type.
.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDiskConfig.DiskTypeThe diskType to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
This builder for chaining. |
setDiskTypeValue(int value)
public AttachedDiskConfig.Builder setDiskTypeValue(int value)Optional. Disk type.
.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for diskType to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
This builder for chaining. |
setProvisionedIops(long value)
public AttachedDiskConfig.Builder setProvisionedIops(long value)Optional. Indicates how many IOPS to provision for the attached disk. This sets the number of I/O operations per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe provisionedIops to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
This builder for chaining. |
setProvisionedThroughput(long value)
public AttachedDiskConfig.Builder setProvisionedThroughput(long value)Optional. Indicates how much throughput to provision for the attached disk. This sets the number of throughput mb per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features
optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe provisionedThroughput to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDiskConfig.Builder |
This builder for chaining. |