Class MaintenanceUpdatePolicy.Builder (0.42.0)

public static final class MaintenanceUpdatePolicy.Builder extends GeneratedMessageV3.Builder<MaintenanceUpdatePolicy.Builder> implements MaintenanceUpdatePolicyOrBuilder

MaintenanceUpdatePolicy defines the policy for system updates.

Protobuf type google.cloud.alloydb.v1.MaintenanceUpdatePolicy

Static Methods

getDescriptor()

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

Methods

addAllMaintenanceWindows(Iterable<? extends MaintenanceUpdatePolicy.MaintenanceWindow> values)

public MaintenanceUpdatePolicy.Builder addAllMaintenanceWindows(Iterable<? extends MaintenanceUpdatePolicy.MaintenanceWindow> values)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

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

addMaintenanceWindows(MaintenanceUpdatePolicy.MaintenanceWindow value)

public MaintenanceUpdatePolicy.Builder addMaintenanceWindows(MaintenanceUpdatePolicy.MaintenanceWindow value)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameter
Name Description
value MaintenanceUpdatePolicy.MaintenanceWindow
Returns
Type Description
MaintenanceUpdatePolicy.Builder

addMaintenanceWindows(MaintenanceUpdatePolicy.MaintenanceWindow.Builder builderForValue)

public MaintenanceUpdatePolicy.Builder addMaintenanceWindows(MaintenanceUpdatePolicy.MaintenanceWindow.Builder builderForValue)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameter
Name Description
builderForValue MaintenanceUpdatePolicy.MaintenanceWindow.Builder
Returns
Type Description
MaintenanceUpdatePolicy.Builder

addMaintenanceWindows(int index, MaintenanceUpdatePolicy.MaintenanceWindow value)

public MaintenanceUpdatePolicy.Builder addMaintenanceWindows(int index, MaintenanceUpdatePolicy.MaintenanceWindow value)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameters
Name Description
index int
value MaintenanceUpdatePolicy.MaintenanceWindow
Returns
Type Description
MaintenanceUpdatePolicy.Builder

addMaintenanceWindows(int index, MaintenanceUpdatePolicy.MaintenanceWindow.Builder builderForValue)

public MaintenanceUpdatePolicy.Builder addMaintenanceWindows(int index, MaintenanceUpdatePolicy.MaintenanceWindow.Builder builderForValue)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameters
Name Description
index int
builderForValue MaintenanceUpdatePolicy.MaintenanceWindow.Builder
Returns
Type Description
MaintenanceUpdatePolicy.Builder

addMaintenanceWindowsBuilder()

public MaintenanceUpdatePolicy.MaintenanceWindow.Builder addMaintenanceWindowsBuilder()

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow.Builder

addMaintenanceWindowsBuilder(int index)

public MaintenanceUpdatePolicy.MaintenanceWindow.Builder addMaintenanceWindowsBuilder(int index)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameter
Name Description
index int
Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MaintenanceUpdatePolicy build()
Returns
Type Description
MaintenanceUpdatePolicy

buildPartial()

public MaintenanceUpdatePolicy buildPartial()
Returns
Type Description
MaintenanceUpdatePolicy

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMaintenanceWindows()

public MaintenanceUpdatePolicy.Builder clearMaintenanceWindows()

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Returns
Type Description
MaintenanceUpdatePolicy.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MaintenanceUpdatePolicy getDefaultInstanceForType()
Returns
Type Description
MaintenanceUpdatePolicy

getDescriptorForType()

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

getMaintenanceWindows(int index)

public MaintenanceUpdatePolicy.MaintenanceWindow getMaintenanceWindows(int index)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameter
Name Description
index int
Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow

getMaintenanceWindowsBuilder(int index)

public MaintenanceUpdatePolicy.MaintenanceWindow.Builder getMaintenanceWindowsBuilder(int index)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameter
Name Description
index int
Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow.Builder

getMaintenanceWindowsBuilderList()

public List<MaintenanceUpdatePolicy.MaintenanceWindow.Builder> getMaintenanceWindowsBuilderList()

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Returns
Type Description
List<Builder>

getMaintenanceWindowsCount()

public int getMaintenanceWindowsCount()

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Returns
Type Description
int

getMaintenanceWindowsList()

public List<MaintenanceUpdatePolicy.MaintenanceWindow> getMaintenanceWindowsList()

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Returns
Type Description
List<MaintenanceWindow>

getMaintenanceWindowsOrBuilder(int index)

public MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder getMaintenanceWindowsOrBuilder(int index)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameter
Name Description
index int
Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder

getMaintenanceWindowsOrBuilderList()

public List<? extends MaintenanceUpdatePolicy.MaintenanceWindowOrBuilder> getMaintenanceWindowsOrBuilderList()

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MaintenanceUpdatePolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMaintenanceWindows(int index)

public MaintenanceUpdatePolicy.Builder removeMaintenanceWindows(int index)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameter
Name Description
index int
Returns
Type Description
MaintenanceUpdatePolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaintenanceWindows(int index, MaintenanceUpdatePolicy.MaintenanceWindow value)

public MaintenanceUpdatePolicy.Builder setMaintenanceWindows(int index, MaintenanceUpdatePolicy.MaintenanceWindow value)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameters
Name Description
index int
value MaintenanceUpdatePolicy.MaintenanceWindow
Returns
Type Description
MaintenanceUpdatePolicy.Builder

setMaintenanceWindows(int index, MaintenanceUpdatePolicy.MaintenanceWindow.Builder builderForValue)

public MaintenanceUpdatePolicy.Builder setMaintenanceWindows(int index, MaintenanceUpdatePolicy.MaintenanceWindow.Builder builderForValue)

Preferred windows to perform maintenance. Currently limited to 1.

repeated .google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow maintenance_windows = 1;

Parameters
Name Description
index int
builderForValue MaintenanceUpdatePolicy.MaintenanceWindow.Builder
Returns
Type Description
MaintenanceUpdatePolicy.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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