Class PatchDeployments.WeekDayOfMonth.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PatchDeployments.WeekDayOfMonth.Builder>
      • 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 com.google.type.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

        public PatchDeployments.WeekDayOfMonth.Builder setDayOfWeek​(com.google.type.DayOfWeek value)
         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.