Class Condition.TimeRange.Builder (0.43.0)

public static final class Condition.TimeRange.Builder extends GeneratedMessageV3.Builder<Condition.TimeRange.Builder> implements Condition.TimeRangeOrBuilder

Used for time-dependent conditions.

Protobuf type google.cloud.discoveryengine.v1beta.Condition.TimeRange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Condition.TimeRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Condition.TimeRange.Builder
Overrides

build()

public Condition.TimeRange build()
Returns
Type Description
Condition.TimeRange

buildPartial()

public Condition.TimeRange buildPartial()
Returns
Type Description
Condition.TimeRange

clear()

public Condition.TimeRange.Builder clear()
Returns
Type Description
Condition.TimeRange.Builder
Overrides

clearEndTime()

public Condition.TimeRange.Builder clearEndTime()

End of time range.

Range is inclusive. Must be in the future.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Condition.TimeRange.Builder

clearField(Descriptors.FieldDescriptor field)

public Condition.TimeRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Condition.TimeRange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Condition.TimeRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Condition.TimeRange.Builder
Overrides

clearStartTime()

public Condition.TimeRange.Builder clearStartTime()

Start of time range.

Range is inclusive.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Condition.TimeRange.Builder

clone()

public Condition.TimeRange.Builder clone()
Returns
Type Description
Condition.TimeRange.Builder
Overrides

getDefaultInstanceForType()

public Condition.TimeRange getDefaultInstanceForType()
Returns
Type Description
Condition.TimeRange

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

End of time range.

Range is inclusive. Must be in the future.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

End of time range.

Range is inclusive. Must be in the future.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

End of time range.

Range is inclusive. Must be in the future.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
TimestampOrBuilder

getStartTime()

public Timestamp getStartTime()

Start of time range.

Range is inclusive.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Start of time range.

Range is inclusive.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Start of time range.

Range is inclusive.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

End of time range.

Range is inclusive. Must be in the future.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Start of time range.

Range is inclusive.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public Condition.TimeRange.Builder mergeEndTime(Timestamp value)

End of time range.

Range is inclusive. Must be in the future.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
Condition.TimeRange.Builder

mergeFrom(Condition.TimeRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public Condition.TimeRange.Builder mergeStartTime(Timestamp value)

Start of time range.

Range is inclusive.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
Condition.TimeRange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Condition.TimeRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Condition.TimeRange.Builder
Overrides

setEndTime(Timestamp value)

public Condition.TimeRange.Builder setEndTime(Timestamp value)

End of time range.

Range is inclusive. Must be in the future.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
Condition.TimeRange.Builder

setEndTime(Timestamp.Builder builderForValue)

public Condition.TimeRange.Builder setEndTime(Timestamp.Builder builderForValue)

End of time range.

Range is inclusive. Must be in the future.

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Condition.TimeRange.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Condition.TimeRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Condition.TimeRange.Builder
Overrides

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

public Condition.TimeRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Condition.TimeRange.Builder
Overrides

setStartTime(Timestamp value)

public Condition.TimeRange.Builder setStartTime(Timestamp value)

Start of time range.

Range is inclusive.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
Condition.TimeRange.Builder

setStartTime(Timestamp.Builder builderForValue)

public Condition.TimeRange.Builder setStartTime(Timestamp.Builder builderForValue)

Start of time range.

Range is inclusive.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Condition.TimeRange.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Condition.TimeRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Condition.TimeRange.Builder
Overrides