Class UpcomingMaintenance.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UpcomingMaintenance.Builder>
com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.Builder
All Implemented Interfaces:
UpcomingMaintenanceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UpcomingMaintenance

public static final class UpcomingMaintenance.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpcomingMaintenance.Builder> implements UpcomingMaintenanceOrBuilder
 Upcoming Maintenance notification information.
 
Protobuf type google.cloud.tpu.v2alpha1.UpcomingMaintenance
  • 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<UpcomingMaintenance.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<UpcomingMaintenance.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<UpcomingMaintenance.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UpcomingMaintenance.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<UpcomingMaintenance.Builder>
      Throws:
      IOException
    • hasType

      public boolean hasType()
       Defines the type of maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1;
      Specified by:
      hasType in interface UpcomingMaintenanceOrBuilder
      Returns:
      Whether the type field is set.
    • getTypeValue

      public int getTypeValue()
       Defines the type of maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1;
      Specified by:
      getTypeValue in interface UpcomingMaintenanceOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public UpcomingMaintenance.Builder setTypeValue(int value)
       Defines the type of maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       Defines the type of maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1;
      Specified by:
      getType in interface UpcomingMaintenanceOrBuilder
      Returns:
      The type.
    • setType

       Defines the type of maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public UpcomingMaintenance.Builder clearType()
       Defines the type of maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1;
      Returns:
      This builder for chaining.
    • hasCanReschedule

      public boolean hasCanReschedule()
       Indicates if the maintenance can be customer triggered.
       
      optional bool can_reschedule = 5;
      Specified by:
      hasCanReschedule in interface UpcomingMaintenanceOrBuilder
      Returns:
      Whether the canReschedule field is set.
    • getCanReschedule

      public boolean getCanReschedule()
       Indicates if the maintenance can be customer triggered.
       
      optional bool can_reschedule = 5;
      Specified by:
      getCanReschedule in interface UpcomingMaintenanceOrBuilder
      Returns:
      The canReschedule.
    • setCanReschedule

      public UpcomingMaintenance.Builder setCanReschedule(boolean value)
       Indicates if the maintenance can be customer triggered.
       
      optional bool can_reschedule = 5;
      Parameters:
      value - The canReschedule to set.
      Returns:
      This builder for chaining.
    • clearCanReschedule

      public UpcomingMaintenance.Builder clearCanReschedule()
       Indicates if the maintenance can be customer triggered.
       
      optional bool can_reschedule = 5;
      Returns:
      This builder for chaining.
    • hasWindowStartTime

      public boolean hasWindowStartTime()
       The current start time of the maintenance window.
       This timestamp value is in RFC3339 text format.
       
      optional string window_start_time = 6;
      Specified by:
      hasWindowStartTime in interface UpcomingMaintenanceOrBuilder
      Returns:
      Whether the windowStartTime field is set.
    • getWindowStartTime

      public String getWindowStartTime()
       The current start time of the maintenance window.
       This timestamp value is in RFC3339 text format.
       
      optional string window_start_time = 6;
      Specified by:
      getWindowStartTime in interface UpcomingMaintenanceOrBuilder
      Returns:
      The windowStartTime.
    • getWindowStartTimeBytes

      public com.google.protobuf.ByteString getWindowStartTimeBytes()
       The current start time of the maintenance window.
       This timestamp value is in RFC3339 text format.
       
      optional string window_start_time = 6;
      Specified by:
      getWindowStartTimeBytes in interface UpcomingMaintenanceOrBuilder
      Returns:
      The bytes for windowStartTime.
    • setWindowStartTime

      public UpcomingMaintenance.Builder setWindowStartTime(String value)
       The current start time of the maintenance window.
       This timestamp value is in RFC3339 text format.
       
      optional string window_start_time = 6;
      Parameters:
      value - The windowStartTime to set.
      Returns:
      This builder for chaining.
    • clearWindowStartTime

      public UpcomingMaintenance.Builder clearWindowStartTime()
       The current start time of the maintenance window.
       This timestamp value is in RFC3339 text format.
       
      optional string window_start_time = 6;
      Returns:
      This builder for chaining.
    • setWindowStartTimeBytes

      public UpcomingMaintenance.Builder setWindowStartTimeBytes(com.google.protobuf.ByteString value)
       The current start time of the maintenance window.
       This timestamp value is in RFC3339 text format.
       
      optional string window_start_time = 6;
      Parameters:
      value - The bytes for windowStartTime to set.
      Returns:
      This builder for chaining.
    • hasWindowEndTime

      public boolean hasWindowEndTime()
       The time by which the maintenance disruption will be completed.
       This timestamp value is in RFC3339 text format.
       
      optional string window_end_time = 7;
      Specified by:
      hasWindowEndTime in interface UpcomingMaintenanceOrBuilder
      Returns:
      Whether the windowEndTime field is set.
    • getWindowEndTime

      public String getWindowEndTime()
       The time by which the maintenance disruption will be completed.
       This timestamp value is in RFC3339 text format.
       
      optional string window_end_time = 7;
      Specified by:
      getWindowEndTime in interface UpcomingMaintenanceOrBuilder
      Returns:
      The windowEndTime.
    • getWindowEndTimeBytes

      public com.google.protobuf.ByteString getWindowEndTimeBytes()
       The time by which the maintenance disruption will be completed.
       This timestamp value is in RFC3339 text format.
       
      optional string window_end_time = 7;
      Specified by:
      getWindowEndTimeBytes in interface UpcomingMaintenanceOrBuilder
      Returns:
      The bytes for windowEndTime.
    • setWindowEndTime

      public UpcomingMaintenance.Builder setWindowEndTime(String value)
       The time by which the maintenance disruption will be completed.
       This timestamp value is in RFC3339 text format.
       
      optional string window_end_time = 7;
      Parameters:
      value - The windowEndTime to set.
      Returns:
      This builder for chaining.
    • clearWindowEndTime

      public UpcomingMaintenance.Builder clearWindowEndTime()
       The time by which the maintenance disruption will be completed.
       This timestamp value is in RFC3339 text format.
       
      optional string window_end_time = 7;
      Returns:
      This builder for chaining.
    • setWindowEndTimeBytes

      public UpcomingMaintenance.Builder setWindowEndTimeBytes(com.google.protobuf.ByteString value)
       The time by which the maintenance disruption will be completed.
       This timestamp value is in RFC3339 text format.
       
      optional string window_end_time = 7;
      Parameters:
      value - The bytes for windowEndTime to set.
      Returns:
      This builder for chaining.
    • hasLatestWindowStartTime

      public boolean hasLatestWindowStartTime()
       The latest time for the planned maintenance window to start.
       This timestamp value is in RFC3339 text format.
       
      optional string latest_window_start_time = 8;
      Specified by:
      hasLatestWindowStartTime in interface UpcomingMaintenanceOrBuilder
      Returns:
      Whether the latestWindowStartTime field is set.
    • getLatestWindowStartTime

      public String getLatestWindowStartTime()
       The latest time for the planned maintenance window to start.
       This timestamp value is in RFC3339 text format.
       
      optional string latest_window_start_time = 8;
      Specified by:
      getLatestWindowStartTime in interface UpcomingMaintenanceOrBuilder
      Returns:
      The latestWindowStartTime.
    • getLatestWindowStartTimeBytes

      public com.google.protobuf.ByteString getLatestWindowStartTimeBytes()
       The latest time for the planned maintenance window to start.
       This timestamp value is in RFC3339 text format.
       
      optional string latest_window_start_time = 8;
      Specified by:
      getLatestWindowStartTimeBytes in interface UpcomingMaintenanceOrBuilder
      Returns:
      The bytes for latestWindowStartTime.
    • setLatestWindowStartTime

      public UpcomingMaintenance.Builder setLatestWindowStartTime(String value)
       The latest time for the planned maintenance window to start.
       This timestamp value is in RFC3339 text format.
       
      optional string latest_window_start_time = 8;
      Parameters:
      value - The latestWindowStartTime to set.
      Returns:
      This builder for chaining.
    • clearLatestWindowStartTime

      public UpcomingMaintenance.Builder clearLatestWindowStartTime()
       The latest time for the planned maintenance window to start.
       This timestamp value is in RFC3339 text format.
       
      optional string latest_window_start_time = 8;
      Returns:
      This builder for chaining.
    • setLatestWindowStartTimeBytes

      public UpcomingMaintenance.Builder setLatestWindowStartTimeBytes(com.google.protobuf.ByteString value)
       The latest time for the planned maintenance window to start.
       This timestamp value is in RFC3339 text format.
       
      optional string latest_window_start_time = 8;
      Parameters:
      value - The bytes for latestWindowStartTime to set.
      Returns:
      This builder for chaining.
    • hasMaintenanceStatus

      public boolean hasMaintenanceStatus()
       The status of the maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9;
      Specified by:
      hasMaintenanceStatus in interface UpcomingMaintenanceOrBuilder
      Returns:
      Whether the maintenanceStatus field is set.
    • getMaintenanceStatusValue

      public int getMaintenanceStatusValue()
       The status of the maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9;
      Specified by:
      getMaintenanceStatusValue in interface UpcomingMaintenanceOrBuilder
      Returns:
      The enum numeric value on the wire for maintenanceStatus.
    • setMaintenanceStatusValue

      public UpcomingMaintenance.Builder setMaintenanceStatusValue(int value)
       The status of the maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9;
      Parameters:
      value - The enum numeric value on the wire for maintenanceStatus to set.
      Returns:
      This builder for chaining.
    • getMaintenanceStatus

      public UpcomingMaintenance.MaintenanceStatus getMaintenanceStatus()
       The status of the maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9;
      Specified by:
      getMaintenanceStatus in interface UpcomingMaintenanceOrBuilder
      Returns:
      The maintenanceStatus.
    • setMaintenanceStatus

       The status of the maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9;
      Parameters:
      value - The maintenanceStatus to set.
      Returns:
      This builder for chaining.
    • clearMaintenanceStatus

      public UpcomingMaintenance.Builder clearMaintenanceStatus()
       The status of the maintenance.
       
      optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9;
      Returns:
      This builder for chaining.