Class TimeWindow (2.31.0)

public final class TimeWindow extends GeneratedMessageV3 implements TimeWindowOrBuilder

Represents an arbitrary window of time.

Protobuf type google.container.v1.TimeWindow

Implements

TimeWindowOrBuilder

Static Fields

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER

public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TimeWindow getDefaultInstance()
Returns
TypeDescription
TimeWindow

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TimeWindow.Builder newBuilder()
Returns
TypeDescription
TimeWindow.Builder

newBuilder(TimeWindow prototype)

public static TimeWindow.Builder newBuilder(TimeWindow prototype)
Parameter
NameDescription
prototypeTimeWindow
Returns
TypeDescription
TimeWindow.Builder

parseDelimitedFrom(InputStream input)

public static TimeWindow parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeWindow parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TimeWindow parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TimeWindow parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TimeWindow parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TimeWindow parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TimeWindow parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeWindow parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TimeWindow parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeWindow parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TimeWindow parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TimeWindow parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeWindow
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TimeWindow> parser()
Returns
TypeDescription
Parser<TimeWindow>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TimeWindow getDefaultInstanceForType()
Returns
TypeDescription
TimeWindow

getEndTime()

public Timestamp getEndTime()

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getMaintenanceExclusionOptions()

public MaintenanceExclusionOptions getMaintenanceExclusionOptions()

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Returns
TypeDescription
MaintenanceExclusionOptions

The maintenanceExclusionOptions.

getMaintenanceExclusionOptionsOrBuilder()

public MaintenanceExclusionOptionsOrBuilder getMaintenanceExclusionOptionsOrBuilder()

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Returns
TypeDescription
MaintenanceExclusionOptionsOrBuilder

getOptionsCase()

public TimeWindow.OptionsCase getOptionsCase()
Returns
TypeDescription
TimeWindow.OptionsCase

getParserForType()

public Parser<TimeWindow> getParserForType()
Returns
TypeDescription
Parser<TimeWindow>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartTime()

public Timestamp getStartTime()

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

The time that the window ends. The end time should take place after the start time.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasMaintenanceExclusionOptions()

public boolean hasMaintenanceExclusionOptions()

MaintenanceExclusionOptions provides maintenance exclusion related options.

.google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3;

Returns
TypeDescription
boolean

Whether the maintenanceExclusionOptions field is set.

hasStartTime()

public boolean hasStartTime()

The time that the window first starts.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
boolean

Whether the startTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TimeWindow.Builder newBuilderForType()
Returns
TypeDescription
TimeWindow.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TimeWindow.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TimeWindow.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TimeWindow.Builder toBuilder()
Returns
TypeDescription
TimeWindow.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException