Class RegionInstanceGroupManagersSetTargetPoolsRequest.Builder (1.46.0)

public static final class RegionInstanceGroupManagersSetTargetPoolsRequest.Builder extends GeneratedMessageV3.Builder<RegionInstanceGroupManagersSetTargetPoolsRequest.Builder> implements RegionInstanceGroupManagersSetTargetPoolsRequestOrBuilder

Protobuf type google.cloud.compute.v1.RegionInstanceGroupManagersSetTargetPoolsRequest

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RegionInstanceGroupManagersSetTargetPoolsRequest.Builder

Static Methods

getDescriptor()

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

Methods

addAllTargetPools(Iterable<String> values)

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

The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.

repeated string target_pools = 336072617;

Parameter
NameDescription
valuesIterable<String>

The targetPools to add.

Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTargetPools(String value)

public RegionInstanceGroupManagersSetTargetPoolsRequest.Builder addTargetPools(String value)

The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.

repeated string target_pools = 336072617;

Parameter
NameDescription
valueString

The targetPools to add.

Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

addTargetPoolsBytes(ByteString value)

public RegionInstanceGroupManagersSetTargetPoolsRequest.Builder addTargetPoolsBytes(ByteString value)

The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.

repeated string target_pools = 336072617;

Parameter
NameDescription
valueByteString

The bytes of the targetPools to add.

Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

build()

public RegionInstanceGroupManagersSetTargetPoolsRequest build()
Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest

buildPartial()

public RegionInstanceGroupManagersSetTargetPoolsRequest buildPartial()
Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFingerprint()

public RegionInstanceGroupManagersSetTargetPoolsRequest.Builder clearFingerprint()

Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional.

optional string fingerprint = 234678500;

Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetPools()

public RegionInstanceGroupManagersSetTargetPoolsRequest.Builder clearTargetPools()

The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.

repeated string target_pools = 336072617;

Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RegionInstanceGroupManagersSetTargetPoolsRequest getDefaultInstanceForType()
Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFingerprint()

public String getFingerprint()

Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional.

optional string fingerprint = 234678500;

Returns
TypeDescription
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional.

optional string fingerprint = 234678500;

Returns
TypeDescription
ByteString

The bytes for fingerprint.

getTargetPools(int index)

public String getTargetPools(int index)

The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.

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 URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.

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 URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.

repeated string target_pools = 336072617;

Returns
TypeDescription
int

The count of targetPools.

getTargetPoolsList()

public ProtocolStringList getTargetPoolsList()

The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.

repeated string target_pools = 336072617;

Returns
TypeDescription
ProtocolStringList

A list containing the targetPools.

hasFingerprint()

public boolean hasFingerprint()

Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional.

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(RegionInstanceGroupManagersSetTargetPoolsRequest other)

public RegionInstanceGroupManagersSetTargetPoolsRequest.Builder mergeFrom(RegionInstanceGroupManagersSetTargetPoolsRequest other)
Parameter
NameDescription
otherRegionInstanceGroupManagersSetTargetPoolsRequest
Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFingerprint(String value)

public RegionInstanceGroupManagersSetTargetPoolsRequest.Builder setFingerprint(String value)

Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional.

optional string fingerprint = 234678500;

Parameter
NameDescription
valueString

The fingerprint to set.

Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public RegionInstanceGroupManagersSetTargetPoolsRequest.Builder setFingerprintBytes(ByteString value)

Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional.

optional string fingerprint = 234678500;

Parameter
NameDescription
valueByteString

The bytes for fingerprint to set.

Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

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

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

setTargetPools(int index, String value)

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

The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.

repeated string target_pools = 336072617;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The targetPools to set.

Returns
TypeDescription
RegionInstanceGroupManagersSetTargetPoolsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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