Class PatchDeployments.MonthlySchedule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchDeployments.MonthlySchedule.Builder>
com.google.cloud.osconfig.v1beta.PatchDeployments.MonthlySchedule.Builder
All Implemented Interfaces:
PatchDeployments.MonthlyScheduleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PatchDeployments.MonthlySchedule

public static final class PatchDeployments.MonthlySchedule.Builder extends com.google.protobuf.GeneratedMessage.Builder<PatchDeployments.MonthlySchedule.Builder> implements PatchDeployments.MonthlyScheduleOrBuilder
 Represents a monthly schedule. An example of a valid monthly schedule is
 "on the third Tuesday of the month" or "on the 15th of the month".
 
Protobuf type google.cloud.osconfig.v1beta.MonthlySchedule
  • 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<PatchDeployments.MonthlySchedule.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<PatchDeployments.MonthlySchedule.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<PatchDeployments.MonthlySchedule.Builder>
    • getDefaultInstanceForType

      public PatchDeployments.MonthlySchedule 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 PatchDeployments.MonthlySchedule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public PatchDeployments.MonthlySchedule.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<PatchDeployments.MonthlySchedule.Builder>
      Throws:
      IOException
    • getDayOfMonthCase

      Specified by:
      getDayOfMonthCase in interface PatchDeployments.MonthlyScheduleOrBuilder
    • clearDayOfMonth

      public PatchDeployments.MonthlySchedule.Builder clearDayOfMonth()
    • hasWeekDayOfMonth

      public boolean hasWeekDayOfMonth()
       Required. Week day in a month.
       
      .google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasWeekDayOfMonth in interface PatchDeployments.MonthlyScheduleOrBuilder
      Returns:
      Whether the weekDayOfMonth field is set.
    • getWeekDayOfMonth

      public PatchDeployments.WeekDayOfMonth getWeekDayOfMonth()
       Required. Week day in a month.
       
      .google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWeekDayOfMonth in interface PatchDeployments.MonthlyScheduleOrBuilder
      Returns:
      The weekDayOfMonth.
    • setWeekDayOfMonth

       Required. Week day in a month.
       
      .google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];
    • setWeekDayOfMonth

       Required. Week day in a month.
       
      .google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeWeekDayOfMonth

       Required. Week day in a month.
       
      .google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearWeekDayOfMonth

      public PatchDeployments.MonthlySchedule.Builder clearWeekDayOfMonth()
       Required. Week day in a month.
       
      .google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];
    • getWeekDayOfMonthBuilder

      public PatchDeployments.WeekDayOfMonth.Builder getWeekDayOfMonthBuilder()
       Required. Week day in a month.
       
      .google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];
    • getWeekDayOfMonthOrBuilder

      public PatchDeployments.WeekDayOfMonthOrBuilder getWeekDayOfMonthOrBuilder()
       Required. Week day in a month.
       
      .google.cloud.osconfig.v1beta.WeekDayOfMonth week_day_of_month = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWeekDayOfMonthOrBuilder in interface PatchDeployments.MonthlyScheduleOrBuilder
    • hasMonthDay

      public boolean hasMonthDay()
       Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
       indicates the last day of the month.
       Months without the target day will be skipped. For example, a schedule to
       run "every month on the 31st" will not run in February, April, June, etc.
       
      int32 month_day = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasMonthDay in interface PatchDeployments.MonthlyScheduleOrBuilder
      Returns:
      Whether the monthDay field is set.
    • getMonthDay

      public int getMonthDay()
       Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
       indicates the last day of the month.
       Months without the target day will be skipped. For example, a schedule to
       run "every month on the 31st" will not run in February, April, June, etc.
       
      int32 month_day = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMonthDay in interface PatchDeployments.MonthlyScheduleOrBuilder
      Returns:
      The monthDay.
    • setMonthDay

      public PatchDeployments.MonthlySchedule.Builder setMonthDay(int value)
       Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
       indicates the last day of the month.
       Months without the target day will be skipped. For example, a schedule to
       run "every month on the 31st" will not run in February, April, June, etc.
       
      int32 month_day = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The monthDay to set.
      Returns:
      This builder for chaining.
    • clearMonthDay

       Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1
       indicates the last day of the month.
       Months without the target day will be skipped. For example, a schedule to
       run "every month on the 31st" will not run in February, April, June, etc.
       
      int32 month_day = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.