Package com.google.cloud.deploy.v1
Class WeeklyWindow.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WeeklyWindow.Builder>
com.google.cloud.deploy.v1.WeeklyWindow.Builder
- All Implemented Interfaces:
WeeklyWindowOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WeeklyWindow
public static final class WeeklyWindow.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WeeklyWindow.Builder>
implements WeeklyWindowOrBuilder
Weekly windows. For example, blocking actions every Saturday and Sunday. Another example would be blocking actions every weekday from 5pm to midnight.Protobuf type
google.cloud.deploy.v1.WeeklyWindow-
Method Summary
Modifier and TypeMethodDescriptionaddAllDaysOfWeek(Iterable<? extends DayOfWeek> values) Optional.addAllDaysOfWeekValue(Iterable<Integer> values) Optional.addDaysOfWeek(DayOfWeek value) Optional.addDaysOfWeekValue(int value) Optional.build()clear()Optional.Optional.Optional.getDaysOfWeek(int index) Optional.intOptional.Optional.intgetDaysOfWeekValue(int index) Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Optional.Optional.Optional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEndTime(TimeOfDay value) Optional.mergeFrom(WeeklyWindow other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(TimeOfDay value) Optional.setDaysOfWeek(int index, DayOfWeek value) Optional.setDaysOfWeekValue(int index, int value) Optional.setEndTime(TimeOfDay value) Optional.setEndTime(TimeOfDay.Builder builderForValue) Optional.setStartTime(TimeOfDay value) Optional.setStartTime(TimeOfDay.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<WeeklyWindow.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<WeeklyWindow.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<WeeklyWindow.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WeeklyWindow.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<WeeklyWindow.Builder>
-
mergeFrom
public WeeklyWindow.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WeeklyWindow.Builder>- Throws:
IOException
-
getDaysOfWeekList
Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDaysOfWeekListin interfaceWeeklyWindowOrBuilder- Returns:
- A list containing the daysOfWeek.
-
getDaysOfWeekCount
public int getDaysOfWeekCount()Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDaysOfWeekCountin interfaceWeeklyWindowOrBuilder- Returns:
- The count of daysOfWeek.
-
getDaysOfWeek
Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDaysOfWeekin interfaceWeeklyWindowOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The daysOfWeek at the given index.
-
setDaysOfWeek
Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The daysOfWeek to set.- Returns:
- This builder for chaining.
-
addDaysOfWeek
Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The daysOfWeek to add.- Returns:
- This builder for chaining.
-
addAllDaysOfWeek
Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The daysOfWeek to add.- Returns:
- This builder for chaining.
-
clearDaysOfWeek
Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getDaysOfWeekValueList
Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDaysOfWeekValueListin interfaceWeeklyWindowOrBuilder- Returns:
- A list containing the enum numeric values on the wire for daysOfWeek.
-
getDaysOfWeekValue
public int getDaysOfWeekValue(int index) Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDaysOfWeekValuein interfaceWeeklyWindowOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of daysOfWeek at the given index.
-
setDaysOfWeekValue
Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for daysOfWeek to set.- Returns:
- This builder for chaining.
-
addDaysOfWeekValue
Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for daysOfWeek to add.- Returns:
- This builder for chaining.
-
addAllDaysOfWeekValue
Optional. Days of week. If left empty, all days of the week will be included.
repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The enum numeric values on the wire for daysOfWeek to add.- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasStartTimein interfaceWeeklyWindowOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStartTimein interfaceWeeklyWindowOrBuilder- Returns:
- The startTime.
-
setStartTime
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setStartTime
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeStartTime
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearStartTime
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getStartTimeBuilder
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getStartTimeOrBuilder
Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStartTimeOrBuilderin interfaceWeeklyWindowOrBuilder
-
hasEndTime
public boolean hasEndTime()Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEndTimein interfaceWeeklyWindowOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEndTimein interfaceWeeklyWindowOrBuilder- Returns:
- The endTime.
-
setEndTime
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setEndTime
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeEndTime
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearEndTime
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getEndTimeBuilder
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getEndTimeOrBuilder
Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
.google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEndTimeOrBuilderin interfaceWeeklyWindowOrBuilder
-