Class TimeWindow.Builder (3.87.0)

public static final class TimeWindow.Builder extends GeneratedMessage.Builder<TimeWindow.Builder> implements TimeWindowOrBuilder

A time window specified by its start_time and end_time.

Protobuf type google.cloud.asset.v1.TimeWindow

Implements

TimeWindowOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public TimeWindow build()
Returns
Type Description
TimeWindow

buildPartial()

public TimeWindow buildPartial()
Returns
Type Description
TimeWindow

clear()

public TimeWindow.Builder clear()
Returns
Type Description
TimeWindow.Builder
Overrides

clearEndTime()

public TimeWindow.Builder clearEndTime()

End time of the time window (inclusive). If not specified, the current timestamp is used instead.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
TimeWindow.Builder

clearStartTime()

public TimeWindow.Builder clearStartTime()

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimeWindow.Builder

getDefaultInstanceForType()

public TimeWindow getDefaultInstanceForType()
Returns
Type Description
TimeWindow

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

End time of the time window (inclusive). If not specified, the current timestamp is used instead.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

End time of the time window (inclusive). If not specified, the current timestamp is used instead.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

End time of the time window (inclusive). If not specified, the current timestamp is used instead.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

End time of the time window (inclusive). If not specified, the current timestamp is used instead.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public TimeWindow.Builder mergeEndTime(Timestamp value)

End time of the time window (inclusive). If not specified, the current timestamp is used instead.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeWindow.Builder

mergeFrom(TimeWindow other)

public TimeWindow.Builder mergeFrom(TimeWindow other)
Parameter
Name Description
other TimeWindow
Returns
Type Description
TimeWindow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TimeWindow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeWindow.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TimeWindow.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TimeWindow.Builder
Overrides

mergeStartTime(Timestamp value)

public TimeWindow.Builder mergeStartTime(Timestamp value)

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeWindow.Builder

setEndTime(Timestamp value)

public TimeWindow.Builder setEndTime(Timestamp value)

End time of the time window (inclusive). If not specified, the current timestamp is used instead.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeWindow.Builder

setEndTime(Timestamp.Builder builderForValue)

public TimeWindow.Builder setEndTime(Timestamp.Builder builderForValue)

End time of the time window (inclusive). If not specified, the current timestamp is used instead.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeWindow.Builder

setStartTime(Timestamp value)

public TimeWindow.Builder setStartTime(Timestamp value)

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeWindow.Builder

setStartTime(Timestamp.Builder builderForValue)

public TimeWindow.Builder setStartTime(Timestamp.Builder builderForValue)

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeWindow.Builder