Class EventFilter.Builder (1.102.0)

public static final class EventFilter.Builder extends GeneratedMessage.Builder<EventFilter.Builder> implements EventFilterOrBuilder

Represents a filter for included data on a stream object.

Protobuf type google.cloud.datastream.v1.EventFilter

Static Methods

getDescriptor()

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

Methods

build()

public EventFilter build()
Returns
Type Description
EventFilter

buildPartial()

public EventFilter buildPartial()
Returns
Type Description
EventFilter

clear()

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

clearFilter()

public EventFilter.Builder clearFilter()
Returns
Type Description
EventFilter.Builder

clearSqlWhereClause()

public EventFilter.Builder clearSqlWhereClause()

An SQL-query Where clause selecting which data should be included, not including the "WHERE" keyword. e.g., t.key1 = 'value1' AND t.key2 = 'value2'

string sql_where_clause = 1;

Returns
Type Description
EventFilter.Builder

This builder for chaining.

getDefaultInstanceForType()

public EventFilter getDefaultInstanceForType()
Returns
Type Description
EventFilter

getDescriptorForType()

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

getFilterCase()

public EventFilter.FilterCase getFilterCase()
Returns
Type Description
EventFilter.FilterCase

getSqlWhereClause()

public String getSqlWhereClause()

An SQL-query Where clause selecting which data should be included, not including the "WHERE" keyword. e.g., t.key1 = 'value1' AND t.key2 = 'value2'

string sql_where_clause = 1;

Returns
Type Description
String

The sqlWhereClause.

getSqlWhereClauseBytes()

public ByteString getSqlWhereClauseBytes()

An SQL-query Where clause selecting which data should be included, not including the "WHERE" keyword. e.g., t.key1 = 'value1' AND t.key2 = 'value2'

string sql_where_clause = 1;

Returns
Type Description
ByteString

The bytes for sqlWhereClause.

hasSqlWhereClause()

public boolean hasSqlWhereClause()

An SQL-query Where clause selecting which data should be included, not including the "WHERE" keyword. e.g., t.key1 = 'value1' AND t.key2 = 'value2'

string sql_where_clause = 1;

Returns
Type Description
boolean

Whether the sqlWhereClause field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EventFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSqlWhereClause(String value)

public EventFilter.Builder setSqlWhereClause(String value)

An SQL-query Where clause selecting which data should be included, not including the "WHERE" keyword. e.g., t.key1 = 'value1' AND t.key2 = 'value2'

string sql_where_clause = 1;

Parameter
Name Description
value String

The sqlWhereClause to set.

Returns
Type Description
EventFilter.Builder

This builder for chaining.

setSqlWhereClauseBytes(ByteString value)

public EventFilter.Builder setSqlWhereClauseBytes(ByteString value)

An SQL-query Where clause selecting which data should be included, not including the "WHERE" keyword. e.g., t.key1 = 'value1' AND t.key2 = 'value2'

string sql_where_clause = 1;

Parameter
Name Description
value ByteString

The bytes for sqlWhereClause to set.

Returns
Type Description
EventFilter.Builder

This builder for chaining.