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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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>
|
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];
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];
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];
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];
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];
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TimeWindows.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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];
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];
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];
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];
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];
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
|
build()
public TimeWindows build()
buildPartial()
public TimeWindows buildPartial()
clear()
public TimeWindows.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public TimeWindows.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public TimeWindows.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
clone()
public TimeWindows.Builder clone()
Overrides
getDefaultInstanceForType()
public TimeWindows getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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];
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];
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
|
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
|
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
|
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];
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];
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TimeWindows other)
public TimeWindows.Builder mergeFrom(TimeWindows other)
public TimeWindows.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TimeWindows.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TimeWindows.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public TimeWindows.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TimeWindows.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final TimeWindows.Builder setUnknownFields(UnknownFieldSet unknownFields)
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];
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];