Class MaintenanceWindow.Builder (2.10.0)

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

Maintenance window. This specifies when Dataproc Metastore may perform system maintenance operation to the service.

Protobuf type google.cloud.metastore.v1.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

clearDayOfWeek()

public MaintenanceWindow.Builder clearDayOfWeek()

The day of week, when the window starts.

.google.type.DayOfWeek day_of_week = 2;

Returns
TypeDescription
MaintenanceWindow.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHourOfDay()

public MaintenanceWindow.Builder clearHourOfDay()

The hour of day (0-23) when the window starts.

.google.protobuf.Int32Value hour_of_day = 1;

Returns
TypeDescription
MaintenanceWindow.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDayOfWeek()

public DayOfWeek getDayOfWeek()

The day of week, when the window starts.

.google.type.DayOfWeek day_of_week = 2;

Returns
TypeDescription
com.google.type.DayOfWeek

The dayOfWeek.

getDayOfWeekValue()

public int getDayOfWeekValue()

The day of week, when the window starts.

.google.type.DayOfWeek day_of_week = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for dayOfWeek.

getDefaultInstanceForType()

public MaintenanceWindow getDefaultInstanceForType()
Returns
TypeDescription
MaintenanceWindow

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHourOfDay()

public Int32Value getHourOfDay()

The hour of day (0-23) when the window starts.

.google.protobuf.Int32Value hour_of_day = 1;

Returns
TypeDescription
Int32Value

The hourOfDay.

getHourOfDayBuilder()

public Int32Value.Builder getHourOfDayBuilder()

The hour of day (0-23) when the window starts.

.google.protobuf.Int32Value hour_of_day = 1;

Returns
TypeDescription
Builder

getHourOfDayOrBuilder()

public Int32ValueOrBuilder getHourOfDayOrBuilder()

The hour of day (0-23) when the window starts.

.google.protobuf.Int32Value hour_of_day = 1;

Returns
TypeDescription
Int32ValueOrBuilder

hasHourOfDay()

public boolean hasHourOfDay()

The hour of day (0-23) when the window starts.

.google.protobuf.Int32Value hour_of_day = 1;

Returns
TypeDescription
boolean

Whether the hourOfDay field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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

mergeHourOfDay(Int32Value value)

public MaintenanceWindow.Builder mergeHourOfDay(Int32Value value)

The hour of day (0-23) when the window starts.

.google.protobuf.Int32Value hour_of_day = 1;

Parameter
NameDescription
valueInt32Value
Returns
TypeDescription
MaintenanceWindow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDayOfWeek(DayOfWeek value)

public MaintenanceWindow.Builder setDayOfWeek(DayOfWeek value)

The day of week, when the window starts.

.google.type.DayOfWeek day_of_week = 2;

Parameter
NameDescription
valuecom.google.type.DayOfWeek

The dayOfWeek to set.

Returns
TypeDescription
MaintenanceWindow.Builder

This builder for chaining.

setDayOfWeekValue(int value)

public MaintenanceWindow.Builder setDayOfWeekValue(int value)

The day of week, when the window starts.

.google.type.DayOfWeek day_of_week = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MaintenanceWindow.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHourOfDay(Int32Value value)

public MaintenanceWindow.Builder setHourOfDay(Int32Value value)

The hour of day (0-23) when the window starts.

.google.protobuf.Int32Value hour_of_day = 1;

Parameter
NameDescription
valueInt32Value
Returns
TypeDescription
MaintenanceWindow.Builder

setHourOfDay(Int32Value.Builder builderForValue)

public MaintenanceWindow.Builder setHourOfDay(Int32Value.Builder builderForValue)

The hour of day (0-23) when the window starts.

.google.protobuf.Int32Value hour_of_day = 1;

Parameter
NameDescription
builderForValueBuilder
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