Class TargetPoolsAddInstanceRequest.Builder (1.65.0)

public static final class TargetPoolsAddInstanceRequest.Builder extends GeneratedMessageV3.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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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

Parameter
Name Description
index int
Returns
Type Description
InstanceReference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TargetPoolsAddInstanceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public TargetPoolsAddInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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

Returns
Type Description
TargetPoolsAddInstanceRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TargetPoolsAddInstanceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder
Overrides

clone()

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

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TargetPoolsAddInstanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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

Parameter
Name Description
index int
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TargetPoolsAddInstanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder
Overrides

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name

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

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

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

public TargetPoolsAddInstanceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TargetPoolsAddInstanceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TargetPoolsAddInstanceRequest.Builder
Overrides