Class InstanceGroupsAddInstancesRequest.Builder (1.23.0)

public static final class InstanceGroupsAddInstancesRequest.Builder extends GeneratedMessageV3.Builder<InstanceGroupsAddInstancesRequest.Builder> implements InstanceGroupsAddInstancesRequestOrBuilder

Protobuf type google.cloud.compute.v1.InstanceGroupsAddInstancesRequest

Static Methods

getDescriptor()

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

Methods

addAllInstances(Iterable<? extends InstanceReference> values)

public InstanceGroupsAddInstancesRequest.Builder addAllInstances(Iterable<? extends InstanceReference> values)

The list of instances to add to the instance group.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.InstanceReference>
Returns
TypeDescription
InstanceGroupsAddInstancesRequest.Builder

addInstances(InstanceReference value)

public InstanceGroupsAddInstancesRequest.Builder addInstances(InstanceReference value)

The list of instances to add to the instance group.

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

Parameter
NameDescription
valueInstanceReference
Returns
TypeDescription
InstanceGroupsAddInstancesRequest.Builder

addInstances(InstanceReference.Builder builderForValue)

public InstanceGroupsAddInstancesRequest.Builder addInstances(InstanceReference.Builder builderForValue)

The list of instances to add to the instance group.

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

Parameter
NameDescription
builderForValueInstanceReference.Builder
Returns
TypeDescription
InstanceGroupsAddInstancesRequest.Builder

addInstances(int index, InstanceReference value)

public InstanceGroupsAddInstancesRequest.Builder addInstances(int index, InstanceReference value)

The list of instances to add to the instance group.

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

Parameters
NameDescription
indexint
valueInstanceReference
Returns
TypeDescription
InstanceGroupsAddInstancesRequest.Builder

addInstances(int index, InstanceReference.Builder builderForValue)

public InstanceGroupsAddInstancesRequest.Builder addInstances(int index, InstanceReference.Builder builderForValue)

The list of instances to add to the instance group.

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

Parameters
NameDescription
indexint
builderForValueInstanceReference.Builder
Returns
TypeDescription
InstanceGroupsAddInstancesRequest.Builder

addInstancesBuilder()

public InstanceReference.Builder addInstancesBuilder()

The list of instances to add to the instance group.

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

Returns
TypeDescription
InstanceReference.Builder

addInstancesBuilder(int index)

public InstanceReference.Builder addInstancesBuilder(int index)

The list of instances to add to the instance group.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceReference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceGroupsAddInstancesRequest build()
Returns
TypeDescription
InstanceGroupsAddInstancesRequest

buildPartial()

public InstanceGroupsAddInstancesRequest buildPartial()
Returns
TypeDescription
InstanceGroupsAddInstancesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstances()

public InstanceGroupsAddInstancesRequest.Builder clearInstances()

The list of instances to add to the instance group.

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

Returns
TypeDescription
InstanceGroupsAddInstancesRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InstanceGroupsAddInstancesRequest getDefaultInstanceForType()
Returns
TypeDescription
InstanceGroupsAddInstancesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstances(int index)

public InstanceReference getInstances(int index)

The list of instances to add to the instance group.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceReference

getInstancesBuilder(int index)

public InstanceReference.Builder getInstancesBuilder(int index)

The list of instances to add to the instance group.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceReference.Builder

getInstancesBuilderList()

public List<InstanceReference.Builder> getInstancesBuilderList()

The list of instances to add to the instance group.

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

Returns
TypeDescription
List<Builder>

getInstancesCount()

public int getInstancesCount()

The list of instances to add to the instance group.

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

Returns
TypeDescription
int

getInstancesList()

public List<InstanceReference> getInstancesList()

The list of instances to add to the instance group.

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

Returns
TypeDescription
List<InstanceReference>

getInstancesOrBuilder(int index)

public InstanceReferenceOrBuilder getInstancesOrBuilder(int index)

The list of instances to add to the instance group.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceReferenceOrBuilder

getInstancesOrBuilderList()

public List<? extends InstanceReferenceOrBuilder> getInstancesOrBuilderList()

The list of instances to add to the instance group.

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

public InstanceGroupsAddInstancesRequest.Builder mergeFrom(InstanceGroupsAddInstancesRequest other)
Parameter
NameDescription
otherInstanceGroupsAddInstancesRequest
Returns
TypeDescription
InstanceGroupsAddInstancesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInstances(int index)

public InstanceGroupsAddInstancesRequest.Builder removeInstances(int index)

The list of instances to add to the instance group.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupsAddInstancesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstances(int index, InstanceReference value)

public InstanceGroupsAddInstancesRequest.Builder setInstances(int index, InstanceReference value)

The list of instances to add to the instance group.

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

Parameters
NameDescription
indexint
valueInstanceReference
Returns
TypeDescription
InstanceGroupsAddInstancesRequest.Builder

setInstances(int index, InstanceReference.Builder builderForValue)

public InstanceGroupsAddInstancesRequest.Builder setInstances(int index, InstanceReference.Builder builderForValue)

The list of instances to add to the instance group.

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

Parameters
NameDescription
indexint
builderForValueInstanceReference.Builder
Returns
TypeDescription
InstanceGroupsAddInstancesRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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