Class Resources.Builder (0.45.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
Type Description
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
Name Description
values Iterable<String>

The regions to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The zones to add.

Returns
Type Description
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
Name Description
value String

The regions to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the regions to add.

Returns
Type Description
Resources.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Resources.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The zones to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the zones to add.

Returns
Type Description
Resources.Builder

This builder for chaining.

build()

public Resources build()
Returns
Type Description
Resources

buildPartial()

public Resources buildPartial()
Returns
Type Description
Resources

clear()

public Resources.Builder clear()
Returns
Type Description
Resources.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Resources.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Resources.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Resources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
Resources.Builder

This builder for chaining.

clearVirtualMachine()

public Resources.Builder clearVirtualMachine()

The virtual machine specification.

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

Returns
Type Description
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
Type Description
Resources.Builder

This builder for chaining.

clone()

public Resources.Builder clone()
Returns
Type Description
Resources.Builder
Overrides

getDefaultInstanceForType()

public Resources getDefaultInstanceForType()
Returns
Type Description
Resources

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the regions.

getVirtualMachine()

public VirtualMachine getVirtualMachine()

The virtual machine specification.

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

Returns
Type Description
VirtualMachine

The virtualMachine.

getVirtualMachineBuilder()

public VirtualMachine.Builder getVirtualMachineBuilder()

The virtual machine specification.

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

Returns
Type Description
VirtualMachine.Builder

getVirtualMachineOrBuilder()

public VirtualMachineOrBuilder getVirtualMachineOrBuilder()

The virtual machine specification.

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

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the zones.

hasVirtualMachine()

public boolean hasVirtualMachine()

The virtual machine specification.

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

Returns
Type Description
boolean

Whether the virtualMachine field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Resources other)

public Resources.Builder mergeFrom(Resources other)
Parameter
Name Description
other Resources
Returns
Type Description
Resources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Resources.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Resources.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Resources.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Resources.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Resources.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value VirtualMachine
Returns
Type Description
Resources.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Resources.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The regions to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Resources.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Resources.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value VirtualMachine
Returns
Type Description
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
Name Description
builderForValue VirtualMachine.Builder
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The zones to set.

Returns
Type Description
Resources.Builder

This builder for chaining.