Class VectorStoreRecordField.Builder<T,U extends VectorStoreRecordField.Builder<T,U>>
- java.lang.Object
-
- com.microsoft.semantickernel.data.vectorstorage.definition.VectorStoreRecordField.Builder<T,U>
-
- Type Parameters:
T- the type of the fieldU- the type of the builder
- All Implemented Interfaces:
SemanticKernelBuilder<T>
- Direct Known Subclasses:
VectorStoreRecordDataField.Builder,VectorStoreRecordKeyField.Builder,VectorStoreRecordVectorField.Builder
- Enclosing class:
- VectorStoreRecordField
public abstract static class VectorStoreRecordField.Builder<T,U extends VectorStoreRecordField.Builder<T,U>> extends Object implements SemanticKernelBuilder<T>
A builder for the VectorStoreRecordField class.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Tbuild()Builds the field.UwithFieldType(Class<?> fieldType)Sets the field type.UwithName(String name)Sets the name of the field.UwithStorageName(String storageName)Sets the storage name of the field.
-
-
-
Method Detail
-
withName
public U withName(String name)
Sets the name of the field.- Parameters:
name- the name of the field- Returns:
- the builder
-
withStorageName
public U withStorageName(String storageName)
Sets the storage name of the field.- Parameters:
storageName- the storage name of the field- Returns:
- the builder
-
withFieldType
public U withFieldType(Class<?> fieldType)
Sets the field type.- Parameters:
fieldType- the field type- Returns:
- the builder
-
build
public abstract T build()
Builds the field.- Specified by:
buildin interfaceSemanticKernelBuilder<T>- Returns:
- the field
-
-