Class NodeGroupMaintenanceWindow.Builder

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

public static final class NodeGroupMaintenanceWindow.Builder extends com.google.protobuf.GeneratedMessage.Builder<NodeGroupMaintenanceWindow.Builder> implements NodeGroupMaintenanceWindowOrBuilder
 Time window specified for daily maintenance operations. GCE's internal
 maintenance will be performed within this window.
 
Protobuf type google.cloud.compute.v1.NodeGroupMaintenanceWindow
  • 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<NodeGroupMaintenanceWindow.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<NodeGroupMaintenanceWindow.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<NodeGroupMaintenanceWindow.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public NodeGroupMaintenanceWindow.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<NodeGroupMaintenanceWindow.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<NodeGroupMaintenanceWindow.Builder>
    • mergeFrom

      public NodeGroupMaintenanceWindow.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<NodeGroupMaintenanceWindow.Builder>
      Throws:
      IOException
    • hasMaintenanceDuration

      public boolean hasMaintenanceDuration()
       Output only. [Output only] A predetermined duration for the window, automatically
       chosen to be the smallest possible in the given scenario.
       
      optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;
      Specified by:
      hasMaintenanceDuration in interface NodeGroupMaintenanceWindowOrBuilder
      Returns:
      Whether the maintenanceDuration field is set.
    • getMaintenanceDuration

      public Duration getMaintenanceDuration()
       Output only. [Output only] A predetermined duration for the window, automatically
       chosen to be the smallest possible in the given scenario.
       
      optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;
      Specified by:
      getMaintenanceDuration in interface NodeGroupMaintenanceWindowOrBuilder
      Returns:
      The maintenanceDuration.
    • setMaintenanceDuration

      public NodeGroupMaintenanceWindow.Builder setMaintenanceDuration(Duration value)
       Output only. [Output only] A predetermined duration for the window, automatically
       chosen to be the smallest possible in the given scenario.
       
      optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;
    • setMaintenanceDuration

      public NodeGroupMaintenanceWindow.Builder setMaintenanceDuration(Duration.Builder builderForValue)
       Output only. [Output only] A predetermined duration for the window, automatically
       chosen to be the smallest possible in the given scenario.
       
      optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;
    • mergeMaintenanceDuration

      public NodeGroupMaintenanceWindow.Builder mergeMaintenanceDuration(Duration value)
       Output only. [Output only] A predetermined duration for the window, automatically
       chosen to be the smallest possible in the given scenario.
       
      optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;
    • clearMaintenanceDuration

      public NodeGroupMaintenanceWindow.Builder clearMaintenanceDuration()
       Output only. [Output only] A predetermined duration for the window, automatically
       chosen to be the smallest possible in the given scenario.
       
      optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;
    • getMaintenanceDurationBuilder

      public Duration.Builder getMaintenanceDurationBuilder()
       Output only. [Output only] A predetermined duration for the window, automatically
       chosen to be the smallest possible in the given scenario.
       
      optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;
    • getMaintenanceDurationOrBuilder

      public DurationOrBuilder getMaintenanceDurationOrBuilder()
       Output only. [Output only] A predetermined duration for the window, automatically
       chosen to be the smallest possible in the given scenario.
       
      optional .google.cloud.compute.v1.Duration maintenance_duration = 525291840;
      Specified by:
      getMaintenanceDurationOrBuilder in interface NodeGroupMaintenanceWindowOrBuilder
    • 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 NodeGroupMaintenanceWindowOrBuilder
      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 NodeGroupMaintenanceWindowOrBuilder
      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 NodeGroupMaintenanceWindowOrBuilder
      Returns:
      The bytes for startTime.
    • setStartTime

      public NodeGroupMaintenanceWindow.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 NodeGroupMaintenanceWindow.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 NodeGroupMaintenanceWindow.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.