Class DayPart (0.62.0)

public final class DayPart extends GeneratedMessage implements DayPartOrBuilder

A day of the week and time interval within the day.

Protobuf type google.ads.admanager.v1.DayPart

Implements

DayPartOrBuilder

Static Fields

DAY_OF_WEEK_FIELD_NUMBER

public static final int DAY_OF_WEEK_FIELD_NUMBER
Field Value
Type Description
int

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DayPart getDefaultInstance()
Returns
Type Description
DayPart

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DayPart.Builder newBuilder()
Returns
Type Description
DayPart.Builder

newBuilder(DayPart prototype)

public static DayPart.Builder newBuilder(DayPart prototype)
Parameter
Name Description
prototype DayPart
Returns
Type Description
DayPart.Builder

parseDelimitedFrom(InputStream input)

public static DayPart parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DayPart
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DayPart parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DayPart
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DayPart parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DayPart
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DayPart parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DayPart
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DayPart parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DayPart
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DayPart parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DayPart
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DayPart parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DayPart
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DayPart parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DayPart
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DayPart parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DayPart
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DayPart parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DayPart
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DayPart parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DayPart
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DayPart parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DayPart
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DayPart> parser()
Returns
Type Description
Parser<DayPart>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDayOfWeek()

public DayOfWeek getDayOfWeek()

Required. The day of the week.

optional .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DayOfWeek

The dayOfWeek.

getDayOfWeekValue()

public int getDayOfWeekValue()

Required. The day of the week.

optional .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for dayOfWeek.

getDefaultInstanceForType()

public DayPart getDefaultInstanceForType()
Returns
Type Description
DayPart

getEndTime()

public TimeOfDay getEndTime()

Required. The end time of the day part.

optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDay

The endTime.

getEndTimeOrBuilder()

public TimeOfDayOrBuilder getEndTimeOrBuilder()

Required. The end time of the day part.

optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

getParserForType()

public Parser<DayPart> getParserForType()
Returns
Type Description
Parser<DayPart>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public TimeOfDay getStartTime()

Required. The start time of the day part.

optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDay

The startTime.

getStartTimeOrBuilder()

public TimeOfDayOrBuilder getStartTimeOrBuilder()

Required. The start time of the day part.

optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.TimeOfDayOrBuilder

hasDayOfWeek()

public boolean hasDayOfWeek()

Required. The day of the week.

optional .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dayOfWeek field is set.

hasEndTime()

public boolean hasEndTime()

Required. The end time of the day part.

optional .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Required. The start time of the day part.

optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DayPart.Builder newBuilderForType()
Returns
Type Description
DayPart.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DayPart.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DayPart.Builder
Overrides

toBuilder()

public DayPart.Builder toBuilder()
Returns
Type Description
DayPart.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException