Class AdScheduleInfo.Builder

  • All Implemented Interfaces:
    AdScheduleInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    AdScheduleInfo

    public static final class AdScheduleInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
    implements AdScheduleInfoOrBuilder
     Represents an AdSchedule criterion.
     AdSchedule is specified as the day of the week and a time interval
     within which ads will be shown.
     No more than six AdSchedules can be added for the same day.
     
    Protobuf type google.ads.googleads.v10.common.AdScheduleInfo
    • 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<AdScheduleInfo.Builder>
      • clear

        public AdScheduleInfo.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.GeneratedMessageV3.Builder<AdScheduleInfo.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<AdScheduleInfo.Builder>
      • getDefaultInstanceForType

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

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

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

        public AdScheduleInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
      • setField

        public AdScheduleInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
      • clearField

        public AdScheduleInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
      • clearOneof

        public AdScheduleInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
      • setRepeatedField

        public AdScheduleInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
      • addRepeatedField

        public AdScheduleInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
      • mergeFrom

        public AdScheduleInfo.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<AdScheduleInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
      • mergeFrom

        public AdScheduleInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws java.io.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<AdScheduleInfo.Builder>
        Throws:
        java.io.IOException
      • getStartMinuteValue

        public int getStartMinuteValue()
         Minutes after the start hour at which this schedule starts.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1;
        Specified by:
        getStartMinuteValue in interface AdScheduleInfoOrBuilder
        Returns:
        The enum numeric value on the wire for startMinute.
      • setStartMinuteValue

        public AdScheduleInfo.Builder setStartMinuteValue​(int value)
         Minutes after the start hour at which this schedule starts.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1;
        Parameters:
        value - The enum numeric value on the wire for startMinute to set.
        Returns:
        This builder for chaining.
      • getStartMinute

        public MinuteOfHourEnum.MinuteOfHour getStartMinute()
         Minutes after the start hour at which this schedule starts.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1;
        Specified by:
        getStartMinute in interface AdScheduleInfoOrBuilder
        Returns:
        The startMinute.
      • setStartMinute

        public AdScheduleInfo.Builder setStartMinute​(MinuteOfHourEnum.MinuteOfHour value)
         Minutes after the start hour at which this schedule starts.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1;
        Parameters:
        value - The startMinute to set.
        Returns:
        This builder for chaining.
      • clearStartMinute

        public AdScheduleInfo.Builder clearStartMinute()
         Minutes after the start hour at which this schedule starts.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1;
        Returns:
        This builder for chaining.
      • getEndMinuteValue

        public int getEndMinuteValue()
         Minutes after the end hour at which this schedule ends. The schedule is
         exclusive of the end minute.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2;
        Specified by:
        getEndMinuteValue in interface AdScheduleInfoOrBuilder
        Returns:
        The enum numeric value on the wire for endMinute.
      • setEndMinuteValue

        public AdScheduleInfo.Builder setEndMinuteValue​(int value)
         Minutes after the end hour at which this schedule ends. The schedule is
         exclusive of the end minute.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2;
        Parameters:
        value - The enum numeric value on the wire for endMinute to set.
        Returns:
        This builder for chaining.
      • getEndMinute

        public MinuteOfHourEnum.MinuteOfHour getEndMinute()
         Minutes after the end hour at which this schedule ends. The schedule is
         exclusive of the end minute.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2;
        Specified by:
        getEndMinute in interface AdScheduleInfoOrBuilder
        Returns:
        The endMinute.
      • setEndMinute

        public AdScheduleInfo.Builder setEndMinute​(MinuteOfHourEnum.MinuteOfHour value)
         Minutes after the end hour at which this schedule ends. The schedule is
         exclusive of the end minute.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2;
        Parameters:
        value - The endMinute to set.
        Returns:
        This builder for chaining.
      • clearEndMinute

        public AdScheduleInfo.Builder clearEndMinute()
         Minutes after the end hour at which this schedule ends. The schedule is
         exclusive of the end minute.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2;
        Returns:
        This builder for chaining.
      • hasStartHour

        public boolean hasStartHour()
         Starting hour in 24 hour time.
         This field must be between 0 and 23, inclusive.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        optional int32 start_hour = 6;
        Specified by:
        hasStartHour in interface AdScheduleInfoOrBuilder
        Returns:
        Whether the startHour field is set.
      • getStartHour

        public int getStartHour()
         Starting hour in 24 hour time.
         This field must be between 0 and 23, inclusive.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        optional int32 start_hour = 6;
        Specified by:
        getStartHour in interface AdScheduleInfoOrBuilder
        Returns:
        The startHour.
      • setStartHour

        public AdScheduleInfo.Builder setStartHour​(int value)
         Starting hour in 24 hour time.
         This field must be between 0 and 23, inclusive.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        optional int32 start_hour = 6;
        Parameters:
        value - The startHour to set.
        Returns:
        This builder for chaining.
      • clearStartHour

        public AdScheduleInfo.Builder clearStartHour()
         Starting hour in 24 hour time.
         This field must be between 0 and 23, inclusive.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        optional int32 start_hour = 6;
        Returns:
        This builder for chaining.
      • hasEndHour

        public boolean hasEndHour()
         Ending hour in 24 hour time; 24 signifies end of the day.
         This field must be between 0 and 24, inclusive.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        optional int32 end_hour = 7;
        Specified by:
        hasEndHour in interface AdScheduleInfoOrBuilder
        Returns:
        Whether the endHour field is set.
      • getEndHour

        public int getEndHour()
         Ending hour in 24 hour time; 24 signifies end of the day.
         This field must be between 0 and 24, inclusive.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        optional int32 end_hour = 7;
        Specified by:
        getEndHour in interface AdScheduleInfoOrBuilder
        Returns:
        The endHour.
      • setEndHour

        public AdScheduleInfo.Builder setEndHour​(int value)
         Ending hour in 24 hour time; 24 signifies end of the day.
         This field must be between 0 and 24, inclusive.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        optional int32 end_hour = 7;
        Parameters:
        value - The endHour to set.
        Returns:
        This builder for chaining.
      • clearEndHour

        public AdScheduleInfo.Builder clearEndHour()
         Ending hour in 24 hour time; 24 signifies end of the day.
         This field must be between 0 and 24, inclusive.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        optional int32 end_hour = 7;
        Returns:
        This builder for chaining.
      • getDayOfWeekValue

        public int getDayOfWeekValue()
         Day of the week the schedule applies to.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;
        Specified by:
        getDayOfWeekValue in interface AdScheduleInfoOrBuilder
        Returns:
        The enum numeric value on the wire for dayOfWeek.
      • setDayOfWeekValue

        public AdScheduleInfo.Builder setDayOfWeekValue​(int value)
         Day of the week the schedule applies to.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;
        Parameters:
        value - The enum numeric value on the wire for dayOfWeek to set.
        Returns:
        This builder for chaining.
      • getDayOfWeek

        public DayOfWeekEnum.DayOfWeek getDayOfWeek()
         Day of the week the schedule applies to.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;
        Specified by:
        getDayOfWeek in interface AdScheduleInfoOrBuilder
        Returns:
        The dayOfWeek.
      • setDayOfWeek

        public AdScheduleInfo.Builder setDayOfWeek​(DayOfWeekEnum.DayOfWeek value)
         Day of the week the schedule applies to.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;
        Parameters:
        value - The dayOfWeek to set.
        Returns:
        This builder for chaining.
      • clearDayOfWeek

        public AdScheduleInfo.Builder clearDayOfWeek()
         Day of the week the schedule applies to.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        .google.ads.googleads.v10.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AdScheduleInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
      • mergeUnknownFields

        public final AdScheduleInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>