Class BatchCreateInstancesResponse.Builder (0.18.0)

public static final class BatchCreateInstancesResponse.Builder extends GeneratedMessageV3.Builder<BatchCreateInstancesResponse.Builder> implements BatchCreateInstancesResponseOrBuilder

Message for creating batches of instances in a cluster.

Protobuf type google.cloud.alloydb.v1.BatchCreateInstancesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllInstances(Iterable<? extends Instance> values)

public BatchCreateInstancesResponse.Builder addAllInstances(Iterable<? extends Instance> values)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1.Instance>
Returns
Type Description
BatchCreateInstancesResponse.Builder

addInstances(Instance value)

public BatchCreateInstancesResponse.Builder addInstances(Instance value)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameter
Name Description
value Instance
Returns
Type Description
BatchCreateInstancesResponse.Builder

addInstances(Instance.Builder builderForValue)

public BatchCreateInstancesResponse.Builder addInstances(Instance.Builder builderForValue)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameter
Name Description
builderForValue Instance.Builder
Returns
Type Description
BatchCreateInstancesResponse.Builder

addInstances(int index, Instance value)

public BatchCreateInstancesResponse.Builder addInstances(int index, Instance value)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameters
Name Description
index int
value Instance
Returns
Type Description
BatchCreateInstancesResponse.Builder

addInstances(int index, Instance.Builder builderForValue)

public BatchCreateInstancesResponse.Builder addInstances(int index, Instance.Builder builderForValue)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameters
Name Description
index int
builderForValue Instance.Builder
Returns
Type Description
BatchCreateInstancesResponse.Builder

addInstancesBuilder()

public Instance.Builder addInstancesBuilder()

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Returns
Type Description
Instance.Builder

addInstancesBuilder(int index)

public Instance.Builder addInstancesBuilder(int index)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateInstancesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides

build()

public BatchCreateInstancesResponse build()
Returns
Type Description
BatchCreateInstancesResponse

buildPartial()

public BatchCreateInstancesResponse buildPartial()
Returns
Type Description
BatchCreateInstancesResponse

clear()

public BatchCreateInstancesResponse.Builder clear()
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchCreateInstancesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides

clearInstances()

public BatchCreateInstancesResponse.Builder clearInstances()

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Returns
Type Description
BatchCreateInstancesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateInstancesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides

clone()

public BatchCreateInstancesResponse.Builder clone()
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides

getDefaultInstanceForType()

public BatchCreateInstancesResponse getDefaultInstanceForType()
Returns
Type Description
BatchCreateInstancesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstances(int index)

public Instance getInstances(int index)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameter
Name Description
index int
Returns
Type Description
Instance

getInstancesBuilder(int index)

public Instance.Builder getInstancesBuilder(int index)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

getInstancesBuilderList()

public List<Instance.Builder> getInstancesBuilderList()

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Returns
Type Description
List<Builder>

getInstancesCount()

public int getInstancesCount()

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Returns
Type Description
int

getInstancesList()

public List<Instance> getInstancesList()

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Returns
Type Description
List<Instance>

getInstancesOrBuilder(int index)

public InstanceOrBuilder getInstancesOrBuilder(int index)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameter
Name Description
index int
Returns
Type Description
InstanceOrBuilder

getInstancesOrBuilderList()

public List<? extends InstanceOrBuilder> getInstancesOrBuilderList()

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Returns
Type Description
List<? extends com.google.cloud.alloydb.v1.InstanceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateInstancesResponse other)

public BatchCreateInstancesResponse.Builder mergeFrom(BatchCreateInstancesResponse other)
Parameter
Name Description
other BatchCreateInstancesResponse
Returns
Type Description
BatchCreateInstancesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateInstancesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchCreateInstancesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateInstancesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides

removeInstances(int index)

public BatchCreateInstancesResponse.Builder removeInstances(int index)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameter
Name Description
index int
Returns
Type Description
BatchCreateInstancesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateInstancesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides

setInstances(int index, Instance value)

public BatchCreateInstancesResponse.Builder setInstances(int index, Instance value)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameters
Name Description
index int
value Instance
Returns
Type Description
BatchCreateInstancesResponse.Builder

setInstances(int index, Instance.Builder builderForValue)

public BatchCreateInstancesResponse.Builder setInstances(int index, Instance.Builder builderForValue)

Created instances.

repeated .google.cloud.alloydb.v1.Instance instances = 1;

Parameters
Name Description
index int
builderForValue Instance.Builder
Returns
Type Description
BatchCreateInstancesResponse.Builder

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

public BatchCreateInstancesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateInstancesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateInstancesResponse.Builder
Overrides