public static final class TimeWindows.Builder extends GeneratedMessage.Builder<TimeWindows.Builder> implements TimeWindowsOrBuilderTime 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TimeWindows.BuilderImplements
TimeWindowsOrBuilderStatic 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 |
|
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 |
|
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 |
|
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 |
|
getDefaultInstanceForType()
public TimeWindows getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TimeWindows |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TimeWindows.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TimeWindows.Builder |
|
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 |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for timeZone to set. |
| Returns | |
|---|---|
| Type | Description |
TimeWindows.Builder |
This builder for chaining. |
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 |
|