Class MetadataFeed.Filters.Builder (1.86.0)

public static final class MetadataFeed.Filters.Builder extends GeneratedMessage.Builder<MetadataFeed.Filters.Builder> implements MetadataFeed.FiltersOrBuilder

Filters defines the type of changes that you want to listen to. You can have multiple entry type filters and multiple aspect type filters. All of the entry type filters are OR'ed together. All of the aspect type filters are OR'ed together. All of the entry type filters and aspect type filters are AND'ed together.

Protobuf type google.cloud.dataplex.v1.MetadataFeed.Filters

Static Methods

getDescriptor()

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

Methods

addAllAspectTypes(Iterable<String> values)

public MetadataFeed.Filters.Builder addAllAspectTypes(Iterable<String> values)

Optional. The aspect types that you want to listen to. Depending on how the aspect is attached to the entry, in the format: projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}.

repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The aspectTypes to add.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

addAllChangeTypes(Iterable<? extends MetadataFeed.Filters.ChangeType> values)

public MetadataFeed.Filters.Builder addAllChangeTypes(Iterable<? extends MetadataFeed.Filters.ChangeType> values)

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType>

The changeTypes to add.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

addAllChangeTypesValue(Iterable<Integer> values)

public MetadataFeed.Filters.Builder addAllChangeTypesValue(Iterable<Integer> values)

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for changeTypes to add.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

addAllEntryTypes(Iterable<String> values)

public MetadataFeed.Filters.Builder addAllEntryTypes(Iterable<String> values)

Optional. The entry types that you want to listen to, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}. Only entries that belong to the specified entry types are published.

repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The entryTypes to add.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

addAspectTypes(String value)

public MetadataFeed.Filters.Builder addAspectTypes(String value)

Optional. The aspect types that you want to listen to. Depending on how the aspect is attached to the entry, in the format: projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}.

repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The aspectTypes to add.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

addAspectTypesBytes(ByteString value)

public MetadataFeed.Filters.Builder addAspectTypesBytes(ByteString value)

Optional. The aspect types that you want to listen to. Depending on how the aspect is attached to the entry, in the format: projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}.

repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the aspectTypes to add.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

addChangeTypes(MetadataFeed.Filters.ChangeType value)

public MetadataFeed.Filters.Builder addChangeTypes(MetadataFeed.Filters.ChangeType value)

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MetadataFeed.Filters.ChangeType

The changeTypes to add.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

addChangeTypesValue(int value)

public MetadataFeed.Filters.Builder addChangeTypesValue(int value)

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for changeTypes to add.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

addEntryTypes(String value)

public MetadataFeed.Filters.Builder addEntryTypes(String value)

Optional. The entry types that you want to listen to, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}. Only entries that belong to the specified entry types are published.

repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The entryTypes to add.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

addEntryTypesBytes(ByteString value)

public MetadataFeed.Filters.Builder addEntryTypesBytes(ByteString value)

Optional. The entry types that you want to listen to, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}. Only entries that belong to the specified entry types are published.

repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the entryTypes to add.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

build()

public MetadataFeed.Filters build()
Returns
Type Description
MetadataFeed.Filters

buildPartial()

public MetadataFeed.Filters buildPartial()
Returns
Type Description
MetadataFeed.Filters

clear()

public MetadataFeed.Filters.Builder clear()
Returns
Type Description
MetadataFeed.Filters.Builder
Overrides

clearAspectTypes()

public MetadataFeed.Filters.Builder clearAspectTypes()

Optional. The aspect types that you want to listen to. Depending on how the aspect is attached to the entry, in the format: projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}.

repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

clearChangeTypes()

public MetadataFeed.Filters.Builder clearChangeTypes()

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

clearEntryTypes()

public MetadataFeed.Filters.Builder clearEntryTypes()

Optional. The entry types that you want to listen to, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}. Only entries that belong to the specified entry types are published.

repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

getAspectTypes(int index)

public String getAspectTypes(int index)

Optional. The aspect types that you want to listen to. Depending on how the aspect is attached to the entry, in the format: projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}.

repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The aspectTypes at the given index.

getAspectTypesBytes(int index)

public ByteString getAspectTypesBytes(int index)

Optional. The aspect types that you want to listen to. Depending on how the aspect is attached to the entry, in the format: projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}.

repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the aspectTypes at the given index.

getAspectTypesCount()

public int getAspectTypesCount()

Optional. The aspect types that you want to listen to. Depending on how the aspect is attached to the entry, in the format: projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}.

repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of aspectTypes.

getAspectTypesList()

public ProtocolStringList getAspectTypesList()

Optional. The aspect types that you want to listen to. Depending on how the aspect is attached to the entry, in the format: projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}.

repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the aspectTypes.

getChangeTypes(int index)

public MetadataFeed.Filters.ChangeType getChangeTypes(int index)

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
MetadataFeed.Filters.ChangeType

The changeTypes at the given index.

getChangeTypesCount()

public int getChangeTypesCount()

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of changeTypes.

getChangeTypesList()

public List<MetadataFeed.Filters.ChangeType> getChangeTypesList()

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ChangeType>

A list containing the changeTypes.

getChangeTypesValue(int index)

public int getChangeTypesValue(int index)

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of changeTypes at the given index.

getChangeTypesValueList()

public List<Integer> getChangeTypesValueList()

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for changeTypes.

getDefaultInstanceForType()

public MetadataFeed.Filters getDefaultInstanceForType()
Returns
Type Description
MetadataFeed.Filters

getDescriptorForType()

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

getEntryTypes(int index)

public String getEntryTypes(int index)

Optional. The entry types that you want to listen to, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}. Only entries that belong to the specified entry types are published.

repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The entryTypes at the given index.

getEntryTypesBytes(int index)

public ByteString getEntryTypesBytes(int index)

Optional. The entry types that you want to listen to, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}. Only entries that belong to the specified entry types are published.

repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the entryTypes at the given index.

getEntryTypesCount()

public int getEntryTypesCount()

Optional. The entry types that you want to listen to, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}. Only entries that belong to the specified entry types are published.

repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of entryTypes.

getEntryTypesList()

public ProtocolStringList getEntryTypesList()

Optional. The entry types that you want to listen to, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}. Only entries that belong to the specified entry types are published.

repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the entryTypes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MetadataFeed.Filters other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAspectTypes(int index, String value)

public MetadataFeed.Filters.Builder setAspectTypes(int index, String value)

Optional. The aspect types that you want to listen to. Depending on how the aspect is attached to the entry, in the format: projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}.

repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The aspectTypes to set.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

setChangeTypes(int index, MetadataFeed.Filters.ChangeType value)

public MetadataFeed.Filters.Builder setChangeTypes(int index, MetadataFeed.Filters.ChangeType value)

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value MetadataFeed.Filters.ChangeType

The changeTypes to set.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

setChangeTypesValue(int index, int value)

public MetadataFeed.Filters.Builder setChangeTypesValue(int index, int value)

Optional. The type of change that you want to listen to. If not specified, all changes are published.

repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.

setEntryTypes(int index, String value)

public MetadataFeed.Filters.Builder setEntryTypes(int index, String value)

Optional. The entry types that you want to listen to, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}. Only entries that belong to the specified entry types are published.

repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The entryTypes to set.

Returns
Type Description
MetadataFeed.Filters.Builder

This builder for chaining.