public final class TimePeriod extends GeneratedMessageV3 implements TimePeriodOrBuilder
Represents a time period in a week.
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.TimePeriod
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DAYS_FIELD_NUMBER
public static final int DAYS_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 TimePeriod getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static TimePeriod.Builder newBuilder()
newBuilder(TimePeriod prototype)
public static TimePeriod.Builder newBuilder(TimePeriod prototype)
public static TimePeriod parseDelimitedFrom(InputStream input)
public static TimePeriod parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static TimePeriod parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TimePeriod parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static TimePeriod parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TimePeriod parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TimePeriod parseFrom(CodedInputStream input)
public static TimePeriod parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TimePeriod parseFrom(InputStream input)
public static TimePeriod parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static TimePeriod parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TimePeriod parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<TimePeriod> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDays(int index)
public DayOfWeek getDays(int index)
Required. The days of the week that the time period is active.
repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
com.google.type.DayOfWeek |
The days at the given index.
|
getDaysCount()
public int getDaysCount()
Required. The days of the week that the time period is active.
repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The count of days.
|
getDaysList()
public List<DayOfWeek> getDaysList()
Required. The days of the week that the time period is active.
repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<com.google.type.DayOfWeek> |
A list containing the days.
|
getDaysValue(int index)
public int getDaysValue(int index)
Required. The days of the week that the time period is active.
repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
int |
The enum numeric value on the wire of days at the given index.
|
getDaysValueList()
public List<Integer> getDaysValueList()
Required. The days of the week that the time period is active.
repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<Integer> |
A list containing the enum numeric values on the wire for days.
|
getDefaultInstanceForType()
public TimePeriod getDefaultInstanceForType()
getEndTime()
public TimeOfDay getEndTime()
Required. The end of the time period.
.google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
com.google.type.TimeOfDay |
The endTime.
|
getEndTimeOrBuilder()
public TimeOfDayOrBuilder getEndTimeOrBuilder()
Required. The end of the time period.
.google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
com.google.type.TimeOfDayOrBuilder |
|
getParserForType()
public Parser<TimePeriod> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getStartTime()
public TimeOfDay getStartTime()
Required. The start of the time period.
.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
com.google.type.TimeOfDay |
The startTime.
|
getStartTimeOrBuilder()
public TimeOfDayOrBuilder getStartTimeOrBuilder()
Required. The start of the time period.
.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
com.google.type.TimeOfDayOrBuilder |
|
hasEndTime()
public boolean hasEndTime()
Required. The end of the time period.
.google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the endTime field is set.
|
hasStartTime()
public boolean hasStartTime()
Required. The start of the time period.
.google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the startTime field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public TimePeriod.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TimePeriod.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public TimePeriod.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides