Class Instance.UpdatePolicy.Builder (0.42.0)

public static final class Instance.UpdatePolicy.Builder extends GeneratedMessageV3.Builder<Instance.UpdatePolicy.Builder> implements Instance.UpdatePolicyOrBuilder

Policy to be used while updating the instance.

Protobuf type google.cloud.alloydb.v1beta.Instance.UpdatePolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Instance.UpdatePolicy build()
Returns
Type Description
Instance.UpdatePolicy

buildPartial()

public Instance.UpdatePolicy buildPartial()
Returns
Type Description
Instance.UpdatePolicy

clear()

public Instance.UpdatePolicy.Builder clear()
Returns
Type Description
Instance.UpdatePolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public Instance.UpdatePolicy.Builder clearMode()

Mode for updating the instance.

.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Mode mode = 1;

Returns
Type Description
Instance.UpdatePolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Instance.UpdatePolicy.Builder clone()
Returns
Type Description
Instance.UpdatePolicy.Builder
Overrides

getDefaultInstanceForType()

public Instance.UpdatePolicy getDefaultInstanceForType()
Returns
Type Description
Instance.UpdatePolicy

getDescriptorForType()

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

getMode()

public Instance.UpdatePolicy.Mode getMode()

Mode for updating the instance.

.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Mode mode = 1;

Returns
Type Description
Instance.UpdatePolicy.Mode

The mode.

getModeValue()

public int getModeValue()

Mode for updating the instance.

.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Mode mode = 1;

Returns
Type Description
int

The enum numeric value on the wire for mode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.UpdatePolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(Instance.UpdatePolicy.Mode value)

public Instance.UpdatePolicy.Builder setMode(Instance.UpdatePolicy.Mode value)

Mode for updating the instance.

.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Mode mode = 1;

Parameter
Name Description
value Instance.UpdatePolicy.Mode

The mode to set.

Returns
Type Description
Instance.UpdatePolicy.Builder

This builder for chaining.

setModeValue(int value)

public Instance.UpdatePolicy.Builder setModeValue(int value)

Mode for updating the instance.

.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Mode mode = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for mode to set.

Returns
Type Description
Instance.UpdatePolicy.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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