Class TimeFilter.Builder (0.15.0)

public static final class TimeFilter.Builder extends GeneratedMessageV3.Builder<TimeFilter.Builder> implements TimeFilterOrBuilder

Filter on create timestamp or update timestamp of documents.

Protobuf type google.cloud.contentwarehouse.v1.TimeFilter

Implements

TimeFilterOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeFilter build()
Returns
TypeDescription
TimeFilter

buildPartial()

public TimeFilter buildPartial()
Returns
TypeDescription
TimeFilter

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTimeField()

public TimeFilter.Builder clearTimeField()

Specifies which time field to filter documents on.

Defaults to [TimeField.UPLOAD_TIME][].

.google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2;

Returns
TypeDescription
TimeFilter.Builder

This builder for chaining.

clearTimeRange()

public TimeFilter.Builder clearTimeRange()

.google.type.Interval time_range = 1;

Returns
TypeDescription
TimeFilter.Builder

clone()

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

getDefaultInstanceForType()

public TimeFilter getDefaultInstanceForType()
Returns
TypeDescription
TimeFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTimeField()

public TimeFilter.TimeField getTimeField()

Specifies which time field to filter documents on.

Defaults to [TimeField.UPLOAD_TIME][].

.google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2;

Returns
TypeDescription
TimeFilter.TimeField

The timeField.

getTimeFieldValue()

public int getTimeFieldValue()

Specifies which time field to filter documents on.

Defaults to [TimeField.UPLOAD_TIME][].

.google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for timeField.

getTimeRange()

public Interval getTimeRange()

.google.type.Interval time_range = 1;

Returns
TypeDescription
com.google.type.Interval

The timeRange.

getTimeRangeBuilder()

public Interval.Builder getTimeRangeBuilder()

.google.type.Interval time_range = 1;

Returns
TypeDescription
com.google.type.Interval.Builder

getTimeRangeOrBuilder()

public IntervalOrBuilder getTimeRangeOrBuilder()

.google.type.Interval time_range = 1;

Returns
TypeDescription
com.google.type.IntervalOrBuilder

hasTimeRange()

public boolean hasTimeRange()

.google.type.Interval time_range = 1;

Returns
TypeDescription
boolean

Whether the timeRange field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TimeFilter other)

public TimeFilter.Builder mergeFrom(TimeFilter other)
Parameter
NameDescription
otherTimeFilter
Returns
TypeDescription
TimeFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TimeFilter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TimeFilter.Builder
Overrides

mergeTimeRange(Interval value)

public TimeFilter.Builder mergeTimeRange(Interval value)

.google.type.Interval time_range = 1;

Parameter
NameDescription
valuecom.google.type.Interval
Returns
TypeDescription
TimeFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTimeField(TimeFilter.TimeField value)

public TimeFilter.Builder setTimeField(TimeFilter.TimeField value)

Specifies which time field to filter documents on.

Defaults to [TimeField.UPLOAD_TIME][].

.google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2;

Parameter
NameDescription
valueTimeFilter.TimeField

The timeField to set.

Returns
TypeDescription
TimeFilter.Builder

This builder for chaining.

setTimeFieldValue(int value)

public TimeFilter.Builder setTimeFieldValue(int value)

Specifies which time field to filter documents on.

Defaults to [TimeField.UPLOAD_TIME][].

.google.cloud.contentwarehouse.v1.TimeFilter.TimeField time_field = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for timeField to set.

Returns
TypeDescription
TimeFilter.Builder

This builder for chaining.

setTimeRange(Interval value)

public TimeFilter.Builder setTimeRange(Interval value)

.google.type.Interval time_range = 1;

Parameter
NameDescription
valuecom.google.type.Interval
Returns
TypeDescription
TimeFilter.Builder

setTimeRange(Interval.Builder builderForValue)

public TimeFilter.Builder setTimeRange(Interval.Builder builderForValue)

.google.type.Interval time_range = 1;

Parameter
NameDescription
builderForValuecom.google.type.Interval.Builder
Returns
TypeDescription
TimeFilter.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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