Class ExistingInstances.Builder (0.23.0)

public static final class ExistingInstances.Builder extends GeneratedMessage.Builder<ExistingInstances.Builder> implements ExistingInstancesOrBuilder

ExistingInstances defines a list of existing VM instances to include in the cluster.

Protobuf type google.cloud.hypercomputecluster.v1beta.ExistingInstances

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNetworks(Iterable<? extends NetworkReference> values)

public ExistingInstances.Builder addAllNetworks(Iterable<? extends NetworkReference> values)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.hypercomputecluster.v1beta.NetworkReference>
Returns
Type Description
ExistingInstances.Builder

addNetworks(NetworkReference value)

public ExistingInstances.Builder addNetworks(NetworkReference value)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value NetworkReference
Returns
Type Description
ExistingInstances.Builder

addNetworks(NetworkReference.Builder builderForValue)

public ExistingInstances.Builder addNetworks(NetworkReference.Builder builderForValue)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue NetworkReference.Builder
Returns
Type Description
ExistingInstances.Builder

addNetworks(int index, NetworkReference value)

public ExistingInstances.Builder addNetworks(int index, NetworkReference value)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value NetworkReference
Returns
Type Description
ExistingInstances.Builder

addNetworks(int index, NetworkReference.Builder builderForValue)

public ExistingInstances.Builder addNetworks(int index, NetworkReference.Builder builderForValue)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue NetworkReference.Builder
Returns
Type Description
ExistingInstances.Builder

addNetworksBuilder()

public NetworkReference.Builder addNetworksBuilder()

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NetworkReference.Builder

addNetworksBuilder(int index)

public NetworkReference.Builder addNetworksBuilder(int index)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
NetworkReference.Builder

build()

public ExistingInstances build()
Returns
Type Description
ExistingInstances

buildPartial()

public ExistingInstances buildPartial()
Returns
Type Description
ExistingInstances

clear()

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

clearInstanceGroupManager()

public ExistingInstances.Builder clearInstanceGroupManager()

Optional. Immutable. Managed instance group containing the instances, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}.

string instance_group_manager = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

clearLabels()

public ExistingInstances.Builder clearLabels()
Returns
Type Description
ExistingInstances.Builder

clearNetworks()

public ExistingInstances.Builder clearNetworks()

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExistingInstances.Builder

clearProject()

public ExistingInstances.Builder clearProject()

Optional. Immutable. Project containing the instances, in the format projects/{project}.

string project = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

clearRegionInstanceGroupManager()

public ExistingInstances.Builder clearRegionInstanceGroupManager()

Optional. Immutable. Regional managed instance group containing the instances, in the format projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}.

string region_instance_group_manager = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

clearReservation()

public ExistingInstances.Builder clearReservation()

Optional. Immutable. Reservation containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

clearReservationBlock()

public ExistingInstances.Builder clearReservationBlock()

Optional. Immutable. Reservation block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}.

string reservation_block = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

clearReservationSubBlock()

public ExistingInstances.Builder clearReservationSubBlock()

Optional. Immutable. Reservation sub block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/reservationSubBlocks/{reservationSubBlock}.

string reservation_sub_block = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

clearSource()

public ExistingInstances.Builder clearSource()
Returns
Type Description
ExistingInstances.Builder

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels. If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public ExistingInstances getDefaultInstanceForType()
Returns
Type Description
ExistingInstances

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstanceGroupManager()

public String getInstanceGroupManager()

Optional. Immutable. Managed instance group containing the instances, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}.

string instance_group_manager = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The instanceGroupManager.

getInstanceGroupManagerBytes()

public ByteString getInstanceGroupManagerBytes()

Optional. Immutable. Managed instance group containing the instances, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}.

string instance_group_manager = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for instanceGroupManager.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels. If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels. If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels. If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels. If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getNetworks(int index)

public NetworkReference getNetworks(int index)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
NetworkReference

getNetworksBuilder(int index)

public NetworkReference.Builder getNetworksBuilder(int index)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
NetworkReference.Builder

getNetworksBuilderList()

public List<NetworkReference.Builder> getNetworksBuilderList()

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getNetworksCount()

public int getNetworksCount()

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getNetworksList()

public List<NetworkReference> getNetworksList()

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<NetworkReference>

getNetworksOrBuilder(int index)

public NetworkReferenceOrBuilder getNetworksOrBuilder(int index)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
NetworkReferenceOrBuilder

getNetworksOrBuilderList()

public List<? extends NetworkReferenceOrBuilder> getNetworksOrBuilderList()

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.hypercomputecluster.v1beta.NetworkReferenceOrBuilder>

getProject()

public String getProject()

Optional. Immutable. Project containing the instances, in the format projects/{project}.

string project = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Optional. Immutable. Project containing the instances, in the format projects/{project}.

string project = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for project.

getRegionInstanceGroupManager()

public String getRegionInstanceGroupManager()

Optional. Immutable. Regional managed instance group containing the instances, in the format projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}.

string region_instance_group_manager = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The regionInstanceGroupManager.

getRegionInstanceGroupManagerBytes()

public ByteString getRegionInstanceGroupManagerBytes()

Optional. Immutable. Regional managed instance group containing the instances, in the format projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}.

string region_instance_group_manager = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for regionInstanceGroupManager.

getReservation()

public String getReservation()

Optional. Immutable. Reservation containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The reservation.

getReservationBlock()

public String getReservationBlock()

Optional. Immutable. Reservation block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}.

string reservation_block = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The reservationBlock.

getReservationBlockBytes()

public ByteString getReservationBlockBytes()

Optional. Immutable. Reservation block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}.

string reservation_block = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for reservationBlock.

getReservationBytes()

public ByteString getReservationBytes()

Optional. Immutable. Reservation containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for reservation.

