Class DataFilter.Builder (0.11.0)

public static final class DataFilter.Builder extends GeneratedMessage.Builder<DataFilter.Builder> implements DataFilterOrBuilder

A filter on a datasource's underlying data. Filter syntax documentation: https://cloud.google.com/looker/docs/filter-expressions

Protobuf type google.cloud.geminidataanalytics.v1beta.DataFilter

Implements

DataFilterOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public DataFilter build()
Returns
Type Description
DataFilter

buildPartial()

public DataFilter buildPartial()
Returns
Type Description
DataFilter

clear()

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

clearField()

public DataFilter.Builder clearField()

Optional. The field to filter on. For example: ["event_date", "customer_id", "product_category"]

string field = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataFilter.Builder

This builder for chaining.

clearType()

public DataFilter.Builder clearType()

Optional. The type of filter present on a datasource, such as ALWAYS_FILTER.

.google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataFilter.Builder

This builder for chaining.

clearValue()

public DataFilter.Builder clearValue()

Optional. The default value used for this filter if the filter is not overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"]

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataFilter.Builder

This builder for chaining.

getDefaultInstanceForType()

public DataFilter getDefaultInstanceForType()
Returns
Type Description
DataFilter

getDescriptorForType()

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

getField()

public String getField()

Optional. The field to filter on. For example: ["event_date", "customer_id", "product_category"]

string field = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The field.

getFieldBytes()

public ByteString getFieldBytes()

Optional. The field to filter on. For example: ["event_date", "customer_id", "product_category"]

string field = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for field.

getType()

public DataFilterType getType()

Optional. The type of filter present on a datasource, such as ALWAYS_FILTER.

.google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataFilterType

The type.

getTypeValue()

public int getTypeValue()

Optional. The type of filter present on a datasource, such as ALWAYS_FILTER.

.google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for type.

getValue()

public String getValue()

Optional. The default value used for this filter if the filter is not overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"]

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Optional. The default value used for this filter if the filter is not overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"]

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setField(String value)

public DataFilter.Builder setField(String value)

Optional. The field to filter on. For example: ["event_date", "customer_id", "product_category"]

string field = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The field to set.

Returns
Type Description
DataFilter.Builder

This builder for chaining.

setFieldBytes(ByteString value)

public DataFilter.Builder setFieldBytes(ByteString value)

Optional. The field to filter on. For example: ["event_date", "customer_id", "product_category"]

string field = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for field to set.

Returns
Type Description
DataFilter.Builder

This builder for chaining.

setType(DataFilterType value)

public DataFilter.Builder setType(DataFilterType value)

Optional. The type of filter present on a datasource, such as ALWAYS_FILTER.

.google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DataFilterType

The type to set.

Returns
Type Description
DataFilter.Builder

This builder for chaining.

setTypeValue(int value)

public DataFilter.Builder setTypeValue(int value)

Optional. The type of filter present on a datasource, such as ALWAYS_FILTER.

.google.cloud.geminidataanalytics.v1beta.DataFilterType type = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
DataFilter.Builder

This builder for chaining.

setValue(String value)

public DataFilter.Builder setValue(String value)

Optional. The default value used for this filter if the filter is not overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"]

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The value to set.

Returns
Type Description
DataFilter.Builder

This builder for chaining.

setValueBytes(ByteString value)

public DataFilter.Builder setValueBytes(ByteString value)

Optional. The default value used for this filter if the filter is not overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"]

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
DataFilter.Builder

This builder for chaining.