Class PatchDeployments.WeekDayOfMonth.Builder

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

public static final class PatchDeployments.WeekDayOfMonth.Builder extends com.google.protobuf.GeneratedMessage.Builder<PatchDeployments.WeekDayOfMonth.Builder> implements PatchDeployments.WeekDayOfMonthOrBuilder
 Represents one week day in a month. An example is "the 4th Sunday".
 
Protobuf type google.cloud.osconfig.v1beta.WeekDayOfMonth
  • 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.WeekDayOfMonth.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.WeekDayOfMonth.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.WeekDayOfMonth.Builder>
    • getDefaultInstanceForType

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

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

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

      public int getWeekOrdinal()
       Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
       indicates the last week of the month.
       
      int32 week_ordinal = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWeekOrdinal in interface PatchDeployments.WeekDayOfMonthOrBuilder
      Returns:
      The weekOrdinal.
    • setWeekOrdinal

      public PatchDeployments.WeekDayOfMonth.Builder setWeekOrdinal(int value)
       Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
       indicates the last week of the month.
       
      int32 week_ordinal = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The weekOrdinal to set.
      Returns:
      This builder for chaining.
    • clearWeekOrdinal

      public PatchDeployments.WeekDayOfMonth.Builder clearWeekOrdinal()
       Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1
       indicates the last week of the month.
       
      int32 week_ordinal = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getDayOfWeekValue

      public int getDayOfWeekValue()
       Required. A day of the week.
       
      .google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDayOfWeekValue in interface PatchDeployments.WeekDayOfMonthOrBuilder
      Returns:
      The enum numeric value on the wire for dayOfWeek.
    • setDayOfWeekValue

      public PatchDeployments.WeekDayOfMonth.Builder setDayOfWeekValue(int value)
       Required. A day of the week.
       
      .google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for dayOfWeek to set.
      Returns:
      This builder for chaining.
    • getDayOfWeek

      public DayOfWeek getDayOfWeek()
       Required. A day of the week.
       
      .google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDayOfWeek in interface PatchDeployments.WeekDayOfMonthOrBuilder
      Returns:
      The dayOfWeek.
    • setDayOfWeek

       Required. A day of the week.
       
      .google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The dayOfWeek to set.
      Returns:
      This builder for chaining.
    • clearDayOfWeek

      public PatchDeployments.WeekDayOfMonth.Builder clearDayOfWeek()
       Required. A day of the week.
       
      .google.type.DayOfWeek day_of_week = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getDayOffset

      public int getDayOffset()
       Optional. Represents the number of days before or after the given week day of month
       that the patch deployment is scheduled for. For example if `week_ordinal`
       and `day_of_week` values point to the second day of the month and this
       `day_offset` value is set to `3`, the patch deployment takes place three
       days after the second Tuesday of the month. If this value is negative, for
       example -5, the patches  are deployed five days before before the second
       Tuesday of the month. Allowed values are in range `[-30, 30]`.
       
      int32 day_offset = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDayOffset in interface PatchDeployments.WeekDayOfMonthOrBuilder
      Returns:
      The dayOffset.
    • setDayOffset

      public PatchDeployments.WeekDayOfMonth.Builder setDayOffset(int value)
       Optional. Represents the number of days before or after the given week day of month
       that the patch deployment is scheduled for. For example if `week_ordinal`
       and `day_of_week` values point to the second day of the month and this
       `day_offset` value is set to `3`, the patch deployment takes place three
       days after the second Tuesday of the month. If this value is negative, for
       example -5, the patches  are deployed five days before before the second
       Tuesday of the month. Allowed values are in range `[-30, 30]`.
       
      int32 day_offset = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dayOffset to set.
      Returns:
      This builder for chaining.
    • clearDayOffset

      public PatchDeployments.WeekDayOfMonth.Builder clearDayOffset()
       Optional. Represents the number of days before or after the given week day of month
       that the patch deployment is scheduled for. For example if `week_ordinal`
       and `day_of_week` values point to the second day of the month and this
       `day_offset` value is set to `3`, the patch deployment takes place three
       days after the second Tuesday of the month. If this value is negative, for
       example -5, the patches  are deployed five days before before the second
       Tuesday of the month. Allowed values are in range `[-30, 30]`.
       
      int32 day_offset = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.