Class TimeWindow.Builder (2.50.0)

public static final class TimeWindow.Builder extends GeneratedMessageV3.Builder<TimeWindow.Builder> implements TimeWindowOrBuilder

Represents an arbitrary window of time.

Protobuf type google.container.v1.TimeWindow

Implements

TimeWindowOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeWindow build()
Returns
Type Description
TimeWindow

buildPartial()

public TimeWindow buildPartial()
Returns
Type Description
TimeWindow

clear()

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

clearEndTime()

public TimeWindow.Builder clearEndTime()

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
TimeWindow.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMaintenanceExclusionOptions()

public TimeWindow.Builder clearMaintenanceExclusionOptions()

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Returns
Type Description
TimeWindow.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOptions()

public TimeWindow.Builder clearOptions()
Returns
Type Description
TimeWindow.Builder

clearStartTime()

public TimeWindow.Builder clearStartTime()

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimeWindow.Builder

clone()

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

getDefaultInstanceForType()

public TimeWindow getDefaultInstanceForType()
Returns
Type Description
TimeWindow

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
TimestampOrBuilder

getMaintenanceExclusionOptions()

public MaintenanceExclusionOptions getMaintenanceExclusionOptions()

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Returns
Type Description
MaintenanceExclusionOptions

The maintenanceExclusionOptions.

getMaintenanceExclusionOptionsBuilder()

public MaintenanceExclusionOptions.Builder getMaintenanceExclusionOptionsBuilder()

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Returns
Type Description
MaintenanceExclusionOptions.Builder

getMaintenanceExclusionOptionsOrBuilder()

public MaintenanceExclusionOptionsOrBuilder getMaintenanceExclusionOptionsOrBuilder()

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Returns
Type Description
MaintenanceExclusionOptionsOrBuilder

getOptionsCase()

public TimeWindow.OptionsCase getOptionsCase()
Returns
Type Description
TimeWindow.OptionsCase

getStartTime()

public Timestamp getStartTime()

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
boolean

Whether the endTime field is set.

hasMaintenanceExclusionOptions()

public boolean hasMaintenanceExclusionOptions()

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Returns
Type Description
boolean

Whether the maintenanceExclusionOptions field is set.

hasStartTime()

public boolean hasStartTime()

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

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

mergeEndTime(Timestamp value)

public TimeWindow.Builder mergeEndTime(Timestamp value)

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeWindow.Builder

mergeFrom(TimeWindow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMaintenanceExclusionOptions(MaintenanceExclusionOptions value)

public TimeWindow.Builder mergeMaintenanceExclusionOptions(MaintenanceExclusionOptions value)

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Parameter
Name Description
value MaintenanceExclusionOptions
Returns
Type Description
TimeWindow.Builder

mergeStartTime(Timestamp value)

public TimeWindow.Builder mergeStartTime(Timestamp value)

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeWindow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndTime(Timestamp value)

public TimeWindow.Builder setEndTime(Timestamp value)

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeWindow.Builder

setEndTime(Timestamp.Builder builderForValue)

public TimeWindow.Builder setEndTime(Timestamp.Builder builderForValue)

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeWindow.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaintenanceExclusionOptions(MaintenanceExclusionOptions value)

public TimeWindow.Builder setMaintenanceExclusionOptions(MaintenanceExclusionOptions value)

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Parameter
Name Description
value MaintenanceExclusionOptions
Returns
Type Description
TimeWindow.Builder

setMaintenanceExclusionOptions(MaintenanceExclusionOptions.Builder builderForValue)

public TimeWindow.Builder setMaintenanceExclusionOptions(MaintenanceExclusionOptions.Builder builderForValue)

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Parameter
Name Description
builderForValue MaintenanceExclusionOptions.Builder
Returns
Type Description
TimeWindow.Builder

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

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

setStartTime(Timestamp value)

public TimeWindow.Builder setStartTime(Timestamp value)

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeWindow.Builder

setStartTime(Timestamp.Builder builderForValue)

public TimeWindow.Builder setStartTime(Timestamp.Builder builderForValue)

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeWindow.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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