Ejemplo n.º 1
0
 /// <summary>
 /// Reads Feature values of a specific entity of an EntityType. For reading
 /// feature values of multiple entities of an EntityType, please use
 /// StreamingReadFeatureValues.
 /// </summary>
 /// <param name="entityType">
 /// Required. The resource name of the EntityType for the entity being read.
 /// Value format:
 /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`.
 /// For example, for a machine learning model predicting user clicks on a
 /// website, an EntityType ID could be `user`.
 /// </param>
 /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <ReadFeatureValuesResponse> ReadFeatureValuesAsync(EntityTypeName entityType, st::CancellationToken cancellationToken) =>
 ReadFeatureValuesAsync(entityType, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
Ejemplo n.º 2
0
 /// <summary>
 /// Reads Feature values for multiple entities. Depending on their size, data
 /// for different entities may be broken
 /// up across multiple responses.
 /// </summary>
 /// <param name="entityType">
 /// Required. The resource name of the entities' type.
 /// Value format:
 /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`.
 /// For example,
 /// for a machine learning model predicting user clicks on a website, an
 /// EntityType ID could be `user`.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>The server stream.</returns>
 public virtual StreamingReadFeatureValuesStream StreamingReadFeatureValues(EntityTypeName entityType, gaxgrpc::CallSettings callSettings = null) =>
 StreamingReadFeatureValues(new StreamingReadFeatureValuesRequest
 {
     EntityTypeAsEntityTypeName = gax::GaxPreconditions.CheckNotNull(entityType, nameof(entityType)),
 }, callSettings);
Ejemplo n.º 3
0
 /// <summary>
 /// Reads Feature values of a specific entity of an EntityType. For reading
 /// feature values of multiple entities of an EntityType, please use
 /// StreamingReadFeatureValues.
 /// </summary>
 /// <param name="entityType">
 /// Required. The resource name of the EntityType for the entity being read.
 /// Value format:
 /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`.
 /// For example, for a machine learning model predicting user clicks on a
 /// website, an EntityType ID could be `user`.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <ReadFeatureValuesResponse> ReadFeatureValuesAsync(EntityTypeName entityType, gaxgrpc::CallSettings callSettings = null) =>
 ReadFeatureValuesAsync(new ReadFeatureValuesRequest
 {
     EntityTypeAsEntityTypeName = gax::GaxPreconditions.CheckNotNull(entityType, nameof(entityType)),
 }, callSettings);