Class TimeWindow.Builder (3.7.1)

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

A time window of (start_time, end_time].

Protobuf type google.cloud.asset.v1p2beta1.TimeWindow

Implements

TimeWindowOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TimeWindow.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TimeWindow.Builder
Overrides

build()

public TimeWindow build()
Returns
TypeDescription
TimeWindow

buildPartial()

public TimeWindow buildPartial()
Returns
TypeDescription
TimeWindow

clear()

public TimeWindow.Builder clear()
Returns
TypeDescription
TimeWindow.Builder
Overrides

clearEndTime()

public TimeWindow.Builder clearEndTime()

End time of the time window (inclusive). Current timestamp if not specified.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
TimeWindow.Builder

clearField(Descriptors.FieldDescriptor field)

public TimeWindow.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TimeWindow.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TimeWindow.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TimeWindow.Builder
Overrides

clearStartTime()

public TimeWindow.Builder clearStartTime()

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimeWindow.Builder

clone()

public TimeWindow.Builder clone()
Returns
TypeDescription
TimeWindow.Builder
Overrides

getDefaultInstanceForType()

public TimeWindow getDefaultInstanceForType()
Returns
TypeDescription
TimeWindow

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

End time of the time window (inclusive). Current timestamp if not specified.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

End time of the time window (inclusive). Current timestamp if not specified.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

End time of the time window (inclusive). Current timestamp if not specified.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

End time of the time window (inclusive). Current timestamp if not specified.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public TimeWindow.Builder mergeEndTime(Timestamp value)

End time of the time window (inclusive). Current timestamp if not specified.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimeWindow.Builder

mergeFrom(TimeWindow other)

public TimeWindow.Builder mergeFrom(TimeWindow other)
Parameter
NameDescription
otherTimeWindow
Returns
TypeDescription
TimeWindow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TimeWindow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeWindow.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TimeWindow.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
TimeWindow.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimeWindow.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TimeWindow.Builder
Overrides

setEndTime(Timestamp value)

public TimeWindow.Builder setEndTime(Timestamp value)

End time of the time window (inclusive). Current timestamp if not specified.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimeWindow.Builder

setEndTime(Timestamp.Builder builderForValue)

public TimeWindow.Builder setEndTime(Timestamp.Builder builderForValue)

End time of the time window (inclusive). Current timestamp if not specified.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TimeWindow.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TimeWindow.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TimeWindow.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TimeWindow.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TimeWindow.Builder
Overrides

setStartTime(Timestamp value)

public TimeWindow.Builder setStartTime(Timestamp value)

Start time of the time window (exclusive).

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
TimeWindow.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final TimeWindow.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TimeWindow.Builder
Overrides