Class StoredContentsExampleFilter.Builder (3.89.0)

public static final class StoredContentsExampleFilter.Builder extends GeneratedMessage.Builder<StoredContentsExampleFilter.Builder> implements StoredContentsExampleFilterOrBuilder

The metadata filters that will be used to remove or fetch StoredContentsExamples. If a field is unspecified, then no filtering for that field will be applied.

Protobuf type google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter

Static Methods

getDescriptor()

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

Methods

addAllSearchKeys(Iterable<String> values)

public StoredContentsExampleFilter.Builder addAllSearchKeys(Iterable<String> values)

Optional. The search keys for filtering. Only examples with one of the specified search keys (StoredContentsExample.search_key) are eligible to be returned.

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

Parameter
Name Description
values Iterable<String>

The searchKeys to add.

Returns
Type Description
StoredContentsExampleFilter.Builder

This builder for chaining.

addSearchKeys(String value)

public StoredContentsExampleFilter.Builder addSearchKeys(String value)

Optional. The search keys for filtering. Only examples with one of the specified search keys (StoredContentsExample.search_key) are eligible to be returned.

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

Parameter
Name Description
value String

The searchKeys to add.

Returns
Type Description
StoredContentsExampleFilter.Builder

This builder for chaining.

addSearchKeysBytes(ByteString value)

public StoredContentsExampleFilter.Builder addSearchKeysBytes(ByteString value)

Optional. The search keys for filtering. Only examples with one of the specified search keys (StoredContentsExample.search_key) are eligible to be returned.

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

Parameter
Name Description
value ByteString

The bytes of the searchKeys to add.

Returns
Type Description
StoredContentsExampleFilter.Builder

This builder for chaining.

build()

public StoredContentsExampleFilter build()
Returns
Type Description
StoredContentsExampleFilter

buildPartial()

public StoredContentsExampleFilter buildPartial()
Returns
Type Description
StoredContentsExampleFilter

clear()

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

clearFunctionNames()

public StoredContentsExampleFilter.Builder clearFunctionNames()

Optional. The function names for filtering.

.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StoredContentsExampleFilter.Builder

clearSearchKeys()

public StoredContentsExampleFilter.Builder clearSearchKeys()

Optional. The search keys for filtering. Only examples with one of the specified search keys (StoredContentsExample.search_key) are eligible to be returned.

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

Returns
Type Description
StoredContentsExampleFilter.Builder

This builder for chaining.

getDefaultInstanceForType()

public StoredContentsExampleFilter getDefaultInstanceForType()
Returns
Type Description
StoredContentsExampleFilter

getDescriptorForType()

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

getFunctionNames()

public ExamplesArrayFilter getFunctionNames()

Optional. The function names for filtering.

.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExamplesArrayFilter

The functionNames.

getFunctionNamesBuilder()

public ExamplesArrayFilter.Builder getFunctionNamesBuilder()

Optional. The function names for filtering.

.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExamplesArrayFilter.Builder

getFunctionNamesOrBuilder()

public ExamplesArrayFilterOrBuilder getFunctionNamesOrBuilder()

Optional. The function names for filtering.

.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExamplesArrayFilterOrBuilder

getSearchKeys(int index)

public String getSearchKeys(int index)

Optional. The search keys for filtering. Only examples with one of the specified search keys (StoredContentsExample.search_key) are eligible to be returned.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The searchKeys at the given index.

getSearchKeysBytes(int index)

public ByteString getSearchKeysBytes(int index)

Optional. The search keys for filtering. Only examples with one of the specified search keys (StoredContentsExample.search_key) are eligible to be returned.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the searchKeys at the given index.

getSearchKeysCount()

public int getSearchKeysCount()

Optional. The search keys for filtering. Only examples with one of the specified search keys (StoredContentsExample.search_key) are eligible to be returned.

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

Returns
Type Description
int

The count of searchKeys.

getSearchKeysList()

public ProtocolStringList getSearchKeysList()

Optional. The search keys for filtering. Only examples with one of the specified search keys (StoredContentsExample.search_key) are eligible to be returned.

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

Returns
Type Description
ProtocolStringList

A list containing the searchKeys.

hasFunctionNames()

public boolean hasFunctionNames()

Optional. The function names for filtering.

.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the functionNames field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StoredContentsExampleFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFunctionNames(ExamplesArrayFilter value)

public StoredContentsExampleFilter.Builder mergeFunctionNames(ExamplesArrayFilter value)

Optional. The function names for filtering.

.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExamplesArrayFilter
Returns
Type Description
StoredContentsExampleFilter.Builder

setFunctionNames(ExamplesArrayFilter value)

public StoredContentsExampleFilter.Builder setFunctionNames(ExamplesArrayFilter value)

Optional. The function names for filtering.

.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExamplesArrayFilter
Returns
Type Description
StoredContentsExampleFilter.Builder

setFunctionNames(ExamplesArrayFilter.Builder builderForValue)

public StoredContentsExampleFilter.Builder setFunctionNames(ExamplesArrayFilter.Builder builderForValue)

Optional. The function names for filtering.

.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter function_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ExamplesArrayFilter.Builder
Returns
Type Description
StoredContentsExampleFilter.Builder

setSearchKeys(int index, String value)

public StoredContentsExampleFilter.Builder setSearchKeys(int index, String value)

Optional. The search keys for filtering. Only examples with one of the specified search keys (StoredContentsExample.search_key) are eligible to be returned.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The searchKeys to set.

Returns
Type Description
StoredContentsExampleFilter.Builder

This builder for chaining.