pub struct FeaturestoreServiceClient<T> { /* private fields */ }
Expand description

The service that handles CRUD and List for resources for Featurestore.

Implementations§

source§

impl<T> FeaturestoreServiceClient<T>
where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

source

pub fn new(inner: T) -> Self

source

pub fn with_origin(inner: T, origin: Uri) -> Self

source

pub fn with_interceptor<F>( inner: T, interceptor: F ) -> FeaturestoreServiceClient<InterceptedService<T, F>>
where F: Interceptor, T::ResponseBody: Default, T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>, <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,

source

pub fn send_compressed(self, encoding: CompressionEncoding) -> Self

Compress requests with the given encoding.

This requires the server to support it otherwise it might respond with an error.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

pub async fn create_featurestore( &mut self, request: impl IntoRequest<CreateFeaturestoreRequest> ) -> Result<Response<Operation>, Status>

Creates a new Featurestore in a given project and location.

source

pub async fn get_featurestore( &mut self, request: impl IntoRequest<GetFeaturestoreRequest> ) -> Result<Response<Featurestore>, Status>

Gets details of a single Featurestore.

source

pub async fn list_featurestores( &mut self, request: impl IntoRequest<ListFeaturestoresRequest> ) -> Result<Response<ListFeaturestoresResponse>, Status>

Lists Featurestores in a given project and location.

source

pub async fn update_featurestore( &mut self, request: impl IntoRequest<UpdateFeaturestoreRequest> ) -> Result<Response<Operation>, Status>

Updates the parameters of a single Featurestore.

source

pub async fn delete_featurestore( &mut self, request: impl IntoRequest<DeleteFeaturestoreRequest> ) -> Result<Response<Operation>, Status>

Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or force must be set to true for the request to succeed.

source

pub async fn create_entity_type( &mut self, request: impl IntoRequest<CreateEntityTypeRequest> ) -> Result<Response<Operation>, Status>

Creates a new EntityType in a given Featurestore.

source

pub async fn get_entity_type( &mut self, request: impl IntoRequest<GetEntityTypeRequest> ) -> Result<Response<EntityType>, Status>

Gets details of a single EntityType.

source

pub async fn list_entity_types( &mut self, request: impl IntoRequest<ListEntityTypesRequest> ) -> Result<Response<ListEntityTypesResponse>, Status>

Lists EntityTypes in a given Featurestore.

source

pub async fn update_entity_type( &mut self, request: impl IntoRequest<UpdateEntityTypeRequest> ) -> Result<Response<EntityType>, Status>

Updates the parameters of a single EntityType.

source

pub async fn delete_entity_type( &mut self, request: impl IntoRequest<DeleteEntityTypeRequest> ) -> Result<Response<Operation>, Status>

Deletes a single EntityType. The EntityType must not have any Features or force must be set to true for the request to succeed.

source

pub async fn create_feature( &mut self, request: impl IntoRequest<CreateFeatureRequest> ) -> Result<Response<Operation>, Status>

Creates a new Feature in a given EntityType.

source

pub async fn batch_create_features( &mut self, request: impl IntoRequest<BatchCreateFeaturesRequest> ) -> Result<Response<Operation>, Status>

Creates a batch of Features in a given EntityType.

source

pub async fn get_feature( &mut self, request: impl IntoRequest<GetFeatureRequest> ) -> Result<Response<Feature>, Status>

Gets details of a single Feature.

source

pub async fn list_features( &mut self, request: impl IntoRequest<ListFeaturesRequest> ) -> Result<Response<ListFeaturesResponse>, Status>

Lists Features in a given EntityType.

source

pub async fn update_feature( &mut self, request: impl IntoRequest<UpdateFeatureRequest> ) -> Result<Response<Feature>, Status>

Updates the parameters of a single Feature.

source

pub async fn delete_feature( &mut self, request: impl IntoRequest<DeleteFeatureRequest> ) -> Result<Response<Operation>, Status>

Deletes a single Feature.

source

pub async fn import_feature_values( &mut self, request: impl IntoRequest<ImportFeatureValuesRequest> ) -> Result<Response<Operation>, Status>

Imports Feature values into the Featurestore from a source storage.

The progress of the import is tracked by the returned operation. The imported features are guaranteed to be visible to subsequent read operations after the operation is marked as successfully done.

If an import operation fails, the Feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same import request again and wait till the new operation returned is marked as successfully done.

There are also scenarios where the caller can cause inconsistency.

  • Source data for import contains multiple distinct Feature values for the same entity ID and timestamp.
  • Source is modified during an import. This includes adding, updating, or removing source data and/or metadata. Examples of updating metadata include but are not limited to changing storage location, storage class, or retention policy.
  • Online serving cluster is under-provisioned.
source

pub async fn batch_read_feature_values( &mut self, request: impl IntoRequest<BatchReadFeatureValuesRequest> ) -> Result<Response<Operation>, Status>

Batch reads Feature values from a Featurestore.

This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance’s read timestamp.

source

pub async fn export_feature_values( &mut self, request: impl IntoRequest<ExportFeatureValuesRequest> ) -> Result<Response<Operation>, Status>

Exports Feature values from all the entities of a target EntityType.

source

pub async fn delete_feature_values( &mut self, request: impl IntoRequest<DeleteFeatureValuesRequest> ) -> Result<Response<Operation>, Status>

Delete Feature values from Featurestore.

The progress of the deletion is tracked by the returned operation. The deleted feature values are guaranteed to be invisible to subsequent read operations after the operation is marked as successfully done.

If a delete feature values operation fails, the feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same delete request again and wait till the new operation returned is marked as successfully done.

source

pub async fn search_features( &mut self, request: impl IntoRequest<SearchFeaturesRequest> ) -> Result<Response<SearchFeaturesResponse>, Status>

Searches Features matching a query in a given project.

Trait Implementations§

source§

impl<T: Clone> Clone for FeaturestoreServiceClient<T>

source§

fn clone(&self) -> FeaturestoreServiceClient<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for FeaturestoreServiceClient<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more