Class MaintenanceWindow.Builder (2.58.0)

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

MaintenanceWindow defines the maintenance window to be used for the cluster.

Protobuf type google.container.v1beta1.MaintenanceWindow

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MaintenanceWindow build()
Returns
Type Description
MaintenanceWindow

buildPartial()

public MaintenanceWindow buildPartial()
Returns
Type Description
MaintenanceWindow

clear()

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

clearDailyMaintenanceWindow()

public MaintenanceWindow.Builder clearDailyMaintenanceWindow()

DailyMaintenanceWindow specifies a daily maintenance operation window.

.google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2;

Returns
Type Description
MaintenanceWindow.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMaintenanceExclusions()

public MaintenanceWindow.Builder clearMaintenanceExclusions()
Returns
Type Description
MaintenanceWindow.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicy()

public MaintenanceWindow.Builder clearPolicy()
Returns
Type Description
MaintenanceWindow.Builder

clearRecurringWindow()

public MaintenanceWindow.Builder clearRecurringWindow()

RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.

.google.container.v1beta1.RecurringTimeWindow recurring_window = 3;

Returns
Type Description
MaintenanceWindow.Builder

clone()

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

containsMaintenanceExclusions(String key)

public boolean containsMaintenanceExclusions(String key)

Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.

map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDailyMaintenanceWindow()

public DailyMaintenanceWindow getDailyMaintenanceWindow()

DailyMaintenanceWindow specifies a daily maintenance operation window.

.google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2;

Returns
Type Description
DailyMaintenanceWindow

The dailyMaintenanceWindow.

getDailyMaintenanceWindowBuilder()

public DailyMaintenanceWindow.Builder getDailyMaintenanceWindowBuilder()

DailyMaintenanceWindow specifies a daily maintenance operation window.

.google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2;

Returns
Type Description
DailyMaintenanceWindow.Builder

getDailyMaintenanceWindowOrBuilder()

public DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder()

DailyMaintenanceWindow specifies a daily maintenance operation window.

.google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2;

Returns
Type Description
DailyMaintenanceWindowOrBuilder

getDefaultInstanceForType()

public MaintenanceWindow getDefaultInstanceForType()
Returns
Type Description
MaintenanceWindow

getDescriptorForType()

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

getMaintenanceExclusions() (deprecated)

public Map<String,TimeWindow> getMaintenanceExclusions()
Returns
Type Description
Map<String,TimeWindow>

getMaintenanceExclusionsCount()

public int getMaintenanceExclusionsCount()

Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.

map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4;

Returns
Type Description
int

getMaintenanceExclusionsMap()

public Map<String,TimeWindow> getMaintenanceExclusionsMap()

Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.

map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4;

Returns
Type Description
Map<String,TimeWindow>

getMaintenanceExclusionsOrDefault(String key, TimeWindow defaultValue)

public TimeWindow getMaintenanceExclusionsOrDefault(String key, TimeWindow defaultValue)

Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.

map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4;

Parameters
Name Description
key String
defaultValue TimeWindow
Returns
Type Description
TimeWindow

getMaintenanceExclusionsOrThrow(String key)

public TimeWindow getMaintenanceExclusionsOrThrow(String key)

Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.

map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4;

Parameter
Name Description
key String
Returns
Type Description
TimeWindow

getMutableMaintenanceExclusions() (deprecated)

public Map<String,TimeWindow> getMutableMaintenanceExclusions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,TimeWindow>

getPolicyCase()

public MaintenanceWindow.PolicyCase getPolicyCase()
Returns
Type Description
MaintenanceWindow.PolicyCase

getRecurringWindow()

public RecurringTimeWindow getRecurringWindow()

RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.

.google.container.v1beta1.RecurringTimeWindow recurring_window = 3;

Returns
Type Description
RecurringTimeWindow

The recurringWindow.

getRecurringWindowBuilder()

public RecurringTimeWindow.Builder getRecurringWindowBuilder()

RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.

