public static final class TargetPoolsAddInstanceRequest.Builder extends GeneratedMessageV3.Builder<TargetPoolsAddInstanceRequest.Builder> implements TargetPoolsAddInstanceRequestOrBuilder
Protobuf type google.cloud.compute.v1.TargetPoolsAddInstanceRequest
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TargetPoolsAddInstanceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TargetPoolsAddInstanceRequest build()
Returns
buildPartial()
public TargetPoolsAddInstanceRequest buildPartial()
Returns
clear()
public TargetPoolsAddInstanceRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TargetPoolsAddInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public TargetPoolsAddInstanceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public TargetPoolsAddInstanceRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public TargetPoolsAddInstanceRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TargetPoolsAddInstanceRequest other)
public TargetPoolsAddInstanceRequest.Builder mergeFrom(TargetPoolsAddInstanceRequest other)
Parameter
Returns
public TargetPoolsAddInstanceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TargetPoolsAddInstanceRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TargetPoolsAddInstanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TargetPoolsAddInstanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TargetPoolsAddInstanceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TargetPoolsAddInstanceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides