Class Resources.Builder (0.19.0)

public static final class Resources.Builder extends GeneratedMessageV3.Builder<Resources.Builder> implements ResourcesOrBuilder

The system resources for the pipeline run. At least one zone or region must be specified or the pipeline run will fail.

Protobuf type google.cloud.lifesciences.v2beta.Resources

Implements

ResourcesOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllRegions(Iterable<String> values)

public Resources.Builder addAllRegions(Iterable<String> values)

The list of regions allowed for VM allocation. If set, the zones field must not be set.

repeated string regions = 2;

Parameter
NameDescription
valuesIterable<String>

The regions to add.

Returns
TypeDescription
Resources.Builder

This builder for chaining.

addAllZones(Iterable<String> values)

public Resources.Builder addAllZones(Iterable<String> values)

The list of zones allowed for VM allocation. If set, the regions field must not be set.

repeated string zones = 3;

Parameter
NameDescription
valuesIterable<String>

The zones to add.

Returns
TypeDescription
Resources.Builder

This builder for chaining.

addRegions(String value)

public Resources.Builder addRegions(String value)

The list of regions allowed for VM allocation. If set, the zones field must not be set.

repeated string regions = 2;

Parameter
NameDescription
valueString

The regions to add.

Returns
TypeDescription
Resources.Builder

This builder for chaining.

addRegionsBytes(ByteString value)

public Resources.Builder addRegionsBytes(ByteString value)

The list of regions allowed for VM allocation. If set, the zones field must not be set.

repeated string regions = 2;

Parameter
NameDescription
valueByteString

The bytes of the regions to add.

Returns
TypeDescription
Resources.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addZones(String value)

public Resources.Builder addZones(String value)

The list of zones allowed for VM allocation. If set, the regions field must not be set.

repeated string zones = 3;

Parameter
NameDescription
valueString

The zones to add.

Returns
TypeDescription
Resources.Builder

This builder for chaining.

addZonesBytes(ByteString value)

public Resources.Builder addZonesBytes(ByteString value)

The list of zones allowed for VM allocation. If set, the regions field must not be set.

repeated string zones = 3;

Parameter
NameDescription
valueByteString

The bytes of the zones to add.

Returns
TypeDescription
Resources.Builder

This builder for chaining.

build()

public Resources build()
Returns
TypeDescription
Resources

buildPartial()

public Resources buildPartial()
Returns
TypeDescription
Resources

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegions()

public Resources.Builder clearRegions()

The list of regions allowed for VM allocation. If set, the zones field must not be set.

repeated string regions = 2;

Returns
TypeDescription
Resources.Builder

This builder for chaining.

clearVirtualMachine()

public Resources.Builder clearVirtualMachine()

The virtual machine specification.

.google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;

Returns
TypeDescription
Resources.Builder

clearZones()

public Resources.Builder clearZones()

The list of zones allowed for VM allocation. If set, the regions field must not be set.

repeated string zones = 3;

Returns
TypeDescription
Resources.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Resources getDefaultInstanceForType()
Returns
TypeDescription
Resources

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRegions(int index)

public String getRegions(int index)

The list of regions allowed for VM allocation. If set, the zones field must not be set.

repeated string regions = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The regions at the given index.

getRegionsBytes(int index)

public ByteString getRegionsBytes(int index)

The list of regions allowed for VM allocation. If set, the zones field must not be set.

repeated string regions = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the regions at the given index.

getRegionsCount()

public int getRegionsCount()

The list of regions allowed for VM allocation. If set, the zones field must not be set.

repeated string regions = 2;

Returns
TypeDescription
int

The count of regions.

getRegionsList()

public ProtocolStringList getRegionsList()

The list of regions allowed for VM allocation. If set, the zones field must not be set.

repeated string regions = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the regions.

getVirtualMachine()

public VirtualMachine getVirtualMachine()

The virtual machine specification.

.google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;

Returns
TypeDescription
VirtualMachine

The virtualMachine.

getVirtualMachineBuilder()

public VirtualMachine.Builder getVirtualMachineBuilder()

The virtual machine specification.

.google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;

Returns
TypeDescription
VirtualMachine.Builder

getVirtualMachineOrBuilder()

public VirtualMachineOrBuilder getVirtualMachineOrBuilder()

The virtual machine specification.

.google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;

Returns
TypeDescription
VirtualMachineOrBuilder

getZones(int index)

public String getZones(int index)

The list of zones allowed for VM allocation. If set, the regions field must not be set.

repeated string zones = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The zones at the given index.

getZonesBytes(int index)

public ByteString getZonesBytes(int index)

The list of zones allowed for VM allocation. If set, the regions field must not be set.

repeated string zones = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the zones at the given index.

getZonesCount()

public int getZonesCount()

The list of zones allowed for VM allocation. If set, the regions field must not be set.

repeated string zones = 3;

Returns
TypeDescription
int

The count of zones.

getZonesList()

public ProtocolStringList getZonesList()

The list of zones allowed for VM allocation. If set, the regions field must not be set.

repeated string zones = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the zones.

hasVirtualMachine()

public boolean hasVirtualMachine()

The virtual machine specification.

.google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;

Returns
TypeDescription
boolean

Whether the virtualMachine field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Resources other)

public Resources.Builder mergeFrom(Resources other)
Parameter
NameDescription
otherResources
Returns
TypeDescription
Resources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVirtualMachine(VirtualMachine value)

public Resources.Builder mergeVirtualMachine(VirtualMachine value)

The virtual machine specification.

.google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;

Parameter
NameDescription
valueVirtualMachine
Returns
TypeDescription
Resources.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRegions(int index, String value)

public Resources.Builder setRegions(int index, String value)

The list of regions allowed for VM allocation. If set, the zones field must not be set.

repeated string regions = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The regions to set.

Returns
TypeDescription
Resources.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVirtualMachine(VirtualMachine value)

public Resources.Builder setVirtualMachine(VirtualMachine value)

The virtual machine specification.

.google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;

Parameter
NameDescription
valueVirtualMachine
Returns
TypeDescription
Resources.Builder

setVirtualMachine(VirtualMachine.Builder builderForValue)

public Resources.Builder setVirtualMachine(VirtualMachine.Builder builderForValue)

The virtual machine specification.

.google.cloud.lifesciences.v2beta.VirtualMachine virtual_machine = 4;

Parameter
NameDescription
builderForValueVirtualMachine.Builder
Returns
TypeDescription
Resources.Builder

setZones(int index, String value)

public Resources.Builder setZones(int index, String value)

The list of zones allowed for VM allocation. If set, the regions field must not be set.

repeated string zones = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The zones to set.

Returns
TypeDescription
Resources.Builder

This builder for chaining.