Class TargetPoolsAddInstanceRequest.Builder (1.12.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.InstanceReference>
Returns
TypeDescription
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
NameDescription
valueInstanceReference
Returns
TypeDescription
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
NameDescription
builderForValueInstanceReference.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInstanceReference
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstanceReference.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InstanceReference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetPoolsAddInstanceRequest build()
Returns
TypeDescription
TargetPoolsAddInstanceRequest

buildPartial()

public TargetPoolsAddInstanceRequest buildPartial()
Returns
TypeDescription
TargetPoolsAddInstanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public TargetPoolsAddInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
TargetPoolsAddInstanceRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public TargetPoolsAddInstanceRequest getDefaultInstanceForType()
Returns
TypeDescription
TargetPoolsAddInstanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.compute.v1.InstanceReferenceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TargetPoolsAddInstanceRequest other)

public TargetPoolsAddInstanceRequest.Builder mergeFrom(TargetPoolsAddInstanceRequest other)
Parameter
NameDescription
otherTargetPoolsAddInstanceRequest
Returns
TypeDescription
TargetPoolsAddInstanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TargetPoolsAddInstanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
TargetPoolsAddInstanceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TargetPoolsAddInstanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueInstanceReference
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstanceReference.Builder
Returns
TypeDescription
TargetPoolsAddInstanceRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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