Package com.google.cloud.compute.v1
Class ResourcePolicyWeeklyCycleDayOfWeek.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
- com.google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek.Builder
-
- All Implemented Interfaces:
ResourcePolicyWeeklyCycleDayOfWeekOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResourcePolicyWeeklyCycleDayOfWeek
public static final class ResourcePolicyWeeklyCycleDayOfWeek.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder> implements ResourcePolicyWeeklyCycleDayOfWeekOrBuilder
Protobuf typegoogle.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcePolicyWeeklyCycleDayOfWeek.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ResourcePolicyWeeklyCycleDayOfWeekbuild()ResourcePolicyWeeklyCycleDayOfWeekbuildPartial()ResourcePolicyWeeklyCycleDayOfWeek.Builderclear()ResourcePolicyWeeklyCycleDayOfWeek.BuilderclearDay()Defines a schedule that runs on specific days of the week.ResourcePolicyWeeklyCycleDayOfWeek.BuilderclearDuration()[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.ResourcePolicyWeeklyCycleDayOfWeek.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ResourcePolicyWeeklyCycleDayOfWeek.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ResourcePolicyWeeklyCycleDayOfWeek.BuilderclearStartTime()Time within the window to start the operations.ResourcePolicyWeeklyCycleDayOfWeek.Builderclone()StringgetDay()Defines a schedule that runs on specific days of the week.com.google.protobuf.ByteStringgetDayBytes()Defines a schedule that runs on specific days of the week.ResourcePolicyWeeklyCycleDayOfWeekgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDuration()[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.com.google.protobuf.ByteStringgetDurationBytes()[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.StringgetStartTime()Time within the window to start the operations.com.google.protobuf.ByteStringgetStartTimeBytes()Time within the window to start the operations.booleanhasDay()Defines a schedule that runs on specific days of the week.booleanhasDuration()[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.booleanhasStartTime()Time within the window to start the operations.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ResourcePolicyWeeklyCycleDayOfWeek.BuildermergeFrom(ResourcePolicyWeeklyCycleDayOfWeek other)ResourcePolicyWeeklyCycleDayOfWeek.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ResourcePolicyWeeklyCycleDayOfWeek.BuildermergeFrom(com.google.protobuf.Message other)ResourcePolicyWeeklyCycleDayOfWeek.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ResourcePolicyWeeklyCycleDayOfWeek.BuildersetDay(String value)Defines a schedule that runs on specific days of the week.ResourcePolicyWeeklyCycleDayOfWeek.BuildersetDayBytes(com.google.protobuf.ByteString value)Defines a schedule that runs on specific days of the week.ResourcePolicyWeeklyCycleDayOfWeek.BuildersetDuration(String value)[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.ResourcePolicyWeeklyCycleDayOfWeek.BuildersetDurationBytes(com.google.protobuf.ByteString value)[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.ResourcePolicyWeeklyCycleDayOfWeek.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ResourcePolicyWeeklyCycleDayOfWeek.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ResourcePolicyWeeklyCycleDayOfWeek.BuildersetStartTime(String value)Time within the window to start the operations.ResourcePolicyWeeklyCycleDayOfWeek.BuildersetStartTimeBytes(com.google.protobuf.ByteString value)Time within the window to start the operations.ResourcePolicyWeeklyCycleDayOfWeek.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
clear
public ResourcePolicyWeeklyCycleDayOfWeek.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.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.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
getDefaultInstanceForType
public ResourcePolicyWeeklyCycleDayOfWeek getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ResourcePolicyWeeklyCycleDayOfWeek build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ResourcePolicyWeeklyCycleDayOfWeek buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ResourcePolicyWeeklyCycleDayOfWeek.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
setField
public ResourcePolicyWeeklyCycleDayOfWeek.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
clearField
public ResourcePolicyWeeklyCycleDayOfWeek.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
clearOneof
public ResourcePolicyWeeklyCycleDayOfWeek.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
setRepeatedField
public ResourcePolicyWeeklyCycleDayOfWeek.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
addRepeatedField
public ResourcePolicyWeeklyCycleDayOfWeek.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
mergeFrom
public ResourcePolicyWeeklyCycleDayOfWeek.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
mergeFrom
public ResourcePolicyWeeklyCycleDayOfWeek.Builder mergeFrom(ResourcePolicyWeeklyCycleDayOfWeek other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
mergeFrom
public ResourcePolicyWeeklyCycleDayOfWeek.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<ResourcePolicyWeeklyCycleDayOfWeek.Builder>- Throws:
IOException
-
hasDay
public boolean hasDay()
Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. Check the Day enum for the list of possible values.
optional string day = 99228;- Specified by:
hasDayin interfaceResourcePolicyWeeklyCycleDayOfWeekOrBuilder- Returns:
- Whether the day field is set.
-
getDay
public String getDay()
Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. Check the Day enum for the list of possible values.
optional string day = 99228;- Specified by:
getDayin interfaceResourcePolicyWeeklyCycleDayOfWeekOrBuilder- Returns:
- The day.
-
getDayBytes
public com.google.protobuf.ByteString getDayBytes()
Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. Check the Day enum for the list of possible values.
optional string day = 99228;- Specified by:
getDayBytesin interfaceResourcePolicyWeeklyCycleDayOfWeekOrBuilder- Returns:
- The bytes for day.
-
setDay
public ResourcePolicyWeeklyCycleDayOfWeek.Builder setDay(String value)
Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. Check the Day enum for the list of possible values.
optional string day = 99228;- Parameters:
value- The day to set.- Returns:
- This builder for chaining.
-
clearDay
public ResourcePolicyWeeklyCycleDayOfWeek.Builder clearDay()
Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. Check the Day enum for the list of possible values.
optional string day = 99228;- Returns:
- This builder for chaining.
-
setDayBytes
public ResourcePolicyWeeklyCycleDayOfWeek.Builder setDayBytes(com.google.protobuf.ByteString value)
Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. Check the Day enum for the list of possible values.
optional string day = 99228;- Parameters:
value- The bytes for day to set.- Returns:
- This builder for chaining.
-
hasDuration
public boolean hasDuration()
[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Specified by:
hasDurationin interfaceResourcePolicyWeeklyCycleDayOfWeekOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public String getDuration()
[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Specified by:
getDurationin interfaceResourcePolicyWeeklyCycleDayOfWeekOrBuilder- Returns:
- The duration.
-
getDurationBytes
public com.google.protobuf.ByteString getDurationBytes()
[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Specified by:
getDurationBytesin interfaceResourcePolicyWeeklyCycleDayOfWeekOrBuilder- Returns:
- The bytes for duration.
-
setDuration
public ResourcePolicyWeeklyCycleDayOfWeek.Builder setDuration(String value)
[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Parameters:
value- The duration to set.- Returns:
- This builder for chaining.
-
clearDuration
public ResourcePolicyWeeklyCycleDayOfWeek.Builder clearDuration()
[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Returns:
- This builder for chaining.
-
setDurationBytes
public ResourcePolicyWeeklyCycleDayOfWeek.Builder setDurationBytes(com.google.protobuf.ByteString value)
[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Parameters:
value- The bytes for duration to set.- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Specified by:
hasStartTimein interfaceResourcePolicyWeeklyCycleDayOfWeekOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public String getStartTime()
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Specified by:
getStartTimein interfaceResourcePolicyWeeklyCycleDayOfWeekOrBuilder- Returns:
- The startTime.
-
getStartTimeBytes
public com.google.protobuf.ByteString getStartTimeBytes()
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Specified by:
getStartTimeBytesin interfaceResourcePolicyWeeklyCycleDayOfWeekOrBuilder- Returns:
- The bytes for startTime.
-
setStartTime
public ResourcePolicyWeeklyCycleDayOfWeek.Builder setStartTime(String value)
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Parameters:
value- The startTime to set.- Returns:
- This builder for chaining.
-
clearStartTime
public ResourcePolicyWeeklyCycleDayOfWeek.Builder clearStartTime()
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Returns:
- This builder for chaining.
-
setStartTimeBytes
public ResourcePolicyWeeklyCycleDayOfWeek.Builder setStartTimeBytes(com.google.protobuf.ByteString value)
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Parameters:
value- The bytes for startTime to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ResourcePolicyWeeklyCycleDayOfWeek.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
mergeUnknownFields
public final ResourcePolicyWeeklyCycleDayOfWeek.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyWeeklyCycleDayOfWeek.Builder>
-
-