Class MaintenanceWindow.Builder (2.10.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MaintenanceWindow.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MaintenanceWindow.Builder
Overrides

build()

public MaintenanceWindow build()
Returns
TypeDescription
MaintenanceWindow

buildPartial()

public MaintenanceWindow buildPartial()
Returns
TypeDescription
MaintenanceWindow

clear()

public MaintenanceWindow.Builder clear()
Returns
TypeDescription
MaintenanceWindow.Builder
Overrides

clearDailyMaintenanceWindow()

public MaintenanceWindow.Builder clearDailyMaintenanceWindow()

DailyMaintenanceWindow specifies a daily maintenance operation window.

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

Returns
TypeDescription
MaintenanceWindow.Builder

clearField(Descriptors.FieldDescriptor field)

public MaintenanceWindow.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MaintenanceWindow.Builder
Overrides

clearMaintenanceExclusions()

public MaintenanceWindow.Builder clearMaintenanceExclusions()
Returns
TypeDescription
MaintenanceWindow.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MaintenanceWindow.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MaintenanceWindow.Builder
Overrides

clearPolicy()

public MaintenanceWindow.Builder clearPolicy()
Returns
TypeDescription
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
TypeDescription
MaintenanceWindow.Builder

clone()

public MaintenanceWindow.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDailyMaintenanceWindow()

public DailyMaintenanceWindow getDailyMaintenanceWindow()

DailyMaintenanceWindow specifies a daily maintenance operation window.

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

Returns
TypeDescription
DailyMaintenanceWindow

The dailyMaintenanceWindow.

getDailyMaintenanceWindowBuilder()

public DailyMaintenanceWindow.Builder getDailyMaintenanceWindowBuilder()

DailyMaintenanceWindow specifies a daily maintenance operation window.

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

Returns
TypeDescription
DailyMaintenanceWindow.Builder

getDailyMaintenanceWindowOrBuilder()

public DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder()

DailyMaintenanceWindow specifies a daily maintenance operation window.

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

Returns
TypeDescription
DailyMaintenanceWindowOrBuilder

getDefaultInstanceForType()

public MaintenanceWindow getDefaultInstanceForType()
Returns
TypeDescription
MaintenanceWindow

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMaintenanceExclusions()

public Map<String,TimeWindow> getMaintenanceExclusions()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueTimeWindow
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
TimeWindow

getMutableMaintenanceExclusions()

public Map<String,TimeWindow> getMutableMaintenanceExclusions()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,TimeWindow>

getPolicyCase()

public MaintenanceWindow.PolicyCase getPolicyCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RecurringTimeWindowOrBuilder

hasDailyMaintenanceWindow()

public boolean hasDailyMaintenanceWindow()

DailyMaintenanceWindow specifies a daily maintenance operation window.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the recurringWindow field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDailyMaintenanceWindow
Returns
TypeDescription
MaintenanceWindow.Builder

mergeFrom(MaintenanceWindow other)

public MaintenanceWindow.Builder mergeFrom(MaintenanceWindow other)
Parameter
NameDescription
otherMaintenanceWindow
Returns
TypeDescription
MaintenanceWindow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MaintenanceWindow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MaintenanceWindow.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MaintenanceWindow.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRecurringTimeWindow
Returns
TypeDescription
MaintenanceWindow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MaintenanceWindow.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,TimeWindow>
Returns
TypeDescription
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
NameDescription
keyString
valueTimeWindow
Returns
TypeDescription
MaintenanceWindow.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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueDailyMaintenanceWindow
Returns
TypeDescription
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
NameDescription
builderForValueDailyMaintenanceWindow.Builder
Returns
TypeDescription
MaintenanceWindow.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MaintenanceWindow.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRecurringTimeWindow
Returns
TypeDescription
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
NameDescription
builderForValueRecurringTimeWindow.Builder
Returns
TypeDescription
MaintenanceWindow.Builder

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

public MaintenanceWindow.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MaintenanceWindow.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MaintenanceWindow.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MaintenanceWindow.Builder
Overrides