.google.container.v1beta1.RecurringTimeWindow recurring_window = 3;

Returns
Type Description
RecurringTimeWindow.Builder

getRecurringWindowOrBuilder()

public RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder()

RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.

.google.container.v1beta1.RecurringTimeWindow recurring_window = 3;

Returns
Type Description
RecurringTimeWindowOrBuilder

hasDailyMaintenanceWindow()

public boolean hasDailyMaintenanceWindow()

DailyMaintenanceWindow specifies a daily maintenance operation window.

.google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2;

Returns
Type Description
boolean

Whether the dailyMaintenanceWindow field is set.

hasRecurringWindow()

public boolean hasRecurringWindow()

RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.

.google.container.v1beta1.RecurringTimeWindow recurring_window = 3;

Returns
Type Description
boolean

Whether the recurringWindow field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDailyMaintenanceWindow(DailyMaintenanceWindow value)

public MaintenanceWindow.Builder mergeDailyMaintenanceWindow(DailyMaintenanceWindow value)

DailyMaintenanceWindow specifies a daily maintenance operation window.

.google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2;

Parameter
Name Description
value DailyMaintenanceWindow
Returns
Type Description
MaintenanceWindow.Builder

mergeFrom(MaintenanceWindow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRecurringWindow(RecurringTimeWindow value)

public MaintenanceWindow.Builder mergeRecurringWindow(RecurringTimeWindow value)

RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.

.google.container.v1beta1.RecurringTimeWindow recurring_window = 3;

Parameter
Name Description
value RecurringTimeWindow
Returns
Type Description
MaintenanceWindow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllMaintenanceExclusions(Map<String,TimeWindow> values)

public MaintenanceWindow.Builder putAllMaintenanceExclusions(Map<String,TimeWindow> values)

Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.

map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4;

Parameter
Name Description
values Map<String,TimeWindow>
Returns
Type Description
MaintenanceWindow.Builder

putMaintenanceExclusions(String key, TimeWindow value)

public MaintenanceWindow.Builder putMaintenanceExclusions(String key, TimeWindow value)

Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.

map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4;

Parameters
Name Description
key String
value TimeWindow
Returns
Type Description
MaintenanceWindow.Builder

putMaintenanceExclusionsBuilderIfAbsent(String key)

public TimeWindow.Builder putMaintenanceExclusionsBuilderIfAbsent(String key)

Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.

map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4;

Parameter
Name Description
key String
Returns
Type Description
TimeWindow.Builder

removeMaintenanceExclusions(String key)

public MaintenanceWindow.Builder removeMaintenanceExclusions(String key)

Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.

map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4;

Parameter
Name Description
key String
Returns
Type Description
MaintenanceWindow.Builder

setDailyMaintenanceWindow(DailyMaintenanceWindow value)

public MaintenanceWindow.Builder setDailyMaintenanceWindow(DailyMaintenanceWindow value)

DailyMaintenanceWindow specifies a daily maintenance operation window.

.google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2;

Parameter
Name Description
value DailyMaintenanceWindow
Returns
Type Description
MaintenanceWindow.Builder

setDailyMaintenanceWindow(DailyMaintenanceWindow.Builder builderForValue)

public MaintenanceWindow.Builder setDailyMaintenanceWindow(DailyMaintenanceWindow.Builder builderForValue)

DailyMaintenanceWindow specifies a daily maintenance operation window.

.google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setRecurringWindow(RecurringTimeWindow value)

public MaintenanceWindow.Builder setRecurringWindow(RecurringTimeWindow value)

RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.

.google.container.v1beta1.RecurringTimeWindow recurring_window = 3;

Parameter
Name Description
value RecurringTimeWindow
Returns
Type Description
MaintenanceWindow.Builder

setRecurringWindow(RecurringTimeWindow.Builder builderForValue)

public MaintenanceWindow.Builder setRecurringWindow(RecurringTimeWindow.Builder builderForValue)

RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.

.google.container.v1beta1.RecurringTimeWindow recurring_window = 3;

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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