Class AdScheduleInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
com.google.ads.googleads.v18.common.AdScheduleInfo.Builder
- All Implemented Interfaces:
AdScheduleInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,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.v18.common.AdScheduleInfo-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Day of the week the schedule applies to.Ending hour in 24 hour time; 24 signifies end of the day.Minutes after the end hour at which this schedule ends.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Starting hour in 24 hour time.Minutes after the start hour at which this schedule starts.clone()Day of the week the schedule applies to.intDay of the week the schedule applies to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintEnding hour in 24 hour time; 24 signifies end of the day.Minutes after the end hour at which this schedule ends.intMinutes after the end hour at which this schedule ends.intStarting hour in 24 hour time.Minutes after the start hour at which this schedule starts.intMinutes after the start hour at which this schedule starts.booleanEnding hour in 24 hour time; 24 signifies end of the day.booleanStarting hour in 24 hour time.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(AdScheduleInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final AdScheduleInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Day of the week the schedule applies to.setDayOfWeekValue(int value) Day of the week the schedule applies to.setEndHour(int value) Ending hour in 24 hour time; 24 signifies end of the day.Minutes after the end hour at which this schedule ends.setEndMinuteValue(int value) Minutes after the end hour at which this schedule ends.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartHour(int value) Starting hour in 24 hour time.Minutes after the start hour at which this schedule starts.setStartMinuteValue(int value) Minutes after the start hour at which this schedule starts.final AdScheduleInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
setField
public AdScheduleInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
setRepeatedField
public AdScheduleInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
addRepeatedField
public AdScheduleInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdScheduleInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
mergeFrom
public AdScheduleInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdScheduleInfo.Builder>- Throws:
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.v18.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1;- Specified by:
getStartMinuteValuein interfaceAdScheduleInfoOrBuilder- Returns:
- The enum numeric value on the wire for startMinute.
-
setStartMinuteValue
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.v18.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
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.v18.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1;- Specified by:
getStartMinutein interfaceAdScheduleInfoOrBuilder- Returns:
- The startMinute.
-
setStartMinute
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.v18.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1;- Parameters:
value- The startMinute to set.- Returns:
- This builder for chaining.
-
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.v18.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.v18.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2;- Specified by:
getEndMinuteValuein interfaceAdScheduleInfoOrBuilder- Returns:
- The enum numeric value on the wire for endMinute.
-
setEndMinuteValue
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.v18.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
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.v18.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2;- Specified by:
getEndMinutein interfaceAdScheduleInfoOrBuilder- Returns:
- The endMinute.
-
setEndMinute
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.v18.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2;- Parameters:
value- The endMinute to set.- Returns:
- This builder for chaining.
-
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.v18.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:
hasStartHourin interfaceAdScheduleInfoOrBuilder- 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:
getStartHourin interfaceAdScheduleInfoOrBuilder- Returns:
- The startHour.
-
setStartHour
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
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:
hasEndHourin interfaceAdScheduleInfoOrBuilder- 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:
getEndHourin interfaceAdScheduleInfoOrBuilder- Returns:
- The endHour.
-
setEndHour
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
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.v18.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;- Specified by:
getDayOfWeekValuein interfaceAdScheduleInfoOrBuilder- Returns:
- The enum numeric value on the wire for dayOfWeek.
-
setDayOfWeekValue
Day of the week the schedule applies to. This field is required for CREATE operations and is prohibited on UPDATE operations.
.google.ads.googleads.v18.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
Day of the week the schedule applies to. This field is required for CREATE operations and is prohibited on UPDATE operations.
.google.ads.googleads.v18.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;- Specified by:
getDayOfWeekin interfaceAdScheduleInfoOrBuilder- Returns:
- The dayOfWeek.
-
setDayOfWeek
Day of the week the schedule applies to. This field is required for CREATE operations and is prohibited on UPDATE operations.
.google.ads.googleads.v18.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;- Parameters:
value- The dayOfWeek to set.- Returns:
- This builder for chaining.
-
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.v18.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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-
mergeUnknownFields
public final AdScheduleInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AdScheduleInfo.Builder>
-