Class InstanceGroupManagersSetTargetPoolsRequest.Builder (1.16.0)

public static final class InstanceGroupManagersSetTargetPoolsRequest.Builder extends GeneratedMessageV3.Builder<InstanceGroupManagersSetTargetPoolsRequest.Builder> implements InstanceGroupManagersSetTargetPoolsRequestOrBuilder

Protobuf type google.cloud.compute.v1.InstanceGroupManagersSetTargetPoolsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllTargetPools(Iterable<String> values)

public InstanceGroupManagersSetTargetPoolsRequest.Builder addAllTargetPools(Iterable<String> values)

The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.

repeated string target_pools = 336072617;

Parameter
NameDescription
valuesIterable<String>

The targetPools to add.

Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTargetPools(String value)

public InstanceGroupManagersSetTargetPoolsRequest.Builder addTargetPools(String value)

The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.

repeated string target_pools = 336072617;

Parameter
NameDescription
valueString

The targetPools to add.

Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

addTargetPoolsBytes(ByteString value)

public InstanceGroupManagersSetTargetPoolsRequest.Builder addTargetPoolsBytes(ByteString value)

The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.

repeated string target_pools = 336072617;

Parameter
NameDescription
valueByteString

The bytes of the targetPools to add.

Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

build()

public InstanceGroupManagersSetTargetPoolsRequest build()
Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest

buildPartial()

public InstanceGroupManagersSetTargetPoolsRequest buildPartial()
Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public InstanceGroupManagersSetTargetPoolsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder
Overrides

clearFingerprint()

public InstanceGroupManagersSetTargetPoolsRequest.Builder clearFingerprint()

The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetPools()

public InstanceGroupManagersSetTargetPoolsRequest.Builder clearTargetPools()

The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.

repeated string target_pools = 336072617;

Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InstanceGroupManagersSetTargetPoolsRequest getDefaultInstanceForType()
Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFingerprint()

public String getFingerprint()

The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Returns
TypeDescription
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Returns
TypeDescription
ByteString

The bytes for fingerprint.

getTargetPools(int index)

public String getTargetPools(int index)

The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.

repeated string target_pools = 336072617;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The targetPools at the given index.

getTargetPoolsBytes(int index)

public ByteString getTargetPoolsBytes(int index)

The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.

repeated string target_pools = 336072617;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the targetPools at the given index.

getTargetPoolsCount()

public int getTargetPoolsCount()

The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.

repeated string target_pools = 336072617;

Returns
TypeDescription
int

The count of targetPools.

getTargetPoolsList()

public ProtocolStringList getTargetPoolsList()

The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.

repeated string target_pools = 336072617;

Returns
TypeDescription
ProtocolStringList

A list containing the targetPools.

hasFingerprint()

public boolean hasFingerprint()

The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Returns
TypeDescription
boolean

Whether the fingerprint field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceGroupManagersSetTargetPoolsRequest other)

public InstanceGroupManagersSetTargetPoolsRequest.Builder mergeFrom(InstanceGroupManagersSetTargetPoolsRequest other)
Parameter
NameDescription
otherInstanceGroupManagersSetTargetPoolsRequest
Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManagersSetTargetPoolsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setFingerprint(String value)

public InstanceGroupManagersSetTargetPoolsRequest.Builder setFingerprint(String value)

The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Parameter
NameDescription
valueString

The fingerprint to set.

Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public InstanceGroupManagersSetTargetPoolsRequest.Builder setFingerprintBytes(ByteString value)

The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request.

optional string fingerprint = 234678500;

Parameter
NameDescription
valueByteString

The bytes for fingerprint to set.

Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

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

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

setTargetPools(int index, String value)

public InstanceGroupManagersSetTargetPoolsRequest.Builder setTargetPools(int index, String value)

The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings.

repeated string target_pools = 336072617;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The targetPools to set.

Returns
TypeDescription
InstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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