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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TimeFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TimeFilter build()
Returns
buildPartial()
public TimeFilter buildPartial()
Returns
clear()
public TimeFilter.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TimeFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TimeFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearTimeRange()
public TimeFilter.Builder clearTimeRange()
.google.type.Interval time_range = 1;
Returns
clone()
public TimeFilter.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public TimeFilter getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Type | Description |
int | The enum numeric value on the wire for timeField.
|
getTimeRange()
public Interval getTimeRange()
.google.type.Interval time_range = 1;
Returns
Type | Description |
com.google.type.Interval | The timeRange.
|
getTimeRangeBuilder()
public Interval.Builder getTimeRangeBuilder()
.google.type.Interval time_range = 1;
Returns
Type | Description |
com.google.type.Interval.Builder | |
getTimeRangeOrBuilder()
public IntervalOrBuilder getTimeRangeOrBuilder()
.google.type.Interval time_range = 1;
Returns
Type | Description |
com.google.type.IntervalOrBuilder | |
hasTimeRange()
public boolean hasTimeRange()
.google.type.Interval time_range = 1;
Returns
Type | Description |
boolean | Whether the timeRange field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TimeFilter other)
public TimeFilter.Builder mergeFrom(TimeFilter other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TimeFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TimeFilter.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeTimeRange(Interval value)
public TimeFilter.Builder mergeTimeRange(Interval value)
.google.type.Interval time_range = 1;
Parameter
Name | Description |
value | com.google.type.Interval
|
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TimeFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TimeFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TimeFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Name | Description |
value | int
The enum numeric value on the wire for timeField to set.
|
Returns
setTimeRange(Interval value)
public TimeFilter.Builder setTimeRange(Interval value)
.google.type.Interval time_range = 1;
Parameter
Name | Description |
value | com.google.type.Interval
|
Returns
setTimeRange(Interval.Builder builderForValue)
public TimeFilter.Builder setTimeRange(Interval.Builder builderForValue)
.google.type.Interval time_range = 1;
Parameter
Name | Description |
builderForValue | com.google.type.Interval.Builder
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final TimeFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides