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.v1alpha.Instance.UpdatePolicy
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Instance.UpdatePolicy.BuilderImplements
Instance.UpdatePolicyOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public Instance.UpdatePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Instance.UpdatePolicy.Builder |
clearMode()
public Instance.UpdatePolicy.Builder clearMode()
Mode for updating the instance.
.google.cloud.alloydb.v1alpha.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 |
clone()
public Instance.UpdatePolicy.Builder clone()
Returns | |
---|---|
Type | Description |
Instance.UpdatePolicy.Builder |
getDefaultInstanceForType()
public Instance.UpdatePolicy getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Instance.UpdatePolicy |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getMode()
public Instance.UpdatePolicy.Mode getMode()
Mode for updating the instance.
.google.cloud.alloydb.v1alpha.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.v1alpha.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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Instance.UpdatePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Instance.UpdatePolicy.Builder |
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 |
setMode(Instance.UpdatePolicy.Mode value)
public Instance.UpdatePolicy.Builder setMode(Instance.UpdatePolicy.Mode value)
Mode for updating the instance.
.google.cloud.alloydb.v1alpha.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.v1alpha.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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final Instance.UpdatePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Instance.UpdatePolicy.Builder |