Class ResourcePolicyDailyCycle.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyDailyCycle.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyDailyCycle.Builder>
      • getDefaultInstanceForType

        public ResourcePolicyDailyCycle getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ResourcePolicyDailyCycle build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ResourcePolicyDailyCycle buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public ResourcePolicyDailyCycle.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyDailyCycle.Builder>
      • addRepeatedField

        public ResourcePolicyDailyCycle.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyDailyCycle.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyDailyCycle.Builder>
      • mergeFrom

        public ResourcePolicyDailyCycle.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourcePolicyDailyCycle.Builder>
        Throws:
        IOException
      • hasDaysInCycle

        public boolean hasDaysInCycle()
         Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
         
        optional int32 days_in_cycle = 369790004;
        Specified by:
        hasDaysInCycle in interface ResourcePolicyDailyCycleOrBuilder
        Returns:
        Whether the daysInCycle field is set.
      • getDaysInCycle

        public int getDaysInCycle()
         Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
         
        optional int32 days_in_cycle = 369790004;
        Specified by:
        getDaysInCycle in interface ResourcePolicyDailyCycleOrBuilder
        Returns:
        The daysInCycle.
      • setDaysInCycle

        public ResourcePolicyDailyCycle.Builder setDaysInCycle​(int value)
         Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
         
        optional int32 days_in_cycle = 369790004;
        Parameters:
        value - The daysInCycle to set.
        Returns:
        This builder for chaining.
      • clearDaysInCycle

        public ResourcePolicyDailyCycle.Builder clearDaysInCycle()
         Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
         
        optional int32 days_in_cycle = 369790004;
        Returns:
        This builder for chaining.
      • hasDuration

        public boolean hasDuration()
         [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
         
        optional string duration = 155471252;
        Specified by:
        hasDuration in interface ResourcePolicyDailyCycleOrBuilder
        Returns:
        Whether the duration field is set.
      • getDuration

        public String getDuration()
         [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
         
        optional string duration = 155471252;
        Specified by:
        getDuration in interface ResourcePolicyDailyCycleOrBuilder
        Returns:
        The duration.
      • getDurationBytes

        public com.google.protobuf.ByteString getDurationBytes()
         [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
         
        optional string duration = 155471252;
        Specified by:
        getDurationBytes in interface ResourcePolicyDailyCycleOrBuilder
        Returns:
        The bytes for duration.
      • setDuration

        public ResourcePolicyDailyCycle.Builder setDuration​(String value)
         [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
         
        optional string duration = 155471252;
        Parameters:
        value - The duration to set.
        Returns:
        This builder for chaining.
      • clearDuration

        public ResourcePolicyDailyCycle.Builder clearDuration()
         [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
         
        optional string duration = 155471252;
        Returns:
        This builder for chaining.
      • setDurationBytes

        public ResourcePolicyDailyCycle.Builder setDurationBytes​(com.google.protobuf.ByteString value)
         [Output only] A predetermined duration for the window, automatically chosen to be the 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()
         Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
         
        optional string start_time = 37467274;
        Specified by:
        hasStartTime in interface ResourcePolicyDailyCycleOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public String getStartTime()
         Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
         
        optional string start_time = 37467274;
        Specified by:
        getStartTime in interface ResourcePolicyDailyCycleOrBuilder
        Returns:
        The startTime.
      • getStartTimeBytes

        public com.google.protobuf.ByteString getStartTimeBytes()
         Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
         
        optional string start_time = 37467274;
        Specified by:
        getStartTimeBytes in interface ResourcePolicyDailyCycleOrBuilder
        Returns:
        The bytes for startTime.
      • setStartTime

        public ResourcePolicyDailyCycle.Builder setStartTime​(String value)
         Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
         
        optional string start_time = 37467274;
        Parameters:
        value - The startTime to set.
        Returns:
        This builder for chaining.
      • clearStartTime

        public ResourcePolicyDailyCycle.Builder clearStartTime()
         Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
         
        optional string start_time = 37467274;
        Returns:
        This builder for chaining.
      • setStartTimeBytes

        public ResourcePolicyDailyCycle.Builder setStartTimeBytes​(com.google.protobuf.ByteString value)
         Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
         
        optional string start_time = 37467274;
        Parameters:
        value - The bytes for startTime to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ResourcePolicyDailyCycle.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyDailyCycle.Builder>
      • mergeUnknownFields

        public final ResourcePolicyDailyCycle.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourcePolicyDailyCycle.Builder>