Class OneTimeWindow.Builder (1.52.0)

public static final class OneTimeWindow.Builder extends GeneratedMessageV3.Builder<OneTimeWindow.Builder> implements OneTimeWindowOrBuilder

One-time window within which actions are restricted. For example, blocking actions over New Year's Eve from December 31st at 5pm to January 1st at 9am.

Protobuf type google.cloud.deploy.v1.OneTimeWindow

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OneTimeWindow build()
Returns
Type Description
OneTimeWindow

buildPartial()

public OneTimeWindow buildPartial()
Returns
Type Description
OneTimeWindow

clear()

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

clearEndDate()

public OneTimeWindow.Builder clearEndDate()

Required. End date.

.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OneTimeWindow.Builder

clearEndTime()

public OneTimeWindow.Builder clearEndTime()

Required. End time (exclusive). You may use 24:00 for the end of the day.

.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OneTimeWindow.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartDate()

public OneTimeWindow.Builder clearStartDate()

Required. Start date.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OneTimeWindow.Builder

clearStartTime()

public OneTimeWindow.Builder clearStartTime()

Required. Start time (inclusive). Use 00:00 for the beginning of the day.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OneTimeWindow.Builder

clone()

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

getDefaultInstanceForType()

public OneTimeWindow getDefaultInstanceForType()
Returns
Type Description
OneTimeWindow

getDescriptorForType()

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

getEndDate()

public Date getEndDate()

Required. End date.

.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date

The endDate.

getEndDateBuilder()

public Date.Builder getEndDateBuilder()

Required. End date.

.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];

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

getEndDateOrBuilder()

public DateOrBuilder getEndDateOrBuilder()

Required. End date.

.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DateOrBuilder

getEndTime()

public TimeOfDay getEndTime()

Required. End time (exclusive). You may use 24:00 for the end of the day.

.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDay

The endTime.

getEndTimeBuilder()

public TimeOfDay.Builder getEndTimeBuilder()

Required. End time (exclusive). You may use 24:00 for the end of the day.

.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];

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

getEndTimeOrBuilder()

public TimeOfDayOrBuilder getEndTimeOrBuilder()

Required. End time (exclusive). You may use 24:00 for the end of the day.

.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

getStartDate()

public Date getStartDate()

Required. Start date.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date

The startDate.

getStartDateBuilder()

public Date.Builder getStartDateBuilder()

Required. Start date.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

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

getStartDateOrBuilder()

public DateOrBuilder getStartDateOrBuilder()

Required. Start date.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DateOrBuilder

getStartTime()

public TimeOfDay getStartTime()

Required. Start time (inclusive). Use 00:00 for the beginning of the day.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDay

The startTime.

getStartTimeBuilder()

public TimeOfDay.Builder getStartTimeBuilder()

Required. Start time (inclusive). Use 00:00 for the beginning of the day.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

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

getStartTimeOrBuilder()

public TimeOfDayOrBuilder getStartTimeOrBuilder()

Required. Start time (inclusive). Use 00:00 for the beginning of the day.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

hasEndDate()

public boolean hasEndDate()

Required. End date.

.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endDate field is set.

hasEndTime()

public boolean hasEndTime()

Required. End time (exclusive). You may use 24:00 for the end of the day.

.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartDate()

public boolean hasStartDate()

Required. Start date.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startDate field is set.

hasStartTime()

public boolean hasStartTime()

Required. Start time (inclusive). Use 00:00 for the beginning of the day.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

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

mergeEndDate(Date value)

public OneTimeWindow.Builder mergeEndDate(Date value)

Required. End date.

.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
OneTimeWindow.Builder

mergeEndTime(TimeOfDay value)

public OneTimeWindow.Builder mergeEndTime(TimeOfDay value)

Required. End time (exclusive). You may use 24:00 for the end of the day.

.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];

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

mergeFrom(OneTimeWindow other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartDate(Date value)

public OneTimeWindow.Builder mergeStartDate(Date value)

Required. Start date.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
OneTimeWindow.Builder

mergeStartTime(TimeOfDay value)

public OneTimeWindow.Builder mergeStartTime(TimeOfDay value)

Required. Start time (inclusive). Use 00:00 for the beginning of the day.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndDate(Date value)

public OneTimeWindow.Builder setEndDate(Date value)

Required. End date.

.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
OneTimeWindow.Builder

setEndDate(Date.Builder builderForValue)

public OneTimeWindow.Builder setEndDate(Date.Builder builderForValue)

Required. End date.

.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
OneTimeWindow.Builder

setEndTime(TimeOfDay value)

public OneTimeWindow.Builder setEndTime(TimeOfDay value)

Required. End time (exclusive). You may use 24:00 for the end of the day.

.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];

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

setEndTime(TimeOfDay.Builder builderForValue)

public OneTimeWindow.Builder setEndTime(TimeOfDay.Builder builderForValue)

Required. End time (exclusive). You may use 24:00 for the end of the day.

.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartDate(Date value)

public OneTimeWindow.Builder setStartDate(Date value)

Required. Start date.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
OneTimeWindow.Builder

setStartDate(Date.Builder builderForValue)

public OneTimeWindow.Builder setStartDate(Date.Builder builderForValue)

Required. Start date.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
OneTimeWindow.Builder

setStartTime(TimeOfDay value)

public OneTimeWindow.Builder setStartTime(TimeOfDay value)

Required. Start time (inclusive). Use 00:00 for the beginning of the day.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

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

setStartTime(TimeOfDay.Builder builderForValue)

public OneTimeWindow.Builder setStartTime(TimeOfDay.Builder builderForValue)

Required. Start time (inclusive). Use 00:00 for the beginning of the day.

.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

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

setUnknownFields(UnknownFieldSet unknownFields)

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