Class MaintenanceUpdatePolicy.MaintenanceWindow.Builder (0.42.0)

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

MaintenanceWindow specifies a preferred day and time for maintenance.

Protobuf type google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MaintenanceUpdatePolicy.MaintenanceWindow build()
Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow

buildPartial()

public MaintenanceUpdatePolicy.MaintenanceWindow buildPartial()
Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow

clear()

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

clearDay()

public MaintenanceUpdatePolicy.MaintenanceWindow.Builder clearDay()

Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

.google.type.DayOfWeek day = 1;

Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartTime()

public MaintenanceUpdatePolicy.MaintenanceWindow.Builder clearStartTime()

Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.

.google.type.TimeOfDay start_time = 2;

Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow.Builder

clone()

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

getDay()

public DayOfWeek getDay()

Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

.google.type.DayOfWeek day = 1;

Returns
Type Description
com.google.type.DayOfWeek

The day.

getDayValue()

public int getDayValue()

Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

.google.type.DayOfWeek day = 1;

Returns
Type Description
int

The enum numeric value on the wire for day.

getDefaultInstanceForType()

public MaintenanceUpdatePolicy.MaintenanceWindow getDefaultInstanceForType()
Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow

getDescriptorForType()

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

getStartTime()

public TimeOfDay getStartTime()

Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.

.google.type.TimeOfDay start_time = 2;

Returns
Type Description
com.google.type.TimeOfDay

The startTime.

getStartTimeBuilder()

public TimeOfDay.Builder getStartTimeBuilder()

Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.

.google.type.TimeOfDay start_time = 2;

Returns
Type Description
com.google.type.TimeOfDay.Builder

getStartTimeOrBuilder()

public TimeOfDayOrBuilder getStartTimeOrBuilder()

Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.

.google.type.TimeOfDay start_time = 2;

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

hasStartTime()

public boolean hasStartTime()

Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.

.google.type.TimeOfDay start_time = 2;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MaintenanceUpdatePolicy.MaintenanceWindow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(TimeOfDay value)

public MaintenanceUpdatePolicy.MaintenanceWindow.Builder mergeStartTime(TimeOfDay value)

Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.

.google.type.TimeOfDay start_time = 2;

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDay(DayOfWeek value)

public MaintenanceUpdatePolicy.MaintenanceWindow.Builder setDay(DayOfWeek value)

Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

.google.type.DayOfWeek day = 1;

Parameter
Name Description
value com.google.type.DayOfWeek

The day to set.

Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow.Builder

This builder for chaining.

setDayValue(int value)

public MaintenanceUpdatePolicy.MaintenanceWindow.Builder setDayValue(int value)

Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

.google.type.DayOfWeek day = 1;

Parameter
Name Description
value int

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

Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartTime(TimeOfDay value)

public MaintenanceUpdatePolicy.MaintenanceWindow.Builder setStartTime(TimeOfDay value)

Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.

.google.type.TimeOfDay start_time = 2;

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow.Builder

setStartTime(TimeOfDay.Builder builderForValue)

public MaintenanceUpdatePolicy.MaintenanceWindow.Builder setStartTime(TimeOfDay.Builder builderForValue)

Preferred time to start the maintenance operation on the specified day. Maintenance will start within 1 hour of this time.

.google.type.TimeOfDay start_time = 2;

Parameter
Name Description
builderForValue com.google.type.TimeOfDay.Builder
Returns
Type Description
MaintenanceUpdatePolicy.MaintenanceWindow.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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