Class TargetPoolsAddInstanceRequest.Builder (1.93.0)

public static final class TargetPoolsAddInstanceRequest.Builder extends GeneratedMessage.Builder<TargetPoolsAddInstanceRequest.Builder> implements TargetPoolsAddInstanceRequestOrBuilder

Protobuf type google.cloud.compute.v1.TargetPoolsAddInstanceRequest

Static Methods

getDescriptor()

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

Methods

addAllInstances(Iterable<? extends InstanceReference> values)

public TargetPoolsAddInstanceRequest.Builder addAllInstances(Iterable<? extends InstanceReference> values)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.InstanceReference>
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder

addInstances(InstanceReference value)

public TargetPoolsAddInstanceRequest.Builder addInstances(InstanceReference value)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameter
Name Description
value InstanceReference
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder

addInstances(InstanceReference.Builder builderForValue)

public TargetPoolsAddInstanceRequest.Builder addInstances(InstanceReference.Builder builderForValue)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameter
Name Description
builderForValue InstanceReference.Builder
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder

addInstances(int index, InstanceReference value)

public TargetPoolsAddInstanceRequest.Builder addInstances(int index, InstanceReference value)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameters
Name Description
index int
value InstanceReference
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder

addInstances(int index, InstanceReference.Builder builderForValue)

public TargetPoolsAddInstanceRequest.Builder addInstances(int index, InstanceReference.Builder builderForValue)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameters
Name Description
index int
builderForValue InstanceReference.Builder
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder

addInstancesBuilder()

public InstanceReference.Builder addInstancesBuilder()

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Returns
Type Description
InstanceReference.Builder

addInstancesBuilder(int index)

public InstanceReference.Builder addInstancesBuilder(int index)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameter
Name Description
index int
Returns
Type Description
InstanceReference.Builder

build()

public TargetPoolsAddInstanceRequest build()
Returns
Type Description
TargetPoolsAddInstanceRequest

buildPartial()

public TargetPoolsAddInstanceRequest buildPartial()
Returns
Type Description
TargetPoolsAddInstanceRequest

clear()

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

clearInstances()

public TargetPoolsAddInstanceRequest.Builder clearInstances()

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Returns
Type Description
TargetPoolsAddInstanceRequest.Builder

getDefaultInstanceForType()

public TargetPoolsAddInstanceRequest getDefaultInstanceForType()
Returns
Type Description
TargetPoolsAddInstanceRequest

getDescriptorForType()

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

getInstances(int index)

public InstanceReference getInstances(int index)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameter
Name Description
index int
Returns
Type Description
InstanceReference

getInstancesBuilder(int index)

public InstanceReference.Builder getInstancesBuilder(int index)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameter
Name Description
index int
Returns
Type Description
InstanceReference.Builder

getInstancesBuilderList()

public List<InstanceReference.Builder> getInstancesBuilderList()

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Returns
Type Description
List<Builder>

getInstancesCount()

public int getInstancesCount()

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Returns
Type Description
int

getInstancesList()

public List<InstanceReference> getInstancesList()

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Returns
Type Description
List<InstanceReference>

getInstancesOrBuilder(int index)

public InstanceReferenceOrBuilder getInstancesOrBuilder(int index)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameter
Name Description
index int
Returns
Type Description
InstanceReferenceOrBuilder

getInstancesOrBuilderList()

public List<? extends InstanceReferenceOrBuilder> getInstancesOrBuilderList()

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.InstanceReferenceOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TargetPoolsAddInstanceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeInstances(int index)

public TargetPoolsAddInstanceRequest.Builder removeInstances(int index)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameter
Name Description
index int
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder

setInstances(int index, InstanceReference value)

public TargetPoolsAddInstanceRequest.Builder setInstances(int index, InstanceReference value)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameters
Name Description
index int
value InstanceReference
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder

setInstances(int index, InstanceReference.Builder builderForValue)

public TargetPoolsAddInstanceRequest.Builder setInstances(int index, InstanceReference.Builder builderForValue)

A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:

repeated .google.cloud.compute.v1.InstanceReference instances = 29097598;

Parameters
Name Description
index int
builderForValue InstanceReference.Builder
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder