Class TimeWindows.Builder (1.53.0)

public static final class TimeWindows.Builder extends GeneratedMessageV3.Builder<TimeWindows.Builder> implements TimeWindowsOrBuilder

Time windows within which actions are restricted. See the documentation for more information on how to configure dates/times.

Protobuf type google.cloud.deploy.v1.TimeWindows

Static Methods

getDescriptor()

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

Methods

addAllOneTimeWindows(Iterable<? extends OneTimeWindow> values)

public TimeWindows.Builder addAllOneTimeWindows(Iterable<? extends OneTimeWindow> values)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.deploy.v1.OneTimeWindow>
Returns
Type Description
TimeWindows.Builder

addAllWeeklyWindows(Iterable<? extends WeeklyWindow> values)

public TimeWindows.Builder addAllWeeklyWindows(Iterable<? extends WeeklyWindow> values)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.deploy.v1.WeeklyWindow>
Returns
Type Description
TimeWindows.Builder

addOneTimeWindows(OneTimeWindow value)

public TimeWindows.Builder addOneTimeWindows(OneTimeWindow value)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value OneTimeWindow
Returns
Type Description
TimeWindows.Builder

addOneTimeWindows(OneTimeWindow.Builder builderForValue)

public TimeWindows.Builder addOneTimeWindows(OneTimeWindow.Builder builderForValue)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue OneTimeWindow.Builder
Returns
Type Description
TimeWindows.Builder

addOneTimeWindows(int index, OneTimeWindow value)

public TimeWindows.Builder addOneTimeWindows(int index, OneTimeWindow value)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value OneTimeWindow
Returns
Type Description
TimeWindows.Builder

addOneTimeWindows(int index, OneTimeWindow.Builder builderForValue)

public TimeWindows.Builder addOneTimeWindows(int index, OneTimeWindow.Builder builderForValue)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue OneTimeWindow.Builder
Returns
Type Description
TimeWindows.Builder

addOneTimeWindowsBuilder()

public OneTimeWindow.Builder addOneTimeWindowsBuilder()

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OneTimeWindow.Builder

addOneTimeWindowsBuilder(int index)

public OneTimeWindow.Builder addOneTimeWindowsBuilder(int index)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OneTimeWindow.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWeeklyWindows(WeeklyWindow value)

public TimeWindows.Builder addWeeklyWindows(WeeklyWindow value)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WeeklyWindow
Returns
Type Description
TimeWindows.Builder

addWeeklyWindows(WeeklyWindow.Builder builderForValue)

public TimeWindows.Builder addWeeklyWindows(WeeklyWindow.Builder builderForValue)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue WeeklyWindow.Builder
Returns
Type Description
TimeWindows.Builder

addWeeklyWindows(int index, WeeklyWindow value)

public TimeWindows.Builder addWeeklyWindows(int index, WeeklyWindow value)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value WeeklyWindow
Returns
Type Description
TimeWindows.Builder

addWeeklyWindows(int index, WeeklyWindow.Builder builderForValue)

public TimeWindows.Builder addWeeklyWindows(int index, WeeklyWindow.Builder builderForValue)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue WeeklyWindow.Builder
Returns
Type Description
TimeWindows.Builder

addWeeklyWindowsBuilder()

public WeeklyWindow.Builder addWeeklyWindowsBuilder()

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WeeklyWindow.Builder

addWeeklyWindowsBuilder(int index)

public WeeklyWindow.Builder addWeeklyWindowsBuilder(int index)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
WeeklyWindow.Builder

build()

public TimeWindows build()
Returns
Type Description
TimeWindows

buildPartial()

public TimeWindows buildPartial()
Returns
Type Description
TimeWindows

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneTimeWindows()

public TimeWindows.Builder clearOneTimeWindows()

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimeWindows.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTimeZone()

public TimeWindows.Builder clearTimeZone()

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimeWindows.Builder

This builder for chaining.

clearWeeklyWindows()

public TimeWindows.Builder clearWeeklyWindows()

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimeWindows.Builder

clone()

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

getDefaultInstanceForType()

public TimeWindows getDefaultInstanceForType()
Returns
Type Description
TimeWindows

getDescriptorForType()

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

getOneTimeWindows(int index)

public OneTimeWindow getOneTimeWindows(int index)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OneTimeWindow

getOneTimeWindowsBuilder(int index)

public OneTimeWindow.Builder getOneTimeWindowsBuilder(int index)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OneTimeWindow.Builder

getOneTimeWindowsBuilderList()

public List<OneTimeWindow.Builder> getOneTimeWindowsBuilderList()

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getOneTimeWindowsCount()

public int getOneTimeWindowsCount()

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getOneTimeWindowsList()

public List<OneTimeWindow> getOneTimeWindowsList()

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<OneTimeWindow>

getOneTimeWindowsOrBuilder(int index)

public OneTimeWindowOrBuilder getOneTimeWindowsOrBuilder(int index)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OneTimeWindowOrBuilder

getOneTimeWindowsOrBuilderList()

public List<? extends OneTimeWindowOrBuilder> getOneTimeWindowsOrBuilderList()

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.deploy.v1.OneTimeWindowOrBuilder>

getTimeZone()

public String getTimeZone()

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for timeZone.

getWeeklyWindows(int index)

public WeeklyWindow getWeeklyWindows(int index)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
WeeklyWindow

getWeeklyWindowsBuilder(int index)

public WeeklyWindow.Builder getWeeklyWindowsBuilder(int index)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
WeeklyWindow.Builder

getWeeklyWindowsBuilderList()

public List<WeeklyWindow.Builder> getWeeklyWindowsBuilderList()

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getWeeklyWindowsCount()

public int getWeeklyWindowsCount()

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getWeeklyWindowsList()

public List<WeeklyWindow> getWeeklyWindowsList()

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<WeeklyWindow>

getWeeklyWindowsOrBuilder(int index)

public WeeklyWindowOrBuilder getWeeklyWindowsOrBuilder(int index)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
WeeklyWindowOrBuilder

getWeeklyWindowsOrBuilderList()

public List<? extends WeeklyWindowOrBuilder> getWeeklyWindowsOrBuilderList()

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.deploy.v1.WeeklyWindowOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TimeWindows other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOneTimeWindows(int index)

public TimeWindows.Builder removeOneTimeWindows(int index)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TimeWindows.Builder

removeWeeklyWindows(int index)

public TimeWindows.Builder removeWeeklyWindows(int index)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TimeWindows.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOneTimeWindows(int index, OneTimeWindow value)

public TimeWindows.Builder setOneTimeWindows(int index, OneTimeWindow value)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value OneTimeWindow
Returns
Type Description
TimeWindows.Builder

setOneTimeWindows(int index, OneTimeWindow.Builder builderForValue)

public TimeWindows.Builder setOneTimeWindows(int index, OneTimeWindow.Builder builderForValue)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue OneTimeWindow.Builder
Returns
Type Description
TimeWindows.Builder

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

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

setTimeZone(String value)

public TimeWindows.Builder setTimeZone(String value)

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The timeZone to set.

Returns
Type Description
TimeWindows.Builder

This builder for chaining.

setTimeZoneBytes(ByteString value)

public TimeWindows.Builder setTimeZoneBytes(ByteString value)

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for timeZone to set.

Returns
Type Description
TimeWindows.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWeeklyWindows(int index, WeeklyWindow value)

public TimeWindows.Builder setWeeklyWindows(int index, WeeklyWindow value)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value WeeklyWindow
Returns
Type Description
TimeWindows.Builder

setWeeklyWindows(int index, WeeklyWindow.Builder builderForValue)

public TimeWindows.Builder setWeeklyWindows(int index, WeeklyWindow.Builder builderForValue)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue WeeklyWindow.Builder
Returns
Type Description
TimeWindows.Builder