Class ResourcePolicyDailyCycle.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyDailyCycle.Builder>
com.google.cloud.compute.v1.ResourcePolicyDailyCycle.Builder
All Implemented Interfaces:
ResourcePolicyDailyCycleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ResourcePolicyDailyCycle

public static final class ResourcePolicyDailyCycle.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyDailyCycle.Builder> implements ResourcePolicyDailyCycleOrBuilder
 Time window specified for daily operations.
 
Protobuf type google.cloud.compute.v1.ResourcePolicyDailyCycle
  • Method Details

    • getDescriptor

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

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

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public ResourcePolicyDailyCycle.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourcePolicyDailyCycle.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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. [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. [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. [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. [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. [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. [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.