getReservationSubBlock()

public String getReservationSubBlock()

Optional. Immutable. Reservation sub block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/reservationSubBlocks/{reservationSubBlock}.

string reservation_sub_block = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The reservationSubBlock.

getReservationSubBlockBytes()

public ByteString getReservationSubBlockBytes()

Optional. Immutable. Reservation sub block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/reservationSubBlocks/{reservationSubBlock}.

string reservation_sub_block = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for reservationSubBlock.

getSourceCase()

public ExistingInstances.SourceCase getSourceCase()
Returns
Type Description
ExistingInstances.SourceCase

hasInstanceGroupManager()

public boolean hasInstanceGroupManager()

Optional. Immutable. Managed instance group containing the instances, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}.

string instance_group_manager = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the instanceGroupManager field is set.

hasProject()

public boolean hasProject()

Optional. Immutable. Project containing the instances, in the format projects/{project}.

string project = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the project field is set.

hasRegionInstanceGroupManager()

public boolean hasRegionInstanceGroupManager()

Optional. Immutable. Regional managed instance group containing the instances, in the format projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}.

string region_instance_group_manager = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the regionInstanceGroupManager field is set.

hasReservation()

public boolean hasReservation()

Optional. Immutable. Reservation containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the reservation field is set.

hasReservationBlock()

public boolean hasReservationBlock()

Optional. Immutable. Reservation block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}.

string reservation_block = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the reservationBlock field is set.

hasReservationSubBlock()

public boolean hasReservationSubBlock()

Optional. Immutable. Reservation sub block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/reservationSubBlocks/{reservationSubBlock}.

string reservation_sub_block = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the reservationSubBlock field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExistingInstances other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

putAllLabels(Map<String,String> values)

public ExistingInstances.Builder putAllLabels(Map<String,String> values)

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels. If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ExistingInstances.Builder

putLabels(String key, String value)

public ExistingInstances.Builder putLabels(String key, String value)

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels. If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
key String
value String
Returns
Type Description
ExistingInstances.Builder

removeLabels(String key)

public ExistingInstances.Builder removeLabels(String key)

Optional. Immutable. Labels specifying the instances to include. Instances from the source will be included only if they contain each of these labels. If no labels are specified, all instances from the source will be included. Example: {"env": "prod", "app": "worker"}

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
key String
Returns
Type Description
ExistingInstances.Builder

removeNetworks(int index)

public ExistingInstances.Builder removeNetworks(int index)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ExistingInstances.Builder

setInstanceGroupManager(String value)

public ExistingInstances.Builder setInstanceGroupManager(String value)

Optional. Immutable. Managed instance group containing the instances, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}.

string instance_group_manager = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The instanceGroupManager to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setInstanceGroupManagerBytes(ByteString value)

public ExistingInstances.Builder setInstanceGroupManagerBytes(ByteString value)

Optional. Immutable. Managed instance group containing the instances, in the format projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}.

string instance_group_manager = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for instanceGroupManager to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setNetworks(int index, NetworkReference value)

public ExistingInstances.Builder setNetworks(int index, NetworkReference value)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value NetworkReference
Returns
Type Description
ExistingInstances.Builder

setNetworks(int index, NetworkReference.Builder builderForValue)

public ExistingInstances.Builder setNetworks(int index, NetworkReference.Builder builderForValue)

Output only. Networks stores the list of VPC networks attached to these existing instances, discovered during the cluster creation and update.

repeated .google.cloud.hypercomputecluster.v1beta.NetworkReference networks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue NetworkReference.Builder
Returns
Type Description
ExistingInstances.Builder

setProject(String value)

public ExistingInstances.Builder setProject(String value)

Optional. Immutable. Project containing the instances, in the format projects/{project}.

string project = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The project to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public ExistingInstances.Builder setProjectBytes(ByteString value)

Optional. Immutable. Project containing the instances, in the format projects/{project}.

string project = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setRegionInstanceGroupManager(String value)

public ExistingInstances.Builder setRegionInstanceGroupManager(String value)

Optional. Immutable. Regional managed instance group containing the instances, in the format projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}.

string region_instance_group_manager = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The regionInstanceGroupManager to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setRegionInstanceGroupManagerBytes(ByteString value)

public ExistingInstances.Builder setRegionInstanceGroupManagerBytes(ByteString value)

Optional. Immutable. Regional managed instance group containing the instances, in the format projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}.

string region_instance_group_manager = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for regionInstanceGroupManager to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setReservation(String value)

public ExistingInstances.Builder setReservation(String value)

Optional. Immutable. Reservation containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The reservation to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setReservationBlock(String value)

public ExistingInstances.Builder setReservationBlock(String value)

Optional. Immutable. Reservation block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}.

string reservation_block = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The reservationBlock to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setReservationBlockBytes(ByteString value)

public ExistingInstances.Builder setReservationBlockBytes(ByteString value)

Optional. Immutable. Reservation block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}.

string reservation_block = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for reservationBlock to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setReservationBytes(ByteString value)

public ExistingInstances.Builder setReservationBytes(ByteString value)

Optional. Immutable. Reservation containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}.

string reservation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for reservation to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setReservationSubBlock(String value)

public ExistingInstances.Builder setReservationSubBlock(String value)

Optional. Immutable. Reservation sub block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/reservationSubBlocks/{reservationSubBlock}.

string reservation_sub_block = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The reservationSubBlock to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.

setReservationSubBlockBytes(ByteString value)

public ExistingInstances.Builder setReservationSubBlockBytes(ByteString value)

Optional. Immutable. Reservation sub block containing the instances, in the format projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/reservationSubBlocks/{reservationSubBlock}.

string reservation_sub_block = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for reservationSubBlock to set.

Returns
Type Description
ExistingInstances.Builder

This builder for chaining.